-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
IntelliSense stuck at 'loading...' .A crash of the IntelliSense process was detected. #9526
Comments
Thanks for reporting this. I think we'll be able to investigate it tomorrow. |
@li0o I'm unable to locate "STM32_Arduino" -- how do I get that project? |
@sean-mcmanus |
The root bug appears to be that the headers are not getting associated with the main.cpp. Can you try running the C/C++: Reset IntelliSense Database command and wait for the database icon to go away (finish parsing)? You want to make sure "--header_only_fallback" doesn't appear in the logging when you do a go to def on a header (ideally our extension should check for this and remap the header to the source file). |
@sean-mcmanus |
I mean to run "C/C++: Reset IntelliSense Database" from the VS Code View->Command Palette menu item. Also, when you run "C/C++: Log Diagnostics" you want to see: Translation Unit Mappings: Your previous logging showed HardwareSerial.h having a different mapping separate from main.cpp. The incorrect mapping could be triggering the crash. v.1.1.3 is over a year old and not recommended, although if necessary, you could use that as a workaround. |
Okay. The "Reset IntelliSense Database" did not solve my problem. I've created various STM32+Arduino projects and still get "Translation Unit Mappings: [main.cpp]". but ESP32+Arduino has no problem. Thank you for your reply. |
Bug type: Language Service
Describe the bug
Steps to reproduce
Code sample and logs
Code sample
#include <Arduino.h>
#include <HardwareSerial.h>
HardwareSerial URT1(USART1);
void setup() {}
void loop() {}
Configurations in
c_cpp_properties.json
c_cpp_properties.zip
Logs from running
C/C++: Log Diagnostics
from the VS Code command paletteC++ Log Diagnostics.log
Logs from [the language server logging]
C++ Log.log
Screenshots
The text was updated successfully, but these errors were encountered: