Comments (11)
As mentioned in this fisherman
issue, it might be due to a previous install of vkovtash/pure
that was cached in the fishfile
.
from pure.
What's even weirder: I issue git checkout master
and the prompt reappears in its old glory. The branch name I was on before was bugfix/filter-is-not-a-function
.
from pure.
This seems like a bug in handling some git repo state.
To get a better idea and to cross out or consider other possibilites, are you using virtualenv
or something similiar in the directories that fail?
In general, can you point out to anything in common to the repositories that make pure
fail? submodules? detached heads? branches? remotes? unstaged changes? local unpushed commits?
from pure.
I do not have a virtualenv in it. The repo does not have submodules, it's not in detached head state, unstaged changes or not don't really make a difference. I'll try to find more cases and I'll try to find some common properties in them.
from pure.
+1
Also had the same issue a while ago, if needed would like to assist in fixing it
from pure.
@heyarne Thanks for the report, this behavior does look weird indeed. Please, try to come up with reproducible steps so we can better assist you.
@vadikace You are more than welcome to jump into this issue if you feel like it 👍
from pure.
I've been able to reproduce the behavior whenever the path + git status exceeds a certain length. I attached some screenshots to clarify what exactly I mean:
Terminal at 104x24, length of path + git status: 94 chars
Terminal at 103x24, length of path + git status: 94 chars (same as above)
Terminal at 104x24, length of path + git status: first 94 chars, then 95 chars
Terminal at 20x11, length of path: 1
Terminal at 20x11, length of path: 10
Terminal at 21x11, length of path: 10
I hope this is clear enough and makes this reproducible. I'm using Terminal.app Version 2.8, macOS 10.13 and fish version 2.7.1.
from pure.
@heyarne Thanks for the details. We will look into it.
@vadikace Still wanna attempt a PR?
from pure.
Before update
I can't reproduce with:
❯ cd ~/.config/fisherman/pure/
❯ git log | head -n 1
❯ commit 69c14e0d89b99f61ced5c2ab97d906a533cab3d5
/tmp
❯ mkdir -p /tmp/Quo/consequatur/ut/dolore/ducimus/et/vero/soluta./Vel/est/alias/consequatur./Nobis/nisi/voluptatum/libero/suscipit/porro/libero/qui/eaque
/tmp
❯ cd /tmp/Quo/consequatur/ut/dolore/ducimus/et/vero/soluta./Vel/est/alias/consequatur./Nobis/nisi/voluptatum/libero/suscipit/porro/libero/qui/eaque
/tmp/Quo/consequatur/ut/dolore/ducimus/et/vero/soluta./Vel/est/alias/consequatur./Nobis/nisi/voluptatum/libero/suscipit/porro/libero/qui/eaque
❯ git init
Initialized empty Git repository in /tmp/Quo/consequatur/ut/dolore/ducimus/et/vero/soluta./Vel/est/alias/consequatur./Nobis/nisi/voluptatum/libero/suscipit/porro/libero/qui/eaque/.git/
/tmp/Quo/consequatur/ut/dolore/ducimus/et/vero/soluta./Vel/est/alias/consequatur./Nobis/nisi/voluptatum/libero/suscipit/porro/libero/qui/eaque master
❯ echo 'hello world'
hello world
/tmp/Quo/consequatur/ut/dolore/ducimus/et/vero/soluta./Vel/est/alias/consequatur./Nobis/nisi/voluptatum/libero/suscipit/porro/libero/qui/eaque master
❯
After update
❯ fisher update pure
Updating 1 plugin
type: Could not find “”
OK Pulled 87 new commit/s pure
Done in 2s 769ms
/data/settings/.config/fisherman/pure master
❯ git log | head -n 1
commit 47722fa666823d2a35e6d2bf8d2048ad18b3a854
Still no problem:
❯ cd /tmp/Quo/consequatur/ut/dolore/ducimus/et/vero/soluta./Vel/est/alias/consequatur./Nobis/nisi/voluptatum/libero/suscipit/porro/libero/qui/eaque
/tmp/Quo/consequatur/ut/dolore/ducimus/et/vero/soluta./Vel/est/alias/consequatur./Nobis/nisi/voluptatum/libero/suscipit/porro/libero/qui/eaque master
❯ echo 'hello world'
hello world
/tmp/Quo/consequatur/ut/dolore/ducimus/et/vero/soluta./Vel/est/alias/consequatur./Nobis/nisi/voluptatum/libero/suscipit/porro/libero/qui/eaque master
❯
@heyarne Can you try on a clean environment without plugins?
from pure.
@heyarne
I created a docker image pure-fish
if you want to try on a clean env.
from pure.
Oh wow... this is a bit embarassing. fisher install pure
doesn't install rafalrinaldi/pure
but instead pure from this repo. Indeed, couldn't reproduce the issue after executing fisher rm pure; fisher install rafaelrinaldi/pure
. I'm going to close this, thanks for the effort and sorry! I assumed there was just one port.
from pure.
Related Issues (20)
- Displaying conda/virtualenv env name has incorrect spacing HOT 2
- type: Unknown option '--quiet' HOT 1
- prompt character broken HOT 3
- Change git branch color HOT 3
- Add 🐍 to the virtualenv title so I know that's what I see HOT 9
- [request] Is there anyway to have the following prompt: $tail on $git_branch HOT 1
- Missing blank line between prompts? HOT 2
- Add CI for MacOS
- MacOS: warning: An error occurred while redirecting file '/proc/1/cgroup' HOT 26
- Prompt outputting _pure_is_inside_container 1 HOT 4
- head: cannot open '/proc/1/sched' for reading: No such file or directory HOT 6
- Prompt displays '2' character around user@host section HOT 1
- VI-mode visual mode prompt HOT 2
- Cannot uninstall 4.4.1 HOT 2
- WSL 1 shows user@hostname HOT 3
- Add kubernetes/k8s support HOT 1
- Is there any option in pure like truncation_length in starship? I want it to show last three parent folder. HOT 2
- 📖 Revamp README and docs
- Pure prompt contains newline in VSCode terminal HOT 3
- Improve `git` prompt during rebase conflicts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pure.