Menu

Home

Jens Lorenz

Notepad++ plugins is a collection of tools which plays a role of completion for Notepad++. This project contains Explorer, Function List, Hex Editor, Spell Checker and a console program NppExec. Other plugin developers are invited to share their projects

Screenshot thumbnail
Explorer on left side with HEX view
Screenshot thumbnail
Docked plugins: Explorer, Favorites and Function List


Project Members:


Discussion

  • Frank Michalski

    Frank Michalski - 2020-12-24

    NppExec "Console Filters" for FreeBasic

    Hello, I need please help with the "Console Output Filters" for FreeBasic.
    FreeBasic outputs the errors like this, for example.

    Check_Box.bas(11) error 42: Variable not declared, Test in 'Test'
    Check_Box.bas(86) error 118: CASE without SELECT, found 'case' in 'case'
    

    "Console Output Filters" in NppExec (dont work)

    %ABSFILE%(%Line%) error *:
    %File%(%Line%) error *:
    %ABSFILE%(%Line%) error *.:
    %File%(%Line%) error *.: *
    

    NPP Script.
    If the FreeBasic compiler does not produce an error, the compiled *.exe is executed. However, if an error occurs, the system should jump to the line.

    IF $(EXITCODE) == 1 jump to first Error / warning... How can I do that?

    // enable the $(OUTPUT) variable
    NPE_CONSOLE v+
    npp_save    //save the file
    CD $(CURRENT_DIRECTORY)
    "D:\WinFBE_Suite\FreeBASIC-1.07.1-gcc-8.4\fbc32.exe" "$(FILE_NAME)" -v -s console -x "$(NAME_PART).exe"
    IF $(EXITCODE) != 0 GOTO EXITSCRIPT //if any compilation error then abort
    NPP_RUN cmd /c $(NAME_PART).exe //run file in cmd
    :EXITSCRIPT
      // open new tab
    //NPP_SENDMSG WM_COMMAND IDM_FILE_NEW
      // set the text in the new tab
    //SEL_SETTEXT $(OUTPUT)
      // finally, disable $(OUTPUT) variable
    //NPE_CONSOLE v-
    
    SCI_SENDMSG SCI_GOTOLINE 11 **???**   Where the first error is.
    

    Greeting
    Frank M.

     
  • Joe Pool

    Joe Pool - 2021-03-17

    What I hate about SourceForce is there rarely is any info on how to use the product, like here. They assume everyone already is familiar with it.

     
  • OzBob

    OzBob - 2021-03-21

    Hai Jens,

    What is the URL to the help documentation on how to compare two files in HEX?

    Someone has requested assistance on how to use ‘Hex-Editor’ ‘Compare HEX Files”,

    https://sourceforge.net/p/npp-plugins/discussion/730527/thread/811e3036/

    and says it doesn't work.

    I think the 'help' link in the Hex Editor should point to a 'how to use Hex Editor' URL.

    Regards
    Robert

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.