You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hyper version: 1.0.0 OS: Linux (elementary OS Loki)
I have the following in my ./.hyperlayout (a bit verbose, but I intend to add more to it in the future):
{
"p2lab": [
{
"entry": "tab",
"layout": [
"gitsub-dir && cd experimental/p2lab",
{
"entry": "vertical",
"layout": [ "gitsub-dir && cd experimental/p2lab && yarn run watch", "gitsub-dir && cd experimental/p2lab && yarn run serve-dev" ]
}
]
}
],
}
When I run hyperlayout p2lab, it simply prints out:
[hyperlayout config]:{"config":{"entry":"tab","layout":[{"entry":"tab","layout":["gitsub-dir && cd experimental/p2lab",{"entry":"vertical","layout":["gitsub-dir && cd experimental/p2lab && yarn run watch","gitsub-dir && cd experimental/p2lab && yarn run serve-dev"]}]}]},"cwd":"/home"}
... and does not effect the defined layout. Am I doing something wrong?
I'm not entirely sure why it prints out the config. Are you sure you have hyperlayout inside ~/.hyper.js? It still seems weird since it should detect the missing plugin (never tested it on Linux, though).
If that issue is fixed it still fails since the config is not correct. It should look like this:
{
"p2lab": [
"gitsub-dir && cd experimental/p2lab",
[[
"gitsub-dir && cd experimental/p2lab && yarn run watch",
"gitsub-dir && cd experimental/p2lab && yarn run serve-dev"
]]
]
}
Since you set the entry point to tab you can leave it out, since this it's the default anyway. entry only works on root level, so it's necessary to create a nested array for a split view.
Ok I understand the syntax now. I also had a trailing comma which should have blown it up.
I'm using what you have posted there and it manipulates the tabs, but not so well. I've simplified the config so that we can see what is going on, and included screenshots of the result below. Note that I am using oh-my-zsh, could that perhaps introduce issues?
Weird. Can't really tell why this happens – I need to test this myself on a linux machine. oh-my-zsh shouldn't cause any troubles (I'm using it myself, and it works fine).
Does a single tab config work for you? It looks like pane-splitting is causing some issues.
Okay, I think I got the same issue since Hyper 1.0, so I was able to look into it & fix it. 🎉 At least it works for me again. Can someone confirm this?
So I actually noticed now that, even with your example .hyperlayout from the README with printing Hello and World, that only the first command will get run. So I'll type hyperlayout in bash, and the first pane will echo Hello, then the second pane will open but nothing will happen. I can continue adding panes and it still gets to the second and stops. Should I open another issue?
Updated hyperlayout and hyper and tried the simple test as below:
[[
"echo 1",
"echo 2"
]]
It's still splitting the window correctly, but both commands are being run in the first pane.
Edit:
Tried the above again and it worked fine 😄. It also worked with a more complicated config. Unsure as to why it did not work correctly the first time.
I can replicate the "printing out config" issue on Windows 7, by typing hyperlayout right after installing the plugin. After restarting hyper though it's gone.
I still have trouble getting hyperlayout to work though... after typing hyperlayout the window just freezes, and dev tools throws a syntax error about unexpected token in JSON.
edit
Fixed by implementing this #16 by hand solved everything for me.
I have the same issue, Windows 10 Hyper 2.0.0. When I run hyperlayout all I get is hyperlayout config]:{"config":{"entry":"tab","layout":[["echo 'Hello'","echo 'World'"]]},"cwd":"C:\\Users\\ScriptPup"}
Activity
timolins commentedon Dec 2, 2016
I'm not entirely sure why it prints out the config. Are you sure you have
hyperlayoutinside~/.hyper.js? It still seems weird since it should detect the missing plugin (never tested it on Linux, though).If that issue is fixed it still fails since the config is not correct. It should look like this:
{ "p2lab": [ "gitsub-dir && cd experimental/p2lab", [[ "gitsub-dir && cd experimental/p2lab && yarn run watch", "gitsub-dir && cd experimental/p2lab && yarn run serve-dev" ]] ] }Since you set the entry point to
tabyou can leave it out, since this it's the default anyway.entryonly works on root level, so it's necessary to create a nested array for a split view.WoodyWoodsta commentedon Dec 3, 2016
Ok I understand the syntax now. I also had a trailing comma which should have blown it up.
I'm using what you have posted there and it manipulates the tabs, but not so well. I've simplified the config so that we can see what is going on, and included screenshots of the result below. Note that I am using
oh-my-zsh, could that perhaps introduce issues?{ "layout-test": [ "echo one", [["echo two", "echo three"]] ] }First tab appears to do what is required.

Second tab does not do anything.

timolins commentedon Dec 3, 2016
Weird. Can't really tell why this happens – I need to test this myself on a linux machine.
oh-my-zshshouldn't cause any troubles (I'm using it myself, and it works fine).Does a single tab config work for you? It looks like pane-splitting is causing some issues.
WoodyWoodsta commentedon Dec 3, 2016
Splits, but does not execute the second command.
timolins commentedon Dec 4, 2016
Okay, thanks for your help! I will try to reproduce this bug, once I get my hands on a linux machine.
weedgrease commentedon Dec 12, 2016
This is happening to me currently after a fresh install of Hyper on MacOS Sierra.
timolins commentedon Dec 12, 2016
@kevingelion The thing with the config-printing or commands not executing?
weedgrease commentedon Dec 12, 2016
The config is just printed and nothing happens. Here's my config:
timolins commentedon Dec 12, 2016
@kevingelion Is this still an issue, or has this been resolved in #9?
weedgrease commentedon Dec 12, 2016
@timolins unfortunately still an issue
timolins commentedon Dec 12, 2016
Are you using Hyper.app? I could imagine that this happens with Hyperterm.
timolins commentedon Dec 13, 2016
Okay, I think I got the same issue since Hyper 1.0, so I was able to look into it & fix it. 🎉 At least it works for me again. Can someone confirm this?
timolins commentedon Dec 13, 2016
@kevingelion @WoodyWoodsta
weedgrease commentedon Dec 14, 2016
So I actually noticed now that, even with your example
.hyperlayoutfrom the README with printing Hello and World, that only the first command will get run. So I'll typehyperlayoutin bash, and the first pane will echo Hello, then the second pane will open but nothing will happen. I can continue adding panes and it still gets to the second and stops. Should I open another issue?WoodyWoodsta commentedon Dec 14, 2016
Updated hyperlayout and hyper and tried the simple test as below:
It's still splitting the window correctly, but both commands are being run in the first pane.
Edit:
Tried the above again and it worked fine 😄. It also worked with a more complicated config. Unsure as to why it did not work correctly the first time.
timolins commentedon Dec 14, 2016
Great! 👍 Does anyone of you remeber why the original Issue (Printing out the raw config) happend? Still seems to be a problem according to #12
WoodyWoodsta commentedon Dec 14, 2016
Unfortunately I did not get to the bottom of that. If I had the time, I would dig into the module and try and find out☹️
stereokai commentedon Dec 14, 2016
I have a fix which I could test on my Windows 10 machine. I'll submit a PR and then someone else can test it on a Mac/Linux :)
Submitted Add more robust method to retrieve config JSON from the terminal
stereokai commentedon Dec 19, 2016
I accidentally added a broken linked to the PR but fixed it now.
jonaswindey commentedon Feb 13, 2017
I've had the same issue (printing the config) and restarting Hyper fixed the issue
Cycymomo commentedon Apr 25, 2017
I have currently the issue (printing the config).
Windows 7 SP1
Hyper 1.3.1
zsh (with babun http://babun.github.io/)
~/.hyperlayout
[[ "echo 1", "echo 2" ]]❯ hyperlayout
[hyperlayout config]:{"config":{"entry":"tab","layout":[["echo 1","echo 2"]]},"cwd":"C:\Users\cyril.moreau"}
RikardEkstam commentedon Jun 14, 2017
I can replicate the "printing out config" issue on Windows 7, by typing hyperlayout right after installing the plugin. After restarting hyper though it's gone.
I still have trouble getting hyperlayout to work though... after typing hyperlayout the window just freezes, and dev tools throws a syntax error about unexpected token in JSON.
edit
Fixed by implementing this #16 by hand solved everything for me.
jondcoleman commentedon Sep 13, 2017
Also fixed by implementing this #16 by hand. Would be nice to get that merged.
edit
Implementing that by hand causes freezing issues with certain commands.
philoserf commentedon Jan 6, 2018
The original issue seems solved. Is this still that?
alexhochreiter commentedon Apr 20, 2018
Still happening on Windows 7 x64 with Hyper 2.0.0 - the same
.hyperlayoutfile works fine on linux and macos (hyperlayout 0.2.1)ScriptPup commentedon Jun 21, 2018
I have the same issue, Windows 10 Hyper 2.0.0. When I run
hyperlayoutall I get ishyperlayout config]:{"config":{"entry":"tab","layout":[["echo 'Hello'","echo 'World'"]]},"cwd":"C:\\Users\\ScriptPup"}My .hyperlayout file is very simple
tuchk4 commentedon Sep 26, 2019
Same Issue with Hyper v3