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

Precompilation error - Malformed expression #146

Closed
ChrisFuelOR opened this issue Jul 22, 2022 · 3 comments
Closed

Precompilation error - Malformed expression #146

ChrisFuelOR opened this issue Jul 22, 2022 · 3 comments

Comments

@ChrisFuelOR
Copy link

ChrisFuelOR commented Jul 22, 2022

Hi, I'm trying to use the Distributions package, which seems to have StatsFuns as a dependency.
When I try to precompile it, I get the following error message:

[ Info: Precompiling StatsFuns [4c63d2b9-4356-54db-8cca-17b64c39e42c]
ERROR: LoadError: syntax: malformed expression
Stacktrace:
[1] top-level scope at C:\Users\username.julia\packages\StatsFuns\vxSkw\src\StatsFuns.jl:10
[2] include(::Function, ::Module, ::String) at .\Base.jl:380
[3] include(::Module, ::String) at .\Base.jl:368
[4] top-level scope at none:2
[5] eval at .\boot.jl:331 [inlined]
[6] eval(::Expr) at .\client.jl:467
[7] top-level scope at .\none:3
in expression starting at C:\Users\username.julia\packages\StatsFuns\vxSkw\src\StatsFuns.jl:10
ERROR: Failed to precompile StatsFuns [4c63d2b9-4356-54db-8cca-17b64c39e42c] to C:\Users\username.julia\compiled\v1.5\StatsFuns\530lR_MjOqY.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
[3] _require(::Base.PkgId) at .\loading.jl:1030
[4] require(::Base.PkgId) at .\loading.jl:928
[5] require(::Module, ::Symbol) at .\loading.jl:923

Any idea why this error occurs or how to prevent it?
I'm using the most recent version of StatsFuns (v1.0.1).

Thanks in advance.

@devmotion
Copy link
Member

I assume that you might run into simonster/Reexport.jl#22. Can you check the version of Reexport that you use (e.g. by inspecting the output of ] st --manifest) and possibly update it?

@ChrisFuelOR
Copy link
Author

ChrisFuelOR commented Jul 23, 2022

Thanks for the suggestion. The command ] st --manifest) shows that I use Reexport v1.2.2, which should be the most current version.

@devmotion
Copy link
Member

I'll close this issue since I have not been able to reproduce the problem and tests on Github pass successfully without precompilation errors. Please reopen the issue if the problem persists.

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

2 participants