FreeBasic IDE-poseidonFB(Update 2024.03.03)

User projects written in or related to FreeBASIC.
Post Reply
UEZ
Posts: 988
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2023.07.20)

Post by UEZ »

Yes, with poseidonFB rev.504 it works opening the helpfile when pressing F1.

I made a clean installation of poseidonFB_x64_rev509 and it worked, too. I assume that something other is wrong - maybe with editorSettings.ini.

I need to to do more tests...

Edit: seems to be a problem with the customCompilerOptions section.

With this settings the helpfile will not be shown:

Code: Select all

[customCompilerOptions]
current=GCC (-gen gcc -Wc -Ofast -Wc -march=native)
none=None Custom Compile Option
name=-gen gcc -Wc -Ofast%::% GCC (-gen gcc -Wc -Ofast)
name=%::% -gen gcc -Wc -Ofast -Wc -march=native -Wc -funroll-loops -Wc -mfpmath=sse%::% GCC (-gen gcc -Wc -Ofast+)
name=-gen gcc -Wc -Ofast -Wc -march=native%::% GCC (-gen gcc -Wc -Ofast -Wc -march=native)
name=-gen gcc -Wc -Os%::% GCC (-gen gcc -Wc -Os)
name=-gen gcc -Wc -O2%::% GCC (-gen gcc -Wc -O2)
name=%::% -gen gcc -Wc -O3%::% GCC (-gen gcc -Wc -O3)
name=-gen gcc -O 3%::% GCC (-gen gcc -O 3)
name=-fpu SSE -vec 2 -O max%::% Optimized (-fpu SSE -vec 2 -O max)
name=-gen gas%::% GAS x86
name=%::% -gen gas64%::% GAS x64
name=-dll -export%::% DLL
name=%::% -g -exx%::% Debug
name=%::% -gen gcc -Wc -O3 -fpu sse -O 3 -fpmode fast -asm intel -arch pentium4-sse3%::% Test
Must be name=%::% ...
Kuan Hsu
Posts: 587
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2023.07.20)

Post by Kuan Hsu »

I'm glad that issue is gone, but in my test, use your customCompilerOptions on Win10 are fine, I still don't know what's going on...@@

I noted that you use many custom options, but at new reversion that are not used on project( the ruler is changed by project settings first), I thinks I will change the rule: If project's focus is NULL AND project's compiler options is NULL, then use custom options.

Have a nice day! :D
VANYA
Posts: 1839
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2023.07.20)

Post by VANYA »

Hi Kuan Hsu!

Platform Linux x86-64:

Problem with latest release appimage rev509:
core.exception.RangeError@/home/nagahirokyo/桌面/poseidonFB2/IDE.d(38): Range violation
----------------
??:? onRangeError [0x68037a]
??:? _d_arrayboundsp [0x65bfb5]
??:? bool IDE.IDECONFIG.loadLocalization() [0x501c35]
??:? void IDE.IDECONFIG.loadINI() [0x50bae7]
??:? void layout.createEditorSetting() [0x59afac]
??:? _Dmain [0x5d63cd]
And one more question:

Help in release 504 is launched from the menu. But it doesn't work with F1 if you click on a keyword (e.g. Screen , Sleep , ...).
Kuan Hsu
Posts: 587
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2023.07.20)

Post by Kuan Hsu »

VANYA wrote: Jul 23, 2023 3:43 Hi Kuan Hsu!

Platform Linux x86-64:

Problem with latest release appimage rev509:
core.exception.RangeError@/home/nagahirokyo/桌面/poseidonFB2/IDE.d(38): Range violation
----------------
??:? onRangeError [0x68037a]
??:? _d_arrayboundsp [0x65bfb5]
??:? bool IDE.IDECONFIG.loadLocalization() [0x501c35]
??:? void IDE.IDECONFIG.loadINI() [0x50bae7]
??:? void layout.createEditorSetting() [0x59afac]
??:? _Dmain [0x5d63cd]
And one more question:

Help in release 504 is launched from the menu. But it doesn't work with F1 if you click on a keyword (e.g. Screen , Sleep , ...).
(1) poseidonFB will load language*.lng to associative arrays, the issue is because the key of AA incorrect, I'll fix it at rev.510( if the loaded key not in AA, skip it! )
The quick way is to edit ~/.poseidonFB/settings/editorSettings.ini, set Line 2 to nothing:

Code: Select all

language=
(2) On Linux or Windows? like UEZ's post, I feel there are sometings stranger, but I still not find that yet......
VANYA
Posts: 1839
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2023.07.20)

Post by VANYA »

(1) poseidonFB will load language*.lng to associative arrays, the issue is because the key of AA incorrect, I'll fix it at rev.510( if the loaded key not in AA, skip it! )
The quick way is to edit ~/.poseidonFB/settings/editorSettings.ini, set Line 2 to nothing:
language=

works

language=Russian

does not work. The same errors that I mentioned above. Older versions work with language=Russian
(2) On Linux or Windows? like UEZ's post, I feel there are sometings stranger, but I still not find that yet......
Linux
Kuan Hsu
Posts: 587
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2023.07.20)

Post by Kuan Hsu »

Dear VANYA:
In my test, rev510 seem to OK....
Image
VANYA
Posts: 1839
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2023.07.23)

Post by VANYA »

rev510:

1) language russian - ok! (problem solved)

2) F1 on keyword doesn't work. The CHMVIEW program is not even called from PoseidonFB.
Tell me, is it necessary to specify the path in the "HTML App Path"? I tried with and without it - the result is the same.
VANYA
Posts: 1839
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2023.07.23)

Post by VANYA »

I tested it on another system.

Debian GNU/Linux 12 bookworm (x86-64) - F1 on keyword work. (OK!)
Linux mint 19 (x86-64) - F1 on keyword do not work. (Not OK!)
Kuan Hsu
Posts: 587
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2023.07.23)

Post by Kuan Hsu »

VANYA wrote: Jul 23, 2023 16:34 I tested it on another system.

Debian GNU/Linux 12 bookworm (x86-64) - F1 on keyword work. (OK!)
Linux mint 19 (x86-64) - F1 on keyword do not work. (Not OK!)
On Linux, please set the FB_manual be the first one manual item
I will add some code to check the all the chm fullpath include "FB-manual" to check if the freeBASIC's help chm is, but if chm had renamed, it will not work~~
I will add an note in manual setting dialog

poseidon's code about F1-keyword on linux:
It support xchm / kchmviewer / CHMVIEW, if the app path is null, use CHMVIEW in appimage

Code: Select all

if( GLOBAL.manuals.length > 0 )
{
	string[] _splitWords = Array.split( GLOBAL.manuals[0], "," ); // <-THIS ONE
	if( _splitWords.length == 2 )
	{
		if( _splitWords[1].length )
		{
			switch( Path.stripExtension( Path.baseName( GLOBAL.linuxHtmlAppName ) ) )
			{
				case "xchm":
					IupExecute( toStringz( GLOBAL.linuxHtmlAppName ), toStringz( "\"file:" ~ _splitWords[1] ~ "#xchm:/KeyPg" ~ keyWord ~ ".html\"" ) );	// xchm "file:/home/username/freebasic/FB-manual-1.05.0.chm#xchm:/KeyPg%s.html"
					break;
				case "kchmviewer":
					IupExecute( toStringz( GLOBAL.linuxHtmlAppName ), toStringz( "--stoc " ~ keyWord ~ " /" ~ _splitWords[1] ) );	// "kchmviewer --sindex %s /chm-path
					break;
				case "CHMVIEW":
					IupExecute( toStringz( GLOBAL.linuxHtmlAppName ), toStringz( _splitWords[1] ~ " -p KeyPg" ~ keyWord ~ ".html" ) );
					break;
				default:
					IupExecute( "./CHMVIEW", toStringz( _splitWords[1] ~ " -p KeyPg" ~ keyWord ~ ".html" ) );
			}
			bExitFlag = true;
		}
	}
}
VANYA
Posts: 1839
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2023.07.23)

Post by VANYA »

Hi Kuan Hsu!

It seems to me that the problem may be in the duplication of the F1 key. Look at the key dialog (this is the default):

Image

Maybe when I click on the keyword the editor tries to display the type?
VANYA
Posts: 1839
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2023.07.23)

Post by VANYA »

Debian GNU/Linux 12 bookworm (x86-64):

F1 on keyword work. (OK!)
F1 show type do not work (Not OK!) - dialog Bug

Linux mint 19 (x86-64):

F1 on keyword do not work. (Not OK!)
F1 show type work (OK!)
Kuan Hsu
Posts: 587
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2023.07.23)

Post by Kuan Hsu »

The shortcut is OK, default Press F1, poseidonFB will check if keyword is, if yes, lookup the chm; if not, then look the parsed tree nodes.

If click the manual menu item can open the chm = The chm viewer work OK and the path of chm is set OK
Then the issue become very strange, I compare the source code, except for the first item setting, I have no idea,,,,,,@@
shadow008
Posts: 86
Joined: Nov 26, 2013 2:43

Re: FreeBasic IDE-poseidonFB(Update 2023.07.31)

Post by shadow008 »

I've been trying out this IDE for the past few months and I have to say it's quite nice. Good work.

I've found a fun little bug though:
- Create a new source file.
- type "using"
- Get a bunch of popups and watch poseidonFB crash

Yes, the source file should actually look like this:

Code: Select all

using
Kuan Hsu
Posts: 587
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2023.07.31)

Post by Kuan Hsu »

shadow008 wrote: Jul 31, 2023 15:39 I've been trying out this IDE for the past few months and I have to say it's quite nice. Good work.

I've found a fun little bug though:
- Create a new source file.
- type "using"
- Get a bunch of popups and watch poseidonFB crash

Yes, the source file should actually look like this:

Code: Select all

using
Just like: https://bitbucket.org/KuanHsu/poseidonf ... e-function?
It should be fixed after rev.510, If you still got the issue, please paste the popup dialog and tell me what reversion and OS you use, thanks~
shadow008
Posts: 86
Joined: Nov 26, 2013 2:43

Re: FreeBasic IDE-poseidonFB(Update 2023.08.06)

Post by shadow008 »

I finally got around to upgrading to revision 520, and everything looks fine on windows 11. No more bug.

Edit:
In cleaning up the old version, I noticed that poseidonFB does not clean up all temporary files. Specifically, if you specify compiler flags -pp (save macro expansion code), or -R (save .asm and .c intermediary files), then poseidonFB does not clean those up and they just keep accumulating, particularly if they're temporary files.

I had to delete a whole mountain of files looking like:
poseidonTemp7295.asm
poseidonTemp7295.c
Post Reply