-
Notifications
You must be signed in to change notification settings - Fork 675
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
Add a guard on path #8163
Add a guard on path #8163
Conversation
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.
This fixes the crash, but could the interpreter path being null cause a crash somewhere else?
The root cause is the interpreter path being null here:
PTVS/Python/Product/PythonTools/PythonTools/LanguageServerClient/PythonLanguageClient.cs
Lines 527 to 528 in 9e5040e
if (PathUtils.IsSubpathOf(context.RootPath, context.InterpreterConfiguration.InterpreterPath)) { | |
var pattern = CommonUtils.GetRelativeFilePath(context.RootPath, context.InterpreterConfiguration.GetPrefixPath()).TrimEnd('\\') + "/**/*"; |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azdo run |
/azdo run |
|
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
* Add a guard on path * remove glass tests
fix for workitem 2345868