-
Notifications
You must be signed in to change notification settings - Fork 881
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
Computing hints based on custom preferences #6760
Conversation
please ignore the lock/unlock. This is our trick to force a new workflow run which takes new labels into account for the jobs. Since you can't label things, someone else has to do that :) (not sure if VSCode tests should run there too, a reviewer will know) |
...va.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
Outdated
Show resolved
Hide resolved
32b63b1
to
70832b6
Compare
70832b6
to
4bde55e
Compare
Now tests should pass hopefully. There was a missing dependency. |
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.
Some comments inline.
Not sure if you tried to put the augmented server to an enhanced extension to see how it work, but I would suggest to do it, to be sure all parts work together. (Several paths to the configuration seem suspicious here to me.)
java/java.hints/src/org/netbeans/modules/java/hints/infrastructure/JavaErrorProvider.java
Outdated
Show resolved
Hide resolved
.../java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/WorkspaceServiceImpl.java
Outdated
Show resolved
Hide resolved
java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/Server.java
Outdated
Show resolved
Hide resolved
...va.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
Outdated
Show resolved
Hide resolved
...va.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
Outdated
Show resolved
Hide resolved
java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/Server.java
Show resolved
Hide resolved
...va.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
Outdated
Show resolved
Hide resolved
...va.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
Outdated
Show resolved
Hide resolved
...va.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
Show resolved
Hide resolved
...va.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
Outdated
Show resolved
Hide resolved
2361ecd
to
9367bd3
Compare
9367bd3
to
6221cfa
Compare
.../java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/WorkspaceServiceImpl.java
Show resolved
Hide resolved
Signed-off-by: Achal Talati <achal.talati@oracle.com>
6221cfa
to
ab0e881
Compare
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.
Looks reasonable to me.
this seems to be breaking the VSCode extension build as you can see here: https://github.com/apache/netbeans/actions/runs/7555048750 |
Looks like this was merged without the right tests being run on it - labelling failure I guess?! Suggest revert and reapply to stabilise master and review based on what it's failing on (missing module dependency)? |
<dependency> | ||
<code-name-base>org.netbeans.modules.editor.tools.storage</code-name-base> | ||
<build-prerequisite/> | ||
<compile-dependency/> | ||
<run-dependency> | ||
<specification-version>1.31</specification-version> | ||
</run-dependency> | ||
</dependency> |
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.
this looks like the cause for the build failure:
BUILD FAILED
/home/runner/work/netbeans/netbeans/java/java.lsp.server/build.xml:32: The following error occurred while executing this line:
/home/runner/work/netbeans/netbeans/nbbuild/netbeans/harness/suite.xml:163: The following error occurred while executing this line:
/home/runner/work/netbeans/netbeans/nbbuild/netbeans/harness/build.xml:150: Module org.netbeans.modules.editor.tools.storage excluded from the target platform; the path is: [org.netbeans.modules.nbcode.integration, org.netbeans.modules.java.lsp.server, org.netbeans.modules.java.hints]
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.
So, this should be removed from diasabled modules list of vscode extension?
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.
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.
I tried removing org.netbeans.modules.editor.tools.storage
from disabled modules list and it is working fine. I can update the branch and push the code if this PR is reverted.
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.
Sorry for this. I think we've missed the "LSP" label in this PR. I've opened:
#6966
What do you think?
Currently hints are computed on the basis of global default preferences in lsp server. So, added an option to compute hints on the basis of custom hint preferences file if available.
Refer to #javavscode-9