From: Alexis H. Rivera-R. <ahr...@ya...> - 2017-07-14 09:49:53
|
Hi, I'm using eclipse 7.21 i386nt on windows 10 and emacs 25.2.1 I'm using eclipse.el but it also happens with prolog.elI believe the problem happens with eclipse 6.1 too. >From emacs, when I load/compile a file (C-c-C-b) that has a runtime error for example top :- member2(X,[1,2,3]). Then evaluate top. I get [eclipse 2]: top.Abort[eclipse 3]: However, doing the same evaluation with the eclipse.exe from a dos shell gives me[eclipse 2]: top.calling an undefined procedure member2(_233,[1, 2, 3]) in module eclipseAbort[eclipse 3]: In TkEclipse the abort goes to the result pane and the error message goes to the error pane. My first hypothesis was that emacs was doing something different with output from stdout and stderr.As a test, I created a C++ program that mimics the eclipse.exe read/eval loop. The program prints the eclipse prompt string then outputs an Abort message on stdout and the error string on stderr using std::cout and std::cerr respectively. I expected to see only the Abort string, therefore duplicating the eclipse.exe behavior but that didn't happen. Instead, I got both the error message and the abort string. This tells me that emacs maybe redirecting both stdout and stderr to the same output buffer. One thing I noticed is that if I run the following sequence from emacs using the actual eclipse.exe [eclipse 1]: top.Abort[eclipse 2]: halt.calling an undefined procedure member2(_233,[1, 2, 3]) in module eclipse Process prolog exited abnormally with code 3 As the program is shutdown, I do get the error messages. Almost as if eclipse.exe buffers the error message. If I enter multiple commands with runtime errors and then halt, I will see all of them. I will appreciate your help on the subject.Thanks Alexis El amor a la patria tiene que transformarse en acción y ésta tiene que ser acción para el bien común. (Adalexis Rios- mi madre) |