tree-sitter: Error in `playground.html`

I believe this https://github.com/tree-sitter/tree-sitter/blob/6f42c78f2d0173f64d9346b30f0e8c46b5a9b7a6/cli/src/playground.html#L33

Should actually be

<option value="parser">THE_LANGUAGE_NAME</option> 

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 19 (2 by maintainers)

Most upvoted comments

if you happen to use Neovim, there’s nvim-treesitter’s playground

I was indeed using that before, but the syntax tree didn’t update as I edited the buffer, but looking at the issue you linked earlier from the haskell parser, looks like you should be able to get live updates even in the tree-sitter playground. I did try messing around with the updatetime parameter to see if it was just too slow, but that also didn’t result in anything.

I saw on the documentation website that I could get live updates on a playground so decided to try it out. But alas, that only resulted in a lot of errors.

As for emacs, uhh I think I’ve already spent enough time on this. I can manually update the tree pressing R in the buffer. I might just stick to that. Its plently functional, just not very nice looking 😉

As for creating a new issue, I’ll wait till the playground subcommand is stable (because looks like it isn’t given ahlinc’s previous comment) and see if it persists after that as well.

Whoa! Great work there, @sogaiu! Will keep that link in my personal notes. Thank you so much!

There are many opened issues that cover your case, I tested the Clojure grammar with tree-sitter CLI from the master branch and it works. It seems you need to update all pieces in your environment and use the latest emsdk version or a docker flag to compile grammar in the docker.