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 created a function with a signature that would lead to the parser panicking when I tried to type out specific ways of calling the function. thread 'main' panicked at 'index out of bounds: the len is 2 but the index is 3', crates/nu-parser/src/parser.rs:752:28
How to reproduce
def nuu [ one: list two: list three: list four: list five: list six: list ] { }
nuu [] [] [] [] [] [] # trying to type out this call would lead to a panic!
nuu 0 0 0 0 # trying to type out this call would lead to a panic!
nuu 00 00 00 00 00 # trying to type out this call would lead to a panic!
Activity
fdncred commentedon Mar 10, 2023
Hey @ahkrr, Glad to see you back here. Do you know if this problem still exists in the latest main?
ahkrr commentedon Mar 10, 2023
still has this error
thread 'main' panicked at 'index out of bounds: the len is 2 but the index is 3', crates/nu-parser/src/parser.rs:767:28sblundy commentedon Jan 3, 2024
I'm experiencing this in 0.88.1
How to reproduce
repro.nu-, I get this errorConfiguration
Fix panic on too few arguments for custom function (nushell#10395)