-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Debugging on Windows Does Not Work with MSVC Installed #54
Comments
A more detailed description of what is happening is in the latest comments on #37 |
The server endpoint that ZigBrains was trying to fetch the debugger metadata from was not functioning correctly, the downloading should be fixed now. |
I'll also add a fallback system to 16.0.0 so that it still works even if that server is down |
Updated to the latest 2024.1.* beta and now the update button works, but I can't open zig files at all. |
you can try installing the nightly version of ZigBrains by:
|
I already had 16.0.0-pre2-241, I updated LSP4IJ to 0.3.0-20240718-013045. The ZLS status icon is missing no matter what I do and ZLS appears to work occasionally. |
The ZLS status icon is no longer a thing, the language server connection is now managed by LSP4IJ in ZigBrains 16.0.0: |
Is MSVC debugging still not working in the latest 16.x releases? |
No, it's not. It sometimes freezes, which is fine, but it still can't find anything from external libraries and can sometimes take a while to update things like errors. |
Came to post about a similar issue, not sure if this is exactly what OP is seeing though... I've been using the plugin on Windows including debugging for about a week straight very consistently (great work!), but last night I started seeing hangs when launching the debugger, with the following in the Notifications timeline in version
Looking through the code for the error, it seems like the plugin is likely timing out trying to download the debugger metadata from IMO, it would be a nice feature to have an opt-out or override to only rely on the local filesystem / embedded resources. The download request currently takes about a minute by default to timeout before the current fallback code executes, which for some reason doesn't appear to be working either in my version. I'd be interested to figure out how to contribute this myself if it's welcome, but I've got a bit of a learning curve before I could be productive in the codebase I think. 😅 As a workaround, I've lowered the HTTP timeout thresholds for IntelliJ via
|
I'll add an override for the version check in the next update (and decrease the timeout too), sorry about the inconvenience. |
It should be fixed properly in 16.1.3. I've added the metadata download consent prompt, and I also made it cache the metadata, so it will only download it once per IDE launch. The fallback metadata parsing has also been fixed, i accidentally had a typo in the resource path. |
Incredible, thanks for the quick action on this! |
I recently installed ZigBrains and noticed that completion did not work for external libraries. When I looked around for answers, I saw the instructions for setting up the debugger, but I already had MSVC installed. There's no option to set a path to it and the download button does nothing and the "Download and update the debugger automatically" button just bricks the IDE when I open a Zig project. I am using IntelliJ IDEA Ultimate 2024.1.4 and ZigBrains 15.2.0-241.
The text was updated successfully, but these errors were encountered: