Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyper windows git bash error #76

Open
seonglae opened this issue Dec 29, 2019 · 12 comments
Open

hyper windows git bash error #76

seonglae opened this issue Dec 29, 2019 · 12 comments

Comments

@seonglae
Copy link

image

@ankitshah009
Copy link

Any reason why this is happenning? I am notificing the same problem

@seonglae
Copy link
Author

reinstall was my solution

@gbroques
Copy link

reinstall was my solution

Reinstall what? The hypercwd plugin or entire Hyper Terminal?

@seonglae
Copy link
Author

entire hyper.js

@YussufElarif
Copy link

That doesn't seem to solve the issue on my end. Is it a specific version that works with hypercwd? @sungle3737

@seonglae
Copy link
Author

Actually I'm using Windows Terminal, but my last version was 3.0.2

@YussufElarif
Copy link

Ah right, thanks. I've done a little bit more digging on this plugin. I stripped hypercwd to see what the issue was. Turns out it isn't actually hypercwd that is causing these issues, so reinstalling hyper.js seems like the responsible route to go and may have been the reason why it works for you now. I'll keep digging to see what it is that's causing this issue for me specifically and post it for anyone else that's having the same problem

@YussufElarif
Copy link

YussufElarif commented Dec 29, 2020

Unfortunately, couldn't do any more digging. Clumped up with my own work.
I only got as far as knowing each tab generates a new bash instance but when dispatching "SESSION_SET_CWD", it doesn't change the cwd. It might be a windows thing or gitbash itself, not sure.

@patcat
Copy link

patcat commented Feb 6, 2021

I'm finding the same issue on a new install of Hyper when using Windows Subsystem for Linux Bash. Not sure what it is :/

@SebbeJohansson
Copy link

I am having the same issue currently. Seems to be related to me trying to another tab when I have something running.

image

@SkinnyPigeon
Copy link

For those on WSL and are encountering the same issue, I wrote a simple bash function that sets the current working dir in the bashrc/zshrc file which is then cd'd into on opening a new tab. In the zshrc file include the lines:
export HYPER_DIR=/home/your_user_name
cd $HYPER_DIR

Then define a function in your zshenv file:

tab () {
  gawk -i inplace -v HYPER_DIR=$(pwd) '/export\ HYPER_DIR/ {$2="HYPER_DIR="HYPER_DIR}; {print}' ~/.zshrc 
}

Now you can call $ tab from the terminal to save the pwd dynamically and opening a new tab will automatically open In the current directory. I hope this helps someone as I could not get this to work any other way

@JoanComasFdz
Copy link

JoanComasFdz commented Mar 24, 2021

Same issue on:

  • Windows 10 1909
  • Ubuntu 20.04
  • Hyper 3.1.0 Canary

Removing the plugin from the plugins array and the config and restarting Hyper fixed it for me, at the cost of not having that functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants