Compile only current file in the project

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Nico
Enthusiast
Enthusiast
Posts: 274
Joined: Sun Jan 11, 2004 11:34 am
Location: France

Compile only current file in the project

Post by Nico »

[French]
Possibilité de compiler seulement la source en cours d'affichage dans l'éditeur lorsque celle ci fait parti d'un projet

[English]
Ability to compile only current source currently displayed in the editor when it is part of a project
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: Compile only current file in the project

Post by Didelphodon »

+1
Go, tell it on the mountains.
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Compile only current file in the project

Post by Shield »

+1, sounds useful. :)
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Compile only current file in the project

Post by STARGÅTE »

why?
in a project are many files with include, so you can't compile it alone.

And with compiler targets you can add some other files as main codes, to compile it "alone".
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Compile only current file in the project

Post by skywalk »

I enjoy this 'feature' now by NOT using projects. :wink:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Compile only current file in the project

Post by Danilo »

STARGÅTE wrote:why?
in a project are many files with include, so you can't compile it alone.
I have a project consisting of 1 (One) Include File (~10.000 lines) for a library and 180 examples (all together ~23.500 LOC).
I can compile and execute all examples with a button press, but sometimes it would be nice to only compile
the current example file I am working on. If I press F5, always all 180 examples compile.
Should I make 180 targets now, for compiling/testing one out of 180 examples? I don't have time to do that,
so I understand this feature request. Compile only currently opened file of a big project (in my case, one of the 180 example files,
which also compile stand-alone, because every example contains "XInclude "xyz.pbi").

Would be nice, +1.
Post Reply