R: Diagnostics crash related to passing tree sitter nodes back and forth with R #2630
Labels
area: diagnostics
Issues related to Diagnostics
area: kernels
Issues related to Jupyter kernels and LSP servers
bug
Something isn't working
lang: r
Milestone
Just put that code in an editor, it should crash immediately. I see something like:
Screen.Recording.2024-04-03.at.2.19.36.PM.mov
this error is pretty telling, as there is only one real place we use
RAW()
, and thats when we pass the raw tree sitter node back and forth with R.I think it is coming from here, where I think
node
here isNULL
https://github.com/posit-dev/amalthea/blob/dc47a8f671521dcc1e17f0d3f67ea5d5b6493a29/crates/ark/src/modules/positron/diagnostics.R#L49-L51
I think the matched call here really does have
NULL
as thepackage =
arghttps://github.com/posit-dev/amalthea/blob/dc47a8f671521dcc1e17f0d3f67ea5d5b6493a29/crates/ark/src/modules/positron/diagnostics.R#L86-L92
The text was updated successfully, but these errors were encountered: