-
Notifications
You must be signed in to change notification settings - Fork 5
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
Core dumps with neovim under certain conditions #34
Comments
Hello! Thank you for reporting the issue. I'll take a look, looks like some issue in the parser. |
Thanks. Can you somehow reproduce the issue? I found that it already happens for the simplest example like this: model User {
id Int @id
} When I copy the middle line and paste it at the end it crashes. |
Thanks, that's definitely something easier to work with. |
Hey @mikehaertl the issue should be resolved, I was able to reproduce something similar locally, not a Let me know if you find something else! Thanks again for reporting. |
I don't think that it was fixed. I was trying to reproduce this in helix-editor/helix#2703 too, but even with master branch there is still segmentation fault. |
@victorhqc I just tried and could not reproduce the issue anymore, thanks. @seshotake Can you give an example that causes issues? Then I can try to reproduce it with neovim. |
@victorhqc Sorry, I was too quick. The example code from the comment above now works. But then I tried wie a slightly more complex example and got a segmentation fault again. I found that I don't even have to copy anything: model User {
id Int @id @default(autoincrement())
}
id Int @id @default(autoincrement()) If I paste this into a file (with another editor) and try to open it with neovim it immediately crashes. |
Aha, then there are probably more reasons for it, thanks! I'll take a look. |
@mikehaertl can you check again with this branch? Maybe with some other cases could still happen, but I'm not sure. |
Looks better now. I played around a bit and had no crashes so far. Thank you. |
This issue was initially reported to neovim-treesitter here: nvim-treesitter/nvim-treesitter#2979. But the stack trace seems to point to an issue with the parser so re-reporting it here.
Describe the bug
When I edit prisma files neovim sometimes crashes with a core dump.
To Reproduce
id Int @id @default(autoincrement())
in theUser
model)The text was updated successfully, but these errors were encountered: