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

reload not working #12780

Closed
sam81 opened this issue Aug 24, 2015 · 4 comments
Closed

reload not working #12780

sam81 opened this issue Aug 24, 2015 · 4 comments

Comments

@sam81
Copy link

sam81 commented Aug 24, 2015

on Julia v0.4.0-dev+6930 (2015-08-24 09:35 UTC) Commit 40d2035* I'm unable to reload any file. I get the error message that the file is not found in path, even though the file exists. Using require gives the same error, but using include appears to work.

julia> readdir(".")
1-element Array{ByteString,1}:
 "foo.jl"

julia> reload("foo.jl")
WARNING: `require` is deprecated, use `using` or `import` instead
 in depwarn at ./deprecated.jl:63
 in require at deprecated.jl:648
while loading no file, in expression starting on line 0
ERROR: ArgumentError: foo.jl not found in path
 in require at ./loading.jl:196
 in require at deprecated.jl:649

julia> versioninfo()
Julia Version 0.4.0-dev+6930
Commit 40d2035* (2015-08-24 09:35 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
@pao
Copy link
Member

pao commented Aug 24, 2015

Possibly consequence of #9079?

@simonster
Copy link
Member

I think it's actually #12695 that changed this.

@diegozea
Copy link
Contributor

Same problem:

julia> reload(MIToS.SIFTS)
ERROR: MethodError: `require` has no method matching require(::Module)

julia> versioninfo()
Julia Version 0.4.0-pre+7102
Commit dea65d7 (2015-08-30 00:28 UTC)

@JeffBezanson
Copy link
Member

Fixed in d3bc374. reload of a package name should work, and for files it will tell you to use include.

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

5 participants