Newbie here. I want to compile sketches in VS Code and am having problems, I've installed the extension which shows as activated. However, when I edit a sketch and try to run any commands I get "command not found" errors such as
Hi thanks so much for this information. Creating a default workspace for the extension was all that was needed to get the commands to finish downloading and to install properly.
The only issues I am seeing now on my Win32 platform running Vis Code Studio is some intellisene problems and deciding whether or not to use the default compiler or try to install a gcc variant.
"intellisene problems" - can you be more detailed?
"try to install a gcc variant" - Исходный текст
the plugin itself essentially pumps gcc, this is done at least for automation and convenience. But I would like to know what reason prompted you to use your own gcc?
I've included two screenshots. One is of the intellisense problems. But this is minor and related to syntax suggestions.
The other screenshot is of the compiler that the ZUno extension is using. This is a MSFT Win32 compiler and it DOES seem to work. The Adrduino IDE uses a GCC variant (I think) and it made sense to me that VS Code would also use a GCC variant but I have been unable to locate a good GCC compiler to use. I am not sure that I need GCC at this point...
"One is of the intellisense problems. But this is minor and related to syntax suggestions." - As for me, this is just one of the significant advantages of vs code.
"This is a MSFT Win32 compiler and it DOES seem to work" - Actually gcc is used))
Why is the settings so awkward? - a not very good solution seems to have been chosen with the addition of settings for zuno to intellisense - now an additional setting named "Zuno" is added - I think this is a better solution. Update - now those problems shouldn't be.
So you were correct about the compiler. I must select Zuno as the configuration in Studio (not Win32) and it uses gcc. My sketch compiles correctly from Studio. But it will not upload. Here is where the error is:
Openning port ..............................
Openning port .............................. OK
Syncing with Z-Uno ..............................
Syncing with Z-Uno ..............................Traceback (most recent call last):
File "\\vmware-host\Shared Folders\Code\ZUno\G2\ZMEToolchain\zme_make.py", line 828, in uploadFunc
File "zme_sapi.py", line 550, in readBoardInfo
IndexError: list index out of range
OK
[Error] Exit with code: 3
Have you seen this error before? It works from Arduino IDE but not from Studio.
Note the file path \\vmware-host\Shared Folders..., that is not from my system!
There is no board selection in the Visual Code extension for Z-Uno. I will say that I have an older Z-Uno board (about 3 years old) I wonder if this has anything to do with the upload .BIN failing from the Python script... This all works in the Arduino IDE though...
Now it's all clear.
Plugin vs code - works with new zuno - that's why such an error pops up.
Unfortunately, this is not indicated in the plugin description - it will be changed.