formulahendry / formulahendry/vscode-code-runner

[Bug] Environment variables defined in launch.json is not loaded when run the application

Open
#835 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

- VS Code Version: 1.58.0
- OS Version: mac big sur
- Code Runner Version: 0.11.5

**Describe the bug**
The environment variable defined in launch.json is not loaded when run the program from run button by code runner extension.

**To Reproduce**
Steps to reproduce the behavior:

1. Write simple golang code to read environment variables, and print it out
2. Use launch.json to set environment.
3. run the code with code runner run button. The variable is not loaded.
4. But when run with "Start without debug", the variable is loaded.

**Actual behavior**
Env variable is not loaded

**Expected behavior**
Env variable should be loaded.

**Screenshots**
If applicable, add screenshots to help explain your problem.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.