-
Notifications
You must be signed in to change notification settings - Fork 236
c_cpp_preferences.json does not generate #1517
Comments
This issue has been automatically marked as stale because it has been inactive for 30 days. To reactivate the issue, simply post a comment with the requested information to help us diagnose this issue. If this issue remains inactive for another 7 days, it will be automatically closed. |
well there is not really any more information i can give, especially as i haven't used vscode-arduino since, since i am unable to use it. |
I have the same issue with arduino-cli on win11: My setup:VSCode:
Extensions:
Arduino-cli:
My config:relevant options from settings.json: "arduino.path": "C:\\myPath\\arduino-cli_0.26.0_Windows_64bit",
"arduino.useArduinoCli": true,
"arduino.logLevel": "verbose" I created new folder where I ran the VSCode, Inside, I create directory and file {
"board": "arduino:avr:uno",
"sketch": "blink/blink.ino",
"port": "COM5"
} No config is generated and when I run upload/verify I get
|
I think we should have enough information to try and reproduce this and investigate. Marking this is investigating. |
Same issue here, it works fine with arduino ide, just not with the cli. When I try to verify, upload, or do anything, this is what it outputs:
The output folder is not created, and when I create it manually it is empty arduino.json: {
"port": "COM3",
"configuration": "cpu=atmega328",
"board": "arduino:avr:nano",
"programmer": "avrisp",
"sketch": "src/test.ino",
"output": "build"
} vs code:
extension version: |
Very frustrating issue... Because the Arduino IDE is broken with 2.x I manually adjusted the path and switched to CLI - but the IntelliSense configuration fails. Really seems like this breaks Arduino within VSCode for the time being... |
me too,i use arduino-cli,all version is lastest |
I also have this issue.
Simple sketches compile for the Uno compile fine but no Intellisense config is generated. No c_cpp_propertes file either
I think it may be related to a capitalization issue. below, 'minimal sketch' refers to this
If I make a folder
This is expected file ino file has to match the folder (case sensitive). However If i now rename the file to
Now the sketch compiles but intellisense still fails. Not too the log file does not reflect the change from If I delete everything and now instead make a new minimal sketch file |
Hi, I have the issue and I am currently using Linux. Here's my machine information
I think it is just the fact that the issue stems from the way this vscode extension parses the file information or perhaps Arduino IDE in general. For example, if I open an example file in Linux, the file will be stored in
If this is your first time opening the example, if you try to verify the code, it will work out fine, but if you close the example, and then re-open the same example using the command pallete, this will generate a 2nd file with the following naming: <example_file>_x where x is the number of times you have open the example Example: If I have open an example called Here's a video demonstrating the issue above: This is quite frustating, since it has been a known bug for quite a long time. Hopefully, this will help anyone else reproduce the bug. I'd assume this should be similar to Windows since @avsteele mentioned about his |
I am new to Arduino, and was annoyed with the Arduino IDE's poor ui customization, so i wanted to try this extension instead. I have read through countless different issues, issue comments, faqs, stackoverflow pages etc. for the last 3h and i am pretty dull by now so i'll probably forget some important details - sorry in advance.
The initial issue was that vsc gives me a wiggly line and a problem entry for each native Arduino function/variable.
I have found issues about that here, but they were closed with #1141, so i looked in the .vscode folder and c_cpp_preferences.json was not there.
I have tried the entry in the command palette and the keybind multiple times, but it doesn't do anything. I have tried to manually add that file but didn't get it to work, so i need the file that i should get from the extension.
The c_cpp_preferences.json file i am currently using makes the initial problem go away, but i still get an error about
While i am pretty confident i have identified the problem, as the file not getting generated, i do not have any clue about the cause of this problem.
Side note: I also came across https://github.com/microsoft/vscode-arduino/wiki/FAQ which just links to two removed sites and hasn't been changed since 2017 so i ignored it, even though it seemed to relate to my prolem at first... should probably be removed?
I don't really know what information could otherwise be helpful.
The text was updated successfully, but these errors were encountered: