-
-
Notifications
You must be signed in to change notification settings - Fork 398
Unknown Command #775
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
Comments
It looks like you're using https://github.com/microsoft/vscode-arduino rather than arduino-cli directly. Can you confirm this? |
@Ashteroide sorry for the late reply, this fell off my radar. Please detail your setup and attempted workflow. |
Hi, thank you both for replying. I have the Arduino extension for VSCode but setup the My settings for the Arduboy Homemade are
|
I've gathered a bit more information about the problem, I ran a few suggested lines and got these results
I think it's more to do that the documentation I read doesn't fully explain everything you have to do from installing any VSCode extensions Edit: And here's some more info, it isn't showing the right thing when I try to
|
hey @Ashteroide Essentially you need to initially install some cores, and listing a board that way won't work. Once a core is installed, you can find a board by |
@ubidefeo I used your suggested command
I also found a weird bug when updating AVR Boards to 1.8.3 through Arduino IDE the folder would disappear and then VSCode would report a missing file, after some more trying I still get this (I did manage to get 1.8.3 downloaded through arduino-cli)
|
@Ashteroide Please update to Arduino IDE 1.8.13 because it introduces a fix that prevents index issues between the CLI and the IDE :) |
@ubidefeo Thanks for the update info on Arduino IDE I’ll download it when I get time today (Most likely in about 20mins), if you’re able can you run a mini setup guide to help me, so the Arduino plugin for VSCode isn’t needed when using Arduino CLI. After some thinking I think I understand the problem a bit more, I’ve been using the Arduino plugin to try and run Arduino CLI but I need to upload my code through the terminal, the issue I’m having is the uno not showing, I’ll dig as deep as I can but unfortunately I can’t test it this works until this afternoon because it’s at my house |
sorry, @Ashteroide
I don't think I understand this :) You got the rest correctly, the VS Code plugin is built for the Java IDE, and it wouldn't even work with the Alpha IDE we're working on right now. Follow the Sparkfun link I gave you above, it's a good tutorial to use the Arduino CLI with VS Code. A very detailed one ✌️ |
@ubidefeo I followed the Sparkfun link, but I've made some recent progress. I managed to get 1 sketch on my Uno, I'll list the commands I used, just a note I opened the whole folder with all my other projects their too, I think this may contribute something
and as suspected the builtin LED blinks in a 4 sec interval Edit: Yet again I have noticed my mistake, I forgot to run a compile before uploading new code, so now everything seems to be working ok at this point |
@ubidefeo I am fully able to upload to my Uno easily just by compiling and the uploading, but my Arduboy doesn't currently work because I don't know how to specify the bootloader, display or core within arduino-cli, Here is some feedback from arduino-cli when I try to upload to my Arduboy (Homemade by the way)
|
hey @Ashteroide if you use the Java IDE and enable full verbose in the compile/upload you'll see that additional parameters are added to the you'll have things like this is how you chain parameters :) |
@ubidefeo Thank you very much for your help that you provided, I have discovered my Homemade Arduboy is a bit broken but I had a different to confirm, yes I tried the |
@Ashteroide also downloading a nightly build of the IDE should work |
@ubidefeo What do you mean by Java IDE? I'll check the nightly builds of Arduino IDE too |
@Ashteroide "Java IDE" == "Arduino IDE". The Arduino IDE is written in Java, as opposed to the Arduino Pro IDE, which is based on the TypeScript Eclipse Theia IDE framework. |
This mostly turned out to be simply a matter of misusing Arduino CLI. However, there was one bug:
We had a dedicated issue report for this: #691, but it evolved over time from a cosmetic issue to a true functionality defect. However, that has since been fixed, so I'll close this as resolved. |
Bug Report
Current behavior
[Starting] Verify sketch - ArduPong.ino
[Warning] Output path is not specified. Unable to reuse previously compiled files. Verify could be slow. See README.
Error: unknown command "arduboy-homemade:avr:arduboy-homemade:based_on=promicro,boot=cathy3k,core=arduino-core,display=sh1106,flashselect=rx" for "arduino-cli"
Run 'arduino-cli --help' for usage.
[Error] Exit with code=1
I have an Arduboy which is a third part library and get the above error
Expected behavior
Verifies my sketch file
Environment
arduino-cli Version: 0.11.0 Commit: 0296f4d
MacOS Catalina 10.15.5
Additional context
I had an issue with Arduino IDE opening and making it the focus while I'm working in VSCode
The text was updated successfully, but these errors were encountered: