You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "matthiasblaesing (via GitHub)" <gi...@apache.org> on 2023/12/16 17:02:26 UTC
[PR] LSP Improvement [netbeans]
matthiasblaesing opened a new pull request, #6856:
URL: https://github.com/apache/netbeans/pull/6856
There are two problems in the LSP client code that prevent it from working with rust-analyzer, these are fixed here.
The core set of changes is more or less:
- handle `null` being returned from `codeAction`
- Send `initialized` event after we got `initServer` reply
The rest is nicer formatting and integration with logging for the JSON stream.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [PR] LSP Improvement [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on PR #6856:
URL: https://github.com/apache/netbeans/pull/6856#issuecomment-1858925884
@arsi-apli @vieiro you might be interested in this, as this makes it possible to run rust-analyzer.
https://github.com/matthiasblaesing/netbeans/tree/rust-analyser has one more commit, that allows you to tie rust-analyzer into NetBeans, but it collides with the facilities provided by the rust CSL integration. We need to figure out how to dynamically switch from analysis with the antlr grammar to LSP (breadcrumbs, structure scanner) if we want to support both approaches.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [PR] LSP Improvement [netbeans]
Posted by "arsi-apli (via GitHub)" <gi...@apache.org>.
arsi-apli commented on PR #6856:
URL: https://github.com/apache/netbeans/pull/6856#issuecomment-1859074738
> Note that the rust-analyzer integration in NetBeans needs some prior investigation, we first should decide if a single rust-analyzer instance is good enough for different "projects" or if each "project" should have a single rust-analyzer instance (see [1]). We should also decide what a NetBeans Rust Project is (a package, a workspace with many packages?, etc.). Also all this may require further changes in ide/lsp.client (adding support to ide/lsp.client for LSP workspaces, for instance, which rust-analyzer seems to support [2])
If I open the LSP configuration in NB and I don't know anything about it so I logically consider it as universal support. (After adding the `initialized` is probably already..) Therefore, there should be an option in the GUI to switch: one instance for all projects/new instance for each project. And the default option should be new instance for each project. And a link to the wiki page, where there will be a list of currently verified LSPs with the correct settings..
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [PR] LSP Improvement [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing merged PR #6856:
URL: https://github.com/apache/netbeans/pull/6856
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [PR] LSP Improvement [netbeans]
Posted by "vieiro (via GitHub)" <gi...@apache.org>.
vieiro commented on PR #6856:
URL: https://github.com/apache/netbeans/pull/6856#issuecomment-1858932462
> @arsi-apli @vieiro you might be interested in this, as this makes it possible to run rust-analyzer.
>
> https://github.com/matthiasblaesing/netbeans/tree/rust-analyser has one more commit, that allows you to tie rust-analyzer into NetBeans, but it collides with the facilities provided by the rust CSL integration. We need to figure out how to dynamically switch from analysis with the antlr grammar to LSP (breadcrumbs, structure scanner) if we want to support both approaches.
Note that the `rust-analyzer` integration in NetBeans needs some prior investigation, we first should decide if a single `rust-analyzer` instance is good enough for different "projects" or if each "project" should have a single `rust-analyzer` instance (see [1]). We should also decide what a NetBeans Rust Project is (a package, a workspace with many packages?, etc.). Also all this may require further changes in `ide/lsp.client`.
[1] - https://github.com/helix-editor/helix/discussions/5889
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists