-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Extension host terminated unexpectedly (VScode + PIO5) #2067
Comments
Does it crash if you disable ALL plugins and keep only PlatformIO + C/C++? |
Yep, just disabled all other extensions and at the first loading of VScode it crashed.
|
Just use this repo to make it crash: https://github.com/letscontrolit/ESPEasy |
This is the first report since August 2020. We will investigate soon. Thanks for the report. P.S: I highly recommend moving away from the INO extension and use native CPP. At a minimum, I don't see a reason to use PlatformIO + VSCode when files are organized as INO. C++ extension does not parse them correct - they are fake C++ files. |
I'm working very very hard on that transition, but it takes a while to finish. I do know (by now, found out the hard way) what other issues working with .ino cause, so believe me I am moving away from .ino as fast as I can. |
Yes, I understand. In any case, we will take a look at it. The interesting thing that we don't use any computations with Node.Js that can lead to 4Gb memory limit, we just call PlatormIO Core CLI as subprocess. |
I forgot. Could you disable C/C++ extension? Just leave ONLY PlatformIO. Maybe, this extension crashes with INO files? |
Ah sorry, thought it was disabled... Will check now. |
just uninstall it |
You can do the opposite. Remove PlatformIO extension and leave only C++. Restart VSCode. |
I have C/C++ now disabled and PIO is now really the only one active and it does seem a bit more stable (not yet got extension host to report it has crashed)
Could this be related or an indication something is wrong with my PIO config/installation? |
Try the latest PIO Core Dev ( So, as I expected, the issue is caused by the C++ extension. They need a ton of resources to parse your sources to build meta DB. You can try now the opposite, to remove the PlatformIO extension and use only C++, open the same project. Then, search in command "Rebuild C++ DB". It should crash. |
I am now running with PIO uninstalled and C/C++ active and so far I cannot get it to crash. |
Looking on how to rebuild that... not found it so far. |
Reset IntelliSense DB |
Doesn't seem to crash. |
This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions. |
Configuration
Operating system: Windows 10
PlatformIO Version (
platformio --version
): 5.0.1Also this version is having this issue (maybe even worse):
Description of problem
Not entirely sure if this is a problem with PIO itself or the latest VS code update.
The last few days, I experience a lot of strange issues in which the PIO actions no longer react and also navigation to function definitions does not seem to work anymore.
Not always when this happens, but quite often I do get this popup in the bottom right corner of the IDE:
For completeness, these are the installed extensions:
Not sure if it is related, but I find it hard to get adapted to the new way how PlatformIO 5 is trying to do things in VScode.
For example, as soon as you unfold an evironment in the project tasks, it tries to generate a temp .cpp file (as is normal when building an Arduino project)
However, if you click there, while it is building, the .cpp file is generated again and deleted, which causes the running build to fail.
This happens to me way more often than I would like as I also have to restart the IDE quite often the last few days (week?) which opens with all projects closed.
Could it be that this may cause stability issues with the extension host?
N.B. the logs suggest memory allocation issues, but that's probably some configured limit or some internal 32 bit limit as my system does have lots and lots of free memory right now. (currently only 13GB in use of the 96GB)
Logs
Last logs in the "console tab" of the inspect window (after pressing "Open Developer Tools":
localProcessExtensionHost.ts:252:
abstractExtensionService.ts:166
webviewElement.ts:152
N.B. I first opened it here, but that does not seem like the correct place.
Also at the VScode repo they referred me back to PlatformIO.
I really want to urge to have a look at this as it is getting worse and worse by the day.
The extension host crashes like 10+ times a day and now with the latest update of VScode it takes a few times to get PIO even running without crashing.
Loading the project tasks may already crash this, or simply loading the "home" tab or the first time I unfold an environment in my PIO config.
The text was updated successfully, but these errors were encountered: