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

joe is broken #99

Open
Spenhouet opened this issue Jun 4, 2018 · 8 comments
Open

joe is broken #99

Spenhouet opened this issue Jun 4, 2018 · 8 comments

Comments

@Spenhouet
Copy link

I just reinstalled joe (removed the old binary and PATH entry).

C:\dev>joe update
Updating gitignore files..
2018/06/04 10:50:46 open /tmp/master.zip: The system cannot find the path specified.
C:\dev>joe ls
2018/06/04 10:52:39 open .joe-data: The system cannot find the file specified.

I can't do anything with it.

@jacekmusial
Copy link

Well, same here.
OS: Win10
C:\Users\me\IdeaProjects\PeselVerification>joe g scala
2018/06/23 20:15:46 open .joe-data: Nie można odnaleźć określonego pliku.

Nie można odnaleźć określonego pliku means "The system cannot find the file specified"

@mihakrajnc
Copy link

Same here, any news on this?

@kerogenesis
Copy link

Same here. Win10.

@lucasjoao
Copy link

lucasjoao commented Sep 20, 2018

Same here. OS: Manjaro.

@chronodm
Copy link

chronodm commented Dec 13, 2018

It seems like Joe doesn't create $HOME/.joe-data if it doesn't already exist.

As a workaround, try mkdir ~/.joe-data && joe u to reinstall the list of templates.

(Note: for Windows you'll obviously need to modify that command. From the source, it looks like Joe uses %HOME%, but I don't know what that's set to on Windows, or whether it's set in all cases—this issue on an unrelated Go project suggests it might not be.)

@andrewmeissner
Copy link

I've got a PR in to fix this, but I've also forked the repo in the meantime. github.com/andrewmeissner/joe has the fixes as well and binaries that should work. Once the PR is merged i'll probably delete my repo since it's just there for the PR anyway.

@maweki
Copy link

maweki commented Mar 13, 2019

is solved the update issue by going into the .joe-data directory and manually checking out the master branch. After checking out the branch, joe recognizes the .gitignore files.

@kendfss
Copy link

kendfss commented Oct 2, 2021

This issue was caused by way the dataPath var was set in joe.go. It called os.Getenv("HOME"), but that's not compatible with Windows.
You can fix this error by replacing that line with the following:

var (
  userHome, _ = os.UserHomeDir()
  dataPath    = path.Join(userHome, dataDir)
)

here's a fork that patches this error. It also uses modules, so install is as easy as go install.

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

9 participants