Git Product home page Git Product logo

Comments (5)

williamboman avatar williamboman commented on May 17, 2024

Hello! This doesn't seem to be an installation issue? I'm not sure I'm following what the problem is, or how typescript-language-server relates to null-ls 🤔

from mason.nvim.

steliyan avatar steliyan commented on May 17, 2024

Sorry, I forgot to explain the whole scenario. The built-in tsc diagnostics are configured: https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/tsc.lua

Which depend on the TypeScript compiler (tsc), which is installed by mason. Funny, because I didn't experience similar issues with the old version of the plugin, maybe something changed?

from mason.nvim.

williamboman avatar williamboman commented on May 17, 2024

Ah. No tsc is not installed by Mason (in some cases it is bundled with another package, but it's never exposed "globally").

Which depend on the TypeScript compiler (tsc), which is installed by mason. Funny, because I didn't experience similar issues with the old version of the plugin, maybe something changed?

If I had to guess you probably had tsc installed globally before, and since then you've upgraded/changed your Node version and in doing so lost your old global npm installations?

from mason.nvim.

steliyan avatar steliyan commented on May 17, 2024

I guess it's possible, maybe something in the LSP setup changed as well. Not sure. :|

Now I am thinking of it, maybe it would be a good idea to be able to pass a path to the tsc compiler to null-ls itself. This would make sense for other tools managed by mason (for me, now it was either brew or npm -g).

What do you think about that, does it make sense?

from mason.nvim.

williamboman avatar williamboman commented on May 17, 2024

I'm pretty sure you can pass an absolute path to null-ls, if you provide the canonical name tsc it will simply look for it in PATH.

from mason.nvim.

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.