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

Add a guard on path #8163

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Conversation

bschnurr
Copy link
Member

@bschnurr bschnurr commented Feb 5, 2025

fix for workitem 2345868

@bschnurr bschnurr requested a review from a team as a code owner February 5, 2025 18:14
Copy link
Contributor

@rchiodo rchiodo left a 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:

if (PathUtils.IsSubpathOf(context.RootPath, context.InterpreterConfiguration.InterpreterPath)) {
var pattern = CommonUtils.GetRelativeFilePath(context.RootPath, context.InterpreterConfiguration.GetPrefixPath()).TrimEnd('\\') + "/**/*";

@rchiodo
Copy link
Contributor

rchiodo commented Feb 5, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bschnurr
Copy link
Member Author

bschnurr commented Feb 5, 2025

/azdo run

@bschnurr bschnurr closed this Feb 5, 2025
@bschnurr bschnurr reopened this Feb 5, 2025
@bschnurr
Copy link
Member Author

bschnurr commented Feb 5, 2025

/azdo run

Copy link

sonarqubecloud bot commented Feb 5, 2025

@bschnurr
Copy link
Member Author

bschnurr commented Feb 5, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StellaHuang95 StellaHuang95 merged commit 56c46b6 into microsoft:main Feb 5, 2025
6 checks passed
StellaHuang95 pushed a commit that referenced this pull request Feb 6, 2025
* Add a guard on path

* remove glass tests
@StellaHuang95 StellaHuang95 mentioned this pull request Feb 6, 2025
5 tasks
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.

3 participants