-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support dart-sdk debugger instead of node debugger extension for dart-sdks that already support that #128
Comments
We can make lsp-dart check dart-version and use the dart-sdk debugger instead of the node one, but still use dap-mode to launch the process seems to be the better yet |
Hi, @ericdallo , could you please give some professional advice for this thread? I don't know what that |
I commented there |
Thanks for help on eglot, though, i switch back to lsp-dart (with lsp-ui disabled for performance issue), because eglot can not start correctly after i do rename on one of file of my project. |
@zw963 I intend to implement this issue soon |
@zw963 Done one master, could you confirm it works for you too so I can release a new version? |
Okay, after a quick test, get some result, following is details: ╰─ $ flutter --version
Flutter 2.10.3 • channel unknown • unknown source
Framework • revision 7e9793dee1 (11 days ago) • 2022-03-02 11:23:12 -0600
Engine • revision bd539267b4
Tools • Dart 2.16.1 • DevTools 2.9.2 I try to test on For simple, i use linux desktop for test, so, i have to do like this to initialize it. flutter precache -a
flutter config --enable-linux-desktop
flutter create --platforms=linux . Then i can run Now i start to test lsp-dart
Following is my minimum config which can reproduce above issue: (require 'company)
(require 'lsp-mode)
(require 'lsp-modeline)
(require 'lsp-headerline)
(require 'lsp-diagnostics)
(require 'dart-mode)
(require 'dap-mode)
(require 'dap-ui)
(require 'dap-mouse)
(add-to-list 'auto-mode-alist '("\\.dart\\'" . dart-mode))
(require 'lsp-dart)
;; (setq lsp-dart-dap-use-sdk-debugger nil)
(add-hook 'dart-mode-hook 'lsp-deferred)
Folowing is logs: lsp-log
flutter daemon
|
It does work for me, not sure why that exception happens for you, also you don't need |
Remove json extension, keep default config, get same error. BTW, are you try with my version flutter and dart? I am current test it use flutter git tag |
I'm using latest stable flutte which is |
It works for me now, i guess some network issue happen when i last time use 2.10.3 and run anyway, i fix it by:
Then i get a error when i test on I guess this Another issue is, |
Sorry for confusing! i think I don't know why this, but maybe a network issue or just BTW, there is no any log/info output when run BTW: then switch to master, dart give us far more warning messages which need to fix then current 2.10.3 |
@zw963 , made one more commit fixing the output, besides that, I think everything is right, could you test that specifically? |
Okay, i will new feature today full day, will be touch if any issue. |
Hi, i consider will do test completely after you fix the output, because, It seem like struke by some command, as you can see from ps output: there is no clue about what happening if no log. UPDATED: after kill all process and restart emacs again, lsp-dart-run successful anyway. |
Yeah, I already fixed the output, there is nothing to fix related to that AFAIK.
If it's an issue, certainly a server issue. feel free to open an issue on dart-sdk. |
Yes, i saw the log now, though, there seem like still less output then before, e.g. current selected device info etc. And, still no chance to test if #145 work.
It's my fault, i change some settings of company-backends several days ago, which cause this. There still have one more issue, though, maybe not relative to this update. i fork Following is reproduce:
|
I'm aware of this and not sure how to improve it, but please open a new issue. |
I create a new issue for tracing support builtin extension.
The text was updated successfully, but these errors were encountered: