windwp / nvim-ts-autotag

Use treesitter to auto close and auto rename html tag
MIT License
1.69k stars 90 forks source link

Tests are not passing #22

Closed dblanken closed 3 years ago

dblanken commented 3 years ago

I ran into an issue with eruby filetypes and thought I'd try to contribute, although I am having issues getting the existing tests to fully pass. I have cloned nvim-treesitter, playground, and plenary and the tests run, but some are failing. Could there be something else I'm missing or should they truly not all pass currently?

I am running 'make' at the nvim-ts-autotag root. (plugins are cloned in ../ like referenced in the minimal.vim)

I'm currently getting closetag_spec at 10 successes, 8 failures, and rename_spec at 3 successes, 10 failures.

Just wanted to get a baseline on what should be expected in the tests before starting. Thanks for your help and for your work on this plugin and others I use.

dblanken commented 3 years ago

I am very sorry for wasting your time with this. It turned out the issue was that I did not run TSInstall after cloning the local treesitter plugin. Once I ran ':TSInstall maintained' using the minimal.vim all tests passed.

Again, thank you for your time and I apologize for not trying that beforehand.

For anyone else in the future, I had to do the following:

git clone http://github.com/windwp/nvim-ts-autotag
git clone http://github.com/nvim-treesitter/nvim-treesitter
git clone http://github.com/nvim-lua/plenary.nvim
git clone http://github.com/nvim-treesitter/playground

cd nvim-ts-autotag
nvim --noplugin -u tests/minimal.vim

:TSInstall maintained
:q

make