continue icon indicating copy to clipboard operation
continue copied to clipboard

Developer Console Log Error: "Error loading color theme"

Open Derjyn opened this issue 1 year ago • 2 comments

Before submitting your bug report

Relevant environment info

- OS: Windows 10
- Continue: 0.8.46 - 2024-08-11
- IDE: VSCode
- Model: N/A
- config.json:
{
  "tabAutocompleteModel": {
    "provider": "ollama",
    "title": "Tab Autocomplete Model",
    "model": "llama3.1:latest",
    "apiBase": "http://localhost:11434"
  },
  "embeddingsProvider": {
    "provider": "ollama",
    "title": "Embeddings Provider",
    "model": "nomic-embed-text:latest",
    "apiBase": "http://localhost:11434"
  },
  "models": [
    {
      "provider": "ollama",
      "title": "Llama 3.1",
      "model": "llama3.1:latest",
      "apiBase": "http://localhost:11434",
      "systemMessage": "You are an AI programming assistant. Before responding first extract high-level concepts and principles from given details, then use those concepts to guide your reasoning towards the correct solution. You will review your reasoning, to further understand the problem and devise a plan to solve the problem. Finally, you'll carry out the plan and solve the problem step by step.",
      "contextLength": 16384
    }
  ],
  "completionOptions": {
    "mirostat": 2,
    "numThreads": 0,
    "temperature": 0.2,
    "topK": 50,
    "frequencyPenalty": 0.5,
    "presencePenalty": 0,
    "maxTokens": 4096
  },
  "contextProviders": [
    {
      "name": "codebase",
      "params": {
        "nRetrieve": 60,
        "nFinal": 30,
        "useReranking": true
      }
    },
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "tree",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "open",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "os",
      "params": {}
    },
    {
      "name": "url",
      "params": {}
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit selected code"
    },
    {
      "name": "comment",
      "description": "Write comments for the selected code"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    }
  ],
  "customCommands": [
    {
      "name": "explain",
      "prompt": "Explain the selected code.",
      "description": "Explain selected code"
    }
  ],
  "docs": [],
  "allowAnonymousTelemetry": false
}

Description

As it says on the title. Seeing an error related to theming in the developer console.

To reproduce

  1. Fire up VSCode.
  2. Toggle Developer Tools.
  3. Read log.

Log output

[Extension Host] Error loading color theme:  SyntaxError: Expected ',' or '}' after property value in JSON at position 9025 (line 174 column 65)
	at JSON.parse (<anonymous>)
	at parseThemeString (c:\Users\derjy\.vscode\extensions\continue.continue-0.8.46-win32-x64\out\extension.js:435852:15)
	at getTheme (c:\Users\derjy\.vscode\extensions\continue.continue-0.8.46-win32-x64\out\extension.js:435879:18)
	at ContinueGUIWebviewViewProvider.getSidebarContent (c:\Users\derjy\.vscode\extensions\continue.continue-0.8.46-win32-x64\out\extension.js:436230:30)
	at ContinueGUIWebviewViewProvider.resolveWebviewView (c:\Users\derjy\.vscode\extensions\continue.continue-0.8.46-win32-x64\out\extension.js:436174:41)
	at c.$resolveWebviewView (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:155:55840)
	at E.S (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:5970)
	at E.Q (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:5736)
	at E.M (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:4723)
	at E.L (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:3814)
	at n.value (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:2282)
	at l.y (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:82:664)
	at l.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:82:881)
	at s.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:107:14502)
	at n.value (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:176:8481)
	at l.y (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:82:664)
	at l.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:82:881)
	at s.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:107:14502)
	at MessagePortMain.<anonymous> (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:176:6631)
	at MessagePortMain.emit (node:events:514:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2285)

Derjyn avatar Aug 17 '24 13:08 Derjyn