[IDE] Add Syntax-Check for open file

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
HeX0R
Addict
Addict
Posts: 992
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

[IDE] Add Syntax-Check for open file

Post by HeX0R »

If I have a project open, which contains a main exe and a DLL, and I just want to do a quick syntax check of my DLL it is quite annoying,
that clicking the "do syntax check" will always only check the main file and not my selected dll file.

From my point of view you could just change the behaviour of the syntax check to always check the selected file and not the main project file.
I can't imagine any scenario, were you want to check a file you are not looking to.
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: [IDE] Add Syntax-Check for open file

Post by #NULL »

I just wondered if the feature doesn't work. I have a pb code template file that i checked but got no syntax errors where I should. I didn't even know it uses the mainfile. I have a mainfile set so i can F5/compile/run from that file, but the file gets only included via IncludeBinary so the syntax check never reaches the file.
Fred
Administrator
Administrator
Posts: 16687
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [IDE] Add Syntax-Check for open file

Post by Fred »

Syntax check actually launch a regular compilation in a special mode, so it's exactly like launching the program (that's why it uses the main file and can't run only on the selected file).
Post Reply