Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: incorrect code lines in TSX parser #391

Open
dzirtusss opened this issue Jul 17, 2024 · 1 comment
Open

bug: incorrect code lines in TSX parser #391

dzirtusss opened this issue Jul 17, 2024 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@dzirtusss
Copy link
Contributor

Neovim version (nvim -v)

NVIM v0.10.0

Operating system/version

MacOS 14.5

Output of :AerialInfo

Aerial Info

Filetype: lspinfo
Aerial ignores this window: Buftype 'nofile' is "special". See the 'ignore' config in :help aerial-options
Configured backends:
treesitter (not supported) [No treesitter parser for lspinfo]
lsp (not supported) [No LSP client found that supports symbols]
markdown (not supported) [Filetype is not markdown]
asciidoc (not supported) [Filetype is not asciidoc]
man (not supported) [Filetype is not man]
Show symbols: Class, Constructor, Enum, Function, Interface, Module, Method, Struct

Describe the bug

Just stumbled upon.

This is default tsx_test.tsx spec file of the repo. return <div> is duplicated and later all lines are shifted +1. This bug was present before aerial v1.8.0, but spec was incorrectly fixed on version bunp with the bug present.

image

What is the severity of this bug?

tolerable (can work around it)

Steps To Reproduce

Just open tsx_test.tsx from the repo.

Expected Behavior

There should be no duplication and later items should not be shifted.

Minimal example file

No response

Minimal init.lua

No response

Additional context

No response

@dzirtusss dzirtusss added the bug Something isn't working label Jul 17, 2024
@stevearc
Copy link
Owner

I believe this was due to a change upstream in the treesitter parser. If you revert to an earlier version of nvim-treesitter it should exhibit the previous behavior.

@stevearc stevearc added the question Further information is requested label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants