-
Notifications
You must be signed in to change notification settings - Fork 148
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
Various fixes #485
Merged
Merged
Various fixes #485
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0a1a3bf
Fix PythonSpec raising error when module is not installed
krassowski f6d9656
Fix two typos
krassowski 24fe761
Temporarily tolerate pygls usage of nulls for diagnostics
krassowski cdc740d
Fix diagnostics panel not working after restart
krassowski 29f817b
Remove verbose test docstring
krassowski cfa0cfd
Increase timeout for long namespace (win)
krassowski 7d4198d
Ensure that diagnostics panel works after restart
krassowski 3ab6b6d
Remove prefixes
krassowski f16f306
Add changes to changelog
krassowski 9dde59c
Update changelog
krassowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import shutil | ||
|
||
from jupyter_lsp.specs.r_languageserver import RLanguageServer | ||
from jupyter_lsp.specs.utils import PythonModuleSpec | ||
|
||
|
||
def test_no_detect(manager): | ||
|
@@ -28,3 +29,13 @@ class NonInstalledRServer(RLanguageServer): | |
|
||
non_installed_server = NonInstalledRServer() | ||
assert non_installed_server.is_installed(cmd=existing_runner) is False | ||
|
||
|
||
def test_missing_python_module_spec(): | ||
"""Prevent failure in module detection raising error""" | ||
|
||
class NonInstalledPythonServer(PythonModuleSpec): | ||
python_module = "not_installed_python_module" | ||
|
||
not_installed_server = NonInstalledPythonServer() | ||
assert not_installed_server(mgr=None) == {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hooray tests! |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!