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 }}
Repository navigation
Extension/LSP crashing after renaming and deleting the C family lang files #10
There is a bug (maybe two see below) with the extension that crashes after renaming a file.
1. The Crash:
To replicate:
Create an empty project with test.cpp
write some code in there
change the file name and you will get an error
Now even after restart or turning the extension on and off things work unexpectedly as discussed below.
2. Post Crash Issues for example auto importing header files not working.
If you already have even a single header file (in bracket) The auto import function works. but if there is no header you will face some issues.. here is how to replicate the issue
open a blank .cpp file with just in main() in it. (no header files)
change the file name
restart the server and you will see when you type std::cout the <iostream> is not added automatically
Now add a random header like <stdlib.h> try again and you see it finds the std but the auto import is unpredictable unless you manually import the iostream
But once you import iostream manually. You can remove and give it a shot and you will see as soon as you type std::cout it just imports them for you.
I'm assuming that SourceKit-LSP for you would be coming from Xcode. What version of Xcode is set as your active version? Also, are you on macOS Sonoma? We've had a couple reports that the version shipped with the GM of Xcode 15 might be having crashing issues, but I'm still investigating.
I do not have xcode installed but I do have "command line tools". The xcode-select version was 2397 for the above.
I just updated to Sonoma. I also updated my "command line tools" to v2399.
The Verdict
The Crash:
The renaming of the file still leads to the extension crash as above, requesting a restart. ❌
Post Crash Issues for example auto importing header files not working.
This is solved. So after LSP restart the auto import, completion etc all work well ✅
New Bug 🐞 (I think this went unnoticed as I did not restart Nova at the time of raising the issue)
So lets say I rename the file, extension crashes, then I press "restart the LSP". All great 👍
However When I quit Nova, and reopen, it acts as if Nova has crashed, and requests me to send the report to Panic etc ( Usual App crash procedure). But he app was working fine and I just quit it as per usual 🤔
As you can see below, there is nothing to even report. The logs are empty! 🤷
changed the title [-]Extension/LSP crashing after renaming the file[/-][+]Extension/LSP crashing after renaming and deleting the C family lang files[/+]on Sep 30, 2023
Activity
[-]Extension/LSP crashing after renaming[/-][+]Extension/LSP crashing after renaming the file[/+]logancollins commentedon Sep 27, 2023
I'm assuming that SourceKit-LSP for you would be coming from Xcode. What version of Xcode is set as your active version? Also, are you on macOS Sonoma? We've had a couple reports that the version shipped with the GM of Xcode 15 might be having crashing issues, but I'm still investigating.
EmranMR commentedon Sep 28, 2023
The spec for above tests were as it follows:
xcode-selectversion was2397for the above.I just updated to Sonoma. I also updated my "command line tools" to
v2399.The Verdict
New Bug 🐞 (I think this went unnoticed as I did not restart Nova at the time of raising the issue)
EmranMR commentedon Sep 30, 2023
Further Update:
.cpp)[-]Extension/LSP crashing after renaming the file[/-][+]Extension/LSP crashing after renaming and deleting the C family lang files[/+]