Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Julia: ctrl+c does not interrupt

I'm using REPL inside VScode and trying to fix a code that gets stuck inside a certain package. I want to figure out which process is taking time by looking at the stack trace but cannot interrupt because REPL does not respond to ctrl+c. I pressed ctrl+x by accident and that showed ^X on the screen.

I am using JuMP and GLPK so it could be stuck there. However, I am not seeing any outputs.

I would also appreciate any tips on figuring out which process is causing it to be stuck.

like image 737
user15988 Avatar asked Oct 14 '25 08:10

user15988


1 Answers

Interrupts are not implemented in GLPK.jl. I've opened an issue: https://github.com/jump-dev/GLPK.jl/issues/171 (but it's unlikely to get fixed quickly).

If you're interested in contributing to JuMP, it's a good issue to get started with. You could look at the Gurobi.jl code for how we handle interrupts there as inspiration.

like image 94
Oscar Dowson Avatar answered Oct 17 '25 09:10

Oscar Dowson