illixion / vscode-vibrancy-continued

Enable Acrylic/Glass effect for your VS Code.
MIT License
572 stars 31 forks source link

[Bug]:Couldn't open custom import file: "$theme-style$" #173

Closed akshzyx closed 2 weeks ago

akshzyx commented 2 weeks ago

Is there an existing issue for this?

Current Behavior

When I try to reload Vibrancy continued extension in VS Code it doesn't work, throws the error on my mac

Couldn't open custom import file: "$theme-style$"

I tried reinstalling the extension but still throws error.

This extension was working fine few days ago but now it's giving error. How can I fix this issue?

Screenshot 2024-11-08 at 01 29 46

Expected Behavior

The extension should work after reloading.

Steps To Reproduce

No response

Environment

- OS: Macos
- VSCode: 1.95.1 (Universal)
- Extension: 1.1.41
- Theme: Gloom Dark

Anything else?

No response

illixion commented 2 weeks ago

Please share your VSCode config, specifically the contents of vscode_vibrancy.imports, this error indicates it couldn't find a file with the specified path.

akshzyx commented 2 weeks ago

Here's my current VS Code configuration

"vscode_vibrancy.imports": ["$theme-style$"],

and here's the full config


{
  // Code settings
  "editor.fontFamily": "SF Mono",
  "editor.fontSize": 12,
  "editor.fontWeight": "500",
  "editor.fontLigatures": true,
  "editor.lineHeight": 25,
  "editor.tabSize": 2,
  "editor.lineNumbers": "on",
  "editor.renderWhitespace": "none",
  "editor.renderControlCharacters": false,
  "editor.minimap.enabled": false,

  // Mouse related settings
  "editor.smoothScrolling": true,
  "editor.mouseWheelScrollSensitivity": 2,
  "editor.scrollBeyondLastLine": true,
  "editor.cursorStyle": "block",
  "editor.cursorBlinking": "phase",
  "editor.cursorSmoothCaretAnimation": "on",
  "editor.cursorWidth": 2,

  // Explorer settings
  "explorer.openEditors.visible": 0,
  "explorer.confirmDelete": false,
  "explorer.decorations.badges": false,
  "problems.decorations.enabled": false,
  "workbench.sideBar.location": "left",
  "workbench.statusBar.visible": true,

  // Terminal
  "terminal.integrated.fontFamily": "SF Mono",
  "terminal.integrated.cursorStyle": "block",
  "terminal.integrated.cursorBlinking": true,
  "terminal.integrated.fontWeight": "500",
  "code-runner.runInTerminal": true,

  "editor.formatOnSave": true,
  "workbench.startupEditor": "none",
  "editor.detectIndentation": true,
  "editor.insertSpaces": false,
  "terminal.integrated.rendererType": "dom",
  "files.autoSave": "onFocusChange",
  "window.compositionAttribute": "acrylic",
  "workbench.iconTheme": "symbols",
  "terminal.integrated.gpuAcceleration": "off",
  "search.showLineNumbers": true,
  "jupyter.themeMatplotlibPlots": true,
  "workbench.preferredDarkColorTheme": "Gloom Dark",
  "kite.showWelcomeNotificationOnStartup": false,
  "vscode_vibrancy.opacity": -7,
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },

  "liveServer.settings.donotShowInfoMsg": true,
  "cssPeek.supportTags": false,
  "liveServer.settings.donotVerifyTags": true,
  "tabnine.experimentalAutoImports": true,
  "editor.guides.indentation": false,
  "vscode_vibrancy.imports": ["$theme-style$"],
  "glassit.alpha": 250,
  "workbench.colorCustomizations": {
    "terminal.background": "#00000000"
  },
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.inlineSuggest.enabled": true,

  "github.copilot.enable": {
    "*": true,
    "yaml": false,
    "plaintext": true,
    "markdown": false
  },

  "html.format.unformatted": "",
  "terminal.integrated.enableMultiLinePasteWarning": false,
  "vsicons.dontShowNewVersionMessage": true,
  "explorer.confirmDragAndDrop": false,
  "[python]": {
    "editor.formatOnType": true
  },
  "eslint.run": "onSave",
  "eslint.runtime": "",
  "glassit-linux.opacity": 100,
  "workbench.settings.applyToAllProfiles": [

    "glassit-linux.opacity",
    "workbench.colorCustomizations"
  ],

  "git.autofetch": true,
  "workbench.colorTheme": "Gloom Dark",
  "json.schemas": [],
  "window.titleBarStyle": "custom",
  "html.format.extraLiners": "",

  // Settings to turn off green and red lines
  "scm.diffDecorations": false
}
illixion commented 2 weeks ago

Not sure why you have "$theme-style$" specified as a path, but that is not valid, you'll want to remove this to fix the error. I also noticed your vscode_vibrancy.opacity is set to -7, this won't cause errors but the correct range is between 0 and 1, with -1 serving as "theme default".

akshzyx commented 2 weeks ago

Thanks that fixed it, also fixed the vscode_vibrancy.opacity to 0.