erlide_eclipse
erlide_eclipse copied to clipboard
No error message in Eclipse consloe/erang shell
when I execute the following command:
io:format("error ~p", []).
in the eclipse console (with a erlang shell running), it does not print out any error message, why?
If I execute the same line in a standalone erlang shell/window, it givers the following error: ** exception error: bad argument in function io:format/3 called as io:format(<0.25.0>,"error ~p",[])


This is because we are not interacting with the shell directly, but send the call as a RPC. This makes the exception get "lost", which is not good. I will fix it. Thanks for the report!
Thanks :) Will this fix apply to all calls to other processes? I'm an erlang newbee, and going through this tutorial (http://learnyousomeerlang.com/designing-a-concurrent-application). And when my module is spawning new processes, any errors in the new processes are lost. Which makes the erlang shEll look like it just freezes. Makes it very hard to debug...
Well, there are many ways for exceptions and error messages to get lost. If the cause is the interaction with the erlide console, the my goal is to fix that.
The erlide console is a so-called remote shell and some output (most notably from error_logger and SASL) goes directly to stdout. Due to some quirks of Eclipse, it is not easy to get that output, but it's on the list of things to look at.