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

autojump deletes history #208

Closed
mosnicholas opened this issue May 7, 2013 · 13 comments
Closed

autojump deletes history #208

mosnicholas opened this issue May 7, 2013 · 13 comments

Comments

@mosnicholas
Copy link

I've been using autojump on my Mac OSX Lion for the past month or so, and have had to cp the autojump.txt.bac to the autojump.txt file a number of times because the autojump.txt deletes is purged every so often.

@wting
Copy link
Owner

wting commented May 25, 2013

Do you have a missing or empty autojump, or are just some entries missing?

@mosnicholas
Copy link
Author

The autojump.txt file empties, but it's still there. After it deletes all the entries, it starts from scratch to repopulate them.

@wting
Copy link
Owner

wting commented Jun 16, 2013

Are you able to reproduce it consistently? If so, can you list the reproduction steps?

@mosnicholas
Copy link
Author

It repeatedly occurs. There's nothing required to reproduce it – the file just empties without me doing anything. All I do is use it ( with "j someDir" ), and then find at some point that the autojump.txt file has been purged

@wting
Copy link
Owner

wting commented Jun 19, 2013

What version are you running? How did you install it?

@brennebeck
Copy link

@wting - I actually have this same problem.

For me, it feels like it is related to nvm, but I can't directly confirm that. I say it's related to nvm because whenever it does reset, the only remaining entry is an nvm entry.

$ j -v
autojump release-v21.5.8

Installed via brew

What can I do to help resolve this?

@brennebeck
Copy link

Also, the weight for the nvm directory is always substantially higher than any of my other dir

@wting
Copy link
Owner

wting commented Mar 10, 2014

I'm closing this issue since autojump has been basically rewritten from scratch since this issue's original date.

If you can reproduce this error on v22.0 (master HEAD) then please reopen.

@wting wting closed this as completed Mar 10, 2014
@fernandogrd
Copy link

It is happening to me:

$ j --version
autojump v22.2.2

I did the standard archlinux installation. The file seems to reset sometimes, when I open a new terminal, but looks very random..

If a open a lot of terminals, at the same time, I can see the file becoming empty.

@wting wting reopened this Dec 22, 2014
@sxe
Copy link

sxe commented Jan 25, 2015

Same happens to me on archlinux version autojump v22.2.2 with bash.

@nengxu
Copy link

nengxu commented Feb 26, 2015

Copied my comment from #355:

I'm using Arch Linux. Since autojump v22.2.2, like @sxe and @fernandogrd mentioned, the content of ~/.local/share/autojump/autojump.txt is randomly purged. So the history was totally lost. V22.2.4 still has the same problem.

This bug practically makes autojump useless. This is very frustrating to us, long time users of autojump.

@joelthelion @wting Please look into this issue at your earliest convenience. Thanks.

@nengxu
Copy link

nengxu commented Apr 1, 2015

I'm using chruby which may also hook up $PROMPT_COMMAND.
https://github.com/postmodern/chruby

May this be the cause of this issue?

[neng@dolphin:]$ echo $PROMPT_COMMAND
printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/
}" ; autojump_add_to_database

@wting
Copy link
Owner

wting commented May 6, 2016

I have a pretty good idea of the root cause, let's consolidate conversation to #391.

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

No branches or pull requests

6 participants