Error with Pkg with using statement in startup.jl


#1

I have a using statement in my startup.jl file (using OhMyREPL), and upon building packages, I get the following warnings

  Building LibCURL ─→ `C:\Users\Jeremy\.julia\packages\LibCURL\yT2TD\deps\build.log`
┌ Error: Error building `LibCURL`:
│ ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:
│ - Run `Pkg.add("OhMyREPL")` to install the OhMyREPL package.
│
│ Stacktrace:
│  [1] require(::Module, ::Symbol) at .\loading.jl:817
│  [2] include at .\boot.jl:317 [inlined]
│  [3] include_relative(::Module, ::String) at .\loading.jl:1038
│  [4] include at .\sysimg.jl:29 [inlined]
│  [5] include_ifexists at .\client.jl:201 [inlined]
│  [6] load_julia_startup() at .\client.jl:298
│  [7] exec_options(::Base.JLOptions) at .\logging.jl:312
│  [8] _start() at .\client.jl:432
│ in expression starting at C:\Users\Jeremy\.julia\config\startup.jl:4
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\Pkg\src\Operations.jl:1068
  Building WinRPM ──→ `C:\Users\Jeremy\.julia\packages\WinRPM\0uTA1\deps\build.log`
┌ Error: Error building `WinRPM`:
│ ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:
│ - Run `Pkg.add("OhMyREPL")` to install the OhMyREPL package.
│
│ Stacktrace:
│  [1] require(::Module, ::Symbol) at .\loading.jl:817
│  [2] include at .\boot.jl:317 [inlined]
│  [3] include_relative(::Module, ::String) at .\loading.jl:1038
│  [4] include at .\sysimg.jl:29 [inlined]
│  [5] include_ifexists at .\client.jl:201 [inlined]
│  [6] load_julia_startup() at .\client.jl:298
│  [7] exec_options(::Base.JLOptions) at .\logging.jl:312
│  [8] _start() at .\client.jl:432
│ in expression starting at C:\Users\Jeremy\.julia\config\startup.jl:4
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\Pkg\src\Operations.jl:1068
  Building Homebrew → `C:\Users\Jeremy\.julia\packages\Homebrew\Byw6Y\deps\build.log`
┌ Error: Error building `Homebrew`:
...

Obviously, OhMyREPL is properly installed and otherwise works fine.

What is the problem?


#2

Possibly related, I started getting a

┌ Warning: Dependency graph not a DAG, linearizing anyway
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\Pkg\src\Operations.jl:985

warning, but that warning stays even after removing the using statement from startup.jl.


#3

Looks like https://github.com/JuliaLang/Pkg.jl/commit/40d7f27f2ff08ec466df536f267129a9f5e950b4#diff-920ed338dcbd9d62489c6d12dc2fbb18 got lost. You should be able to work around it by starting julia with julia --startup-file=no for now.