saem / vscode-nim

Other
180 stars 23 forks source link

rename feature not working #111

Open scarf005 opened 1 year ago

scarf005 commented 1 year ago

Rename Symbol (F2) functionality doesn't work at all. image

pressing enter after this screen does nothing.

pressing preview(shift+enter) results in error in terminal:

/home/scarf/.nimble/bin/nim secret
MyStream

Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
 ~/r/e/nimapple   ffmpeg ±  /home/scarf/.nimble/bin/nim secret
Hint: used config file '/home/scarf/.choosenim/toolchains/nim-#devel/config/nim.cfg' [Conf]
Hint: used config file '/home/scarf/.choosenim/toolchains/nim-#devel/config/config.nims' [Conf]
>>> stdin(1, 1) Error: undeclared identifier: 'MyStream'
candidates (edit distance, scope distance); see '--spellSuggest': 
 (3, 1): 'system' [module declared in /home/scarf/.choosenim/toolchains/nim-#devel/lib/system.nim(1, 2)]
stdin(1, 1) Error: type mismatch: got <>
but expected one of:
proc echo(x: varargs[typed, `$`])
  first type mismatch at position: 2
  required type for x: varargs[typed]
  but expression '": Error Type"' is of type: string

expression: echo(MyStream, ": Error Type")
>>> >>> MyStream

both outputs nothing on nim extension output:

2022-0010-01 0021:05:00.000761 - [info] Extension Activated

it is broken on both nimsuggest and lsp.