You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
After upgrading ESP8266/Arduino core to v3.1.1, the Arduino extension regenerated th c_cpp_properties.json file with a compilerPath attribute having value causing following C/C++ configuration error: Unable to resolve configuration with compilerPath: "@D:\Portable\Arduino\portable\packages\esp8266\hardware\esp8266\3.1.1\tools\warnings\default-g++"
On top of this line from C/C++ Configuration Warning output, the Code UI shows 5 instances of cpptools output windows, all having same content (see also snapshot below): [Error - 18:20:27] Connection to server got closed. Server will not be restarted.
Then, the intellisense stops working at all, no cross reference can be followed (Ctrl+left mouse click) to see details of function or variable declaration etc.
I have used vanilla Code portable installation v1.74.3 with only Arduino extension, which requires C/C++ extension v1.13.9, without ESP8266 or any other aditional board, and empty sketch configured for Arduino Uno (on Windows 11), and the bug did not appear any more. It meand, the bug has to do something with ESP8266 Arduino core.
ESP8266 Arduino core changed how it handles compiler warnings with esp8266/Arduino#8495 (released in probably 3.1.0), which resulted in vscode's compiler output parser to pick up the wrong path for the compiler. esp8266/Arduino#8829 fixes that, hopefully we get a release soon.
Until then, a temporary fix might be to rename each file ending in -g++ and -gcc to something else (e.g. extra-g++ -> extra-cpp and alike). Don't forget to change platform.txt as well.
Problem
After upgrading ESP8266/Arduino core to v3.1.1, the Arduino extension regenerated th

c_cpp_properties.json
file with acompilerPath
attribute having value causing following C/C++ configuration error:Unable to resolve configuration with compilerPath: "@D:\Portable\Arduino\portable\packages\esp8266\hardware\esp8266\3.1.1\tools\warnings\default-g++"
On top of this line from
C/C++ Configuration Warning
output, the Code UI shows 5 instances ofcpptools
output windows, all having same content (see also snapshot below):[Error - 18:20:27] Connection to server got closed. Server will not be restarted.
Then, the intellisense stops working at all, no cross reference can be followed (Ctrl+left mouse click) to see details of function or variable declaration etc.
Environment
Code
Version: 1.74.3
Commit: 97dec172d3256f8ca4bfb2143f3f76b503ca0534
Date: 2023-01-09T16:59:02.252Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: No
Code Extensions
Arduino: 0.4.12
C/C++ Extension Pack: 1.3.0
Steps to reproduce
Just run VS Code, open any sketch with Arduino code (*.ino), even empty one. Popup error start to come up in the lower right corner - see snapshot:

Code snippet
Every, does not matter, even this simple blinking LED example:
Code Dev Tools Console Log
see attached file please
vscode-app-1673804966418.log
The text was updated successfully, but these errors were encountered: