-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
panic when building with go 1.22 and wails 2.7.1 on Windows #3242
Comments
It could be a mismatch between a 1.21 built CLI and a 1.22 built project. I'm not sure how... perhaps an issue with the Go module cache? Could you please try 1.22 again but make sure you clean out the Go caches:
|
I could but as I mentioned it was a fresh VM with fresh Go install and fresh wails install. |
I just reproduced it. Absolutely looks like an issue with Go itself. I'll try open an issue on the Go repo today |
Ohh (waves hand), I'm no hero... |
Been tinkering switching between go versions
just fyi, not sure if this informs anything you didnt already know. |
Do you use Goland or VSC? Perhaps if we create a new project using the |
@leaanthony both. We have multiple devs on our team, some use Goland on win, some VSCode. |
I was also able to reproduce it on macOS. Building The culprit seems to be It seems like the issue has already been reported at the go repo golang/go#64812 |
PR to bump x/tools is up #3244 |
@stffabi fix verified, thanks |
Released as part of v2.8 👍 |
Description
On a fresh Windows VM, I installed Go 1.22 , then attempted to build a project that used wails v2.7.1. I ran
wails build [-clean]
and got a panic message.To Reproduce
wails build [-clean]
from project root.result: panic
I then installed go 1.21.x, problem still occurred. I verified go version with
go version
I searched my HD and only found the 1 go binary (1.21)
I found it curious that wails doctor still indicated it was Go 1.22.
As a last resort I had to delete wails and reinstall before it worked again.
Expected behaviour
The wails build command should generate a binary as normal with go1.22. No panic.
Screenshots
Attempted Fixes
I installed go 1.21, ran build command again. Panic still occurred.
Verified go version with
go version
-> 1.21I ran wails doctor and it indicated go 1.22 ? This puzzled me.
Had to reinstall wails before build worked.
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: