vscode-nim
vscode-nim copied to clipboard
Callback function is recognized as unused
I have the following code:
proc startAsyncServer() =
...
proc run*() =
for i in 0 ..< numberCores:
createThread[void](threads[i], startAsyncServer)
...
the startAsyncServer proc is reported as unused: 'startAsyncServer' is declared but not used [XDeclaredButNotUsed], but only by the plugin and not by the compiler.
have you configured your main module as the project file?
Initially not, but I just tried it and it is still reported as not used. So, unfortunately this does not help.