jaPBe 3.13.4 [IDE for PB 4 and PB 5]

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

Moderator: gnozal

JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

Hi gnozal
Can you add a shortcut Ctrl-[ and Ctrl-]. Most editors have this and if you press this while cursor is in }, cursor will go to its partner {.

If you will press the shortcut (Ctrl-[) while example in keyword EndIf, the cursor will go to partner If.
Iif EndProcedure, cursor will go to Procedure.
If ) it will go to the highlighted (.

Benefit:
Easier to go to the Open/Close keyword if the code is very long without scrolling up or down searching.
Or possibly to avoid something like this: here

PS: If only the codebase is v4.x I will play on it and try to add that before asking. :oops:

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
Hurga
Enthusiast
Enthusiast
Posts: 148
Joined: Thu Jul 17, 2003 2:53 pm
Contact:

Post by Hurga »

Seems a good idea for me - in general...
The problem i see is the Key [.
On somekeyboards you have to press ALT + (Whatsoever) to get this char.
With Crtl + Alt + 8 (on my keyboard) its not so comfortable...Maybe a bit an "international" key to choose..
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

Visual Studio uses Ctrl-[ and Ctrl-]
And also crimson editor and others.

Maybe a feature to customize our own shortcut?

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
Hurga
Enthusiast
Enthusiast
Posts: 148
Joined: Thu Jul 17, 2003 2:53 pm
Contact:

Post by Hurga »

I didnt use Visual Sudio by the way... and I never will :twisted:

A customizeable shortcut would be fine for me
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- this release should fix jaPBe sometimes freezing while processing successive undos (CTRL+Z/CTRL+Z/CTRL+Z/....)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Niffo
Enthusiast
Enthusiast
Posts: 504
Joined: Tue Jan 31, 2006 9:43 am
Location: France

Post by Niffo »

gnozal wrote:Update

Changes :
- this release should fix jaPBe sometimes freezing while processing successive undos (CTRL+Z/CTRL+Z/CTRL+Z/....)
Oh yeah :) That still arrived to me yesterday.
Niffo
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- Tools setup : fixed %TEMPFILE
- Tools setup : added %COMPILEFILE
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

japbe .. the only way i role ;)

http://www.liquidbuzz.com/images/pb/desktop1.jpg

- np
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Post by X »

Any chance to add the following (ripped from 4.10 windows notes)

Code: Select all

- the temporary exe can be created in the source directory 
Into the project options window? It currently breaks getting the actual exe path right now :(
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

X wrote:Any chance to add the following (ripped from 4.10 windows notes)

Code: Select all

- the temporary exe can be created in the source directory 
Into the project options window?
When using PB4.10, jaPBe uses the windows temp directory to create the temporary exe (when using PB4.0x, it's created in \Compilers).
X wrote: It currently breaks getting the actual exe path right now :(
What do you mean with 'getting the actual exe path' ?
Look in %TEMP% instead of \Compilers.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Post by X »

Like the following directory structure

/client
/client/bin-src
/client/data

The source code is in the /client/bin-src directory, thus would be the exe when compiled. The pref file would be in the /client/data directory. Normally, I would grab the exe's location, and do something like

Code: Select all

exepath$ + "\..\data\config.ini" 
How would this be possible now that the exe is compiled to the %temp% directory without using hard coded paths? ala, c:\<blah>\<blah>\client\data\config.ini. Since not everybody's machine is the same :)

(edit): There seems to be a #PB_Compiler_Source flag (or some such) some where that might be useful.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Yes, you have to use #PB_Compiler_File.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- jaPBe now copies the original source file to a temp file before compiling. %COMPILEFILE holds the name of this temp file.
- %COMPILEFILE can be modified before compiling by a plugin triggered by events 'Before Compile/Run' or 'Before Create EXE'
- so jaPBe should be more compatible with some PB IDE plugins.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
dontmailme
Enthusiast
Enthusiast
Posts: 537
Joined: Wed Oct 29, 2003 10:35 am

Post by dontmailme »

I still can't get analyser working :(

I put the path to analyser.exe in the tool menu and when I click the menu I never see the analyser window... the one that says on or off....

I've tried the analyser.exe in both the pb dir and the jaPBe dir and no difference.

It works perfectly in the PB IDE.

Has anybody managed this ?
Paid up PB User !
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

dontmailme wrote:I still can't get analyser working :(

I put the path to analyser.exe in the tool menu and when I click the menu I never see the analyser window... the one that says on or off....

I've tried the analyser.exe in both the pb dir and the jaPBe dir and no difference.

It works perfectly in the PB IDE.

Has anybody managed this ?
I don't know exactly what it is supposed to do, but I get this (after F5 'Compile/Run') :
1. MessageBox "Started!"
2. My app starts
3. I quit my app
4. MessageBox "Finished!"
5. Analyser window with a ListIconView 'LineNb/TotalTime/%Time...'

I had to activate Analyser the first time : double-click on Analyser.exe (--> Analyze = 1 in analyzer.ini)

In tools : Arguments = "%COMPILEFILE" ; Trigger = "Before Compile/Run"

If this is the expected behaviour, I suggest the following :
- create one tool named "Analyzer", Arguments = "%COMPILEFILE", Trigger = "Before Compile/Run" and hide it (so you don't see it in the menu).
- create another tool named "Analyzer On/Off", Arguments = <Empty> , to enable / disable the analyser when you click on it in the menu.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply