-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Linux] Extension host crashes when using 1.20.3 #49
Comments
Hi! The error in the log is completely harmless, so there is probably something else going wrong. What other symptoms are you seeing besides this error? Is there anything interesting in the logs for this extension (you can find them under "IAR Build" in the output panel)? |
Hi Hampus, I don't have any other logs as the IAR build extension doesn't even start, it doesn't appear in the output window. EDIT: After restarting several time the extension host, it will work at some point, but this is not very stable behavior. |
I see, thanks! The major change in 1.20.3 is that the extension queries all projects in the workspace for some intellisense information immediately when the extension starts. Unfortunately this seems to have quite a large performance impact in some cases, and is probably what is crashing the extension host. The next version of the extension will support loading embedded workbench workspaces (.eww files), which should mitigate the problem. Then, the extension will only load intellisense information for the projects listed in the .eww file, not for every single project in the VS Code workspace. We can also see if there is some way to reduce the load on VS Code. For now you can limit the number of projects opened by the extension by either using the "Projects to exclude" setting or VS Code's "Files: Exclude" setting. This is described in #41. Do you know roughly how many .ewp files are in your workspace? It would be good for us to have an idea of where the limit is. |
I have more than 230 .ewp files in my workspace. |
Include paths and preprocessor macros are configured on a per-file basis; when you open a file, only the project it belongs to is used to configure intellisense. The reason we query all projects for intellisense data is so that we are able to configure intellisense for files that do not belong to the active project. |
Ok thanks for clarifying ! |
I've tried to reproduce this, but even with ~1000 projects things work fine for me. In any case, we have now released the .eww file support I mentioned earlier, please let me know if that solves the problem for you! |
@HampusAdolfsson That solved the problem for me (I have opened a similar issue that is closed now - issue #48). |
Hi @HampusAdolfsson |
Hi !
When I use the iar extension on latest version, the Extension Host crashes when loading the extension.
I don't have the issue on 1.20.2 so far, and I'm running ubuntu 20.04.
Following is the log from the Extension Host output:
The text was updated successfully, but these errors were encountered: