-
Notifications
You must be signed in to change notification settings - Fork 50
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
Resolves mesonPath to program absolute path #206
Conversation
This reverts commit 5a103c4.
CC @paveloom @lukester1975. Please give this a try. |
ProcessExecution() does not lookup into PATH. Fixes: mesonbuild#181
@@ -220,3 +222,7 @@ export function whenFileExists(ctx: vscode.ExtensionContext, file: string, liste | |||
listener(); | |||
} | |||
} | |||
|
|||
export function mesonProgram(): string { | |||
return which.sync(extensionConfiguration("mesonPath")); |
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.
Can you make this a variable instead? Otherwise, we are calling this a lot.
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.
It calls it only once when creating tasks, but calls again if we refresh tasks in case the option changed.
@ZZH-Finzlize can you also try this PR? |
@tristan957 Yes, I tried this PR, it can solve #203 as well, and I noticed that this PR will call meson program by absolute path |
Hmm. In fact, trying direnv and before any changes related to #181, it picks up meson from |
I guess I may have run vscode from the already direnved environment such that the PATH was correct, without really needing the direnv plugin to do anything. Maybe Anyway no matter since this latest iteration does the job, was just more curious about what was going on! |
ProcessExecution() does not lookup into PATH.
Fixes: #181