Skip to content

1.11 regression: source file does not contain a module declaration #56050

Closed
@aplavin

Description

@aplavin

MWE:

(@v1.11) pkg> activate --temp
(jl_YdCmZR) pkg> add VOTables@0.1.16
julia> using VOTables
Precompiling VOTables...
Info Given VOTables was explicitly requested, output will be shown live 
ERROR: LoadError: Package VOTables [3abbdab7-df67-4801-8590-8effec53f469] source file /Users/aplavin/.julia/packages/VOTables/H54Mn/src/VOTables.jl does not contain a module declaration.

I do

@doc Base.read(joinpath(dirname(@__DIR__), "README.md"), String) module VOTables

in the package file (didn't know README would be shown anyway!), likely that causes the issue with module detection.
I'll probably remove this line in the next VOTables version, but it seems a bug in Julia anyways.

Everything worked on 1.10, so this is 1.11 regression (thanks @fatteneder for fixing the title!).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorregression 1.11Regression in the 1.11 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions