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

Make a package for flycheck to automatically use local installations #50

Open
Fuco1 opened this issue Apr 12, 2018 · 0 comments
Open

Make a package for flycheck to automatically use local installations #50

Fuco1 opened this issue Apr 12, 2018 · 0 comments

Comments

@Fuco1
Copy link
Owner

Fuco1 commented Apr 12, 2018

I have to repeat the same code all over again and again in my personal configuration to update paths to use local installations.

(example)

;; inside setup hook
(-when-let (root (locate-dominating-file default-directory "node_modules"))
        (setq-local flycheck-javascript-eslint-executable (concat root "/node_modules/.bin/eslint"))
        (setq-local flycheck-javascript-flow-executable (concat root "/node_modules/.bin/flow"))
        (setq-local flycheck-javascript-flow-coverage-executable (concat root "/node_modules/.bin/flow")))
  • php: composer
  • javascript: npm/yarn
  • ruby/puppet: bundler
  • python: virtualenv
  • haskell: stack
  • emacs: cask

We should detect that this is going on and adjust the executables accordingly automatically. Virtually never would the user want to run any globally available executable if it is locally bundled with the project.

While something like this already seems to exist for cask other tools are missing.

Is this something we would want to push to the flycheck org as separate packages or even to flycheck itself? I think there's a great value in having these things just working without the users having to mess around with exec paths and stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

1 participant