Hi, I have installed nim and nimsuggest on Arch Linux. For some reason couldn't get Go to Definition working in vscode. When I open developer tools in the console I can see: nimsuggest closed with code: 1, signal: null. I have added path to ~/.nimble/bin ` both in `.profile and in .zshrc. Both nim and nimsuggest seems to be available:
$ which nim
/sbin/nim
$ which nimsuggest
/sbin/nimsuggest
$ nim --version
Nim Compiler Version 1.4.2 [Linux: amd64]
Compiled at 2020-12-14
Copyright (c) 2006-2020 by Andreas Rumpf
active boot switches: -d:release -d:nativeStackTrace
I'm not sure how I have installed nimsuggest or it was installed with nim already - I did the setup quite some time ago.
Can you suggest how to investigate the problem?
Good question.
I was not able to find nimsuggest documentation at all two weeks ago. I was going to rewrite my NEd editor for gintro and GTK4, and improve nimsuggest support at the same time. But I can not remember how I build nimsuggest support five years ago for the old NEd version. Maybe it was partly copied from Aporia or asked from Andreas? GtkSourceView seems not to support LanguageServerProtocoll, so I have to communicate with nimsuggest the old way with startProcess, socket, UDP and such. One old issue was the port reuse, which generated crashes when NEd was restarted too fast. I think there may exists a fix to automatic port selection now, but how to use it. And there where rumors that nimsuggest should support incremental compilation now. How to enable?
I guess i have the same issue (with a machine i currently have no access to, its an ubuntu 20.04 with vscodium and the nimplugin rewrite).
If i recall correctly then "when" was not a function.
Do you use the older nim plugin or the newer (nim rewrite)?