Closed
Description
OS/Web Information
- Web Browser: Chrome
- Local OS: Windows
- Remote OS: Ubuntu 20.04
- Remote Architecture: x86
code-server --version
: code-server 3.12
Steps to Reproduce
- Install code-server 3.12
- Install latest go extension and golang 1.17
- Create a
.vscode/launch.json
with following content
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Go",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"env": {"AAA":"BBB"},
"args":["-mode","modeA"]
}
]
}
- Create a
main.go
with following content
package main
import (
"flag"
"fmt"
"os"
)
var (
mode = flag.String("mode", "", "Running mode. [modeA|modeB|modeC]")
)
func main() {
flag.Parse()
env_aaa := os.Getenv("AAA")
fmt.Printf("Mode: %s\n", *mode)
fmt.Printf("Env AAA: %v\n", env_aaa)
}
- run command
go mod init go-test
Expected
You can simply get this result(expected behavior) by switching code-server 3.12 to 3.11
So, I think this is a bug
Actual
program
,args
,env
are not loaded
Logs
[2021-12-02T18:38:35.361Z] debug setting up vs code...
[2021-12-02T18:38:35.362Z] debug vscode got message from code-server {"type":"init"}
[2021-12-02T18:38:35.510Z] debug setting up vs code...
[2021-12-02T18:38:35.511Z] debug vscode got message from code-server {"type":"init"}
[2021-12-02T18:38:37.008Z] debug setting up vs code...
[2021-12-02T18:38:37.008Z] debug vscode got message from code-server {"type":"init"}
[2021-12-02T18:38:38.004Z] debug vscode got message from code-server {"type":"socket"}
[2021-12-02T18:38:38.005Z] debug protocol Initiating handshake... {"token":"c70f2893-38ca-47c0-9cf6-51b7330c58f5"}
[2021-12-02T18:38:38.015Z] debug protocol Handshake completed {"token":"c70f2893-38ca-47c0-9cf6-51b7330c58f5"}
[2021-12-02T18:38:38.015Z] debug management Connecting... {"token":"c70f2893-38ca-47c0-9cf6-51b7330c58f5"}
[2021-12-02T18:38:38.016Z] debug vscode 1 active management connection(s)
[2021-12-02T18:38:38.319Z] debug got latest version {"latest":"3.12.0"}
[2021-12-02T18:38:38.319Z] debug comparing versions {"current":"3.12.0","latest":"3.12.0"}
[2021-12-02T18:38:38.370Z] debug vscode got message from code-server {"type":"socket"}
[2021-12-02T18:38:38.370Z] debug protocol Initiating handshake... {"token":"66575062-25ee-406f-aa66-55e725676c98"}
[2021-12-02T18:38:38.591Z] debug protocol Handshake completed {"token":"66575062-25ee-406f-aa66-55e725676c98"}
[2021-12-02T18:38:38.592Z] debug exthost Connecting... {"token":"66575062-25ee-406f-aa66-55e725676c98"}
[2021-12-02T18:38:38.592Z] debug exthost Getting NLS configuration... {"token":"66575062-25ee-406f-aa66-55e725676c98"}
[2021-12-02T18:38:38.592Z] debug vscode 1 active exthost connection(s)
[2021-12-02T18:38:38.592Z] debug exthost Spawning extension host... {"token":"66575062-25ee-406f-aa66-55e725676c98"}
[2021-12-02T18:38:38.596Z] debug exthost Waiting for handshake... {"token":"66575062-25ee-406f-aa66-55e725676c98"}
[2021-12-02T18:38:38.978Z] debug exthost Handshake completed {"token":"66575062-25ee-406f-aa66-55e725676c98"}
[2021-12-02T18:38:38.978Z] debug exthost Sending socket {"token":"66575062-25ee-406f-aa66-55e725676c98"}
Screenshot
Notes
This issue can be reproduced in VS Code: No
This issue not happen in VS Code 1.62.3
Metadata
Metadata
Assignees
Labels
No labels