FreeBasic IDE-poseidonFB(Update 2024.03.03)

User projects written in or related to FreeBASIC.
Post Reply
Makoto WATANABE
Posts: 231
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by Makoto WATANABE »

Dear Kuan Hsu;

Please use it at the next opportunity.
https://makoto-watanabe.main.jp/Japanese.zip

P.S.
Please delete the "JapanesePack.zip" registered and linked on your site as it is outdated.
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by Kuan Hsu »

UEZ wrote:Thanks, seems to work properly with your DLL but when I try to compile it I still get the em:
...FBStyle.bas(946) error 42: Variable not declared, IupMessageError in 'IupMessageError( POSEIDON_HANDLE, "Sorry, this plugin is for freeBASIC use only!" )'
If I comment it out then I can compile the code to a DLL.
The IupMessageError is new IUP function since 3.22, freeBASIC's header package is too outdated, so even using 3.27 library, the function is not be declared.
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by Kuan Hsu »

Makoto WATANABE wrote:Dear Kuan Hsu;

Please use it at the next opportunity.
https://makoto-watanabe.main.jp/Japanese.zip

P.S.
Please delete the "JapanesePack.zip" registered and linked on your site as it is outdated.
OK, the language file I will commit at next rev.
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by demosthenesk »

Hello,
i have developed a temperature calculation programm.
It compiles fine but it can not run in mate-terminal.

see
https://bitbucket.org/KuanHsu/poseidonf ... e-terminal

The bas file is the following: temperatures.bas

Code: Select all

Function FarToCel(F As Double) As Double
	Return (5/9*(F-32))
End Function

Function CelToFar (C As Double) As Double
	Return (C*9/5+32)
End Function

Dim inputTemperature As Double = 0.0
Dim iChoice As Integer = 0

Do
	Print "Choose an option:"
	Print "1 For Fahrenheit To Celsius"
	Print "2 For Celsius To Fahrenheit"
	Print "3 For exit..."
	Input iChoice
	
	Select Case iChoice
	Case 1
		Input "Input temperature in Fahrenheit: ", inputTemperature
		Print "C= " ; FarToCel(inputTemperature)
	Case 2
		Input "Input temperature in Celsius: ", inputTemperature
		Print "F= " ; CelToFar(inputTemperature)
	Case 3
		Exit Do
	End Select
Loop
However, it runs normallly from mate-terminal by hand
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by Kuan Hsu »

(1) Make Sure that the 'Terminal Path' already been set
Image
Or try setting the 'Terminal Path' = xterm instead of mate-terminal, xterm already in ubuntu mate, no need to install, in my test, mate-terminal crash sometimes...

(2)The underline issue, please see https://www.scintilla.org/ScintillaDoc. ... TRADESCENT
On linux AppImage version, open ~/.poseidonFB/settings/editorSettings.ini, then set Line65: EXTRADESCENT=1 or change the font, ex: Ubuntu Mono Regular
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by demosthenesk »

The terminal path is correct.
Don't run with quick run.
Make a project and try to build it and run it. Run a project fails for any project i tried.
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by Kuan Hsu »

demosthenesk wrote:The terminal path is correct.
Don't run with quick run.
Make a project and try to build it and run it. Run a project fails for any project i tried.
Is compile/build is fine, but run fail?
I think the problem is about terminal, but I install all new Ubuntu mate on vm, then install FBC compiler and poseidonFB, test are all OK.....(like the picture I post)
I will add some code to test the terminal is exists or not, that is very stranger......
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by demosthenesk »

Kuan Hsu wrote:
demosthenesk wrote:The terminal path is correct.
Don't run with quick run.
Make a project and try to build it and run it. Run a project fails for any project i tried.
Is compile/build is fine, but run fail?
I think the problem is about terminal, but I install all new Ubuntu mate on vm, then install FBC compiler and poseidonFB, test are all OK.....(like the picture I post)
I will add some code to test the terminal is exists or not, that is very stranger......
when i run project ... a mate-terminal pops up but empty and then it closes immediately.
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by demosthenesk »

i found the problem...

If in project path there are spaces it fails to run.

for example the following one fails to run.
Running /home/user/Documents/DEVELOPMENT/FreeBasic/Test Space Folder/Project1/./Temperatures

for example the following succeed to run.
Running /home/user/Documents/DEVELOPMENT/FreeBasic/Project1/./Temperatures
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by Kuan Hsu »

demosthenesk wrote:i found the problem...

If in project path there are spaces it fails to run.

for example the following one fails to run.
Running /home/user/Documents/DEVELOPMENT/FreeBasic/Test Space Folder/Project1/./Temperatures

for example the following succeed to run.
Running /home/user/Documents/DEVELOPMENT/FreeBasic/Project1/./Temperatures
Now I understand, I will fix it.^^

Please test rev.465
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by demosthenesk »

Kuan Hsu wrote:
demosthenesk wrote:i found the problem...

If in project path there are spaces it fails to run.

for example the following one fails to run.
Running /home/user/Documents/DEVELOPMENT/FreeBasic/Test Space Folder/Project1/./Temperatures

for example the following succeed to run.
Running /home/user/Documents/DEVELOPMENT/FreeBasic/Project1/./Temperatures
Now I understand, I will fix it.^^

Please test rev.465
Yes you fix it.
Thanks !
Tiranas
Posts: 5
Joined: Oct 12, 2018 19:55
Location: Russian

Re: FreeBasic IDE-poseidonFB(Update 2021.09.21)

Post by Tiranas »

After update
Image
Image
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.09.21)

Post by Kuan Hsu »

The issue occurs while opening a file, but I can't reproduce this issue everytime, sometimes it happen suddenly that I can't expected......

All my test and try that I can't know it's be fixed or still buggy, I feel defeated......

Maybe rewrite the file loader?.......
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.09.21)

Post by aurelVZAB »

so ..problem is in iUP
why not use default file load from windows api?
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: FreeBasic IDE-poseidonFB(Update 2021.09.21)

Post by MrSwiss »

aurelVZAB wrote:so ..problem is in iUP, why not use default file load from windows api?
Maybe because IUP is cross platform ?? (WIN/LIN and, probably more)
Post Reply