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

VSCode 报错 execute command fail:C:\Users\Gabriel Wu\.nh\bin\nhctl.exe kubeconfig check -i -c k3d-k3d-cluster --kubeconfig - #1392

Open
ishallbethat opened this issue Dec 11, 2022 · 1 comment

Comments

@ishallbethat
Copy link

What happened:
Windows 11 上的 vscode, 安装插件nocalhost 插件, 已经开启了科学上网, 可以正常下载 nhctl.
nhctl 启动失败, 可见在执行以下命令
execute command fail:C:\Users\Gabriel Wu\.nh\bin\nhctl.exe kubeconfig check -i -c k3d-k3d-cluster --kubeconfig -

我在正常终端中执行以上命令。 结果正常。 VSCode 中不正常, 无法加载kubeconfig 。难道因为我的路径中包含空格 ?
kubeconfig 后面一段C:\Users\"Gabriel Wu"\.kube\config哪去了 ?
PS C:\Users\Gabriel Wu\.nh\bin> .\nhctl.exe kubeconfig check -i -c k3d-k3d-cluster --kubeconfig C:\Users\"Gabriel Wu"\.kube\config [{"status":"SUCCESS","tips":"Current context can list with cluster-scope resources"}]

手动在 vscode 的kubeconfig 里编辑, 加上“” 号。 依然报错。

What you expected to happen:
正常加载 kubeconfig 配置

How to reproduce it (as minimally and precisely as possible):
windows 11 上 vscode 安装 nocalhost v0.6.19
路径中包含空格
vscode 版本 1.74.0

Anything else we need to know?:

Environment:

  • OS (e.g: Macos 10.15.5 (19F96) or Windows 10):
    Windows 11
  • nhctl version (use nchtl version command):
    nocalhost v0.6.19
nhctl: Nocalhost CLI
    Version: v0.6.19
    Branch: HEAD
    Git commit: 6b60504abd065f45d0ffd941a5a30ceed8187e7e
    Built time: Fri Nov 25 15:05:59 2022
    Built OS/Arch: windows/amd64
    Built Go version: go1.16.7
  • helm version (use helm version command):
PS D:\GitSpace\infra-code> helm version
version.BuildInfo{Version:"v3.9.4", GitCommit:"dbc6d8e20fe1d58d50e6ed30f09a04a77e4c68db", GitTreeState:"clean", GoVersion:"go1.17.13"}
  • kubectl version (use kubectl version command):
PS D:\GitSpace\infra-code> kubectl version
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.16", GitCommit:"b28e1f370a4a4c428ddbeababcaf0198f048fcac", GitTreeState:"clean", BuildDate:"2022-11-09T13:37:37Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.16+k3s1", GitCommit:"d04e48d63b28eba2ec83d579d09f6a313e1c187b", GitTreeState:"clean", BuildDate:"2022-11-18T17:51:22Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/amd64"}
  • Others:
@zhangjian10
Copy link
Contributor

在 .nh/vscode-plugin/vsc_log.*,有详细调用日志可以看看

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

No branches or pull requests

2 participants