atom / atom

:atom: The hackable text editor
https://atom.io
MIT License
60.2k stars 17.39k forks source link

Tree-sitter grammar won't show in Grammar Selector #17972

Closed georgjz closed 6 years ago

georgjz commented 6 years ago

Prerequisites

Description

This is somewhat a weird bug. Grammars that use tree-sitter parsers are not shown in the Grammar Selector. I have tested this with the language-tree-test and language-html packages. The highlighting does work, but I can't select the grammar in the Grammar Selector.

Steps to Reproduce

  1. Open a file with a extension associated with the grammar; in my case, a .txtt file for language-tree-test
  2. The highlighting does work, but I can't find the grammar in the Grammar Selector: screenshot As the screenshot shows, Tree sitter test won't show in the Grammar Selector. Again, the grammar works, but it doesn't show up and I can't select it for other files.

Expected behavior: [What you expect to happen]

I want to select the grammar for a file with the Grammar Selector.

Actual behavior: [What actually happens]

The installed and working grammar won't show up in the Grammar Selector.

Reproduces how often: [What percentage of the time does it reproduce?]

100%

Versions

$ atom --version
Atom    : 1.30.0
Electron: 2.0.8
Chrome  : 61.0.3163.100
Node    : 8.9.3
$ apm --version
apm  2.1.1
npm  6.4.1
node 10.9.0 x64
atom 1.30.0
python 2.7.15
git 2.18.0
$ uname -a
Linux archie 4.18.5-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 24 12:48:58 UTC 2018 x86_64 GNU/Linux

Additional Information

Here's the output of apm list:

Built-in Atom Packages (92)
├── atom-dark-syntax@0.29.0
├── atom-dark-ui@0.53.2
├── atom-light-syntax@0.29.0
├── atom-light-ui@0.46.2
├── base16-tomorrow-dark-theme@1.5.0
├── base16-tomorrow-light-theme@1.5.0
├── one-dark-ui@1.12.4
├── one-light-ui@1.12.4
├── one-dark-syntax@1.8.4
├── one-light-syntax@1.8.4
├── solarized-dark-syntax@1.1.5
├── solarized-light-syntax@1.1.5
├── about@1.10.0
├── archive-view@0.65.1 (disabled)
├── autocomplete-atom-api@0.10.7
├── autocomplete-css@0.17.5
├── autocomplete-html@0.8.4
├── autocomplete-plus@2.40.7
├── autocomplete-snippets@1.12.0
├── autoflow@0.29.4
├── autosave@0.24.6
├── background-tips@0.28.0
├── bookmarks@0.45.1
├── bracket-matcher@0.89.2
├── command-palette@0.43.5
├── dalek@0.2.2
├── deprecation-cop@0.56.9
├── dev-live-reload@0.48.1
├── encoding-selector@0.23.9
├── exception-reporting@0.43.1
├── find-and-replace@0.215.12
├── fuzzy-finder@1.8.2
├── github@0.18.3
├── git-diff@1.3.9
├── go-to-line@0.33.0
├── grammar-selector@0.50.1
├── image-view@0.63.0
├── incompatible-packages@0.27.3
├── keybinding-resolver@0.38.2
├── line-ending-selector@0.7.7
├── link@0.31.4
├── markdown-preview@0.159.20
├── metrics@1.6.1
├── notifications@0.70.5
├── open-on-github@1.3.1
├── package-generator@1.3.0
├── settings-view@0.255.0
├── snippets@1.3.3
├── spell-check@0.74.0
├── status-bar@1.8.15
├── styleguide@0.49.11
├── symbols-view@0.118.2
├── tabs@0.109.2
├── timecop@0.36.2
├── tree-view@0.222.0
├── update-package-dependencies@0.13.1
├── welcome@0.36.6
├── whitespace@0.37.6
├── wrap-guide@0.40.3
├── language-c@0.60.0
├── language-clojure@0.22.7
├── language-coffee-script@0.49.3
├── language-csharp@1.0.4
├── language-css@0.42.11
├── language-gfm@0.90.5
├── language-git@0.19.1
├── language-go@0.46.0
├── language-html@0.51.1
├── language-hyperlink@0.16.3
├── language-java@0.30.0
├── language-javascript@0.129.1
├── language-json@0.19.2
├── language-less@0.34.2
├── language-make@0.22.3
├── language-mustache@0.14.5
├── language-objective-c@0.15.1
├── language-perl@0.38.1
├── language-php@0.44.0
├── language-property-list@0.9.1
├── language-python@0.51.2
├── language-ruby@0.72.2
├── language-ruby-on-rails@0.25.3
├── language-sass@0.62.0
├── language-shellscript@0.27.0
├── language-source@0.9.0
├── language-sql@0.25.10
├── language-text@0.7.4
├── language-todo@0.29.4
├── language-toml@0.18.2
├── language-typescript@0.4.0
├── language-xml@0.35.2
└── language-yaml@0.32.0

Dev Packages (6) /home/georg/.atom/dev/packages
├── language-65asm@9.0.0
├── language-6809@0.7.1
├── language-8080@0.1.0
├── language-armips@0.2.0
├── language-rgbasm@0.1.1
└── language-tree-test

Community Packages (55) /home/georg/.atom/packages
├── atom-beautify@0.33.1
├── atom-html-preview@0.2.5 (disabled)
├── atom-material-syntax@1.0.8
├── atom-material-syntax-dark@1.0.0
├── atom-material-ui@2.1.3
├── autocomplete-clang@0.11.5 (disabled)
├── build@0.70.0 (disabled)
├── build-cmake@0.12.0 (disabled)
├── build-make@0.13.0 (disabled)
├── build-scons@0.3.0
├── busy-signal@1.4.3
├── dbg@1.6.3 (disabled)
├── dbg-gdb@1.7.8 (disabled)
├── file-icons@2.1.24
├── git-plus@8.0.2
├── hex-view@0.2.1
├── language-65asm@9.0.0
├── language-6809@0.7.1
├── language-8080@0.1.0
├── language-arm@1.2.3
├── language-armasm@2.0.2
├── language-armips@0.2.0
├── language-assembly@0.7.2
├── language-bnf@1.1.0
├── language-cmake@1.1.0
├── language-ebnf@0.1.0
├── language-gitignore@0.3.0
├── language-glsl@2.0.4
├── language-haskell@1.17.8
├── language-m68k@1.2.0
├── language-mips@0.3.0
├── language-qtpro@0.6.0
├── language-restructuredtext@1.1.2
├── language-rgbasm@0.1.1
├── language-sphinx@0.1.9
├── language-spice@2.1.4
├── language-tree-test@0.1.0
├── language-vb@0.1.0-pre1
├── language-vhdl@0.7.2
├── language-x86-64-assembly@2.2.11
├── line-count@0.5.0
├── line-diff-count@0.1.3
├── markdown-writer@2.9.0
├── minimap@4.29.8
├── monokai@0.24.0
├── monokai-seti@0.9.0
├── multi-cursor-plus@1.2.0
├── output-panel@0.3.4
├── regex-railroad-diagram@0.19.4 (disabled)
├── seti-ui@1.11.0
├── sphinx-preview@0.1.1
├── split-diff@1.5.2 (disabled)
├── state-machine-cat-preview@3.0.0
├── tree-view-git-status@1.5.1
└── vim-mode-plus@1.34.0
georgjz commented 6 years ago

This is a duplicate of #17029, so I'll close it again.

lock[bot] commented 5 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!