Console behavior with process error message.
-
I don’t know where to put this. Maybe here, maybe in plugins? Anyway…
Notepad++ edited source. Save it. use Plugins menu to select nppexec/execute with following script:
cd “$(CURRENT_DIRECTORY)”
c:\euphoria\BIN\eui.exe “$(FILE_NAME)”
If there is no error in the source file the script executes and the results are reported in the console window.
If there is an error in the source file the interpreter (eui.exe) reports the error(s) and terminates the process. The console window does NOT report the errors and continues as though the process is still running.If I do the same from a Windows cmnd console, i.e.:
type c:\euphoria\bin\eui.exe test_4.ex (which is a text file on disk that is the result of the notepad++ save) in cmnd window. The cmnd window reports the errors and shows the process terminated.Question: How do I get the Notepad++ console to behave like the Windows cmnd window and report everything?
Regards,
jd -
eui.exe is probably writing the errors on STDERR (standard error). If so, then one of these should work for you:
cd "$(CURRENT_DIRECTORY)" c:\euphoria\BIN\eui.exe 2>&1 "$(FILE_NAME)"or
cd "$(CURRENT_DIRECTORY)" del _temp_eui_err_out >nul c:\euphoria\BIN\eui.exe "$(FILE_NAME)" 2>_temp_eui_err_out if exist _temp_eui_err_out type _temp_eui_err_out
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login