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

container 'std.zig.ast.Node' has no member called 'Use' #242

Closed
thomastay opened this issue Mar 8, 2021 · 5 comments · Fixed by #238
Closed

container 'std.zig.ast.Node' has no member called 'Use' #242

thomastay opened this issue Mar 8, 2021 · 5 comments · Fixed by #238

Comments

@thomastay
Copy link

thomastay commented Mar 8, 2021

When running zig build -Drelease-safe, I get this error. I think it might be related to #238?

Here is my trace:

~\A\R\zls>zig build -Drelease-safe
.\src\analysis.zig:2039:28: error: container 'std.zig.ast.Node' has no member called 'Use'
    uses: []const *ast.Node.Use,
                           ^
.\src\analysis.zig:1986:5: note: while checking this field
    scopes: []Scope,
    ^
.\src\document_store.zig:26:5: note: while checking this field
    document_scope: analysis.DocumentScope,
    ^
C:\Users\**\AppData\Roaming\ziglang\lib\zig\std\hash_map.zig:293:13: note: while checking this field
            value: V,
            ^
C:\Users\**\AppData\Roaming\ziglang\lib\zig\std\hash_map.zig:357:40: note: referenced here
            pub fn next(it: *Iterator) ?*Entry {
                                       ^
.\src\document_store.zig:614:26: note: referenced here
    while (entry_iterator.next()) |entry| {
                         ^
.\src\analysis.zig:1540:34: error: container 'std.zig.ast.FnProto' has no member called 'ParamDecl'
    param_decl: *ast.Node.FnProto.ParamDecl,
                                 ^
~\A\R\zls[1]>zig version
0.8.0-dev.1427+0447a2c04

OS: Windows 10

@Luukdegram
Copy link
Contributor

You'll need a master version of Zig that is atleast 1 commit older than ziglang/zig#7920 to compile the current zls master. I hope to finish #238 soon that will make it work with latest Zig again.

@IvanTurgenev
Copy link

IvanTurgenev commented Mar 9, 2021

You'll need a master version of Zig that is atleast 1 commit older than ziglang/zig#7920 to compile the current zls master. I hope to finish #238 soon that will make it work with latest Zig again.

git checkout 9ada7638a5dbb535ba37223a14478691dd60cf6a on zig source dir doesnt work

@snamber
Copy link

snamber commented Mar 9, 2021

@IvanTurgenev At hash d9e46dceeca3f66b87e6b2e36415417495d2d2a0 the zig build works, and that version of zig can then compile zls as well

@IvanTurgenev
Copy link

@IvanTurgenev At hash d9e46dceeca3f66b87e6b2e36415417495d2d2a0 the zig build works, and that version of zig can then compile zls as well

If using vscode change vscode semantic setting from configured by theme to true

@thomastay
Copy link
Author

Thanks @Luukdegram for the fix!

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

Successfully merging a pull request may close this issue.

4 participants