FreeBasic IDE-poseidonFB(Update 2019.09.07)

User projects written in or related to FreeBASIC.
Munair
Posts: 836
Joined: Oct 19, 2017 15:00
Location: 't Zand, NL
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2017.12.23)

Postby Munair » Jan 05, 2018 16:39

Achaean wrote:I tried installing IUP at my system (Debian Jessie), but even if everything installed successfully, IUP libraries ain't available.
Did someone succeeded, installing IUP on Debian???

To the developer: Installing IUP seems to be buggy (at least for non Ubuntu based systems), so please consider another method of distribution for Poseidon (an AppImage (better option, worldwidth availability) , a repository (Debian based only from my knowledge) etc).

Happy New Year for everyone!!! :-)
To the developer: Best of Luck with it! Seems really promising!!! ;-)
The library libiup.so should be copied to /usr/lib. I had it working on Debian 9. It can be downloaded from the IUP website. However, example code from FB may generate an error due to mixing GTK2 and GTK3 symbols.
Kuan Hsu
Posts: 433
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2018.01.01)

Postby Kuan Hsu » Jan 06, 2018 7:52

dixiony wrote:1. After the declaration of the procedure or function and pressing the Enter key, a procedure or function block is obtained. Can I fix this?

Image

2. After you press the Tab key, sometimes the cursor jumps to two tab stops, rather than one. For example, in the settings there is a tab for three indents, and when the Tab key is pressed, the cursor becomes at the sixth position.

3. In the program settings on the "Keywords" tab, when you change the word list and click the Apply button, all program settings are deleted.

(1) Fixed at rev.350
(2)(3) Can't reproduce them.....><
Munair wrote:
Achaean wrote:I tried installing IUP at my system (Debian Jessie), but even if everything installed successfully, IUP libraries ain't available.
Did someone succeeded, installing IUP on Debian???

To the developer: Installing IUP seems to be buggy (at least for non Ubuntu based systems), so please consider another method of distribution for Poseidon (an AppImage (better option, worldwidth availability) , a repository (Debian based only from my knowledge) etc).

Happy New Year for everyone!!! :-)
To the developer: Best of Luck with it! Seems really promising!!! ;-)
The library libiup.so should be copied to /usr/lib. I had it working on Debian 9. It can be downloaded from the IUP website. However, example code from FB may generate an error due to mixing GTK2 and GTK3 symbols.
Let me test at LMDE 2 Betsy......
I created a LMDE 2 Bestsy live usb then bootup, installed iup-3.23_Linux26g4_64_lib.tar.gz, run poseidonFB......
Image
dixiony
Posts: 29
Joined: Jun 22, 2017 15:21
Location: Volgograd, Russia

Re: FreeBasic IDE-poseidonFB(Update 2018.01.06)

Postby dixiony » Jan 06, 2018 13:09

Many thanks for the timely update!
Achaean
Posts: 51
Joined: Aug 02, 2017 12:54

Re: FreeBasic IDE-poseidonFB(Update 2017.12.23)

Postby Achaean » Jan 08, 2018 0:49

Munair wrote:
Achaean wrote:I tried installing IUP at my system (Debian Jessie), but even if everything installed successfully, IUP libraries ain't available.
Did someone succeeded, installing IUP on Debian???

To the developer: Installing IUP seems to be buggy (at least for non Ubuntu based systems), so please consider another method of distribution for Poseidon (an AppImage (better option, worldwidth availability) , a repository (Debian based only from my knowledge) etc).

Happy New Year for everyone!!! :-)
To the developer: Best of Luck with it! Seems really promising!!! ;-)
The library libiup.so should be copied to /usr/lib. I had it working on Debian 9. It can be downloaded from the IUP website. However, example code from FB may generate an error due to mixing GTK2 and GTK3 symbols.

Correct!!! :-)
Creating symlinks to libiup.so and libiup_scintilla.so, did the trick! :-)
THANKS!!!


EDIT:
Seems like it's better, all files located at /usr/lib64 to be moved at /usr/lib (instead of symlinking).
Kuan Hsu
Posts: 433
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2017.12.23)

Postby Kuan Hsu » Jan 08, 2018 17:42

Achaean wrote:
Munair wrote:
Achaean wrote:I tried installing IUP at my system (Debian Jessie), but even if everything installed successfully, IUP libraries ain't available.
Did someone succeeded, installing IUP on Debian???

To the developer: Installing IUP seems to be buggy (at least for non Ubuntu based systems), so please consider another method of distribution for Poseidon (an AppImage (better option, worldwidth availability) , a repository (Debian based only from my knowledge) etc).

Happy New Year for everyone!!! :-)
To the developer: Best of Luck with it! Seems really promising!!! ;-)
The library libiup.so should be copied to /usr/lib. I had it working on Debian 9. It can be downloaded from the IUP website. However, example code from FB may generate an error due to mixing GTK2 and GTK3 symbols.

Correct!!! :-)
Creating symlinks to libiup.so and libiup_scintilla.so, did the trick! :-)
THANKS!!!,


EDIT:
Seems like it's better, all files located at /usr/lib64 to be moved at /usr/lib (instead of symlinking).

Why not use

Code: Select all

sudo ./install

to install IUP dynamic libs?
Achaean
Posts: 51
Joined: Aug 02, 2017 12:54

Re: FreeBasic IDE-poseidonFB(Update 2017.12.23)

Postby Achaean » Jan 10, 2018 18:19

Kuan Hsu wrote:Why not use

Code: Select all

sudo ./install

to install IUP dynamic libs?

That's what I did, but it installed them at /usr/lib64 (which is wrong for Debian x64, so I moved them to usr/lib (since Debian has /usr/lib for usual libs and /usr/lib32 for x32 ones).
marpon
Posts: 342
Joined: Dec 28, 2012 13:31
Location: Paris - France

Re: FreeBasic IDE-poseidonFB(Update 2018.01.07)

Postby marpon » Jan 12, 2018 12:35

First of all thanks for that nice Ide, i"ve intalled the 64 linux version 0.351 ( i'm neeby in linux)

I"m trying to use it under mint xfce

i can correctly compile but poseidon is not launching the execution
with of without the option "use the console launcher"

if i open the terminal i'am able to execute correctly the compiled program

what i'am doing wrong?
thanks for support
Kuan Hsu
Posts: 433
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2018.01.07)

Postby Kuan Hsu » Jan 12, 2018 13:32

marpon wrote:First of all thanks for that nice Ide, i"ve intalled the 64 linux version 0.351 ( i'm neeby in linux)

I"m trying to use it under mint xfce

i can correctly compile but poseidon is not launching the execution
with of without the option "use the console launcher"

if i open the terminal i'am able to execute correctly the compiled program

what i'am doing wrong?
thanks for support

Thanks for using...^^
Try to install 'mate-terminal' then change default terminal
Set the Default Terminal Emulator on Ubuntu Linux
marpon
Posts: 342
Joined: Dec 28, 2012 13:31
Location: Paris - France

Re: FreeBasic IDE-poseidonFB(Update 2018.01.07)

Postby marpon » Jan 12, 2018 15:23

Thanks a lot, solved now

is it possible to get the consoleLauncher.bas file?
Kuan Hsu
Posts: 433
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2018.01.07)

Postby Kuan Hsu » Jan 12, 2018 15:44

marpon wrote:Thanks a lot, solved now

is it possible to get the consoleLauncher.bas file?

(1)I commit rev.352, it should be no need to download mate-terminal now.
(2)consoleLauncher.bas:

Code: Select all

#if defined(__fb_win32__)
   #include once "crt/stdlib.bi"
   #include once "windows.bi"

   #inclib "shell32"
#endif

dim as string   exeName, args

/'
command(2) = ID
command(2) = consoleX
command(3) = consoleY
command(4) = consoleW
command(5) = consoleH
command(6) = exeName
'/

cls

if( __fb_argc__ >= 6 ) then
   exeName = command(6)
   for i as integer = 7 to __fb_argc__
      args +=  ( " " + command(i-1) )
   next
   
   dim as string _id = command(1), _x = command(2), _y = command(3), _w = command(4), _h = command(5)
   
   dim as integer ID = valint( _id )
   dim as integer X = valint( _x )
   dim as integer Y = valint( _y )
   dim as integer W = valint( _w )
   dim as integer H = valint( _h )
   
   #if defined(__fb_win32__)
   
      if( W <= 0 OR H <=0 ) then
         SetWindowPos( GetConsoleWindow, HWND_TOP, X, Y, 0, 0, SWP_NOSIZE )
      else
         SetWindowPos( GetConsoleWindow, HWND_TOP, X, Y, W, H, SWP_SHOWWINDOW )
      end if
      
   #else
   
      if( X < 0 ) then _x = "-1"
      if( Y < 0 ) then _y = "-1"
      if( W <= 0 ) then
         _w = "-1"
         _h = "-1"
      end if
      if( H <= 0 ) then
         _w = "-1"
         _h = "-1"
      end if

      'if( id > 0 ) then exec( "wmctrl", "-r poseidonFB_terminal -t " + _id )
      exec( "wmctrl", "-r poseidonFB_terminal -e 0," + _x + "," + _y + "," + _w + "," + _h )
      
   #endif
   
   dim as integer result = exec( exeName, trim( args ) )
   if result = -1 then print "error running="; exeName
else
   print "error Args aren't enough!"
end if


#if defined(__fb_win32__)
   system_( "pause" )
#else
   print( "Press any Key to continue...")
   getkey
#endif

end
St_W
Posts: 1478
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2018.01.07)

Postby St_W » Jan 12, 2018 17:06

Kuan Hsu wrote:(2)consoleLauncher.bas:

Just a comment, but wouldn't it be a good idea to put that in the GIT repository?
marpon
Posts: 342
Joined: Dec 28, 2012 13:31
Location: Paris - France

Re: FreeBasic IDE-poseidonFB(Update 2018.01.07)

Postby marpon » Jan 16, 2018 11:59

continuing investigating that good editor, I’ve noticed it can correctly handle the comment block /' '/
but when nested comment blocks the highlight feature is not working correctly

Code: Select all

/'       first level   
   /'      second level     '/
   must stay a comment colour here
 '/


FreeBasic compiler parser can handle infinite nested comment blocks , it could be nice to have that feature working also in the ide ...
St_W
Posts: 1478
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2018.01.14)

Postby St_W » Jan 16, 2018 16:34

Unfortunately code completion really slows down the editor considerably when bigger headers (like the windows headers) are used. Would be great if the performance could be improved or at least the impact on the input lag could be reduced (without turning off code completion completely). Apart from that I really like the editor for qick tests and smaller projects.
Dinosaur
Posts: 1307
Joined: Jul 24, 2005 1:13
Location: Searcy AR USA
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2018.01.14)

Postby Dinosaur » Jan 16, 2018 17:49

Hi All

Finally got some time to re-try Poseidon.
Installed on Linux Mint 18.3 64 Bit.
Using the pdf manual to install this time, meant it installed without a hitch.

Two immediate impressions.
1.Left clicking the "Set Compiler Options" at the bottom left of the screen did nothing.
Right clicking it did the trick. My mouse works perfectly in all other apps, so don't understand why some things need Right click.

2. Went to use debug and it could not find the Target file.
Turns out that the "Project Name" is what it is looking for.
I would have thought that the "Target Name" was what it should look for. (unless there is a good reason)
Did notice that the "Run" button DID pick the right name.

Otherwise I am impressed and will persevere to fully evaluate for my purpose.
EDIT:
3. I cannot get the Debug screen. GDB is present and runs from the Terminal.
Compiled with -g also tried /Debug/Compile with Debug (Success)
Confirmed path to GDB and pasted it in /options/preferences
The output windows shows "Running /home/barfresh/projects/BagMaker/BagMaker......"
No debug window ?
EDIT-2:
3. Had to purge gdb to solve that problem and re-install.
However don't seen to be able to set a break point with Ctrl Left Click.

4. Folding is not saved, and is also erratic. Some Subs fold completely, others leave code behind.
sometimes putting a blank line between subs will do it, other times it won't. At one stage making sure
that the end of the sub was "End Sub" instead of "end sub" seemed to solve some folding issues.
5. No "Fold All" function.
EDIT-3:
6. My projects have a main file with
#Include once "project.bi"

Code: Select all

#Include once "allegro.bi"
#Include once "cgui.bi"
#include once "file.bi"
#Include once "types.bi"
#Include once "declares.bi"
#Include once "presets.bi"
#Include once "IA3125.bi"
#Include Once "Win01.bas"
#Include Once "Win02.bas"
#Include Once "WinHelp.bas"
#Include Once "RunMod00.bas"
#Include Once "RunMod01.bas"
#Include Once "IA3125.bas"

If I press the compile icon it all works correctly
If I /Build/Build Project there are errors that indicate the above includes are not included after
the first file is compiled.
/home/barfresh/projects/BagMaker/IA3125.bas(7) error 41: Variable not declared, usbTimer in 'usbTimer.mSec = CULng((Timer - usbTimer.CalTime) * 1000)'

I suspect I am doing something wrong here with Project setup but what ?
7. Go to Definition / Go to Member Procedure.
This works only from Main bas file (the one with the Project.bi)
If I open other modules and Right Click to go to Definition or Member procedure it doesn't work.
Regards
Kuan Hsu
Posts: 433
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2018.01.07)

Postby Kuan Hsu » Jan 17, 2018 17:30

marpon wrote:continuing investigating that good editor, I’ve noticed it can correctly handle the comment block /' '/
but when nested comment blocks the highlight feature is not working correctly

Code: Select all

/'       first level   
   /'      second level     '/
   must stay a comment colour here
 '/


FreeBasic compiler parser can handle infinite nested comment blocks , it could be nice to have that feature working also in the ide ...

It's scintilla issue, we need modify iupscintilla source code and rebuild them...
St_W wrote:Unfortunately code completion really slows down the editor considerably when bigger headers (like the windows headers) are used. Would be great if the performance could be improved or at least the impact on the input lag could be reduced (without turning off code completion completely). Apart from that I really like the editor for qick tests and smaller projects.

I will add a little trick to impove...

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 3 guests