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] Incremental compilation may be fatally broken #366

Closed
rikhuijzer opened this issue Jun 10, 2020 · 1 comment
Closed

[BUG] Incremental compilation may be fatally broken #366

rikhuijzer opened this issue Jun 10, 2020 · 1 comment
Labels

Comments

@rikhuijzer
Copy link

description

On Julia 1.4.2, I get the error incremental compilation may be fatally broken for this module after typing using Website where Website is one of my packages. The exact error and a reproducible example are provided below.

versions

using InteractiveUtils; versioninfo():

Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)

using Pkg; Pkg.status():
For my general environment, the output is

Status `~/.julia/environments/v1.4/Project.toml`
  [ca80bb82] Website v0.1.0 [`../../dev/Website`]

and after pkg> activate Website, the output is

Project Website v0.1.0
Status `~/.julia/dev/Website/Project.toml`
  [44d3d7a6] Weave v0.10.2

minimum reproducible steps

julia> using Pkg

julia> cd(Pkg.devdir())

pkg> generate MyPkg
Generating project MyPkg:
    MyPkg/Project.toml
    MyPkg/src/MyPkg.jl

pkg> dev MyPkg

# Add: using Weave
$> vim MyPkg/src/MyPkg.jl

pkg> add Weave

julia> using MyPkg
[ Info: Precompiling MyPkg [25ef8e4f-e3b9-4e61-8b1d-6223c6706065]
┌ Warning: Package MyPkg does not have Weave in its dependencies:
│ - If you have MyPkg checked out for development and have
│   added Weave as a dependency but haven't updated your primary
│   environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with MyPkg
└ Loading Weave into MyPkg from project dependency, future warnings for MyPkg are suppressed.
WARNING: eval into closed module Markdown:
Expr(:block, #= Symbol("/home/rik/.julia/packages/Weave/AL87K/src/WeaveMarkdown/markdown.jl"):12 =#, Expr(:function, Expr(:call, :latex, Expr(:::, :io, :IO), Expr(:::, :tex, Expr(:., :Markdown, :(:LaTeX)))), Expr(:block, #= Symbol("/home/rik/.julia/packages/Weave/AL87K/src/WeaveMarkdown/markdown.jl"):13 =#, :math_envs = Expr(:vect, "align", "equation", "eqnarray"), #= Symbol("/home/rik/.julia/packages/Weave/AL87K/src/WeaveMarkdown/markdown.jl"):14 =#, :use_dollars = Expr(:call, Symbol("!"), Expr(:call, :any, Expr(:comprehension, Expr(:generator, Expr(:call, :occursin, Expr(:string, "\begin{", :me), Expr(:., :tex, :(:formula))), :me = :math_envs)))), #= Symbol("/home/rik/.julia/packages/Weave/AL87K/src/WeaveMarkdown/markdown.jl"):16 =#, Expr(:&&, :use_dollars, Expr(:call, :write, :io, "\[")), #= Symbol("/home/rik/.julia/packages/Weave/AL87K/src/WeaveMarkdown/markdown.jl"):17 =#, Expr(:call, :write, :io, Expr(:call, :string, "
", Expr(:., :tex, :(:formula)), "
")), #= Symbol("/home/rik/.julia/packages/Weave/AL87K/src/WeaveMarkdown/markdown.jl"):18 =#, Expr(:&&, :use_dollars, Expr(:call, :write, :io, "\]
")))))
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition latex(IO, Markdown.LaTeX) in module Markdown at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Markdown/src/IPython/IPython.jl:28 overwritten at /home/rik/.julia/packages/Weave/AL87K/src/WeaveMarkdown/markdown.jl:13.
  ** incremental compilation may be fatally broken for this module **
@rikhuijzer rikhuijzer added the bug label Jun 10, 2020
@aviatesk
Copy link
Member

dup of #356

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants