wenpw
wenpw
> Do you know what debug mode is changing in the code? (Does it remove those error checks?) Or is there some way I could reproduce the bug? Thank you...
> It seems like it might be a bug in the VSCode debugger. There are no symbol types in the evaluation code, so that error must be from the debugger...
> I use vscode as well but I haven’t seen this issue before. What is your Julia version? It is quite strange. I used julia of Version 1.9.0 (2023-05-07).
> Oh, wait, I was just able to reproduce it. I think I just haven't ran the code in the Julia debugger before. This is very strange. What variable is...
@MilesCranmer @zzccchen Sorry that it is still not solved. And I have tested several versions of SymbolicRegression.jl, they all have the same debug error.
@MilesCranmer Yes, the same issue shows up when using DynamicExpressions.jl alone. You could try to debug the following test_tree_constrcution.jl at vscode. https://github.com/SymbolicML/DynamicExpressions.jl/blob/master/test/test_tree_construction.jl The same error will appear.
I wonder why debug mode and directly run the code has so large difference? You may also try to debug the following code. Another error will come up : https://github.com/SymbolicML/DynamicExpressions.jl/blob/master/test/test_custom_operators.jl
I could try but I am not sure if I could find the minimal code that still gives an error.
@MilesCranmer Thank you very much. This would be of great help.