-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
wails dev: Unable to start application #2277
Comments
Thanks for using Wails and reporting this issue. Never seen that error before, this seems like the build Go binary is not valid. Found one open issue on Golang golang/go#54564 A couple of question to hopefully narrow that down.
|
No, it doesn't happen
When I launch the application, I get the error message "This app can't run on your PC" I recently upgraded to |
Thanks for getting back with this information. If it doesn't happen with a clean project, then it seems like some combination of options and your code in combination with Wails is somehow triggering this error. I've found the following issue on Golang golang/go#54564. But that seems a very limited case when this happens.
Could you try downgrading to an older version to see if that solves the issue? What version did you use before? |
I'm very interested to find the root cause of this issue. |
I used v2.2.0, installed it now, but it didn't solves the issue. Now I'm also very interested |
I found out why this error is happening, but I need help solving it If I add absolutely any thing from any package to main, then this error occurs:
utils:
The error occurs not only with functions, but also with anything else (variables, etc.) It is noteworthy that when I build a project without |
That's interesting. Did you use all needed build tags when building with 'go build'? Wails uses some special build tags. You could use 'wails build -v 2' to see a verbose log output with the used go build command. Did you try to update go? |
I just updated Go to the |
So that looks like a go compiler bug. |
Great you got it working. As it seems to be a compiler bug, I think we could close this issue. |
Description
To Reproduce
wails dev
Expected behaviour
Normal behavior
Attempted Fixes
I'm completely confused. The application is automatically deleted from the build folder, but I can't determine at what exact moment this deletion occurs
System Details
Additional context
Sorry to bother you, but I really can't figure out what's wrong
The text was updated successfully, but these errors were encountered: