Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Does not work on macOS Sonoma (M1 Mac. Mini) #1751

Open
JohnHind opened this issue Jun 26, 2024 · 2 comments
Open

Does not work on macOS Sonoma (M1 Mac. Mini) #1751

JohnHind opened this issue Jun 26, 2024 · 2 comments

Comments

@JohnHind
Copy link

I have spent ages trying to get this working on my Mac, although I have it working well on my Windows PC.

Today, just to be sure I was not doing anything stupid, I completely nuked my Mac and reloaded the OS, the Arduino IDE, VS Code and the Arduino extension. It prompted me to use the bundled Arduino CLI and I gave it permission. I created and opened an empty new folder on the desktop and executed 'Arduino: Initialize' and specified the same name as the folder for the '.ino' file. I selected a board at random and clicked the 'verify' button with the following result:

[Starting] Verifying sketch 'test.ino'
Please see the build logs in output path: /Users/johnhind/Desktop/test/build
[Warning] Failed to generate IntelliSense configuration.
[Error] Verifying sketch 'test.ino': {"code":null}

The only thing in the specified 'test' directory is the 'test.ino' sketch - no 'build' directory, no logs.

When I restart VS Code, I get the following 'helpful' message:

[Starting] Update package index files...
dummy
[Error] Exit with code=null

[Starting] Analyzing sketch 'test.ino'
Please see the build logs in output path: /Users/johnhind/Desktop/test/build
[Warning] Failed to generate IntelliSense configuration.
[Error] Analyzing sketch 'test.ino': {"code":null}

Apart from not appreciating being addressed as 'dummy', this seems to indicate that none of the CLI calls are working.

Has anyone got this working on an Apple Silicon Mac? If so, what might I be doing wrong?

@JohnHind
Copy link
Author

Further to this, I discovered that after the re-install above, the Arduino IDE did not work either: verify gave errors about unsupported CPU. I had to manually install rosetta: 'sudo software update --install-rosetta'. After a reboot, the Arduino IDE compiles fine, but disappointingly, no change in VS Code! Except that a new board URL I entered in Arduino IDE now shows up in Board Manager in VS Code, so they seem to be sharing the same data storage.

@lsl233
Copy link

lsl233 commented Jul 3, 2024

i have the same issue.

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

No branches or pull requests

2 participants