vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.27k stars 3.52k forks source link

The plugins and themes are not taking effect, please fix this #7351

Open Smecta opened 1 year ago

Smecta commented 1 year ago

Issue


{
  "updateChannel": "canary",
  "fontSize": 12,
  "fontFamily": "\"Operator Mono\",Menlo, \"DejaVu Sans Mono\", Consolas, \"Lucida Console\", monospace",
  "fontWeight": "normal",
  "fontWeightBold": "bold",
  "lineHeight": 1,
  "letterSpacing": 0,
  "scrollback": 1000,
  "cursorColor": "rgba(248,28,229,0.8)",
  "cursorAccentColor": "#000",
  "cursorShape": "BLOCK",
  "cursorBlink": false,
  "foregroundColor": "#fff",
  "backgroundColor": "#000",
  "selectionColor": "rgba(248,28,229,0.3)",
  "borderColor": "#333",
  "css": "",
  "termCSS": "",
  "workingDirectory": "",
  "showHamburgerMenu": "",
  "showWindowControls": "",
  "padding": "12px 14px",
  "colors": {
    "black": "#000000",
    "red": "#C51E14",
    "green": "#1DC121",
    "yellow": "#C7C329",
    "blue": "#0A2FC4",
    "magenta": "#C839C5",
    "cyan": "#20C5C6",
    "white": "#C7C7C7",
    "lightBlack": "#686868",
    "lightRed": "#FD6F6B",
    "lightGreen": "#67F86F",
    "lightYellow": "#FFFA72",
    "lightBlue": "#6A76FB",
    "lightMagenta": "#FD7CFC",
    "lightCyan": "#68FDFE",
    "lightWhite": "#FFFFFF",
    "limeGreen": "#32CD32",
    "lightCoral": "#F08080"
  },
  "shell": "zsh",
  "shellArgs": [
    "--login"
  ],
  "env": {},
  "bell": "SOUND",
  "bellSound": null,
  "bellSoundURL": null,
  "copyOnSelect": false,
  "defaultSSHApp": true,
  "quickEdit": false,
  "macOptionSelectionMode": "vertical",
  "webGLRenderer": true,
  "webLinksActivationKey": "",
  "disableLigatures": true,
  "disableAutoUpdates": false,
  "autoUpdatePlugins": true,
  "preserveCWD": true,
  "screenReaderMode": false,
  "imageSupport": true,
  "uiFontFamily": "\"Operator Mono\"",
  "hyperTransparentDynamic": {
    "alpha": 0.5
  },
  "defaultProfile": "default",
  "profiles": [
    {
      "name": "default",
      "config": {}
    }
  ]
}

plugins ```json { "plugins": [ "verminal", "hyper-snazzy", "hyper-transparent-dynamic", "hyper-tab-icons", "hyper-opacity", "hyper-dark-scrollbar", "hyper-hide-scroll" ], "localPlugins": [] } ```

photo

image
LabhanshAgrawal commented 1 year ago

You can run hyper -v from the default terminal, then do Tools>Update Plugins, and see if there are any errors logged in the default terminal.

Smecta commented 1 year ago

I gave it a try and then printed this

Last login: Fri Jul 21 09:07:36 on ttys000
➜  ~ hyper -v
Plugin error while loading "verminal" (/Users/ch/.config/Hyper/plugins/node_modules/verminal): Cannot find module '/Users/ch/.config/Hyper/plugins/node_modules/verminal'
Require stack:
- /Applications/Hyper.app/Contents/Resources/app.asar/plugins.js
- /Applications/Hyper.app/Contents/Resources/app.asar/index.js
-

Plugin error while loading "hyper-snazzy" (/Users/ch/.config/Hyper/plugins/node_modules/hyper-snazzy): Cannot find module '/Users/ch/.config/Hyper/plugins/node_modules/hyper-snazzy'
Require stack:
- /Applications/Hyper.app/Contents/Resources/app.asar/plugins.js
- /Applications/Hyper.app/Contents/Resources/app.asar/index.js
-
Plugin error while loading "hyper-transparent-dynamic" (/Users/ch/.config/Hyper/plugins/node_modules/hyper-transparent-dynamic): Cannot find module '/Users/ch/.config/Hyper/plugins/node_modules/hyper-transparent-dynamic'
Require stack:
- /Applications/Hyper.app/Contents/Resources/app.asar/plugins.js
- /Applications/Hyper.app/Contents/Resources/app.asar/index.js
-
Plugin error while loading "hyper-tab-icons" (/Users/ch/.config/Hyper/plugins/node_modules/hyper-tab-icons): Cannot find module '/Users/ch/.config/Hyper/plugins/node_modules/hyper-tab-icons'
Require stack:
- /Applications/Hyper.app/Contents/Resources/app.asar/plugins.js
- /Applications/Hyper.app/Contents/Resources/app.asar/index.js
-
Plugin error while loading "hyper-opacity" (/Users/ch/.config/Hyper/plugins/node_modules/hyper-opacity): Cannot find module '/Users/ch/.config/Hyper/plugins/node_modules/hyper-opacity'
Require stack:
- /Applications/Hyper.app/Contents/Resources/app.asar/plugins.js
- /Applications/Hyper.app/Contents/Resources/app.asar/index.js
-
Plugin error while loading "hyper-dark-scrollbar" (/Users/ch/.config/Hyper/plugins/node_modules/hyper-dark-scrollbar): Cannot find module '/Users/ch/.config/Hyper/plugins/node_modules/hyper-dark-scrollbar'
Require stack:
- /Applications/Hyper.app/Contents/Resources/app.asar/plugins.js
- /Applications/Hyper.app/Contents/Resources/app.asar/index.js
-
Plugin error while loading "hyper-hide-scroll" (/Users/ch/.config/Hyper/plugins/node_modules/hyper-hide-scroll): Cannot find module '/Users/ch/.config/Hyper/plugins/node_modules/hyper-hide-scroll'
Require stack:
- /Applications/Hyper.app/Contents/Resources/app.asar/plugins.js
- /Applications/Hyper.app/Contents/Resources/app.asar/index.js
-

plugins have changed / not init, scheduling plugins installation

Disabling Chromium GPU blacklist
running in prod mode

electron will open file:///Applications/Hyper.app/Contents/Resources/app.asar/index.html

Hyper CLI already in PATH

Hyper CLI installed Symlink created at /usr/local/bin/hyper undefined

[7409:0722/184454.108492:INFO:CONSOLE(1)] "(re)loading renderer plugins", source: file:///Applications/Hyper.app/Contents/Resources/app.asar/renderer/bundle.js (1)

[7409:0722/184454.182652:INFO:CONSOLE(36)] "total init time 86.5", source: file:///Applications/Hyper.app/Contents/Resources/app.asar/index.html (36)

Checking for notification messages

Launching yarn: /Applications/Hyper.app/Contents/MacOS/Hyper /Applications/Hyper.app/Contents/Resources/bin/yarn-standalone.js install --no-emoji --no-lockfile --cache-folder /Users/ch/.config/Hyper/plugins/cache

No matching notification messages

[Notification] Error updating plugins.: env: node: No such file or directory

env: node: No such file or directory

Launching yarn: /Applications/Hyper.app/Contents/MacOS/Hyper /Applications/Hyper.app/Contents/Resources/bin/yarn-standalone.js install --no-emoji --no-lockfile --cache-folder /Users/ch/.config/Hyper/plugins/cache

[Notification] Error updating plugins.: env: node: No such file or directory

env: node: No such file or directory
image

update photo

image image
LabhanshAgrawal commented 1 year ago

This env: node error is very weird, happens randomly, for now you can try running

yarn install --no-lockfile --cache-folder ~/.config/Hyper/plugins/cache --cwd ~/.config/Hyper/plugins
Smecta commented 1 year ago

This is a problem generated using Yarn 3, and then I tried using Yarn 1 to execute the command, and it worked

【use Yarn 3】

image

【use Yarn 1】

image

Now I suspect that this is related to the version of Yarn. Thank you for helping me solve this issue. If we consider the problem comprehensively, I would still suggest that the official team should fix this particular issue. Thank you once again for your invaluable assistance!