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

Failed to generate IntelliSense configuration with esp32 2.0.0 #1373

Open
atyshka opened this issue Oct 31, 2021 · 16 comments
Open

Failed to generate IntelliSense configuration with esp32 2.0.0 #1373

atyshka opened this issue Oct 31, 2021 · 16 comments

Comments

@atyshka
Copy link

atyshka commented Oct 31, 2021

When upgrading my esp32 package to version 2.0.0, I get the message "Failed to generate IntelliSense configuration". Downgrading to 1.0.6 fixes the issue, but I want to take advantage of the new hardware serial features. Any ideas what could be causing this? Is there a way to get a more detailed description of the failure?

@WarpedPixel
Copy link

I see exactly the same issue. Create a new project with Arduino: Initialize, select any esp32 platform (from the 2.0.0 board install), and it will compile projects then print [Warning] Failed to generate IntelliSense configuration.. It also does not generate an Arduino Intellisense profile. Select a different board (like an Arduino Duo) and it will not print the error.

@rev1204
Copy link

rev1204 commented Nov 19, 2021

Same here, I'm using ESP32 core version 2.0.1. Any fix/workaround to this problem?

@rev1204
Copy link

rev1204 commented Nov 19, 2021

Ok, so weird thing I notice is sometime C/C++ show warning:

IntelliSenseMode was changed from "windows-gcc-x64" to "windows-gcc-x86"

So this problem seems to happen when Visual Studio (not the code, the IDE one) with MSVC installed. Apparently something cause confusion to the C/C++ extension. This is just a workaround, but deleting (or rename) cl.exe inside

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64

solve the problem. Still, I'm waiting a proper fix to this problem.

@ankit-thealchemist
Copy link

Me also having the same issue...

@mahyar1284
Copy link

same issue!!! :(

@enwi
Copy link

enwi commented Jan 24, 2022

I don't know if this is the case for you, but I had this issue whenever the .ino file was not named exactly after the folder it was in.
So for example if your .ino file is called test.ino make sure it is inside a folder called test.

@pruge
Copy link

pruge commented Jan 30, 2022

same issue!!!

@martinlong1978
Copy link

I was having this issue. I checked the configuration being used in the bottom right of the status bar, and it had been set back to Win32. I set this back to Arduino and intellisense is now working fine. I still get the message sometimes, but it seems to have resolved all of the squigglies, and intellisense is working properly now.

@OrionLi545
Copy link

I am having the same issue, and "arduino“ config of intellisense does not even appear......Only "Mac" was available (I'm using MacOS Big Sur)

@ghost
Copy link

ghost commented Feb 16, 2022

Same problem here on both MacOS and Windows 10. Esp8266 boards work fine, ESP32 boards fail to generate intellisense configuration.

@Llaves
Copy link

Llaves commented Mar 8, 2022

I have the same issue, but my target board is a Wemos D1 mini, which is an esp8266, not esp32. This occurs only for some projects, not others. I haven't been able to track down the differences that allow one project to generate intellisense, but not the other. I tried replacing the c_cpp_properties.json of the broken project with the file from the working project - made no difference.

@SAThomsen
Copy link

SAThomsen commented Mar 10, 2022

Also experiencing this issue with my ESP32. Just upgraded, before it worked just fine. Good news is I now no longer get the random panics on my interrupts...

@siktec-lab
Copy link

I don't know if this is the case for you, but I had this issue whenever the .ino file was not named exactly after the folder it was in. So for example if your .ino file is called test.ino make sure it is inside a folder called test.

That's actually the solution - For some reason the Arduino get into trouble when the main.ino is not called sketch.ino or has the same name as its directory.

@Llaves
Copy link

Llaves commented Mar 29, 2022

Changing the sketch name to match capitalization was the key for me, along with restarting VSCode. Renaming from within VSCode was not enough to fix it.

@Medeirox
Copy link

Medeirox commented Jun 27, 2022

using the same project_filename.ino name and the folder name has solved the problem for me too. I did just like @Llaves did... renamed the directory and file, and then restarted VSCode.

@itopaloglu83
Copy link

MacOS users should also make sure that both VSCode and Arduino app have the necessary disk rights to access where the files are located. In my case, I was experiencing this issue because VSCode was not allowed to have access to my downloads folder.

You find the disk access settings under System Preferences > Security & Privacy > Privacy Tab > Files and Folders.

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