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

crash on PkgDev.register #43

Closed
KristofferC opened this issue May 14, 2016 · 6 comments · Fixed by #58
Closed

crash on PkgDev.register #43

KristofferC opened this issue May 14, 2016 · 6 comments · Fixed by #58

Comments

@KristofferC
Copy link
Sponsor Member

My folder layout should be all standard.

julia> PkgDev.register("SuiteSparse")
INFO: Registering SuiteSparse at https://github.com/JuliaSparse/SuiteSparse.jl.git
INFO: Tagging SuiteSparse v0.0.1
ERROR: chdir METADATA: no such file or directory (ENOENT)
 [inlined code] from ./libuv.jl:68
 in cd(::String) at ./file.jl:39
 in cd(::PkgDev.Entry.##11#14{Base.LibGit2.GitRepo,String,VersionNumber,String,Bool,Array{Base.Pkg.Reqs.Line,1}}, ::String) at ./file.jl:47
 in write_tag_metadata(::Base.LibGit2.GitRepo, ::String, ::VersionNumber, ::String, ::Bool) at /home/kristoffer/.julia/v0.5/PkgDev/src/entry.jl:115
 in write_tag_metadata(::Base.LibGit2.GitRepo, ::String, ::VersionNumber, ::String) at /home/kristoffer/.julia/v0.5/PkgDev/src/entry.jl:110
 [inlined code] from ./dict.jl:780
 in (::PkgDev.Entry.##16#23{String,String,String})(::Base.LibGit2.GitRepo) at /home/kristoffer/.julia/v0.5/PkgDev/src/entry.jl:165
 in transact(::PkgDev.Entry.##16#23{String,String,String}, ::Base.LibGit2.GitRepo) at ./libgit2.jl:499
 in register(::String, ::String) at /home/kristoffer/.julia/v0.5/PkgDev/src/entry.jl:143
 in register(::String) at /home/kristoffer/.julia/v0.5/PkgDev/src/entry.jl:192
 in register(::String) at /home/kristoffer/.julia/v0.5/PkgDev/src/PkgDev.jl:32
 in eval(::Module, ::Any) at ./boot.jl:226
@wildart
Copy link
Member

wildart commented May 14, 2016

Where was your SuiteSparse folder located?

@KristofferC
Copy link
Sponsor Member Author

KristofferC commented May 14, 2016

➜  v0.5 pwd              
/home/kristoffer/.julia/v0.5
➜  v0.5 ls -l | grep SuiteSparse
drwxrwxr-x    5 kristoffer kristoffer  4096 maj 14 10:46 SuiteSparse

@KristofferC
Copy link
Sponsor Member Author

To add, this worked when I moved the package to the v0.4 folder and used Pkg there.

@wildart
Copy link
Member

wildart commented May 15, 2016

You do have METADATA directory in ~/.julia/v0.5, don't you? Or maybe it's a link?

@KristofferC
Copy link
Sponsor Member Author

Hmm, yes. I think everything should be completely normal with my paths..

➜  v0.5 ls -l | grep METADATA
drwxrwxr-x 1017 kristoffer kristoffer 36864 maj 16 17:58 METADATA
➜  v0.5 

@bicycle1885
Copy link
Member

The same issue happened to me.

julia> PkgDev.register("BGZFStreams")
INFO: Registering BGZFStreams at https://github.com/BioJulia/BGZFStreams.jl.git
INFO: Tagging BGZFStreams v0.0.1
ERROR: chdir METADATA: no such file or directory (ENOENT)
 in uv_error at ./libuv.jl:68 [inlined]
 in cd(::String) at ./file.jl:39
 in cd(::PkgDev.Entry.##15#18{Base.LibGit2.GitRepo,String,VersionNumber,String,Bool,Array{
Base.Pkg.Reqs.Line,1}}, ::String) at ./file.jl:58
 in write_tag_metadata(::Base.LibGit2.GitRepo, ::String, ::VersionNumber, ::String, ::Bool
) at /Users/kenta/.julia/v0.5/PkgDev/src/entry.jl:117
 in (::PkgDev.Entry.##20#28{String,String,String})(::Base.LibGit2.GitRepo) at /Users/kenta
/.julia/v0.5/PkgDev/src/entry.jl:167
 in transact(::PkgDev.Entry.##20#28{String,String,String}, ::Base.LibGit2.GitRepo) at ./li
bgit2/libgit2.jl:501
 in register(::String, ::String) at /Users/kenta/.julia/v0.5/PkgDev/src/entry.jl:145
 in register(::String) at /Users/kenta/.julia/v0.5/PkgDev/src/entry.jl:194
 in register(::String) at /Users/kenta/.julia/v0.5/PkgDev/src/PkgDev.jl:36

I'm using PkgDev.jl 0.1.1.


julia> versioninfo()
Julia Version 0.5.0-rc0+0
Commit 0030eec* (2016-07-26 20:22 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)

tkelman pushed a commit that referenced this issue Aug 3, 2016
* fix cd path when registering a new package

* add tests

* fixup! add tests

* fixup! fixup! add tests

* fixup! fixup! fixup! add tests

* fixup! fixup! fixup! fixup! add tests

* fixup! fixup! fixup! fixup! fixup! add tests

* fixup! fixup! fixup! fixup! fixup! fixup! add tests
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

Successfully merging a pull request may close this issue.

3 participants