-
Notifications
You must be signed in to change notification settings - Fork 682
Linting results are not shown with tree-sitter + flow scope #1630
Comments
Perhaps this is related to facebookarchive/atom-ide-ui#144? Is nuclide only using the first scope? The scopes I'm getting on that file are:
|
I can reproduce this issue but adapting the eslint scope to also listen to flow files doesn't work. Update: I was wrong. After reinstalling packages, altering the settings, etc. I just figured out that it now just tooks about 10 seconds to show the errors ^^ |
It seems that in atom |
@IanVS Did you find a solution to make linting work? |
Yes, you can add |
I ended up disabling Nuclide altogether in favour of atom-ide-ui + ide-flowtype. It appears that linter-eslint is compatible with atom-ide-ui out of the box. |
Issue and Steps to Reproduce
ESLint errors are not shown in the diagnostics pane when tree-sitter is enabled and flow is used.
I'm using linter-eslint with default scopes (includes
source.js
, but notsource.flow
), andlinter
package disabled. I noticed that after tree-sitter was enabled by default (I'm using atom-beta), linting stopped working on most of my files. After experimenting, it seems that it's the combination of tree-sitter, flow, and nuclide. See screenshots below. I restarted atom after making changes, to verify all settings are applied correctly. I also noticed that if I add thesource.flow
scope tolinter-eslint
and restart, nuclide will report eslint errors. That scope is not required for linter errors to be displayed when using thelinter
package, so there's definitely something wonky going on in nuclide.Expected Behavior
Linting results from eslint should be shown in the diagnostics along with flow errors.
Actual Behavior
Only flow errors are shown.
With flow and tree sitter:
After removing flow pragma, closing the file, and re-opening:
With flow and tree sitter, but using
linter
instead ofnuclide
(after a restart of atom):Versions
Additional Details
apm ls --installed
):The text was updated successfully, but these errors were encountered: