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
Versions
Emacs: 28.1
Nim compiler: 1.6.6
nimsuggest: 1.6.6
nim-mode: 20211102.917
Message related to nim-mode in *Messages* buffer
nothing - emacs is frozen until quit signal is invoked (with C-g)
Steps to reproduce the issue:
Create basic nim project with nimble init.
Source code of main project's file "playground.nim" follows.
# This is just an example to get you started. A typical hybrid package# uses this file as the main entry point of the application.import playgroundpkg/submodule
whenisMainModule:
echo(submodule.getWelcomeMessage())
Open in Emacs with nim-mode and nimsuggest-mode enabled
Place cursor on some keyword or module-identifier and invoke xref-find-definitions (M-. shortcut by default)
Emacs hangs forever, eating 100% of CPU time. Can be interrupted with (C-g).
When invoked on procs, variables, constants, types - it works as expected, ie. brings in source for that particular identifier.
Expected behavior
Nimsuggest's find definition should reply with something like "no source for selected identifier has been found" instead of ending in non-responsive state.
Command line version of nimsuggest in comparison does work properly, and for keywords & module names instantly replies with '.' (dot symbol), like no definition has been found. Related issue report PMunch/nimlsp#128
The text was updated successfully, but these errors were encountered:
I have also run into this. I am not familiar with the expected behavior for the IPC with nimsuggest, so I may be wrong, but it looks to me like the while loop inside nimsuggest--call-sync has a slightly flawed termination condition. Here's one possible resolution:
OS name: Linux x86_64
Versions
Emacs: 28.1
Nim compiler: 1.6.6
nimsuggest: 1.6.6
nim-mode: 20211102.917
Message related to nim-mode in
*Messages*
buffernothing - emacs is frozen until quit signal is invoked (with C-g)
Steps to reproduce the issue:
nimble init
.Source code of main project's file "playground.nim" follows.
nim-mode
andnimsuggest-mode
enabledxref-find-definitions
(M-. shortcut by default)When invoked on procs, variables, constants, types - it works as expected, ie. brings in source for that particular identifier.
Nimsuggest's find definition should reply with something like "no source for selected identifier has been found" instead of ending in non-responsive state.
Command line version of nimsuggest in comparison does work properly, and for keywords & module names instantly replies with '.' (dot symbol), like no definition has been found. Related issue report PMunch/nimlsp#128
The text was updated successfully, but these errors were encountered: