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

Apple Silicon support? #12

Open
gregbenz opened this issue Apr 21, 2024 · 12 comments
Open

Apple Silicon support? #12

gregbenz opened this issue Apr 21, 2024 · 12 comments

Comments

@gregbenz
Copy link

Updating to latest Node seems to break the tool.

The notes say Electron is not supported on Apple Silicon (was released Nov 2020): https://github.com/adobe-uxp/devtools-cli/blob/7b9fd6456148aecc63c002b73892df705df94267/packages/uxp-devtools-cli/README.md

Error running "uxp plugin package"
...electron-napi.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))

Are there plans to update the CLI Tool?
Which versions of Node are officially supported (without having to run Terminal under Rosetta2)?

@jardicc
Copy link
Collaborator

jardicc commented Apr 21, 2024

@gregbenz offtopic: were you able to run autonated UXP plugin tests via this CLI as documented in this repo?

@gregbenz
Copy link
Author

@jardicc I never tried, as I built my own test setup earlier. You run into errors?

@jardicc
Copy link
Collaborator

jardicc commented Apr 21, 2024

I can't make it work at all. It showed as connected but does not run any tests. It should use WebdriverIO

What approach did you use for your tests?

@gregbenz
Copy link
Author

It's all just custom code I wrote to quickly make sure that neither I nor some PS update broke things.

@ErinFinnegan
Copy link

Are there plans to update the CLI Tool?

We did talk about it during office hours, but unfortunately no, not at the moment.

@gregbenz
Copy link
Author

@ErinFinnegan One downside of running Terminal under Rosetta is that it breaks yarn. Any use of yarn (even just a version check) causes Node to crash and throws "Segmentation fault: 11" in the command line.

Could you clarify which versions of Node are supported / recommended for use with the CLI tool?

@ledzepFan
Copy link

ledzepFan commented Apr 25, 2024

@gregbenz Node 12.19.1 is the recommended version to use.

@gregbenz
Copy link
Author

@gregbenz Node 12.9.1 is the recommended version to use.

10 versions ago?

@jardicc
Copy link
Collaborator

jardicc commented Apr 25, 2024

So that should be like 5-6 years back.

@ErinFinnegan
Copy link

12.9.1 was an LTS version 2 years ago when the tool was last updated. That is the correct version.

I'm seeing if we can't at least update it to work with a more current node version.

@jardicc
Copy link
Collaborator

jardicc commented Apr 25, 2024

node-gyp is the issue I believe... binaries are usually a big pain and authors of good libraries/tools have some automation on their side and provide binaries by default... but with this CLI I am stuck... not sure if because of Adobe or dependencies here... but I had to install specific version of Visual Studio to be able compile C++ or C# not sure what it was. And it didn't work for me.

@ErinFinnegan you are right... I thought the typical release speed is 2 versions per year but I am wrong. https://nodejs.org/en/about/previous-releases

@mikemahony
Copy link

Hi! Any update on this?

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

No branches or pull requests

5 participants