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

Error when using multiple files in different languages #945

Closed
2 tasks done
jzLooning opened this issue Aug 12, 2023 · 4 comments
Closed
2 tasks done

Error when using multiple files in different languages #945

jzLooning opened this issue Aug 12, 2023 · 4 comments
Labels
duplicate This issue or pull request already exists treesitter Treesitter related issues

Comments

@jzLooning
Copy link

jzLooning commented Aug 12, 2023

Version confirmation

  • Confirm

Following prerequisites

  • Confirm

Neovim version

NVIM v0.9.0-dev-329+ged27f0e93

Operating system/version

archlinux

Terminal name/version

WezTerm

$TERM environment variable

xterm-256color

Branch info

main (Default/Latest)

Fetch Preferences

SSH (use_ssh = true)

How to reproduce the issue

First create a folder, then in this new folder create two new files in different languages, e.g. a.py and b .c. Then use nvim to edit one of the files, write something like print "hello world", then use the command :e b.c (assuming you edited a.py first). py), and then get an error and can't move through the text at all using hjkl.
image

Expected behavior

No errors were reported, it was able to be edited normally, and lsp was working properly

Actual behavior

Keeps popping up errors and can't move the cursor at all, let alone edit anything!

Additional information

No response

@jzLooning jzLooning added the bug Something isn't working label Aug 12, 2023
@Jint-lzxy
Copy link
Collaborator

Possible duplicate of #393.

@Jint-lzxy Jint-lzxy added duplicate This issue or pull request already exists treesitter Treesitter related issues and removed bug Something isn't working labels Aug 12, 2023
@jzLooning
Copy link
Author

another error
image

@Jint-lzxy
Copy link
Collaborator

These two are essentially the same.

@jzLooning
Copy link
Author

Possible duplicate of #393.

After using :TSUpdate it works fine, thanks!

@Jint-lzxy Jint-lzxy closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists treesitter Treesitter related issues
Projects
None yet
Development

No branches or pull requests

2 participants