Compiling .gbas without creating a project?

Previous topic - Next topic

pinete

Hi all,
maybe this is silly question, so sorry in that case..
Is there any way to compile just a simple .gbas file without having to setup a entire project?
sometimes is hard to go through all the steps to create and save a project only to run a .gbas small code.
...
Thanks in advance ;)

Moebius

I don't think this is possible at the moment.  The best way I know of is to leave a project just for running small tests.  I normally just leave it open to quickly run tests.
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
- Random Shack Data Processing Dictionary

Ian Price

Quote from: Ocean on 2011-Mar-27
Quote from: Serpent on 2011-Mar-27
I don't think this is possible at the moment.  The best way I know of is to leave a project just for running small tests.  I normally just leave it open to quickly run tests.

I have a project that's called 'testproject' for just that ;) 
Me too.
I came. I saw. I played.

ampos

I just create a gbas file inside my project called "test" and in the main file, GOSUB TEST: (and also I have a test project...)

pinete

Thanks for the clues guys ;)
sometimes I miss the capability of Blitzbasic to just load & run the code without doing anything more in less than five seconds.. Ok, I know to create a project is not a titanic task, but it is certainly annoying, most of all when you could do all the 'project stuff' in the way of "includes", quicker and easier...
Would be great to have another approach to project creation/management besides the current one.  :doubt:
Thanks!

Ian Price

Quotesometimes I miss the capability of Blitzbasic to just load & run the code without doing anything more in less than five seconds..
If you only want the capabilities of BlitzBasic, then use Blitzbasic. If however you want soooo much more, then use GLBasic. ;)

Yes it may be slightly slower having to create a new project just to run a test (about 30 seconds), but for the amount of extras you get for that little bit of hassle it's definitely worth it. Perhaps you could ask Gernot to improve the IDE so you can just do this - and it is a good idea, however it's not something I really miss from Blitz or other languages. I certainly prefer the number of updates, the multi-platform support (including hand-helds etc.) the 3D and the speed at which new features are integrated and bugs fixed in GLB. Now say the same about BlitzBasic. Oh... :P

Seriously, many users here have used BlitzBasic and BlitzMax etc. and AFAIR This issue has never come up before. Maybe Gernot could implement it and get rid of the whole create new project thing altogether. Dunno.
I came. I saw. I played.

Minion

I must admit I too am one of those few people that miss the simple "compile-n-go" a piece of code without the need for a project set up (being an old DB  user, i never had to do that for any of my old projects). But like Ian says, the benifits outway the losses. So its an extra 15/30 seconds odd to set up a new project. So ? Its simple enough to setup a test project for that purpose and just run another version of GLB whenever you need a quick code test. Yeah, I miss it, but given the choice of doing that , or using GLB I`ll stick with GLB.

pinete

Don't get me wrong Ian, please, ;)

I'm very satisfied using GLBasic, I think GLBasic is a great language, very well suported, with a bunch of updates, what is great. It is an amazing product with a brilliant future, and in the same way that happens with other products, GLBasic has a lot of strengths and, obviously, some (small) weaknesses  :good:

My aim with that kind of comments is just to drop some ideas that maybe could be useful at the moment of updating or improving the IDE, that's all. Something to do easier the live of the users :)

I have to recognize as I told you and as Minion says, the capability of 'start & go' is something I miss. Of course, there are more important stuff to give attention to, you're completely right, but at least, that's my small contribution, I don't want to bother you in any way.  :nw:

I didn't know we could talk with Gernot about the IDE, what is a great news!

Thanks a lot and see you in the forum  :booze:





Ian Price

QuoteDon't get me wrong Ian, please, ;)
I did state that it's a good idea and that you should request it.

Quoteobviously, some (small) weaknesses
You'll notice more, the more you use it, but you learn to live with (or without) some things that other languages offer. However, most of the time a quick request gets you what you want, or someone will offer an alternative solution.

QuoteMy aim with that kind of comments is just to drop some ideas that maybe could be useful at the moment of updating or improving the IDE, that's all. Something to do easier the live of the users :)
Indeed. We all want that :)

QuoteThanks a lot and see you in the forum  :booze:
Looking forward to it :)
I came. I saw. I played.

MrTAToad

The problem is a project file is needed to compile for the correct platform.

Perhaps there could be an option in option, which would compile a non-project file to that platform...

XanthorXIII

I'll be honest, I'd rather see something developed that will benefit all instead of a few cases.
Owlcat has wise