Skip to content
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

wailsbindings.exe: %1 is not a valid Win32 application. #2679

Closed
dingdinglz opened this issue May 20, 2023 · 4 comments · May be fixed by #3592
Closed

wailsbindings.exe: %1 is not a valid Win32 application. #2679

dingdinglz opened this issue May 20, 2023 · 4 comments · May be fixed by #3592

Comments

@dingdinglz
Copy link

dingdinglz commented May 20, 2023

Description

When I want to use wails dev , a error fork/exec C:\Users\dlz\AppData\Local\Temp\wailsbindings.exe: %1 is not a valid Win32 application.

To Reproduce

1.open CMD
2.wails dev
3.this error open

Expected behaviour

Can not continue to Generating bindings and next step.

Screenshots

No response

Attempted Fixes

I clean the cache , uninstall and install again. But not work.

System Details

# System

OS           | Windows 10 Home China
Version      | 2009 (Build: 25336)
ID           | 22H2
Go Version   | go1.19
Platform     | windows
Architecture | amd64

Wails

Version | v2.4.1

Additional context

No response

@dingdinglz dingdinglz added the Bug Something isn't working label May 20, 2023
@stffabi
Copy link
Collaborator

stffabi commented Jul 10, 2023

Thanks for opening this.

This seems like a duplicate of #2277 the OP there did upgrade go to 1.19.4 and the problem got resolved.

@leaanthony
Copy link
Member

I think we can add this to the troubleshooting guide.

@leaanthony leaanthony added Add to Documentation Workaround Available and removed Bug Something isn't working labels Jul 10, 2023
@xiaotushaoxia
Copy link

xiaotushaoxia commented Jul 5, 2024

I locate the problem. Before run wails dev, user should set GOOS and GOARCH right.
For me, I develop using Windows, but I often change GOOS to build different binary files. When I set GOOS=linux and run wails dev, I get this error.
image

Although we can avoid errors by setting the correct GOOS and GOARCH before running wails dev,but I think there's a better approach. I'll submit a PR.

@leaanthony @dingdinglz

@dingdinglz
Copy link
Author

I locate the problem. Before run wails dev, user should set GOOS and GOARCH right.我找到了问题所在。在运行 wails dev 之前,用户应该设置GOOS和GOARCH的权限。 For me, I develop using Windows, but I often change GOOS to build different binary files. When I set GOOS=linux and run wails dev, I get this error.对我来说,我使用 Windows 进行开发,但我经常更改 GOOS 来构建不同的二进制文件。当我设置 GOOS=linux 并运行 wails dev 时,我收到此错误。 image

Although we can avoid errors by setting the correct GOOS and GOARCH before running wails dev,but I think there's a better approach. I'll submit a PR.虽然我们可以通过在运行 wails dev 之前设置正确的 GOOS 和 GOARCH 来避免错误,但我认为有更好的方法。我会提交一个 PR。

@leaanthony @dingdinglz

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants