Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can't open menu inside lsp-dart-show-flutter-outline #176

Open
reimager opened this issue Sep 6, 2022 · 2 comments
Open

Can't open menu inside lsp-dart-show-flutter-outline #176

reimager opened this issue Sep 6, 2022 · 2 comments

Comments

@reimager
Copy link

reimager commented Sep 6, 2022

Describe the bug
After running M-x lsp-dart-show-flutter-outline, I right click on a Widget (same as example gif in README) and I expect a popup to allow wrapping a widget or whatever. Instead I get an error

To Reproduce
Right click on Widget in flutter outline window

This is the error:
Error running timer: (wrong-type-argument listp #[128 "\302\205�\0\303\300\301"\207" ["file:///home/user/foo/lib/view/workflow_list_page.dart" #s(hash-table size 2 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("end" #s(hash-table size 2 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("character" 7 "line" 244)) "start" #s(hash-table size 2 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("character" 14 "line" 207)))) t lsp-dart-outline--build-flutter-outline-widget-actions] 4 "

This is the error with toggle-debug-on-error:
Debugger entered--Lisp error: (wrong-type-argument listp #f(compiled-function (&rest _) #<bytecode 0x1581c0c8a611>))
easy-menu-create-menu(nil #f(compiled-function (&rest _) #<bytecode 0x1581c0c8a611>))
#f(compiled-function () #<bytecode 0x1581c084d6f9>)()
apply(#f(compiled-function () #<bytecode 0x1581c084d6f9>) nil)
timer-event-handler([t 0 0 1000 nil #f(compiled-function () #<bytecode 0x1581c084d6f9>) nil idle 0])

LSP :: lsp-mode 8.0.0, Emacs 27.1, gnu/linux
[LSP Dart] 1.22.2 at 2022.09.05 @ Emacs 27.1
[Dart SDK] Dart SDK version: 2.18.0 (stable) (Fri Aug 26 10:22:54 2022 +0000) on "linux_x64"
[Flutter SDK] /home/user/flutter
[Flutter project] true
[Project entrypoint] /home/user/foo/lib/main.dart

@ericdallo
Copy link
Member

@reimager I just tried latest lsp-dart with latest lsp-mode and managed to right click and call actions like wrap widget properly, could you try latest in this sample project

@reimager
Copy link
Author

reimager commented Dec 4, 2022

Now right click (for me) does nothing. lsp-dart 1.24.1. No error anymore, but no response.

Sorry I had forgotten all about this because I actually use lsp-execute-code-action to do this

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants