KristofferC / OhMyREPL.jl

Syntax highlighting and other enhancements for the Julia REPL
https://kristofferc.github.io/OhMyREPL.jl/latest/
Other
768 stars 60 forks source link

Donot work when julia binary runs with command-line arguments. causing issue is repl in emacs julai-snail package #337

Closed Aneeqasif closed 8 months ago

Aneeqasif commented 8 months ago

Hi there, Due to this restriction users of julia-snail in emacs cannot use this package. Please address this issue Reference : https://github.com/gcv/julia-snail/issues/140

Moelf commented 8 months ago

"command-line running a file" is distinctively not REPL, I would hope julia-snail to find a solution to load themselves properly to indicate they're operate Julia interactively

gcv commented 8 months ago

"command-line running a file" is distinctively not REPL

Why not? Given a file sample.jl with the following code:

function f(x)
   x
end

I can then run julia -L sample.jl which starts a normal, interactive Julia REPL, which just happens to have loaded the file sample.jl first.

Moelf commented 8 months ago

you should use -i

gcv commented 8 months ago

Thanks, that seems to work as expected.

gcv commented 8 months ago

@Aneeqasif: This ticket can probably be closed.