-
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
Run Task: Use DevEnv #221
Run Task: Use DevEnv #221
Conversation
@xclaesse can you take a look at this and give it some thought? Seems like a good idea. |
@tristan957 @xclaesse Just wanting to check in if any opinion on this change |
I'm sorry for letting this sit, and I will try to get to it as soon as I can. Can you fix the CI while you're here? |
@tristan957 Of course, i fixed the prettier issue and have rebased my fork. Thanks again for considering the PR |
@@ -44,9 +43,8 @@ function createRunTask(t: Target, targetName: string) { | |||
}, | |||
`Run ${targetDisplayName}`, | |||
"Meson", | |||
new vscode.ProcessExecution(t.filename[0], { | |||
cwd: workspaceState.get<string>("mesonbuild.sourceDir")!, | |||
env: getEnvDict(), |
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.
That means you can also delete getEnvDict function and _envDict related code in utils.ts.
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.
Whoops: makes sense, they have been removed 👍
The intention is clearly to run those exe in devenv, I'm not sure why I haven't done it your way in the first place. Loading the generated env file into a dict seems weird in retrospect. LGTM. |
@xclaesse I'll let you hit the merge button when you're happy. |
Can you rebase this, and then I can merge it for the next release? |
@tristan957 Thank you! Sorry for the delay, I have rebased the change |
Run Task fails on Windows occasionally due to error 87 in creating process, this can be avoided, and manually entering env can be avoided by instead running the executable via meson's devenv