Skip to content

No syntax checker for types #326

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

Closed
nsadeh opened this issue May 9, 2021 · 2 comments
Closed

No syntax checker for types #326

nsadeh opened this issue May 9, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@nsadeh
Copy link

nsadeh commented May 9, 2021

I am just starting out with Zig getting the tools set up. Here is something I ran into:

Problem Descriptions
The following code does not raise any errors in VSCode:

pub fn main() anyerror!void {
    const universe: i32 = "This doesn't work";
}

I get no syntax highlight, but of course this does not compile.

Setup

  • macOS 11.2.2
  • VSCode
  • Zig version: 0.8.0-dev.2133+ad33e3483
  • ZLS version fully configured from the README on this page both in ZLS server and VSCode
  • I get the following message load: [notice-main] zls initialized and [notice-main] Using zig lib path '/usr/local/bin/lib'

Notes
I am quite sure ZLS and the extension is running properly because before I turned it on, there was no syntax highlighting, and when I got zls server to run properly and pointed the extension to run there the syntax highlighting for keywords appeared, though not for errors.

@paulstelian97
Copy link

Can you check that ZLS actually works? I've hit #200 on 11.5.2.

@SuperAuguste SuperAuguste added the bug Something isn't working label Oct 26, 2022
@SuperAuguste
Copy link
Member

Specific case fixed by ast-check; seems like a local configuration issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants