Skip to content
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

Release v0.2.731 breaks Mason.nvim integration #823

Closed
zyriab opened this issue Jul 2, 2024 · 5 comments
Closed

Release v0.2.731 breaks Mason.nvim integration #823

zyriab opened this issue Jul 2, 2024 · 5 comments

Comments

@zyriab
Copy link

zyriab commented Jul 2, 2024

Hello!
First off, amazing job with Templ, this is amazing!

I am using Mason with Neovim to manage my LSPs, Linters, DAPs, etc but I can't get the Templ LSP to work properly with it.
I spent a few hours debugging my config and I found out that the problem is that the Mason registry uses the latest release, not the latest version of the code on the main branch.

If I ditch Mason and use go install pointing to the latest version, I get the v0.2.734 which works just fine: auto-imports, auto-completion, etc.

Since my entire LSP config turns around Mason, I can't (and won't) ditch it easily, so I wanted to ask: can you make a release with the current version of the main branch?

Thanks and take care :)

@joerdav
Copy link
Collaborator

joerdav commented Jul 3, 2024

I would expect the latest release v0.2.731 to work fine as-well. Can you please outline exactly what has broken in this version?

@joerdav
Copy link
Collaborator

joerdav commented Jul 3, 2024

Are you experiencing the bug fixed in 01d3361 ?

It is worth mentioning that you can tell mason not to install an lsp and use the version installed to your PATH, this is what I do since often I am working on a local version of templ.

@zyriab
Copy link
Author

zyriab commented Jul 3, 2024

Hey, thanks for taking the time to answer!
I'm not sure what breaks what, I just don't have all LSP capabilities with Mason's version.
The problem might be somewhere else, though. I just don't have much time to investigate.

I'll circumvent using Mason for the moment, sorry for the bother :)

Cheers

EDIT: it seems that it has nothing to do with the release itself, it looks like there's something going on with my config. I'll keep investigating but it seems the problem is on Mason's side or, at least, caused by it.
Closing the issue.

EDIT: after investigating, it's an issue with the new version of gopls 0.16.x, my issue is related to #801

@zyriab zyriab closed this as completed Jul 3, 2024
@a-h
Copy link
Owner

a-h commented Jul 4, 2024

Thanks @zyriab - should now be fixed in 26c1d79

@zyriab
Copy link
Author

zyriab commented Jul 4, 2024

Thanks @zyriab - should now be fixed in 26c1d79

You're the best! I appreciate all the hard work you're putting in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants