Skip to content

Base.include() reports "LoadError: syntax: expression too large" #36207

@wupeifan

Description

@wupeifan

I have a function that creates an array and fills each element of that array. The system is large as there are about 400k lines. And it encounters an error "LoadError: syntax: expression too large" when I try to "Base.include()" it. I am not sure whether this is a bug (or it is a feature) and whether there are ways to get around it.
Since I have a function to include, I cannot really import each line one by one. It has to be as a whole.
Attached here is the file that I try to "Base.include()" (after unzipping you'll see a Julia file)
And here goes the error message:

ERROR: LoadError: syntax: expression too large
Stacktrace:
 [1] top-level scope at C:\(I omit the path here)\Model_4753687013.jl:1
 [2] include(::Module, ::String) at .\Base.jl:377

Model_4753687013.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions