Analyzer plugin doesn't work correctly in LSP mode
See original GitHub issueIs your feature request related to a problem? Please describe.
I write some custom lint rules. To achieve this, I use the analyzer_plugin package. But the JSON generated by this package use Dart server Legacy protocol. Fortunately Dart Code offers a setting to start the Dart analysis server with the Legacy protocol instead of default/recommended LSP:
"dart.useLegacyAnalyzerProtocol": true
But this setting description advises to use LSP because the Legacy protocol will eventually be removed some day.
Describe the solution you’d like How long time Legacy protocol will be still supported? Will I lose a lot of features by not using LSP?
Describe alternatives you’ve considered Did I maybe miss something? Can analyzer_plugin generate LSP JSON?
Issue Analytics
- State:
- Created a year ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
lsp-mode not work at rust project tests folder #2029 - GitHub
I have test the same bin file within vscode rust-analyzer plugin。 In vscode autocomplete works well in tests/newfile.rs. In lsp-mode need to ...
Read more >Rust (rust-analyzer) - LSP Mode - LSP support for Emacs
lsp -rust-analyzer-related-tests find all tests related to the current position, asks for user completion and executes the selected test in a compilation buffer....
Read more >LSP Mode code completion not working : r/emacs - Reddit
I've installed lsp-mode and am having trouble getting code completion working for PHP. ... Neovim 0.5 Native LSP Rust-analyzer autocomplete not working.
Read more >emacs-lsp/lsp-mode - Gitter
Okay, so, I found a curious thing: if I evaluate (lsp-configuration-section "pyls.plugins.pyls_mypy") , I get output that mentions ("enabled" t) but nothing ...
Read more >Newest 'lsp-mode' Questions - Emacs Stack Exchange
This question was asked before here, but the solution doesn't work. It could be because I am not restarting flymake correctly. The question...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DanTup Sadly
"dart.previewSdkDaps": true
does not fix this issue while I use the latest stable version of Dart and VSCode. I’m going to file an issue.Thank you again for you help.
@alexisbg oh, that’s a shame. It’s possible that setting
"dart.previewSdkDaps": true
in your VS Code settings might fix the unknown source issue - the SDK DAPs have better handling of package mapping. If not, if you file a new issue with the info above, I’ll try to take a look since that seems like an issue that can probably occur outside of plugins too.Thanks!