• Login
Community
  • Login

Console behavior with process error message.

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
console bug
2 Posts 2 Posters 2.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Jesse Davis
    last edited by Nov 22, 2015, 4:21 PM

    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

    1 Reply Last reply Reply Quote 0
    • J
      Jim Dailey
      last edited by Nov 23, 2015, 6:02 PM

      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
      
      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors