V1.11-rc include("") will try to include the current folder

Hi there, I just stumbled upon the oddity that include("") was not doing anything in julia 1.10, but in 1.11 it tries to load the current folder (or something similar), which fails.

Someone knows why this got changed?

1 Like

IMO this is broadly a positive change, because only now include behaves as documented, but I guess there ought to be an entry added to the NEWS (release notes).

That said, currently the error message isn’t good (it says that a file doesn’t exist, even though it does, it’s just the wrong type of file), so maybe report a bug on Github?

1 Like

related issue: Using `include_dependency` with a non-existent file triggers precompilation at every startup · Issue #52063 · JuliaLang/julia · GitHub

2 Likes