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
{{ message }}
Repository navigation
Crash in parser when backspacing over variable name #9826
A:parserIssues related to parsingcategory:bugSomething isn't workingdeprecated:duplicate(deprecated: use GitHub's "close as duplicate" feature) This issue is a duplicate of another issuepanic
We currently crash when backspacing over the variable name in the following example:
let x = "foo" | $in; $x | describe
You get:
let xthread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', crates/nu-parser/src/parser.rs:3068:47
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
A:parserIssues related to parsingcategory:bugSomething isn't workingdeprecated:duplicate(deprecated: use GitHub's "close as duplicate" feature) This issue is a duplicate of another issuepanic
Activity
WindSoilder commentedon Jul 28, 2023
it's duplicated: #9596
amtoine commentedon Jul 28, 2023
also works (or rather does not lol) with
Fixed the panic when type a statement similar to `let f = 'f' $` in t…