FreeBasic IDE-poseidonFB(Update 2022.11.01)

User projects written in or related to FreeBASIC.
Post Reply
Kuan Hsu
Posts: 566
Joined: Sep 16, 2007 15:12
Location: Taiwan

FreeBasic IDE-poseidonFB(Update 2022.11.01)

Post by Kuan Hsu »

Hello everyone!

sorry for my poor english!

I've written a new freebasic IDE is called -- poseidonFB
code by D programming language and IUP framework and based on Scintilla component
(Windows: D 1.076 + Tango 0.99.9 +IUP rev5942 )
(Linux: D 1.074 + Tango 0.99.9 +IUP rev5943 )
*IUP build using VC++ 2010 express on Windows, so we need install Visual C++ 2010 Redistributable Packages(x86)
*The IUP dynamic libraries had include in 7z / AppImage, no need to install IUP


PoseidonFB support:
1. Syntax highlighting
2. Project manager
3. Autocompletion & Calltip
4. Function / Type / Variable... treeview
5. Find / Replace in document or project
6. Jump to defintion
7. Utf-8/16/32 decode & encode
8. Debug
9. Compile / Quick run / Build project
10. etc......

Please enjoy it!

Japanese translated intro: http://makoto-watanabe.main.jp/freebasi ... donFB.html

Source Code: https://bitbucket.org/KuanHsu/poseidonfb/
poseidonFB Manual:https://bitbucket.org/KuanHsu/poseidonfb/downloads/

Download: Bitbucket Download -> Download repository
or
Win32:poseidonFB.7z V0.501(2022/10/30)
Linux 64bit:poseidonFB_x64 V0.502(Built and tested at Linuxmint 17)
Linux 32bit:(Built and tested at Linuxmint 13 mate)
Since 2021.08.14, just commit new release using AppImage package for linux, no need to install IUP libraries
Appimage issue( dlopen(): error loading libfuse.so.2 ), please see: https://discourse.joplinapp.org/t/appim ... 2-04/25173


Plugin: https://bitbucket.org/KuanHsu/poseidon- ... rc/master/

Window 7:
Image

Linux 64:( Linux Mint 18.3 Cinnamon 64bit )
Image

( V0.502: Fixed "HTML APP Path" not work at menu item bug (Linux only) )
( V0.501: Modified parser for nested TYPE; added "HTML APP Path" on linux version )
( V0.500: Fixed folding doesn't work properly bug; modified 'ShowType' not worked after 'this.'; modified 'Evaluate' window while debug; fixed 'New / Save As' without ext name bug )
( V0.499: Added Show/Hide Toolbar in 'Windows'; fixed critical crash bug about 'Replace All' / 'Convert Keyword Case' )
( V0.498: Added 'Use Console Lanuncher To Run Program' option in 'Set Custom Tools...'; fixed several bugs in 'Custom Tools'; updated consoleLauncher tool )
( V0.497: Modified autocomplete performance speed up; fixed bug while pre-load project files; fixed "#else" parse wrong )
( V0.496: Added Parselive! light can parsed single line in 'TYPE' body; modified to parse extend CLASS correctlly; fixed IupMessageAlarm on linux bug )
( V0.495: Added 'Version condition spec' which can set symbol; many changes about Parselive! )(Need update all *.xpm)
( V0.494: Added 'User Define' in keyword case; modified "Version condition" parse rule; updated outline toolbar icon; modified 'Find/replace' action when direction is 'Prev' )(Need update all *.xpm)
( V0.493: Added "Version condition" AKA "Preprocessor condition" in outline tree and in autocomplete logic )
( V0.492: Fixed 'Set Custom Compiler Options' could not apply bug )
( V0.491: Fixed infinite loop bug about complex includes; added include node on outline tree; modified update outline if add a variable in empty type/function/sub block )
( V0.490: Keep focus in document if change 'Project' / 'Outlile' window; modified refresh outline tree if declare a new SUB / FUNCTION at root node; added new two short-cuts switch 'Project' / 'Outline' and 'Output' / 'Search'; updated espanol.lng, thanks to jepalza )
( V0.489: Updated scintillla v3.7.5 on linux; fixed possible memory leak about 'Menu'->'View'; updated *.xpm; fixed linux double-click on project file open bug at GTK>3.10.8 )
( V0.488: Added 'Message Panel' indicator color settings; re-updated 'refresh.xpm'; added 'OutputSci' settings; re-updated poseidon initial value; modified 'color-templates'; modified English.lng )
( V0.487: Added 'Left-View' Highlight color(Windows) and 'ShowType' fore/back/Highlight color and 'CallTip' fore/back/Highlight color settings; Added toolbar icons invert; fixed linux 'Highlight Current Word' crash bug; updated scintillla v3.6.6 )
( V0.486: Added empty callback function to catch the split VALUECHANGED_CB signal to prevent crash; added IupFlatTree version of project / outline view on Windows; re-added DARK.ini )
( V0.485: Fixed iup_scintilla dynamic library bug; the outline search list now can be show/hide; modified some layouts )(Need update all *.xpm)
( V0.484: Modified some outline icons to avoid burrs; added libreoffice-style-sifr license; fixed open dir bug in 'PrjProperties'; modified some layouts )(Need update all *.xpm)
( V0.483: Big changes about layout and icons; fixed linux critical bugs and fixed colorTemplate not load/save error; updated to IUP rev5942 )(Need update all *.xpm)
( V0.482: Modified iup_scintilla dynamic library )
( V0.481: Fixed "Include Autocomplete" worked even on not include line )
( V0.480: Modified iup_scintilla to fit asm "sub" syntax; modified parser about "sub"; deprecated "FileList", because use rarely and maybe cause BEX crash )
( V0.479: Re-active Scintilla Fore-Color; fixed "var" declartion of outline / autocomplete )
( V0.478: Modified Var symbolname = cast( any ptr ) with ptr; added Constructor/Destructor (Module); fixed color template save error )
( V0.477: Fixed check UTF-8 without BOM encoding error; removed some codes causes IUP memory leaks; fixed 'Menu'-> 'View'-> 'Show Function Title' linked error with 'Preference'; modified pre-parsed message )
( V0.476: Added CHMVIEW on linux AppImage, thank to VANYA! fixed autocomplete error; added pre-parsed message )
( V0.475: Added menu - 'View' -- 'Show Compiler Errors/Warnings Using Annotation' and 'Use Console Launcher'; modified calltip wordwrap size; added 'Project Pre-parse Level' which can load and parse files when project opened )
( V0.474: Hide the outline if the document couldn't be parsed; new file loader without dll )
( V0.473: Fixed iconv function not close bug )(Windows only)
( V0.472: Added MBCS decode )
( V0.471: Use iconv library to prevent the BEX crash(Windows only); added calltip wordwrap )
( V0.470: Test using old FileLoader for prevent the BEX crash(Windows only) )
( V0.469: Modified code about 'EXTENDS' autocomplete )
( V0.468: Enhanced 'Show Type' for viewtopic.php?f=9&t=29567#p285158; modified parser )
( V0.467: Modified OPERATOR parser; modified autocomplete for NAMESPACE )
( V0.466: Modified NAMESPACE parser with better supporting for auto complete )
( V0.465: Cancel 'Comment' in 'Project Properties'; fixed run terminal error about path name with space on Linux; modified 'Compiler' and 'Terminal' Path setting and detect on linux; updated Japanese.lng, thank to Makoto WATANABE )
( V0.464: Added *.inc can be parsed and compiled; fixed combo issue at 'Preference' dialog(Windows); added select case..end select/for..next/if..endif fold; fixed "type x as y" fold issue; enabled 'Highlight Current Word' in comment )
( V0.463: Added 'Max Complete List Items'; Modified 'Main File' behave with extension; fixed linux Project/Outline panel no selected highling by updated to IUP3.30 )
( V0.462: Fixed linux menu and toolbar overlap issue; recompile iup.dll / iup_scintilla.dll on Windows for BEX crash )
( V0.461: Fixed linux xterm / uxterm can not run bug; enabled linux terminal window size setting )
( V0.460: Change project file .poseidon to FB.poseidon )
( V0.459: Added 'Status dialog' while 'Enabled Compile At Back Thread'; fixed wrong focus outline tree while using searching )
( V0.458: Modified 'Serach' panel to show correct keyword color and added keyword 4/5; modified encode; fixed ENUMMEMBER not display while using 'Show Type' )(Need update all *.xpm)
( V0.457: Modified Keyword1~4 not using defalt value if set to null-string; rewrite code about read xpm; modified code about unicode file reader; fixed crash bug about delete file if not existed; modified 'Import Completion' to work correctly )
( V0.456: Added 'Include Levels' = -1 = unlimited; Fixed navcache bug )
( V0.455: Fixed keyeord4/5 bold issue; changed short-cut; added code about DLL parser )
( V0.454: Modified 'Save All' and added 'Save Tab Files'; modified code completion )(Need update all *.xpm)
( V0.453: Fixed infinite loop bug about back thread; fixed 'Bit' / 'GUI' button not record bug )
( V0.452: Added 'Show Type' more information and copy it to paste on annotation )
( V0.451: Canceled 'IDE Message'; modified parser search paths )
( V0.450: Fixed scanner bug )
( V0.449: Fixed 'Save Document Status' not save bug; modified some focus issues )
( V0.448: Added double-click to edit item of 'Custom Compiler Option' / 'Custom Tools' / 'Includes & Libraries Path' )
( V0.447: Added 'Compiler' in 'Custom Compiler Option', it also work on right-click the toolbar about compile )
( V0.446: Fixed memory leak on 'Preference' dialog; added 'Select Text To Keyword4/5'; added scintilla properties in editorSettings.ini; added 'Trigger Delay' option )
( V0.445: Added 'Open In Explorer' on tab title; fixed consoleLauncher bug )
( V0.444: Added 'Save All Documents Before Compile' in preference )
( V0.443: Updated Spanish.lng, thank to jepalza; modified EOL settings bug on linux )
( V0.442: Modified Debug layout using IupFlatTabs; added "THIS" for dwell to show variable value while debug )
( V0.441: Modified Debug layout and font setting and show changed registers; modified "Find/Replace" button focus )(Need update all *.xpm)
( V0.440: Added "Disassembly" in Debug; added evaluate value of Registers; modified Debug layout )
( V0.439: Added x64 debugger path; modified Font layout )
( V0.438: Modified debug code and layout )
( V0.437: Fixed after "Close All" for all tabs, the "Function Title" won't clear; added main dialog with "NAME" attribute to check poseidonFB/D easily( prevent fullscreen issue ) )
( V0.436: Fixed after loading plugin fail, click "Set Custom Tools..." crash bug; fixed if it existed a project on project tree, create a new project will change the existed project name bug; fixed "View" toggle menu item error )
( V0.435: Added dim function pointer parser; changed "Include Levels" rule, now all files in project are same level; fixed "Set Custom Tools..." only 5 items bug; updated English.lng and Traditional Chinese.lng )
( V0.434: Fixed lost "Goto Definition / Show Type" bug; fixed calltip thread and ParseLive! crash bug; updated Spanish.lng, thank to jepalza )
( V0.433: Added "Manual" editor, "F1" can search multi-CHMs but need registered keywords first; expand "Custom Tools" short-cut counts to 12; updated English.lng and Traditional Chinese.lng and Japanese.lng, thank to Makoto WATANABE; modified that "Goto Definition" / "Show Type" wait for thread teriminal; parser added "Const As DataType fieldname" in Type body )
( V0.432: Fixed infinite loop bug )
( V0.431: Changed color setting in "Preference" dialog; Modified complete list sort code; rewrite code of multi-thread about codecomplete/calltip )
( V0.430: Added "Show Line Number" at outline toolbar; modified "ShowPR" to all opened document; modified "Outline Search"; updated English.lng and Traditional Chinese.lng )(Need update all *.xpm)
( V0.429: Added "Keyword" 4,5; removed supporting VB lexer; both using modified iup_scintilla.dll / .so )( Linux users need update libiup_scintilla.so if not use appimage version )
( V0.428: Modified "Outline Search" operating )
( V0.427: Advanced autocomplete of "var" declartion; changed navcache behavior; updated Japanese.lng / Spanish.lng, thank to Makoto WATANABE / jepalza )
( V0.426: Added builtin function calltip( put FB_BuiltinFunctions.bi in settings dir ); fixed BEX crash bug, now poseidonFB should be more stable! )
( V0.425: Modified "Plugin Manager" to watch / unload poseidon plugin; rename POSEIDONFB_* to POSEIDON_* for plugin; updated iup.dll to original version )
( V0.424: Added plugin status monitor and unload dll; modified plugin main module -- poseidonFB_Dll_Go() -> poseidon_Dll_Go(_dllFullPath as zstring ptr); updated iup_scintilla try to avoid crash )
( V0.423: Fixed click arrow of tabs to scroll document trigger outline hide / expand; enabled #define in outline )
( V0.422: "Find In Files" can be used while no document opening and support ENTER key; show ALAIS type in autocomplete list )
( V0.421: Fixed "end extern" bug; fixed "Find/Replace In Files" not work in new document; expand plugin method )
( V0.420: Fixed after a parenthesis, keyword autocomplete fail )
( V0.419: Reopen "Fullscreen" on linux; fixed open "Debugger / Manual Path" crash bug )
( V0.418: Added "Create New Doc With BOM" option; modified "Before Compile, Delete Existed Execute File"; modified to enable if "Quick Run" create execute but got erroe/warning message, try to run it )
( V0.417: Fixed Appimage load ini bug; change linux default font to Monospace; added Terminal Path for linux )
( V0.416: Fixed color templates save bug )
( V0.415: Changed color templates *.xml to *.ini; added "Save" button in ColorTemplates; enabled ColorTemplates on linux version )
( V0.414: Fixed autocomplete with tab key fails; modified code for linux AppImage pack )
( V0.413: Fixed crash of close dialog; fixed DnD not work issue for IUP 3.27 )
( V0.412: Fixed QB-IDE keyword case convert issue while only one keyword at line 1 )
( V0.411: Modified keyword case convert; added QB-IDE keyword case convert; cancel "Function Title" width; updated IUP 3.27 )
( V0.410: Modified codecompletion bug while "Auto Convert Keyword Case" is ON )
( V0.409: Modified parser bug -- ".keyword / ->keyword"; try to fix crash bug )
( V0.408: Fixed NAMESPACE codecomplete crash bug; modified "Keyword Case Convert" )
( V0.407: Added "en-Keyboard layout" option; modified divide-word rule while using "Show Type" or "Jump Definition )
( V0.406: Modified parser, to added "Naked" keyword and fixed "Sub" keyword in asm )
( V0.405: Added "Miscellaneous" in "Project" panel )
( V0.404: Added "EXTRAASCENT" and "EXTRADESCENT" at "[size]" in editorSettings.ini )
( V0.403: Fixed critical crash bug while both Codecomplete & Calltip threads running at same time; modified "Search/Replace" to change "Function Title" and auto expand )
( V0.402: Fixed "Compile & Run" bug )
( V0.401: Focus last edited document while using "Load Previous Document"; fixed Ctrl+L-Click to add breakpoint on margin in Windows )
( V0.400: Updated to IUP 3.25; added "Close Right" )(Need update all *.xpm)
Last edited by Kuan Hsu on Nov 01, 2022 12:19, edited 640 times in total.
marcov
Posts: 3393
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: FreeBasic IDE-poseidonFB

Post by marcov »

Why do you use a monospaced font for the left (treeview) pane? IMHO that wastes space and doesn't add much.
integer
Posts: 394
Joined: Feb 01, 2007 16:54
Location: usa

Re: FreeBasic IDE-poseidonFB

Post by integer »

@marcov
Were there some good points to the IDE?
It's from a First Post of a new member and I have not attempted it (yet). I'm not lazy (more like cautious).
An editor is a highly complex program and this is the first post of a new member.
What is the editor you use for FreeBasic and how does this one compare?
fxm
Moderator
Posts: 11423
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: FreeBasic IDE-poseidonFB

Post by fxm »

Yes first post, but not new member:
Kuan Hsu

Posts: 1
Joined: Sep 16, 2007 17:12
Has thanked: 0 time
Been thanked: 0 time
8 years of work!
I am also waiting for comment from intrepid testers!
marcov
Posts: 3393
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: FreeBasic IDE-poseidonFB

Post by marcov »

integer wrote:@marcov
Were there some good points to the IDE?
It was just a first impression from the screenshot. It was what directly me struck me as strange.
What is the editor you use for FreeBasic and how does this one compare?
I don't really use FB, I follow it this forum for compiler and RTS related issues.
When I use it I make small stub programs in joe and simply compile them on the cmdline.
Kuan Hsu
Posts: 566
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB

Post by Kuan Hsu »

fxm wrote:Yes first post, but not new member:
Kuan Hsu

Posts: 1
Joined: Sep 16, 2007 17:12
Has thanked: 0 time
Been thanked: 0 time
8 years of work!
I am also waiting for comment from intrepid testers!
HA HA...Not work for 8 years,
I worked this project at June, 2015
dodicat
Posts: 7652
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: FreeBasic IDE-poseidonFB

Post by dodicat »

WinRar extracts this but not properly.
Is there a free .7z extractor?

By the way I've had a look at D in the past.
It looks powerful but difficult.

If I get your file extracted I shall certainly test it out.
fxm
Moderator
Posts: 11423
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: FreeBasic IDE-poseidonFB

Post by fxm »

7-Zip Portable | PortableApps.com - Portable software for USB, portable and cloud drives:
http://portableapps.com/apps/utilities/7-zip_portable
Imortis
Moderator
Posts: 1886
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: FreeBasic IDE-poseidonFB

Post by Imortis »

I tested it, and as you say it is still in beta. I had a few things that did not work as expected, but it shows promise!

Keep up the good work. I can't want to see it grow.
St_W
Posts: 1598
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: FreeBasic IDE-poseidonFB

Post by St_W »

I tried it and it didn't use a monospaced font for the editor, probably because I don't have a font named "Inconsolata", which is set in the "Preference" dialog. When I try to change the font (press the "..." button) the executable crashes.

I would also prefer to have monospaced fonts only in the editor and console output, but not in dialogs, code outline, file tab headers, ...
Kuan Hsu
Posts: 566
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB

Post by Kuan Hsu »

Monospaced is my personal aesthetic, but it seems to not so popular...... ><

I will add all font setting, I still can keep my aesthetic but everybody can set the font by themselves.

About crash, I still have no idea what's happens, but I will rewrite the code and test it.
dodicat
Posts: 7652
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: FreeBasic IDE-poseidonFB

Post by dodicat »

I cannot get the ide to work with Win XP.
I get the ide running OK, but cannot compile.
Also, I don't want to use the de-bugger, so how do I do that?
I had to download an extra .dll file, maybe this is the reason.

The ide leaves:

at the beginning of a source code.

I have to get rid of it to run the file on fbide once more.


Maybe it is just not XP compatible.
XP is outdated now anyway.
St_W
Posts: 1598
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: FreeBasic IDE-poseidonFB

Post by St_W »

Kuan Hsu wrote:About crash, I still have no idea what's happens, but I will rewrite the code and test it.
Unfortunately I haven't any experience with D and no D compilers installed.
So here's the Minidump+Heap: http://www.filedropper.com/poseidonfb (16MB compressed; 66MB uncompressed)
Lothar Schirm
Posts: 375
Joined: Sep 28, 2013 15:08
Location: Germany

Re: FreeBasic IDE-poseidonFB

Post by Lothar Schirm »

Looks very promising! I have found a mistake: If you change the debugger path, it will be written into the compiler path.
Kuan Hsu
Posts: 566
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB

Post by Kuan Hsu »

St_W wrote: Unfortunately I haven't any experience with D and no D compilers installed.
So here's the Minidump+Heap: http://www.filedropper.com/poseidonfb (16MB compressed; 66MB uncompressed)
I've reupload the new version of poseidonFB which can set the font of Outline, Project...
The code had be re-written, please check it crash or not?
Post Reply