question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can prepend PATH in kit?

See original GitHub issue

I have two mingw : C:\mingw32 and C:\mingw64 so not good to add both to PATH. Add below to cmake-kits.json but not work:

	{
		"name": "mingw64",
		"compilers": {
			"CC": "c:/mingw64/bin/gcc.exe",
			"CXX": "c:/mingw64/bin/g++.exe"
		},
		"environmentVariables": {
			"PATH":"C:\\mingw64\\bin;${env:PATH}"
		}
	}

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
vector-of-boolcommented, Aug 14, 2018

Looks like a separate prependPath and/or appendPath option to kits might be of good use…

0reactions
andreeiscommented, Mar 29, 2021

@pm-energid, yes we should explain environmentSetupScript. Our documentation needs some updates in general.

Regarding execution of a script before any call to cmake. Does it really have to be every time before any cmake invocation (configure, build, …etc) or once at load time is enough, as long as the environment changes are persisted throughout the entire VSCode session? environmentSetupScript is meant to keep the environment effects of running it for all the future configure/build operations during the current VSCode session. Let us know if that’s not the case (it would be a bug that we’d want to fix).

I am glad that trying the latest vsix confirmed that the environment settings expansion bug was fixed. So, are you completely unblocked and your scenario works or there’s something else you’d like us to address?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can prepend PATH in kit? · Issue #460
I have two mingw : C:\mingw32 and C:\mingw64 so not good to add both to PATH. Add below to cmake-kits.json but not work:...
Read more >
How to add include path in Qt Creator?
I have a project I'm working on in Qt creator that requires a third-party library. I want to add the headers to the...
Read more >
CMake Kits — CMake Tools 1.4.0 documentation
CMake tools will use the PATH environment variable for a list of directories where compilers can be found. CMake Tools looks for gcc...
Read more >
Configuration • Docs • SvelteKit
This specifies where your app is served from and allows the app to live on a non-root path. Note that you need to...
Read more >
PATH and CLASSPATH (The Java™ Tutorials > Essential ...
The bin directory contains both the compiler and the launcher. Update the PATH Environment Variable (Microsoft Windows). You can run Java applications just...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found