- 
                Notifications
    You must be signed in to change notification settings 
- Fork 911
Fixes most layer position warnings and improves logging #8916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| @MimeRegistration(mimeType="", service=CompletionProvider.class) | ||
| @MimeRegistration(mimeType="", service=CompletionProvider.class, position = 1000) | ||
| public class CompletionProviderImpl implements CompletionProvider { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
java completion provider is at 100, rest increments by 100 typically. Wasn't sure where to put the LSP provider. This would be at the end of the list. (I didn't check but I believe this is where items without position would land too)
4ca65ef    to
    cfe70c4      
    Compare
  
    The warning message will now include the position of the services to make picking a value easier. Tested activation of all clusters and maven project creation, only one root '/' warning is left to fix in the log. Might make the layer behave more deterministic in some cases. conflict fixes: same position 300 for both UI/ToolActions/Files/org-netbeans-modules-diff-tree-RecursiveDiffAction.shadow and UI/ToolActions/Files/org-netbeans-modules-favorites-Add.shadow -> RecursiveDiffAction = 250 same position 650 for both Templates/Project/GradleGroovy and Templates/Project/Native Native -> 660 ordering fixes: Not all children in Windows2/Modes/output/ marked with the position attribute: [TextToolsTopComponent.wstcref], but some are: [watchesView.wstcref, NotificationCenterTopComponent.wstcref, ...] -> TextToolsTopComponent = 3400 Not all children in OptionsDialog/Editor/ marked with the position attribute: [InlineHints], but some are: [CodeCompletion, Formatting, Hints, MarkOccurrences, ...] -> InlineHints = 0 Not all children in Windows2/Modes/editor/ marked with the position attribute: [TreeDiffViewerTopComponent.wstcref, CoverageReportTopComponent.wstcref], but some are: [DashboardDisplayer.wstcref] -> CoverageReportTopComponent = 0 -> TreeDiffViewerTopComponent = 0 Not all children in Templates/Project/Maven2/ marked with the position attribute: [settings.xml], but some are: [JavaApp, org-netbeans-modules-maven-j2ee-ui-wizard-EEWizardIterator-createWebAppIterator, ...] -> settings.xml = 110 Not all children in / marked with the position attribute: [org-netbeans-modules-lsp-client-bindings-CompletionProviderImpl.instance], but some are: [org-netbeans-modules-editor-java-JavaCompletionProvider.instance, ...] -> CompletionProviderImpl = 1000 Not all children in / marked with the position attribute: [org-netbeans-modules-spellchecker-completion-WordCompletion.instance], but some are: [org-netbeans-modules-lsp-client-bindings-CompletionProviderImpl.instance@1000] -> WordCompletion = 600 (across several layer registrations) Not all children in Editors/text/x-java/CodeGenerators/ marked with the position attribute: [org-netbeans-modules-micronaut-db-MicronautDataEndpointGenerator$Factory.instance], but some are: [org-netbeans-modules-j2ee-ejbcore-ui-logicalview-ejb-action-AddMethodActions$AddBusinessMethodCodeGenerator.instance@10, ...] -> MicronautDataEndpointGenerator$Factory = 800 Not all children in / marked with the position attribute: [org-netbeans-modules-editor-java-JavaBracesMatcher.shadow], but some are: [org-netbeans-modules-editor-bracesmatching-LegacyEssMatcher.instance@100, org-netbeans-modules-editor-bracesmatching-DefaultMatcher.instance@200] -> JavaBracesMatcher = 300 Not all children in / marked with the position attribute: [org-netbeans-modules-xml-text-completion-XMLCompletionProvider.instance, org-netbeans-modules-xml-schema-completion-SchemaBasedCompletionProvider.instance], but some are: [org-netbeans-modules-spellchecker-completion-WordCompletion.instance@600, ...] -> XMLCompletionProvider = 700 -> SchemaBasedCompletionProvider = 800
cfe70c4    to
    d3e03cf      
    Compare
  
    | <folder name="CompletionProviders"> | ||
| <file name="org-netbeans-modules-spellchecker-completion-WordCompletion.instance"/> | ||
| <file name="org-netbeans-modules-spellchecker-completion-WordCompletion.instance"> | ||
| <!-- none of the php completion poviders have currently a position | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo (here and elsewhere): poviders -> providers
second round after #7235
bonus: The warning message will now include the position of the services to make picking a value easier.
Tested activation of all clusters and maven project creation, only one
org.openide.filesystems.Orderingroot '/' warning is left to fix in the log (which I avoided so far since it is a big one).Might make the layer behave more deterministic in some cases.
conflict fixes:
ordering fixes: