question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Analyzer plugin doesn't work correctly in LSP mode

See original GitHub issue

Is 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:closed
  • Created a year ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alexisbgcommented, Dec 6, 2022

@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.

0reactions
DanTupcommented, Dec 6, 2022

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found