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

Zig-mode mistaking function calls as variables #107

Closed
Dappstr opened this issue Sep 16, 2024 · 4 comments
Closed

Zig-mode mistaking function calls as variables #107

Dappstr opened this issue Sep 16, 2024 · 4 comments

Comments

@Dappstr
Copy link

Dappstr commented Sep 16, 2024

After installing the latest version of Zig-mode for Emacs 29.4, it appears many things are being mistaken for variables, such as methods and non-method function calls. Not sure if this is expected.
Screenshot 2024-09-16 000555
Screenshot 2024-09-16 001203

@jcs090218
Copy link
Collaborator

Are you using tree-sitter-langs? 🤔

@Dappstr
Copy link
Author

Dappstr commented Sep 16, 2024

Are you using tree-sitter-langs? 🤔

@jcs090218 Yes I am. I'm on Windows and it was the easiest way to get tree-sitter up and working as I'm on Windows. I've tried downloading grammars and wasn't able to find the DLL's despite "tree-sitter generate" running without error and tree-sitter test
passing (at least for C grammars)

@jcs090218
Copy link
Collaborator

jcs090218 commented Sep 16, 2024

I've tried downloading grammars and wasn't able to find the DLL's despite "tree-sitter generate" running without error and tree-sitter test passing (at least for C grammars)

tree-sitter-langs provide prebuilt binaries; therefore, you don't need to build grammar yourself.

Could a recent commit of tree-sitter-langs cause it? See emacs-tree-sitter/tree-sitter-langs#688. 🤔

@Dappstr
Copy link
Author

Dappstr commented Sep 23, 2024

I've tried downloading grammars and wasn't able to find the DLL's despite "tree-sitter generate" running without error and tree-sitter test passing (at least for C grammars)

tree-sitter-langs provide prebuilt binaries; therefore, you don't need to build grammar yourself.

Could a recent commit of tree-sitter-langs cause it? See emacs-tree-sitter/tree-sitter-langs#688. 🤔

The solution was to disable tree-sitter. Zig-mode by its-self seems to work well. So I guess I'll have to just edit my init.el file to disable tree-sitter for zig files.
Thank you for your assistance.

@Dappstr Dappstr closed this as completed Sep 23, 2024
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