FreeBasic IDE-poseidonFB(Update 2019.09.07)

User projects written in or related to FreeBASIC.
MrSwiss
Posts: 3307
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: FreeBasic IDE-poseidonFB(Update 2018.02.27)

Postby MrSwiss » Feb 28, 2018 16:09

caseih wrote:Never include .bas files. With a proper build system there's just no reason to ever do this. Only include .bi files. In fact with an IDE you really can't include .bas files without leading to errors as you've found.
I simply don't see the difference (if using a .bi):
  • #Include "module1.bas"
  • #Include "(lib)module1(.a)" ... without the stuff in parenthesis, of course ...
To the compiler/IDE both should be equal in handling ... (linking: with or without,
compiling the module)!

As FBEdit user, I've never encountered similar problems, you apparently refer to?!?
Independent of: a project file is there/existing or not used, at all.

@Dinosaur,
I think you and caseih are NOT talking about the same thing:
you: project.bi (holding all required includes) -- where as caseih --
IDE specific project file (includes more information than just a single MAIN.BAS,
call it a "IDE.project.ini", for want of a better explanation)

Therefore, I think that: you should NOT use, the "project" option ... since, this
seems to produce the duplicates (you do it all *manually*, in "project.bi"!).
Kuan Hsu
Posts: 433
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2018.02.27)

Postby Kuan Hsu » Feb 28, 2018 17:19

OK, I got it and sometime I feel that the design of freeBASIC IDE is more complicated than D language......^^

Besides the #include *.bi/*.bas problems( it's not controlled by poseidonFB ), I get some idea...
(1) Expend the Right-Click on "Run" toolbar button, let it can select *.exe in project dir.
(2) Add toggle item at "Project Panel", if the item is toggled will send to compiler.

I like (1) only, because my coding style is just like caseih says......
Last edited by Kuan Hsu on Mar 03, 2018 3:51, edited 1 time in total.
MrSwiss
Posts: 3307
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: FreeBasic IDE-poseidonFB(Update 2018.02.27)

Postby MrSwiss » Feb 28, 2018 17:48

@Kuan Hsu,

I don't think that Dinosaur's issue, has any impact on the IDE ... see previous post.
Dinosaur
Posts: 1310
Joined: Jul 24, 2005 1:13
Location: Searcy AR USA
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2018.02.27)

Postby Dinosaur » Feb 28, 2018 17:55

Hi All

MrSwiss, I agree.
Therefore, I think that: you should NOT use, the "project" option ... since, this
seems to produce the duplicates (you do it all *manually*, in "project.bi"!).


Being in control of the order in which the system is compiled makes it very clear to me.

Regards
sancho3
Posts: 358
Joined: Sep 30, 2017 3:22

Re: FreeBasic IDE-poseidonFB(Update 2018.02.27)

Postby sancho3 » Mar 01, 2018 6:24

@caseih:
In FBEdit the project consists of any kind of file. Not all of them are necessarily going to be compiled. You select a "main" file and only that and the #included files are compiled.
It is also the case that if in fileA.bas you need to reference a procedure in fileB.bas, you will need to include it somehow in fileA.
That usually means #include "fileB.bas" at the top of fileA.bas.
Does PoseidenFB somehow give you access accross files without #include?
Kuan Hsu
Posts: 433
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2018.02.27)

Postby Kuan Hsu » Mar 03, 2018 3:03

Every one has their coding style and habit, so I'll add a little option to Pass all project sources / One source file to FBC while building project:
Image
How to use:
(1) Open "Project Properties" dialog
(2) Toggle "Pass One File To Compiler" on
(3) Set "Main File" without ext
(4) Then "Build Project" / "ReBuild Project" will only pass one source file to FBC
sancho3
Posts: 358
Joined: Sep 30, 2017 3:22

Re: FreeBasic IDE-poseidonFB(Update 2018.02.27)

Postby sancho3 » Mar 03, 2018 4:13

Ubuntu continues to frustrate me.
I have downloaded Poseiden and installed it. When I try to run it nothing happens.
I downloaded IUP but where and how do I install it?

EDIT:
IUP is to be extracted into the Poseiden folder.
You must then go into the terminal in the Poseiden folder (right click and select open in terminal).
Type sudo ./install
Enter your password. and that should do it.
Kuan Hsu
Posts: 433
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2018.02.27)

Postby Kuan Hsu » Mar 03, 2018 5:44

sancho3 wrote:Ubuntu continues to frustrate me.
I have downloaded Poseiden and installed it. When I try to run it nothing happens.
I downloaded IUP but where and how do I install it?

EDIT:
IUP is to be extracted into the Poseiden folder.
You must then go into the terminal in the Poseiden folder (right click and select open in terminal).
Type sudo ./install
Enter your password. and that should do it.

Please check the manual:https://bitbucket.org/KuanHsu/poseidonfb/downloads/
sancho3
Posts: 358
Joined: Sep 30, 2017 3:22

Re: FreeBasic IDE-poseidonFB(Update 2018.03.03)

Postby sancho3 » Mar 04, 2018 2:32

Just a note about the manual. It says:
Extract the archive to our created folder

but nowhere are we told to create a folder (except under the Windows instructions).
I had already downloaded IUP3.24 (the latest) but I put it in a sub folder to poseiden and couldn't install it.
I downloaded 3.22 and put it in the Poseiden folder and was able to install it.
IUP must be installed in the same folder as Poseiden.
Also permissions are going to be a problem to a new Linux user like myself.
The latest IUP comes with a script file called 'fix_permissions'. I ran that to overcome the usual permissions problems on the Poseiden folder.
You might want to add the actual permissions override to the manual.

I am not frustrated by your IDE, just a little by Ubuntu.

One more question. I thought your IDE auto-completed block commands like Type/End Type, If/End If, With/End With. It doesn't seem to and I can't see an option for it in the preferences. Is this available?

And I will also add that it works very well, compiles and runs my first tests, looks good, calls up the manual properly. I already like it better than Geany. Thanks.
Kuan Hsu
Posts: 433
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2018.03.03)

Postby Kuan Hsu » Mar 04, 2018 3:50

sancho3 wrote:Just a note about the manual. It says:
Extract the archive to our created folder

but nowhere are we told to create a folder (except under the Windows instructions).
I had already downloaded IUP3.24 (the latest) but I put it in a sub folder to poseiden and couldn't install it.
I downloaded 3.22 and put it in the Poseiden folder and was able to install it.
IUP must be installed in the same folder as Poseiden.
Also permissions are going to be a problem to a new Linux user like myself.
The latest IUP comes with a script file called 'fix_permissions'. I ran that to overcome the usual permissions problems on the Poseiden folder.
You might want to add the actual permissions override to the manual.

I am not frustrated by your IDE, just a little by Ubuntu.

One more question. I thought your IDE auto-completed block commands like Type/End Type, If/End If, With/End With. It doesn't seem to and I can't see an option for it in the preferences. Is this available?

And I will also add that it works very well, compiles and runs my first tests, looks good, calls up the manual properly. I already like it better than Geany. Thanks.

1.
(a) Download the IUP archive
(b) Extract to a folder at anywhere ( My habit: create a IUP folder on desktop, open the archive, drag the files/folders to new IUP folder )
(c) Open a terimal ( Right-click the folder )
(d) Key in sudo ./install
(e) It Should be worked~~
I only test IUP3.24 once, but still use sudo ./install to install

2.
Image
3.
Thank for using~~^^
sancho3
Posts: 358
Joined: Sep 30, 2017 3:22

Re: FreeBasic IDE-poseidonFB(Update 2018.03.03)

Postby sancho3 » Mar 04, 2018 4:24

I checked and unchecked and rechecked auto insert block end and it is not working.
Tried If, While, Do, For, Type none of them work
Kuan Hsu
Posts: 433
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2018.03.03)

Postby Kuan Hsu » Mar 04, 2018 6:03

sancho3 wrote:I checked and unchecked and rechecked auto insert block end and it is not working.
Tried If, While, Do, For, Type none of them work
??
Image
sancho3
Posts: 358
Joined: Sep 30, 2017 3:22

Re: FreeBasic IDE-poseidonFB(Update 2018.03.03)

Postby sancho3 » Mar 04, 2018 8:20

Mine looks exactly like that except it doesn't give me the end blocks.
Version .370 on Ubuntu.
And now somehow my preferences window has become huge. Bigger than the monitor.

Overnight my preferences window has returned to normal size. But it is slightly different from the one you show here.
Instead of "Auto Block Insert End", it says "Block Complete".
Also changing the maker color doesn't fill the entire shape but just a small line. In the image below maker0 has been changed to red:
Image
Kuan Hsu
Posts: 433
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2018.03.03)

Postby Kuan Hsu » Mar 05, 2018 16:39

sancho3 wrote:And now somehow my preferences window has become huge. Bigger than the monitor.

I modified some code about dialog size at rev.373
sancho3 wrote:Overnight my preferences window has returned to normal size. But it is slightly different from the one you show here.
Instead of "Auto Block Insert End", it says "Block Complete".

That's because you choose "Options"->"Language"->"Choose Language..."->English.lng not default
Anyway, the auto insert block end is work or not?
sancho3 wrote:Also changing the maker color doesn't fill the entire shape but just a small line. In the image below maker0 has been changed to red:

The button border is too big but no IUP attribute to adjust.....>"<
sancho3
Posts: 358
Joined: Sep 30, 2017 3:22

Re: FreeBasic IDE-poseidonFB(Update 2018.03.04)

Postby sancho3 » Mar 06, 2018 5:36

Auto Insert Block End is not working.

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest