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

Bug with import on Windows? #27048

Closed
chakravala opened this issue May 9, 2018 · 1 comment
Closed

Bug with import on Windows? #27048

chakravala opened this issue May 9, 2018 · 1 comment

Comments

@chakravala
Copy link
Contributor

This is an issue that seems to affect Windows users:

julia> module  ModPlus
           +(r...) = Base.:+(r...)
       end
ModPlus

julia> import ModPlus: +

julia> module ModTimes
           *(r...) = Base.:*(r...)
       end
ModTimes

julia> import ModTimes: *
WARNING: ignoring conflicting import of Mod.* into Main

It seems that on Windows version of Julia, there is an issue with importing the * method.

For some reason, this is the only method that doesn't get imported.

I am actually not a Windows user, but this issue came up when I was checking the compatibility of my package. This issue does not happen on Linux or OSX and it is only specific to *.

Is this a bug? What's going on here?

A possible workaround is to do

* = ModTimes.:*

but this is not an ideal solution.

https://discourse.julialang.org/t/bug-with-import-on-windows/10798

@fredrikekre
Copy link
Member

#18769

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

3 participants