-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
lsp error when ı reload or open templ file #800
Comments
I'm facing the same issue. Any idea how to fix it?
|
I'm affected too.
|
Update: in a machine that was working fine, it started to happen once gopls was updated to 0.16.0 |
Yeap. Rolled back to gopls@v0.15.3 and that fixed the problem. |
This has been fixed in mainline, so should be resolved in the next release. Alternatively you can install mainline now |
@a-h @joerdav sorry for pinging but I think it might be worth it to roll a new release just to fix this because changing to the mainline release "@main" triggers this issue: #801. Or maybe create a pinned issue to advise users to prevent new issues from being created for the same problem, e.g:
For others, I think the best way currently is to downgrade
|
Thank you @advdv, just chiming in to say I'm getting the exact same issue and I was wondering how to fix it :-) |
I am getting an error in VS Code that says 'connection to server got closed' when I reload the page or open new templ file. I logged the error and found this error message: 'unable to complete because the sourcemap for the URI doesn't exist in the cache.'
I will attach the log file. Also, in the command line, I am able to execute commands like "templ lsp --help", and "which go gopls templ" command give me correct results.
templ.log
The text was updated successfully, but these errors were encountered: