jaPBe 3.13.4 [IDE for PB 4 and PB 5]

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

A global default for new projects would make more sense. An override might be confusing to the user when JaPBe still compiles to the local directory because of the source option.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

%COMPILEFILE and %EXECUTABLE

Post by Mistrel »

I use these variables for some of my tools with the PureBasic IDE. It would be nice if JaPBe supported these so that they could be compatible.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: %COMPILEFILE and %EXECUTABLE

Post by gnozal »

Mistrel wrote:I use these variables for some of my tools with the PureBasic IDE. It would be nice if JaPBe supported these so that they could be compatible.
jaPBe supports the following tool variables (from manual) :

Code: Select all

%PATH
 The path of the current file. 
%FILE
 The file name inclusive the path of the current file. 
%EXECUTABLE
 This will be replaced by the name of the executable that was created in with the last "Create Executable" [F7].
 For the "After Compile/Run" trigger, this will be replaced with the name of the temporary executable file created by the compiler [F5]/[F6].
 Note : this parameter is only available for PB versions >= 4.10. 
%TEMPFILE
 The current source code is saved in a temporary file, and the filename is inserted here. You may modify or delete the file at will. 
%COMPILEFILE
 This is replaced with the temporary file that is sent to the compiler for compilation. By modifying this file, you can actually change what will be compiled 
%CURSOR
 This will be replaced by the current cursor position, in the form of LINExCOLUMN. 
%WORD
 Contains the word currently under the cursor. 
%JAPBE
 This will be replaced by the jaPBe main window handle. 
%SCI
 This will be replaced by the Scintilla window handle.
If it isn't enough, jaPBe also supports the PB_TOOL_* environment variables (see PB help for more details).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

Post by eriansa »

a very big "thank you" to you sir!
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Post by Kukulkan »

Hi Mistrel,
A global default for new projects would make more sense.
This is exactly what I meant with "global definition".

A project-option with a global set default value.

100% ACK.

Kukulkan
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Post by Kukulkan »

Hi gnozal,
added 'Create temp EXE in source dir' in project options
:D Not tested yet, but thank you very much! :D

Kukulkan
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Post by dobro »

Kukulkan wrote:Hi gnozal,
added 'Create temp EXE in source dir' in project options
:D Not tested yet, but thank you very much! :D

Kukulkan
ouaip pareil !! :) ( yes ! +1 :) )
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post by Dummy »

In the latest version JaPBe hangs for several seconds while starting up. This slows down the general startup process of JaPBe what is really annoying when starting and closing JaPBe often as I do.
Please fix it (JaPBe Version 3.8.5.702)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Dummy wrote:In the latest version JaPBe hangs for several seconds while starting up. This slows down the general startup process of JaPBe what is really annoying when starting and closing JaPBe often as I do.
Please fix it (JaPBe Version 3.8.5.702)
1. It noticed a delay with PB4.20 too if 'Load constants from residents' is enabled. If it is the case, disable it. I don't know why, no change in the code.
2. No other delay here. The PBCompiler pipe communication code in jaPBe hasn't changed either. Maybe something changed on compiler side.
3. The only change in startup code between build 701 and 702 is the PB version information in the title bar (displayed when PBCompiler is ready).
4. Btw, why do you need 'starting and closing JaPBe often' ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post by Dummy »

gnozal wrote:
Dummy wrote:In the latest version JaPBe hangs for several seconds while starting up. This slows down the general startup process of JaPBe what is really annoying when starting and closing JaPBe often as I do.
Please fix it (JaPBe Version 3.8.5.702)
1. It noticed a delay with PB4.20 too if 'Load constants from residents' is enabled. If it is the case, disable it. I don't know why, no change in the code.
2. No other delay here. The PBCompiler pipe communication code in jaPBe hasn't changed either. Maybe something changed on compiler side.
3. The only change in startup code between build 701 and 702 is the PB version information in the title bar (displayed when PBCompiler is ready).
4. Btw, why do you need 'starting and closing JaPBe often' ?
1. I did notice that an hour after that post, too. But disabbling is not a real solution as I use the autocompletition feature very often for constants.
2. Same here it's just the "loading residents..." step
3. I don't update my JaPBe very often and I don't remember what the last version before was.
4. It's some kind of a bad habbit that mainly comes from the fact that I use a special utility to build my projects and close the editor before compiling to enshure that the running compiler of JaPBe doesn't disturb the compilation process.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- fixed delay when starting jaPBe with PB4.20 and 'Load constants from residents' is enabled
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post by Dummy »

gnozal wrote:Update

Changes :
- fixed delay when starting jaPBe with PB4.20 and 'Load constants from residents' is enabled
Thanks for fixing it :)
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

Post by eriansa »

Latest update (with "Create temp exe in source directory) contains an annoyance : the editor (when using multi source files) allways reverts after compilation to the main file.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

eriansa wrote:Latest update (with "Create temp exe in source directory) contains an annoyance : the editor (when using multi source files) allways reverts after compilation to the main file.
Should be fixed.
Download updated.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
ebs
Enthusiast
Enthusiast
Posts: 557
Joined: Fri Apr 25, 2003 11:08 pm

Command Line Bug?

Post by ebs »

I believe I have found a bug when specifying the program command line in jaPBe.
Here is a simple program to demonstrate the bug:

Code: Select all

Artist.s = ProgramParameter()
Album.s = ProgramParameter()
Title.s = ProgramParameter()

MessageRequester(#Null$, Artist + #CRLF$ + Album + #CRLF$ + Title) 
In jaPBe, I set the command line to:

Code: Select all

"Artist Name" "Album Name" "Song Name"
and run the program. The message box shows:

Code: Select all

Artist

Name"
which is not correct.

Running the compiled program with the same command line,
or running it in the standard PB editor produces the expected results:

Code: Select all

Artist Name
Album Name
Song Name
I am running jaPBe 3.7.11.677 and PB 4.20. Can someone confirm this?

Regards,
Eric
Post Reply