Skip to content

include()'ing nonexistant file now gives misleading "can only hash files" error #52462

@staticfloat

Description

@staticfloat

If a package has an incorrect include(), it used to throw an error like this:

$ cat src/Example.jl | head
module Example
export hello, domath

include("this_is_nonexistant.jl")

"""
    hello(who::String)

Return "Hello, `who`".
"""
$ julia +1.9 --project -e 'using Example' 2>&1 | head -1
ERROR: LoadError: SystemError: opening file "/Users/sabae/.julia/dev/Example/src/this_is_nonexistant.jl": No such file or directory

Whereas:

$ julia +master --project -e 'using Example' 2>&1 | head -1
ERROR: LoadError: AssertionError: can only hash files

This appears to have changed as of f2df1b4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions