-
Notifications
You must be signed in to change notification settings - Fork 3
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
DART SDK not found #16
Comments
I would expect the error to be When you are in |
In case this is the problem in #16 Add a more specific error message when neither `dart` nor `flutter` is in `$PATH`.
"Could not find either a "Usage: dart [] [] Executes the Dart script with the given list of . Common VM flags: I did "EXPORT" my flutter path to the bashrc, when I installed flutter. Could this be an issue? My PATH variable does have flutter/bin at the end of it though. |
How do you normally run nvim? Can you try running it from the terminal where the
That's the output I would expect if your
I added this error with a specific check for where I would expect vim-lsc-dart/autoload/lsc/dart.vim Lines 50 to 51 in 3817ae1
|
I'm running it from the same terminal, tried two different terminal emulators and two versions of nvim(both stable)too. Do you think there is any way I can manually set the path that the lsc-dart plugin looks into (for a test case)? |
I'm not sure what other solutions to look for here. I suppose one workaround we could try is adding a configuration to specify the path to the SDK directly instead of searching for it. Can you try out the branch |
It's working, all the errors have disappeared and auto complete is showing suggestions, thanks a bunch. Is there any way I could enable closing labels or perhaps, could you point me in the right direction with regards to the documentation of such settings? |
Awesome! I'll merge that PR.
Not currently. I filed #18 as a feature request, however its not likely I'll get to it soon since I use vim, not nvim, and there is no support for virtual text in vim. |
I had the same issue with a strange solution. The following was in my .bashrc: Then I changed it in the .bashrc to |
I've tried using vim-lsc-dart as a plugin on neovim (latest version). I've got Flutter up and running, it is in my path and I am able to run it from the terminal. As soon as I display a .dart file, neovim says "DART SDK not found". I tried running the dart analyzer snapshot using the vim lsc plugin. It seems to run on the terminal but doesn't really do anything much to the .dart file. Any way to get it working? Thanks in advance
The text was updated successfully, but these errors were encountered: