Giter VIP home page Giter VIP logo

Comments (8)

ObserverOfTime avatar ObserverOfTime commented on June 25, 2024 1

Actually, I think this is happening because tree-sitter does not accept multiple arguments in CC. You can add a zig-cc script to your PATH that calls zig cc with any arguments passed to it and use that instead.

from nvim-treesitter.

clason avatar clason commented on June 25, 2024

I'm sorry, that's not nearly enough to go on. Please provide a minimal config and exact steps we can use to reproduce this.

from nvim-treesitter.

WillEhrendreich avatar WillEhrendreich commented on June 25, 2024

tree sitter build assumes something about how zig works, or whatever. it's giving it an arg of -02, which it doesn't understand

zig needs to be called like "zig cc [.. etc]"

from nvim-treesitter.

clason avatar clason commented on June 25, 2024

Please give more details to see if this is a bug to be fixed or a configuration (or expectation) error on your part.

from nvim-treesitter.

clason avatar clason commented on June 25, 2024

Wait, is this using the main branch? Why is LazyVim using that?

from nvim-treesitter.

clason avatar clason commented on June 25, 2024

To be clear:

i expect it to work like it did before, where it would use the compiler to compile.

is flat-out wrong. There are massive breaking changes on that branch, and there has been no testing on Windows. LazyVim should never have added that, and I've asked folke to remove it.

from nvim-treesitter.

ObserverOfTime avatar ObserverOfTime commented on June 25, 2024

Set CC to a normal C compiler.

from nvim-treesitter.

WillEhrendreich avatar WillEhrendreich commented on June 25, 2024

Actually, I think this is happening because tree-sitter does not accept multiple arguments in CC. You can add a zig-cc script to your PATH that calls zig cc with any arguments passed to it and use that instead.

This is the simplest and best option. lol. I mean, for me, I did it as part of my powershell profile, just a function like this:

function zig
{
  zig cc $args
}

then in my env vars I have zig as $Env:CC

from nvim-treesitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.