Giter Site home page Giter Site logo

Comments (6)

utkarshgupta137 avatar utkarshgupta137 commented on May 30, 2024 1

No, I resolved the issue for now by adding the following to my config:

{ "williamboman/mason.nvim", opts = { PATH = "append" } },

This uses my system installed shellcheck. I did this because the shellcheck version from brew works. I'm week 1 on apple silicon so didn't know about Rosetta. I could try if that works too but it will be a workaround to the real issue I mentioned above.

You'll probably need rosetta for a few tools, follow this: https://osxdaily.com/2020/12/04/how-install-rosetta-2-apple-silicon-mac/

from astrocommunity.

mehalter avatar mehalter commented on May 30, 2024

This is unrelated to AstroCommunity and should be brought up in either Mason.nvim or mason-null-ls.nvim. Whichever is causing this.

from astrocommunity.

20k-ultra avatar 20k-ultra commented on May 30, 2024

yup, it seems like shellcheck doesn't ship a binary for apple silicon koalaman/shellcheck#2714.

Once that is resolved, https://github.com/williamboman/mason.nvim/blob/main/lua/mason-registry/index/shellcheck/init.lua#L21-L26 needs to be updated to pull the right arch.

from astrocommunity.

utkarshgupta137 avatar utkarshgupta137 commented on May 30, 2024

@20k-ultra Do you have rosetta setup? I'm able to open a shell script without any issues on M1 Pro.

from astrocommunity.

20k-ultra avatar 20k-ultra commented on May 30, 2024

No, I resolved the issue for now by adding the following to my config:

{ "williamboman/mason.nvim", opts = { PATH = "append" } },

This uses my system installed shellcheck. I did this because the shellcheck version from brew works. I'm week 1 on apple silicon so didn't know about Rosetta. I could try if that works too but it will be a workaround to the real issue I mentioned above.

from astrocommunity.

luxus avatar luxus commented on May 30, 2024

i can compile most of the binaries with darwin-nix, i changed the path to append of the mason binaries so it prefers the system binaries

from astrocommunity.

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.