hypercwd icon indicating copy to clipboard operation
hypercwd copied to clipboard

hyper windows git bash error

Open seonglae opened this issue 5 years ago • 12 comments

image

seonglae avatar Dec 29 '19 14:12 seonglae

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

ankitshah009 avatar Jan 30 '20 21:01 ankitshah009

reinstall was my solution

seonglae avatar Jan 30 '20 22:01 seonglae

reinstall was my solution

Reinstall what? The hypercwd plugin or entire Hyper Terminal?

gbroques avatar Apr 17 '20 17:04 gbroques

entire hyper.js

seonglae avatar Apr 17 '20 23:04 seonglae

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

YussufElarif avatar Dec 16 '20 12:12 YussufElarif

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

seonglae avatar Dec 16 '20 12:12 seonglae

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 avatar Dec 16 '20 14:12 YussufElarif

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.

YussufElarif avatar Dec 29 '20 21:12 YussufElarif

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

patcat avatar Feb 06 '21 05:02 patcat

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

image

SebbeJohansson avatar Feb 17 '21 09:02 SebbeJohansson

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

SkinnyPigeon avatar Mar 18 '21 14:03 SkinnyPigeon

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.

JoanComasFdz avatar Mar 24 '21 13:03 JoanComasFdz