okteto / remote-kubernetes

Remote Kubernetes Development in VS Code with Okteto
Apache License 2.0
74 stars 15 forks source link

Command 'okteto.up' not found. #230

Closed david9991 closed 1 year ago

david9991 commented 1 year ago

Describe the bug Cannot run any okteto commands in Command Palette.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Command Palette...'
  2. Search and run command 'Okteto: Up'
  3. See error Command 'okteto.up' not found.

Expected behavior Execute okteto up.

Screenshots

Screenshot 2023-07-07 at 11 13 38 Screenshot 2023-07-07 at 11 22 17

Desktop (please complete the following information):

Additional context

david9991 commented 1 year ago

To workaround this issue, apply this patch and disable Telemetry, as this.enabled will always be true in the original code.

diff --git a/src/telemetry.ts b/src/telemetry.ts
index 3d7f2be..12bf04c 100644
--- a/src/telemetry.ts
+++ b/src/telemetry.ts
@@ -49,8 +49,9 @@ export class Reporter {
         this.machineId = machineId;

         const config = vscode.workspace.getConfiguration('okteto');
-        if (config) {
-            this.enabled = config.get<boolean>('telemetry') || true;
+        const telemetry = config.get<boolean>('telemetry')
+        if (config && telemetry != undefined) {
+            this.enabled = telemetry;
         }

         if (oktetoId) {

And this issue is already being discussed here https://github.com/okteto/remote-kubernetes/issues/219 so closing this.