-
Notifications
You must be signed in to change notification settings - Fork 462
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
treesitter parser [swift] having issue when lazy-loading ts-related plugins #1230
Comments
seems like an upstream issue. |
I'm not sure which upstream it relates to 😭 so I post it here |
It seems like this issue is indeed on our end. I also work with Swift daily and can reliably reproduce this problem: Just a quick confirmation: have u followed the instructions outlined in one of our pinned issues to obliterate any potential treesitter-compiled binary issues? If that doesn't work, u could try waiting for 1-2 secs after entering the TUI but before starting ur editing.1 Footnotes
|
@Jint-lzxy Thanks for the hint! I tried the solution (TSUpdate && TSInstall! swift) and restart nvim, the issue is gone. Does this work for you? Another issue is that I've met the tree-sitter or other plugins issue once before, and I notice that the error continues generate no matter how I press enter or esc. This prevents me from using nvim AS A BASIC TEXT EDITOR. I think the error of tree sitter shouldn't prevent the most basic text edit feature. |
Yeah I find it super handy for like 99% of parser-related issues lol
Yep that's exactly what I was saying earlier, and your points totally make sense. I switched the loading event to |
@Jint-lzxy I switch to 0.10 branch and the |
ys, u need to do |
But I see that the issue that prevents me from using nvim as a basic text editor still exist. Once there's some issues with nvim-treesitter, I cannot use nvim editor completely. Can we convert nvim-treesitter's error to notification instead of a stack output which interrupt my interaction? |
@Saafo Did u mean the exact same scenario as #1230 (comment)? In 0.10, I'm pretty sure this can be resolved by following #393 (comment), as the issue I described in #1230 (comment) was actually caused by some lazy-loaded component(s) bringing about the trouble. However, now that the core functionality is being integrated into Neovim ( |
I'm not sure which case I've met. Let's just let it go😆, I'll report another issue if I encounter in the future. |
Version confirmation
Following prerequisites
Not a user config issue
Neovim version
0.9.5
Operating system/version
14.2.1
Terminal name/version
Warp
$TERM environment variable
No response
Branch info
main (Default/Latest)
Fetch Preferences
SSH (use_ssh = true)
How to reproduce the issue
import Foundation
and so on)Expected behavior
No error occurred.
Actual behavior
Some error occurred.
Additional information
I'm not sure whether it's reproducible on other devices.
The text was updated successfully, but these errors were encountered: