Julia plugin does not work anymore after updating to Julia 1.11

Hi, I recently updated Julia from 1.10 to 1.11 and my Julia plugin in texmacs is not working anymore. When I start a Julia session, I see “Busy” but nothing happens.

If in a Scheme session I try (url-exists-in-path? "julia") I get #t and also (supports-julia?) gives #t as well. It should be noted that I updated my Julia through Juliaup, and the julia.exe file is located in C:\Users\Username\.julia\juliaup\julia-1.11.1+0.x64.w64.mingw32\bin, which is added to my PATH. I can start the newly installed julia from terminal and it runs without any problem.

Try the latest testing build posted two days ago.

Where do I find this testing build?

Windows and macos binaries are here. If you are on Linux, you have to pull the svn repository and build it yourself.

Great, thanks very much!

Do you know what caused this and what the fix was? This still seems to happen in Mogan, so it would be good to port the fix.

To build Julia on Linux:

git clone https://github.com/JuliaLang/julia.git (the first time)
cd julia
### git pull (to update later)
### make clean (to update later)
make
### make test (if you want)

I’ve checked the tm-julia plugin and indeed there were a problem with Julia 1.11 (Base.banner() is replaced by REPL.banner()). I’ve committed a fix and it works now for me on Mac with the last Julia 1.11 downloaded from its website.

Can you try this new version? You can download it from https://github.com/mgubi/tm-julia .

2 Likes

Great, that works! Many thanks!

We can check the version as well in the fix? I guess many people will still be on v1.10.

    if VERSION > v"1.11"
        REPL.banner(io)
    else
        Base.banner(io)
    end

should the inequality be strict or not? Is there a way to find out directly if banner is defined in Base or REPL?

This should work

    if isdefined(REPL,:banner)
        REPL.banner(io)
    elseif isdefined(Base,:banner)
        Base.banner(io)
    end

May I suggest an error message if neither is defined?

Added! Thanks to both.

2 Likes