Giter VIP home page Giter VIP logo

Comments (2)

noelweichbrodt avatar noelweichbrodt commented on May 24, 2024

Inexplicable update: after restarting (SPC q r) a couple of times to disable typescript layer entirely and then put it back in, I'm now seeing this in tsx files:

Syntax checkers for buffer Login.tsx in typescript-tsx-mode:

First checker to run:

  lsp (explicitly selected)
    - may enable: yes
    - may run:    t

Checkers that could run if selected:

  javascript-eslint  select
    - may enable:  yes
    - executable:  Found at /Users/noel/w/project/node_modules/.bin/eslint
    - config file: found

Flycheck Mode is enabled. Use M-m u M-m e d to enable disabled checkers.

--------------------

Flycheck version: 20240307.2106
Emacs version:    29.2
System:           aarch64-apple-darwin23.3.0
Window system:    ns

So of course, I select javascript-eslint:

Syntax checkers for buffer LoginForm.tsx in typescript-tsx-mode:

First checker to run:

  javascript-eslint (explicitly selected)
    - may enable:  yes
    - executable:  Found at /Users/noel/w/project/node_modules/.bin/eslint
    - config file: found

Checkers that could run if selected:

  lsp  select
    - may enable: yes
    - may run:    t

Flycheck Mode is enabled. Use M-m u M-m e d to enable disabled checkers.

--------------------

Flycheck version: 20240307.2106
Emacs version:    29.2
System:           aarch64-apple-darwin23.3.0
Window system:    ns

However, any flycheck action still shows the same error as above:
LSP :: Error from the Language Server: Request textDocument/codeAction failed with message: No ESLint configuration found in /Users/noel/w/project/app/login/components. (Internal Error)

And of course, if I remove my explicit setq exec-path for the project, flycheck is not longer able to find the eslint executable or project config:

Syntax checkers for buffer LoginForm.tsx in typescript-tsx-mode:

First checker to run:

  lsp (explicitly selected)
    - may enable: yes
    - may run:    t

Checkers that are compatible with this mode, but will not run until properly configured:

  javascript-eslint (automatically disabled) reset
    - may enable:  no
    - executable:  Not found
    - config file: missing or incorrect

Flycheck Mode is enabled. Use M-m u M-m e d to enable disabled checkers.

--------------------

Flycheck version: 20240307.2106
Emacs version:    29.2
System:           aarch64-apple-darwin23.3.0
Window system:    ns

from spacemacs.

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.