Skip to content
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

'eval': not enough elements in tuple #595

Open
vbauerster opened this issue Mar 11, 2022 · 3 comments
Open

'eval': not enough elements in tuple #595

vbauerster opened this issue Mar 11, 2022 · 3 comments

Comments

@vbauerster
Copy link
Contributor

Sometimes debug buffer is filled with following:

error running command 'eval -buffer 'cmd.rs' -verbatim -- set buffer rust_analyzer_inlay_hints 360 '43.20+0|{InlayHint}{\}: Context' '43.58+0|{InlayHint}{\}op: ' '43.37+0|{InlayHint}{\}key: ' '44.31+0|{InlayHint}{\}client: ' '44.45+0|{InlayHint}{\}key: ' '55.19+0|{InlayHint}{\}: Option<String>' '55.53+0|{InlayHint}{\}: &str' '56.23+0|{InlayHint}{\}: &str' '57.24+0|{InlayHint}{\}: String' '58.26+0|{InlayHint}{\}string: ' '59.26+0|{InlayHint}{\}string: ' '62.19+0|{InlayHint}{\}: Option<String>' '62.58+0|{InlayHint}{\}: &str' '63.23+0|{InlayHint}{\}: &str' '64.24+0|{InlayHint}{\}: String' '65.26+0|{InlayHint}{\}string: ' '66.26+0|{InlayHint}{\}string: ' '70.16+0|{InlayHint}{\}: String' '82.15+0|{InlayHint}{\}: Sender<Result<String, Error>>' '82.18+0|{InlayHint}{\}: Receiver<Result<String, Error>>' '82.49+0|{InlayHint}{\}cap: ' '83.19+0|{InlayHint}{\}: JoinHandle<Result<(), Error>>' '83.49+0|{InlayHint}{\}is_err: ' '83.55+0|{InlayHint}{\}send_ch: ' '84.19+0|{InlayHint}{\}: JoinHandle<Result<(), Error>>' '84.49+0|{InlayHint}{\}is_err: ' '84.56+0|{InlayHint}{\}send_ch: ' '86.16+0|{InlayHint}{\}: Result<String, Error>' '86.36+0|{InlayHint}{\}op: ' '88.15+0|{InlayHint}{\}: JoinHandle<Result<(), Error>>' '90.21+0|{InlayHint}{\}msg: ' '89.18+0|{InlayHint}{\} Result<Result<(), Error>, …>' '98.18+0|{InlayHint}{\}: Child' '101.31+0|{InlayHint}{\} &mut Command' '101.16+0|{InlayHint}{\}cfg: ' '100.22+0|{InlayHint}{\} &mut Command' '99.19+0|{InlayHint}{\} &mut Command' '98.40+0|{InlayHint}{\} Command' '98.34+0|{InlayHint}{\}program: ' '104.18+0|{InlayHint}{\}: &mut ChildStdin' '105.19+0|{InlayHint}{\}: &mut ChildStdin' '109.17+0|{InlayHint}{\}kind: ' '110.17+0|{InlayHint}{\}error: ' '115.25+0|{InlayHint}{\}buf: ' '117.15+0|{InlayHint}{\}: ExitStatus' '131.17+0|{InlayHint}{\}: PathBuf' '133.19+0|{InlayHint}{\}path: ' '135.19+0|{InlayHint}{\}path: ' '138.21+0|{InlayHint}{\}: File' '139.20+0|{InlayHint}{\}: String' '147.22+0|{InlayHint}{\}op: ' '146.15+0|{InlayHint}{\} Result<(), SendError<Result<…>>>' '142.19+0|{InlayHint}{\}msg: ' '141.16+0|{InlayHint}{\} Sender<Result<String, Error>>'': 1:1: 'eval': not enough elements in tuple

Looks like some InlayHints cannot be applied?

@vbauerster
Copy link
Contributor Author

I'm using kak-lsp compiled from latest master.

@krobelus
Copy link
Member

error running command 'eval -buffer 'cmd.rs' -verbatim -- set buffer rust_analyzer_inlay_hints ...

strangely, running that command seems to work fine, so we're probably gonna need a reproducer.
I don't see anything wrong in the way we produce rust_analyzer_inlay_hints.

@vbauerster
Copy link
Contributor Author

I did undo, which spawned multiple cursors which I didn't notice, then I entered insert mode and start typing without realizing that there were multiple cursors. FWIW this is a hint of what I was doing, not a reproducer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants