-
Notifications
You must be signed in to change notification settings - Fork 141
Support new tree-sitter grammars #1076
Comments
There is a text field in It's currently near the bottom just above Show Rule Id and Global ESLint checkboxes. |
@skylize yep, I'm aware of it - however for the common case this should just work for users writing JS. Eventually Atom will move away from textmate grammars entirely, so if linter-eslint doesn't change, every user will have to manually edit settings before things work. I just wanted to put the issue on the radar [well] in advance so you can stay in front of it. |
Thanks for the heads-up, @zmb3. What do you expect to be the most commonly used scopes for the popular JS flavors? |
Thanks for pointing that out @zmb3. The only information I've seen on it is this article on Atom performance that really only mentions it in passing. Do you know of any good resources to learn about the changes? |
That’s all the info I have too. I only discovered this because the grammar change also broke go-plus. I’m sure the Atom team will better communicate what changes package authors need to make before this hits a release. |
Hmmm, do you have any other language packages installed @zmb3? The new |
I believe |
Reference: PR that added TreeSitter - atom/atom#16299 |
Tree Sitter parser appears to work as expected out-of-the-box. Pull #1115 adds the default JS scope for Tree Sitter For additional non-standard scopes such as Closing, as the "feature" part of the issue is effectively addressed by #1115, and the "question" part has been answered. @zmb3 let me know if you feel this issue needs any more attention. |
Is there a plan to release this fix soon? |
@Arcanemagus, It's really tiny, but maybe still worth a bump? @steverandy |
Since we currently have major version changes on |
I was thinking we could just push master as-is. But I was confused about the severity of the existing changes on master. I certainly agree that with Tree Sitter behind a flag, and with such an incredibly simple workaround, it makes no sense to branch off for a hotfix. |
The `javascript` scope is used by Atom’s experimental Tree-sitter parsing system. See also AtomLinter/linter-eslint#1076.
The `javascript` scope is used by Atom’s experimental Tree-sitter parsing system. See also AtomLinter/linter-eslint#1076.
Issue Type
Feature Request
Issue Description
Atom master recently landed support for a new parser: atom/atom#16299
A side effect of this change is that the grammar names have changed, so the default scopes to run eslint are no longer sufficient (note the
flow-javascript
scope in the debug output below).Bug Checklist
eslint
CLI gives the proper result, whilelinter-eslint
does notLinter Eslint: Debug
command from the Command Palette belowThe text was updated successfully, but these errors were encountered: