-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
Air not running properly on windows 11 64bit #659
Comments
I have the same issue which is has weird path to bin file -> '\"main.exe\"' this looks like a bug, but you can avoid this till there is a fix by specifying an absolute path in the toml file -> [build] -> full_bin ="" |
I set |
Worked perfectly after it. Thank you! |
This resolved my issue as well |
@minolmal, could you close the issue? |
no this was a temp solution, this needs to be fixed |
yeah, you're right. |
I found the issue in this line of code in runner/config.go: |
Just a comment here as I'm experiencing this on windows 10 also. Not sure what whitespace has to do with this issue but it's mentioned in a pull request dealing with whitespace. The problem seems to be that the full path to the exe is being encoded and escaped as a json string would be. It seems to be returning the same error that would be returned by a command prompt like this:
But the air command includes surrounding double quotes escaped with backslashes and backslashes escaping the other backslashes exactly like this:
Ah, I see now. That merged PR is mentioned because it is the one that introduced the bug, probably by these lines:
|
Yeah, that is the source of the issue in my win10 as well |
I'll revert the commit and release a new version. Then fix and fully test the broken pr. |
Air v1.61.1 with default config seems to be working fine. @cosmtrek Thank you for the quick response. I think this commit should correct several issues in the issues log. should I close this one? |
I have tried several suggestions in issues, (both open and closed) still couldn't get Air to properly run the binary. I've run with -d in case it helps.
This is the default config I get from air init.
as you can see here, binary works fine when I run it manually.
I'm not quite sure if it's powershell or Win11, but you can use normal "/" in commands and it works fine. (even in cmd)
(I'm running PowerShell 7.4.5 and Windows 11 Home 22H2 22621.4317)
The text was updated successfully, but these errors were encountered: