MilesCranmer / SymbolicRegression.jl

Distributed High-Performance Symbolic Regression in Julia
https://ai.damtp.cam.ac.uk/symbolicregression/
Apache License 2.0
633 stars 82 forks source link

[BUG]: frozen REPL in VSCode #370

Open rafaelcuperman opened 13 hours ago

rafaelcuperman commented 13 hours ago

What happened?

All the details can be found here: https://discourse.julialang.org/t/symbolicregression-jl-freezing-my-terminal-when-running-report/119368/2

In summary, when using SymbolicRegression.jl in VS Code in windows, after running fit!(match) the REPL freezes and I can't type any more. It is non-responsive. I have been working with a local fork of the package modifying a line as recommended here: https://discourse.julialang.org/t/symbolicregression-jl-freezing-my-terminal-when-running-report/119368/5?u=elcup

Version

v1.0.1

Operating System

Windows

Interface

Other (specify below)

Relevant log output

No response

Extra Info

Working on VS Code in Windows

MilesCranmer commented 10 hours ago

The workaround for this issue is to apply the change

- stdin_reader = watch_stream(stdin)
+ stdin_reader = watch_stream(devnull)

to src/SymbolicRegression.jl.

Its something about watching stdin that causes the Julia VSCode integration to hang. Maybe also worth cross-reporting the issue to the VSCode extension for Julia?