-
-
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
v2.8 not running on Mac M2 #3326
Comments
Thanks for opening this. Looks like Apple has changed xattr. Can confirm later today. |
Cannot reproduce here.
Did you install 3rd party user land tools which might include |
No idea ... I'm pretty new to Go. |
I came here looking for this issue - in my case, I had an |
@stukennedy I saw the exact same error text as you, which makes me think maybe we have the same problem. I use |
I'll see if there's a native way to do this. What is the equivalent of |
Please review the code in this PR: #3328. Please test in a sandbox! |
this is the guide for using xattr in my terminal usage: xattr [-slz] file [file ...]
xattr -p [-slz] attr_name file [file ...]
xattr -w [-sz] attr_name attr_value file [file ...]
xattr -d [-s] attr_name file [file ...]
xattr -c [-s] file [file ...]
The first form lists the names of all xattrs on the given file(s).
The second form (-p) prints the value of the xattr attr_name.
The third form (-w) sets the value of the xattr attr_name to attr_value.
The fourth form (-d) deletes the xattr attr_name.
The fifth form (-c) deletes (clears) all xattrs.
options:
-h: print this help
-s: act on symbolic links themselves rather than their targets
-l: print long format (attr_name: attr_value)
-z: compress or decompress (if compressed) attribute value in zip format |
@leaanthony thanks for the super fast turnaround. I will give this new implementation a shot after work today and report back. |
@leaanthony I tested the code from your PR, but it looks like it fails on my mac: System Info![]()
the test: # create an alias to run wails from your PR commit
alias wails_xattr="go run github.com/wailsapp/wails/v2/cmd/wails@880a4e0b409fa552d16e7d6b1cef6fd9e9e86c0a"
# create a new project
wails_xattr init -d wails_xattr_test -n wails_xattr_test -t vanilla-ts
# test the project build
cd wails_xattr_test
wails_xattr build -v 2 output from init:
output from build:
output from the mentioned build command (run manually):
|
Also, FWIW: I can't say with certainty that the changes from your PR caused the issue, but I can confirm that running the above test using the # create an alias to run wails from your PR commit
alias wails_xattr="go run github.com/wailsapp/wails/v2/cmd/wails@latest"
# create a new project
wails_xattr init -d wails_xattr_test -n wails_xattr_test -t vanilla-ts
# test the project build
cd wails_xattr_test
wails_xattr build -v 2 |
Thanks for testing. Having the correct xattr should always have worked. I'm just thinking that perhaps we could drop the |
The default Alternatively, maybe you could accept some kind of escape hatch for the user to provide a path for |
I also encountered this problem. mccolljr's comment reminds me to check about python stuff. In my case, after deactivate conda base environment ( |
In my case, now that I know the problem as the presence of a funky |
Try the PR now... uses fixed path calls. Appears to work locally. |
Thanks for the update - Will try again after work |
I can confirm that the absolute path fix from #3328 works on my machine even when I have a different |
Merged. Thanks for the quick feedback 🙏 |
Description
a clean install of Wails v2.8 and a new project init will not run on my Mac, I get an error
" ERROR option -r not recognized" when running
wails dev
orwails build
If I downgrade Wails I can run it fine.
To Reproduce
wails init -n my-app
cd my-app
wails dev
Expected behaviour
Should run without error
Screenshots
Attempted Fixes
No response
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: