Closed AdarshKumar712 closed 3 years ago
That is annoying.
I am pretty sure the eval
is actually the use of include
(include
basically calls eval
under the hood).
which is all the includes here:
https://github.com/JuliaText/CorpusLoaders.jl/blob/379ff7bf902a1d8e48153f3da53eb811afda00ac/src/CorpusLoaders.jl#L16-L27
The fix is to have them all defining a function e.g. init_WikiCorpus_DataDeps()
or perhaps better: init_datadeps(::Type{WikiCorpus))
which does the definition of the datadep,
and is called from the main __init__
.
that function can be defined in the main fule for that corpus, e.g. WikiCorpus.jl
rather than being in it's own file.
Thanks for the reply. I will try it. And if it works, I will also create a PR for the same.
I am trying to use
CorpusLoaders.jl
as a dependency in another package. But when precompiling, I get the following error:T1.jl
looks like this:Referring to https://github.com/JuliaLang/julia/issues/39648 , the reason for this is using
@eval
inside__init__()
in CorpusLoaders.jl, but I wasn't able to locate anyeval
to cause this.Can someone please have a look?
cc @oxinabox