Open lucianonooijen opened 6 years ago
Same thing happened to me yesterday but this was after I upgraded to Hyper version 2.0. I suspect maybe you inadvertently did the same. What version of hyper are you on?
I was also running Hyper v2.0. I took an old version of Hyper from a Time Machine backup and now it seems to be working, but with v2.0 the issue is still there.
Unfortunately Hyper keeps updating itself, and I see no way to prevent that from happening (without digging in the source code). I now switched back to iTerm2 for the time being, but it would be great if I could use Hyper again soon
@lucianonooijen Same here, I wonder why would the hyper dev team trade all plugin & ability to customize with yet another render engine
.hyper.js
change version to 0.6.1
...
plugins: [
'hyperlinks',
'hyper-search',
'hypergoogle',
'hypersixteen',
'hyperline#0.6.1',
'hyperlayout',
'hyper-autohide-tabs',
// 'hyper-transparent-dynamic'
],
...
hyperline.js
on line 122
{
...
function decorateHyper(Hyper, _ref4) {
var React = _ref4.React;
var notify = _ref4.notify;
var Component = React.Component;
- PropTypes = React.PropTypes
+ React.PropTypes = require('prop-types')
...
}
Don't forget to run yarn add prop-types
inside ~/.hyper-plugins
@liloow What's dirty about that? Seems fine to me.
@JMY1000 I was expecting it to be overridden on each plugin update but now that you mention it I realize my mistake! It is still a rollback and I am directly mutating the React object (which generally not the best idea).
But I have to agree with you, the expression might have been a tad extreme!
I find every time when you hyper i
something,
the .hyper_plugins/node_modules
will reload, Change got
❕put the node_modules/hyperline
to the .hyper_plugins/local/hyperline
.hyper.js
localPlugins: [ "hyperline" ]
hyperline.js#L122
React.PropTypes = require('prop-types')
hyperline/package.json
"dependencies": {
"prop-types": "^15.6.1",
⚠️dont forget
local/hyperline/package.json
install
yarn
npm i
@chinanf-boy You're right! I almost never all my terminal windows so I didn't notice it first, my bad!
Your solution should indeed work, don't forget to remove "hyperline"
from your plugins as well otherwise, they will conflict!
I had to go with a more radical solution myself because this system of auto-updating for no reasons every 5h without being able to opt out is mildly infuriating to me.
~/.hyper_plugins/node_modules/hyperline/
total 20
drwxr-xr-x 3 tom tom 4096 May 31 14:27 .
drwxr-xr-x 39 tom tom 4096 May 31 14:43 ..
drwxr-xr-x 2 root root 4096 May 31 14:39 dist
-r--r--rw- 1 root root 978 Nov 8 2016 package.json
-rw-r--r-- 1 root root 3168 Oct 20 2016 README.md
~/.hyper_plugins/node_modules/hyperline/dist
total 64
drwxr-xr-x 2 root root 4096 May 31 14:39 .
drwxr-xr-x 3 tom tom 4096 May 31 14:27 ..
-rw-r--r-- 1 root root 54243 May 31 14:46 hyperline.js
```bash
~/.hyper_plugins
total 64
drwxr-xr-x 5 tom tom 4096 May 31 14:32 .
drwx------ 48 tom tom 16384 May 31 14:56 ..
drwxr-xr-x 3 tom tom 4096 May 31 06:25 cache
drwxr-xr-x 2 tom tom 4096 May 31 06:21 local
drwxr-xr-x 39 tom tom 4096 May 31 14:43 node_modules
-r--r--rw- 1 root root 467 May 31 14:43 package.json
-rw-r--r-- 1 tom tom 4896 May 31 14:09 package-lock.json
-rw-r--r-- 1 tom tom 8398 May 31 14:43 yarn-error.log
-rw-r--r-- 1 tom tom 6937 May 31 14:39 yarn.lock
Make Sence
❤️and , one more thing Help 🤔️
config.hyperline can work with
this version hyperline
??// .hyper.js
hyperline: {
plugins: [
"ip"
]
}
### I can not just show ip, or something etc,
### If I set hyperline, nothing show up but `black` border .
![bug-demo](https://user-images.githubusercontent.com/20272484/40792451-8be2a638-652c-11e8-96b7-f9618edd30f6.png)
- [x] Done
``` js
// config change
hyperline: {
plugins: [
{
name: 'network',
options: {
color: 'lightCyan'
}
},
{
name: 'battery',
options: {
colors: {
fine: 'lightGreen',
critical: 'lightRed'
}
}
}
]
}
},
@chinanf-boy This may be a dumb question, but where can I find the list of which options are available to each plugin? For example, in the two that you noted in https://github.com/Hyperline/hyperline/issues/155#issuecomment-393575812 , network
uses color
while battery
uses colors
with multiple options.. Whenever I try to add another plugin other than the ones that you included in your comment above, I get an error..
@ajfick I almost forgot, eventually found it https://www.npmjs.com/package/hyperline/v/0.6.1
If you Look above, The version we use is 0.6.1
@chinanf-boy Thank You!!
why wasn't this ever merged? I am still having this issue on my Ubuntu machine
Since yesterday Hyperline does not seem to load anymore. There were no changes in any other settings.
I get the following notification:
The complete Developer Tools log after starting Hyperterm:
My Hyper config JS file:
Disabling all plugins except Hyperline does not work.