Skip to content

Conversation

@tobil4sk
Copy link
Contributor

These two functions were mostly the same but they were out of sync, so some patches were missing from one, resulting in task execution bugs that only affected Mac/Linux: #158914.

Patch missing from win32.findExecutable:

Patch missing from findExecutable:

Patch missing from win32.findExecutable:
- microsoft@e52382a

Patch missing from findExecutable:
- microsoft@9bc292a
Due to the previous change, this path.join ended up joining two absolute
paths in some cases.

findExecutable now returns undefined if the path does not exist, even if
it is absolute. So it is no longer correct to assume that `command` was
relative if `foundExecutable` is undefined.
@bpasero
Copy link
Member

bpasero commented Oct 22, 2024

I think that method in base came original in from @dbaeumer in 41c02aa#diff-de2b1c04d060553d3bcfbc49b0157a508856c67c9979ff84b54aa5dd59e5e602

@rzhao271 rzhao271 modified the milestones: November 2024, January 2025 Nov 27, 2024
Copy link
Contributor

@meganrogge meganrogge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, your fix works!

@meganrogge meganrogge assigned Tyriar and unassigned rzhao271 and meganrogge Dec 11, 2024
@meganrogge meganrogge enabled auto-merge (squash) December 11, 2024 17:29
@meganrogge meganrogge merged commit 5da3e17 into microsoft:main Dec 11, 2024
7 checks passed
@tobil4sk tobil4sk deleted the fix/diverging-findExecutable branch December 11, 2024 20:52
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Process tasks can attempt to execute directories on Linux

5 participants