You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't reproduce the bug. I was trying various buggy grammars, the last one being r={'''..'''}. It might be linked to the issue pest-parser/pest/issues/853. But the link is not direct/obvious since after restarting the server, with the same files, it did not report any error.
Reproduction File
All the *.pest files appearing in the pest-parser/pest or pest-parser/book repositories, and the tmp.pest file:
r={'''..'''}
Log
[Info - 11:41:47 AM] Pest Language Server v0.3.2
[Info - 11:41:47 AM] Checking for updates...
[Info - 11:41:48 AM] Opening file:///home/user/Projets/_Contrib_/pest/trys/tmp/tmp.pest
[Info - 11:41:48 AM] Reloading all diagnostics
[Info - 11:41:48 AM] Reloading diagnostics for file:///home/user/Projets/_Contrib_/pest/trys/tmp/tmp.pest
[Info - 11:41:48 AM] Opening file:///home/user/Projets/_Contrib_/pest/pest/meta/src/grammar.pest
[Info - 11:41:48 AM] Reloading all diagnostics
[Info - 11:41:48 AM] Reloading diagnostics for file:///home/user/Projets/_Contrib_/pest/pest/meta/src/grammar.pest
[Info - 11:41:48 AM] Reloading diagnostics for file:///home/user/Projets/_Contrib_/pest/trys/tmp/tmp.pest
[Info - 11:41:57 AM] Reloading all diagnostics
[Info - 11:41:57 AM] Reloading diagnostics for file:///home/user/Projets/_Contrib_/pest/pest/meta/src/grammar.pest
[Info - 11:41:57 AM] Reloading diagnostics for file:///home/user/Projets/_Contrib_/pest/trys/tmp/tmp.pest
thread 'main' panicked at 'internal error: entered unreachable code: unexpected rule in node: range', /home/user/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/pest-language-server-0.3.2/src/lsp.rs:389:50
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info - 11:42:00 AM] Connection to server got closed. Server will restart.
[Error - 11:42:00 AM] Request textDocument/codeAction failed.
Error: Connection got disposed.
at Object.dispose (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:40:4058)
at Object.dispose (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:45:9559)
at td.handleConnectionClosed (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:47:9053)
at td.handleConnectionClosed (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:50:12094)
at r (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:47:8735)
at Lu.invoke (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:13:9583)
at di.fire (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:13:10347)
at vt (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:14:10892)
at Lu.invoke (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:13:9583)
at di.fire (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:13:10347)
at xs.fireClose (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:14:523)
at Socket.<anonymous> (/home/user/.vscode/extensions/pest.pest-ide-tools-0.3.2/build/client.js:14:1297)
at Socket.emit (node:events:526:28)
at Pipe.<anonymous> (node:net:687:12)
Expected behavior
I expect the LSP not to crash.
Environment (please complete the following information):
Describe the bug
The LSP went into unreachable code :
To Reproduce
I couldn't reproduce the bug. I was trying various buggy grammars, the last one being
r={'''..'''}
. It might be linked to the issue pest-parser/pest/issues/853. But the link is not direct/obvious since after restarting the server, with the same files, it did not report any error.Reproduction File
All the *.pest files appearing in the pest-parser/pest or pest-parser/book repositories, and the tmp.pest file:
Log
Expected behavior
I expect the LSP not to crash.
Environment (please complete the following information):
Linux jabr 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: