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

Run Task: Use DevEnv #221

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Run Task: Use DevEnv #221

merged 1 commit into from
Aug 23, 2024

Conversation

CyborgPotato
Copy link
Contributor

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

@tristan957 tristan957 requested a review from xclaesse March 21, 2024 22:12
@tristan957
Copy link
Contributor

@xclaesse can you take a look at this and give it some thought? Seems like a good idea.

@CyborgPotato
Copy link
Contributor Author

@tristan957 @xclaesse Just wanting to check in if any opinion on this change

@tristan957
Copy link
Contributor

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?

@CyborgPotato
Copy link
Contributor Author

@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(),
Copy link
Member

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.

Copy link
Contributor Author

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 👍

@xclaesse
Copy link
Member

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.

@tristan957
Copy link
Contributor

@xclaesse I'll let you hit the merge button when you're happy.

@tristan957
Copy link
Contributor

Can you rebase this, and then I can merge it for the next release?

@CyborgPotato
Copy link
Contributor Author

@tristan957 Thank you! Sorry for the delay, I have rebased the change

@tristan957 tristan957 added this pull request to the merge queue Aug 23, 2024
Merged via the queue into mesonbuild:main with commit 99a5545 Aug 23, 2024
4 checks passed
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