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

+ show an error notification if, during nimlangserver version detection, the #44

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

nickysn
Copy link
Collaborator

@nickysn nickysn commented Feb 23, 2024

nimlangserver process terminates with an error. Include the stdout and stderr
output in the error notification. This shows errors, such as missing .so files
to the user like this:
Error starting nimlangserver: could not load: lipcre.so(.3|1)
(compile with -d:nimDebugDlOpen for more information)
Previously, these errors would not be shown to the user, and instead a
spurious and misleading "There is a new Nim langserver version available"
message would be shown. The actual error would be well hidden under the
"Nim Language Server" tab in the Output window, which is not normally shown,
unless the user specifically opens this window.

…on, the

  nimlangserver process terminates with an error. Include the stdout and stderr
  output in the error notification. This shows errors, such as missing .so files
  to the user like this:
    Error starting nimlangserver: could not load: lipcre.so(.3|1)
    (compile with -d:nimDebugDlOpen for more information)
  Previously, these errors would not be shown to the user, and instead a
  spurious and misleading "There is a new Nim langserver version available"
  message would be shown. The actual error would be well hidden under the
  "Nim Language Server" tab in the Output window, which is not normally shown,
  unless the user specifically opens this window.
@nickysn nickysn requested a review from jmgomez February 23, 2024 03:37
@nickysn
Copy link
Collaborator Author

nickysn commented Feb 23, 2024

Before:
image
image
After:
image
image
image

@jmgomez
Copy link
Collaborator

jmgomez commented Feb 23, 2024

This is a great change, starting at nim-lang/Nim@09580ee NimSuggest will also throw an error if any on init (need to backport it). We can use this same mechanism to inform the user.

@nickysn nickysn deleted the nimlangserver_startup_error_handling branch February 24, 2024 02:27
jmgomez pushed a commit to jmgomez/vscode-nim that referenced this pull request Mar 26, 2024
…on, the (nim-lang#44)

nimlangserver process terminates with an error. Include the stdout and stderr
  output in the error notification. This shows errors, such as missing .so files
  to the user like this:
    Error starting nimlangserver: could not load: lipcre.so(.3|1)
    (compile with -d:nimDebugDlOpen for more information)
  Previously, these errors would not be shown to the user, and instead a
  spurious and misleading "There is a new Nim langserver version available"
  message would be shown. The actual error would be well hidden under the
  "Nim Language Server" tab in the Output window, which is not normally shown,
  unless the user specifically opens this window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants