-
Notifications
You must be signed in to change notification settings - Fork 73
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
[Bug]: Windows related issue starting flutter #187
Comments
@Tsuzat I don't use Windows, so there's no chance I'll be able to fix this for you, as I don't know anything about changing the paths or whatever else is required. If you are able to point in the direction of what might not be working, that might be useful. Otherwise, as a Windows user you will have to do some more debugging |
@Tsuzat it's important to clarify that you might need to change your config to work with windows and vice versa I've never guaranteed that this would work automatically as I do not use or test on Windows, so I definitely cannot guarantee that. Other Windows users are able to use this plugin successfully, so I doubt this is an issue with the plugin and more likely you need to tweak your configuration using some conditional logic when running on Windows. |
I appreciate the hard work you putting in. I don't want to put an extra burden on you. I'll try to debug it by myself. But can you give me an idea of what could have gone wrong with the configuration? |
@Tsuzat I'm not really sure what is going wrong but it seems like it's trying to run the command to list the users devices and it cannot find flutter. You seem to have indicated that your flutter path is |
I guess I'll use this tool in Linux then. Thanks for the help. |
@Tsuzat I dont know, if you're still interested in developing flutter on Windows, but I just had the same error as you. Turns out, that explicitly setting the flutter_path to |
Turns out, the |
I would like to add this solution that I got on Reddit. https://www.reddit.com/r/neovim/comments/xt234i/comment/j1hkdwa/?utm_source=share&utm_medium=web2x&context=3 So, turns out that the plugin uses the e.g. local status_ok, flutter_tools = pcall(require, "flutter-tools")
if not status_ok then
return
end
flutter_tools.setup {
flutter_path = "C:/Development/flutter/bin/flutter.bat",
} Now it is working fine. |
Yes, that is the thing I was proposing in my first comment ;) |
Describe the bug
The same configuration is not working in windows that worked in Linux. I'm attaching a video for reference.
Video
To Reproduce
Steps to reproduce the behavior:
Error is somewhat like this
Expected behavior
The expected behavior (that it does in Linux) is to run flutter or show a list of devices.
Screenshots
System information
Additional context
I'm using the default configuration in both my machine Linux and Windows. It works smoothly in Linux but not in Windows.
The text was updated successfully, but these errors were encountered: