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

using and include changes #12695

Closed
StefanKarpinski opened this issue Aug 19, 2015 · 7 comments
Closed

using and include changes #12695

StefanKarpinski opened this issue Aug 19, 2015 · 7 comments
Assignees
Labels
priority This should be addressed urgently
Milestone

Comments

@StefanKarpinski
Copy link
Sponsor Member

See #9079 and #4600. The first half should be done for 0.4:

  • make using and import look in current directory only when in REPL or top-level script
  • while loading other code, only look in Pkg.dir() and LOAD_PATH

The second half should be explored in the next release cycle:

@StefanKarpinski StefanKarpinski added the priority This should be addressed urgently label Aug 19, 2015
@StefanKarpinski StefanKarpinski added this to the 0.4.0 milestone Aug 19, 2015
@kmsquire
Copy link
Member

I know this is trying to solve #9079, but I don't love the idea of things running differently between the command line and the REPL.

@tkelman
Copy link
Contributor

tkelman commented Aug 19, 2015

We lived fine with the behavior prior to #9079, and changing it caused way more issues than it fixed. I think avoiding loading from the current directory would be fine for now.

@StefanKarpinski
Copy link
Sponsor Member Author

I would be ok with not looking in the current directory even in the REPL or top-level of a script. With #4600 one would be able to write using .Foo to load Foo.jl from the current directory in the REPL.

@nalimilan
Copy link
Member

+1 to not looking in the current directory and not introducing a different behaviour at the REPL.

@JeffBezanson
Copy link
Sponsor Member

Fine with me.

@aviks
Copy link
Member

aviks commented Aug 19, 2015

include continues to be relative to the file, right?

Happy with this, thanks!

@JeffBezanson
Copy link
Sponsor Member

include continues to be relative to the file, right?

Correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority This should be addressed urgently
Projects
None yet
Development

No branches or pull requests

6 participants