-
Notifications
You must be signed in to change notification settings - Fork 86
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] fvm not working on windows #343
Comments
Does it work if you run |
yes everything works as expected outside of neovim. only this plugin/neovim can't start it. |
Please check the latest plugin version,d8f2eac commit may help. If there is still a problem, please reopen the issue. |
Yea, it looks like missing |
I do not have Windows, so I am not sure if the path is the same as in macOS. @AyushUlric, if you have time please check if this works for you #386? The setup would be: return {
"akinsho/flutter-tools.nvim",
branch = "fvm-on-windows",
...
} |
@sidlatau, didn't work, same error. I hope I didn't mess up the setup as I am fairly new to nvim so attaching my setup code below. I then updated all my plugins from the Lazy menu and restarted nvim. I think on windows flutter and flutter.bat will always be in the same directory and the current path correctly points to the flutter file, hope that helps. |
@AyushUlric thanks for testing. I see you are using a global path to |
@sidlatau Yes I did run the fvm use command and I have the .fvm directory in my project root. But I noticed that flutter_sdk directory is actually a shotcut which points to the global fvm path. I checked all my fvm projects and it seems to be common in all of them. Maybe that's how it is on Windows? BTW I added the global path because thats what showed up in error logs with path not found. |
Is there an existing issue for this?
Current Behavior
Running :FlutterRun with fvm enabled throws ENOENT: no such file or directory in windows
although path is detected correctly
Expected Behavior
Running :FlutterRun in windows should run flutter
Steps To Reproduce
my conifg with lazy:
{
'akinsho/flutter-tools.nvim',
lazy = false,
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
require('flutter-tools').setup {
fvm = true,
-- debugger = {
-- enabled = true,
-- run_via_dap = true,
-- register_configurations = function(paths)
-- local file = io.open('.vscode/launch.json', 'r')
-- if file ~= nil then
-- io.close(file)
-- require('dap.ext.vscode').load_launchjs()
-- end
-- end,
-- },
}
require('telescope').load_extension 'flutter'
end,
},
Environment
Anything else?
I tried to find out what is happening and it might not even be the fault of this tool but i am quite new to neovim and just evaluating if i want to continue using it. what i found that just the line
:lua =vim.uv.spawn("C:\\\fvm\versions\3.13.9\bin\flutter", { { "run" }}) already fails
just running "C:\\\fvm\versions\3.13.9\bin\flutter" in pwsh or cmd or even with Start-Process is working.
The text was updated successfully, but these errors were encountered: