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

No Autocomplete For Zig LSP #42

Closed
Umi-L opened this issue Jul 4, 2023 · 3 comments
Closed

No Autocomplete For Zig LSP #42

Umi-L opened this issue Jul 4, 2023 · 3 comments

Comments

@Umi-L
Copy link

Umi-L commented Jul 4, 2023

Hello! Recently while using this library I noticed that the zig LSP was unable to find any of the function signatures for autocompletion. The type for the Raylib include is unknown and there are no autocomplete. I have included screenshots of both of these things below.

while searching for solutions I found another person who uploaded a youtube video had the same issue.

here is that video with the timestamp included.

I am using the stock LSP plugin for vscode and the latest stable release of zig. Any help is appreciated; thanks!

image

image

@Not-Nik
Copy link
Owner

Not-Nik commented Jul 6, 2023

Seems to be related to zigtools/zls#1218, but we can't just remove the usingamespace, because the function definitions are generated by a script. I'll look into possible restructuring of how the library files are created to avoid this issue

@Not-Nik
Copy link
Owner

Not-Nik commented Jul 7, 2023

Should be fixed in af773c7

@Not-Nik
Copy link
Owner

Not-Nik commented Jul 10, 2023

From my own testing this works properly now

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

2 participants