Include vs-kubernetes/tools/kubectl in path.
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 55/100
Research direction
Open code.sh and inspect line 67, then compare the PATH entries with the kubectl location installed by the Kubernetes extension. Include the requested vs-kubernetes/tools/kubectl path and verify that VS Code can find kubectl when attaching to a running pod.
Written by the indexing model from the issue text.
Description
By using the official Kubernetes extension (ms-kubernetes-tools.vscode-kubernetes-tools), Visual Studio Code can automatically install binaries for kubectl, helm, and minikube.
Unfortunately, if you attempt to explore workloads and try to attach vscode to a running pod, you encounter the following error:
Error running command remote-containers.attachToK8sContainerFromViewlet: A system error occurred (spawn kubectl ENOENT). This is likely caused by the extension that contributes remote-containers.attachToK8sContainerFromViewlet.
To fix this issue, you can edit code.sh (line 67) by adding the following path:
${XDG_DATA_HOME}/.local/state/vs-kubernetes/tools/kubectl
After making this change, vscode is able to find the kubectl binary and the extension will be fully functional.
- Dominant language
- Shell
- Stars
- 216
- Forks
- 82
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flathub/com.visualstudio.code
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
flathub/com.visualstudio.code#679 · 4 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
flathub/com.visualstudio.code#563 · 2 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
flathub/com.visualstudio.code#388 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
flathub/com.visualstudio.code#715 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
flathub/com.visualstudio.code#710 ·
All issues in flathub/com.visualstudio.code
Similar issues
-
Bob Shell support Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
tooling
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
openSUSE/python-rpm-macros#219 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
YunoHost-Apps/adguardhome_ynh#258 ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repair Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
ValveSoftware/SteamOS#2829 ·