kenkangxgwe / lsp-wl

A Wolfram Language Server
MIT License
212 stars 22 forks source link

Debug console doesn't report problem. #57

Open hongyi-zhao opened 3 years ago

hongyi-zhao commented 3 years ago

Try with the following code snippet:

<< JavaGraphics`
g[x_,y_]:= 6 Exp[x^3] Sin[y]
Plot[g,{x,-20,20,{y,-20,20},PlotRange=All}]

In vscode:

image

In MMA notebook:

image

kenkangxgwe commented 3 years ago

It doesn't because I haven't figure out how to capture the messages during evaluation in another kernel. But if you open the log panel, it will emit something.

image

hongyi-zhao commented 3 years ago

But if you open the log panel, it will emit something.

Yes. As shown below:

image

kenkangxgwe commented 3 years ago

I think this can be partially done by wrapping the evaluation with EvaluationData, but I cannot keep them in the same order as FrontEnd. However, it's still the most worthy approach that I can think of. Same for reporting messages.