Skip to content

Commit b66428d

Browse files
committed
Change env type to system for debug runner
1 parent 1189c67 commit b66428d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/io/vlang/debugger/runconfig/VlangDebugRunner.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ open class VlangDebugRunner : AsyncProgramRunner<RunnerSettings>() {
3737
val workingDir = options.workingDir
3838
val outputFileName = options.outputFileName
3939

40-
val env = EnvironmentUtil.getEnvironmentMap() + EnvironmentUtil.parseEnv(options.envs.split("\n", ",").toTypedArray()).apply {
40+
val env = EnvironmentUtil.parseEnv(options.envs.split("\n", ",").toTypedArray()).apply {
4141
EnvironmentUtil.inlineParentOccurrences(this)
4242
}
4343

@@ -69,6 +69,7 @@ open class VlangDebugRunner : AsyncProgramRunner<RunnerSettings>() {
6969
.withWorkDirectory(workingDir)
7070
.withCharset(Charsets.UTF_8)
7171
.withRedirectErrorStream(true)
72+
.withParentEnvironmentType(GeneralCommandLine.ParentEnvironmentType.SYSTEM)
7273
.withEnvironment(env)
7374

7475
val additionalArguments = ParametersListUtil.parse(options.programArguments)

src/main/kotlin/io/vlang/ide/run/VlangRunConfiguration.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import java.io.File
1212

1313
open class VlangRunConfiguration(project: Project, factory: ConfigurationFactory?, name: String?) :
1414
RunConfigurationBase<VlangRunConfigurationOptions>(project, factory, name),
15-
RunProfileWithCompileBeforeLaunchOption,
1615
LocatableConfiguration {
1716

1817
public override fun getOptions() = super.getOptions() as VlangRunConfigurationOptions

0 commit comments

Comments
 (0)