JunoLab / Juno.jl

MIT License
145 stars 23 forks source link

[BUG] Warning: no support for multiple packages with the same name yet #303

Open theogf opened 5 years ago

theogf commented 5 years ago

Without apparent reasons I get the issue :

┌ Warning: no support for multiple packages with the same name yet
└ @ CodeTools ~/.julia/packages/CodeTools/xGemk/src/eval.jl:54

Repeated like 100 times in the REPL. Typing something will also generate the warnings

Details

Steps to reproduce

I cannot really identify the source of the problem. Just clicking on the REPL generate the warnings

theogf commented 5 years ago

Solved now but no idea why : I was using Foo which itself was using Bar but I was calling using Bar again in the script and it considered it as a duplicate...

pfitzseb commented 5 years ago

That shouldn't happen though, I think.

theogf commented 5 years ago

There was definitely a Julia issue on my side since the code was also not working, but the most problematic part was definitely getting the same warning thousands of time

BoundaryValueProblems commented 5 years ago

@pfitzseb I got the same warning every time when I update atom packages via "Preferences ..." then "Updates". My configuration is pretty much up-to-date: Julia v1.1.1; Atom v1.37.0; and the latest Juno related packages.

cserteGT3 commented 4 years ago

I can reproduce this: I have a package, that have some dependencies including:

The two SignedDistanceFields packages are different (with different UUID-s), but with the same name. One is registered (the JuliaGraphics one), while the other not. In my package I do:

module RANSACVisualizer
# other imports
using AbstractPlotting
using SignedDistanceFields # authored by freemin7

# exports
# file includes
end

If I type in a fresh (Juno) REPL: using RANSACVisualizer and try to type something else, I get a bunch of warnings:

┌ Warning: no support for multiple packages with the same name yet
└ @ CodeTools C:\Users\Laci\.julia\packages\CodeTools\xGemk\src\eval.jl:54

It was a bit hard to trace the packages, maybe the error message should be more clear. (I'll see if I can open a PR.)

~One solution for my particular problem could be to include required functions only from AbstractPlotting, will try to check this.~ That idea doesn't work.

This happens to me on Julia v1.3.0-rc4.1, Atom v1.41.0, julia-clien v0.11.3.

cserteGT3 commented 4 years ago

Is there any way to supress these messages?

pfitzseb commented 4 years ago

Not without editing CodeTools as in your PR, I'm afraid. I'll look into fixing this again though.