jaPBe 3.13.4 [IDE for PB 4 and PB 5]

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

Moderator: gnozal

gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update (Build 677)

Changes :
- fixed : sometimes an incorrect tooltip was displayed for user procedures [not defined arguments but current arguments were shown]
For example :
Procedure Test(first.l, second.l) ; Test
EndProcedure
Test(a|, b) ; | is carret -> Tooltip was 'Test(a, b)' instead of 'Test(first.l, second.l) ; Test'
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Undesirable indent effect

Post by Demivec »

I know the easy fix for what I'm going to mention is don't do that, but here goes. If I start off a comment at the end of an indented line by typing a Equals sign after the semi-colon it un-indents the line by 1 position (2 spaces).

For this example type each line and press Enter.

Code: Select all

If started = 0
  Break ;=haven't started
EndIf
It starts of with an indent, then removes it after pressing Enter. Sometimes it will remove the indent when a Space is entered immiediately after the Equals sign without ever pressing Enter.

Since I like to use comments in this fashion I am in the habit of correcting the indent after each comment. I imagine it is a simple fix and it would help save me from constant frustration. :wink:
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: Undesirable indent effect

Post by gnozal »

Demivec wrote:I know the easy fix for what I'm going to mention is don't do that, but here goes. If I start off a comment at the end of an indented line by typing a Equals sign after the semi-colon it un-indents the line by 1 position (2 spaces).
Sorry but ';=' is a reserved jaPBe comment (see manual or help tab) ...
It goes with ';>' and ;<' like here :

Code: Select all

CompilerIf #Something = #True ;>
  DoThis()
CompilerElse ;=
  DoThat()
CompilerEndIf ;<
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Post by Demivec »

Thanks for the quick response. It at least explains the wacky behavior, the other two comments I also were frustrated with. I thought I was going crazy. :wink:

@Edit:

I still would like to make a respectful request that the three special comments ";=" , ";<" , ";>" be modified to require a space after them for their intended effect. Making them match ";= " , ";< " , ";> " . If it couldn't be done without changing the other reserved comments to follow the same pattern I would still be in favor of it. I use each of the other reserved comment types frequently with additional text on the line following them.

This would make their use as follows:

Code: Select all

compilerif #debug ;> additional comment
  dothis()
compilerelse ;= additional comment
  dothat
compilerendif ;< 

If starting=0
  Break         ;=haven't started
EndIf
klaver
Enthusiast
Enthusiast
Posts: 147
Joined: Wed Jun 28, 2006 6:55 pm
Location: Schröttersburg

Post by klaver »

Why DataSections can't be Hidden/Expanded?
Hurga
Enthusiast
Enthusiast
Posts: 148
Joined: Thu Jul 17, 2003 2:53 pm
Contact:

Post by Hurga »

Hi

Seems that I have found a small ähm "feature" :-)

When I add a custom keyword for folding, (I used compilerif and compilerendif), then it folds, but it doesnt show a white triangle at the start of the line
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

One feature request that would fix a problem that has bitten me. When running from jaPBE the temp exe is created in the temp directory, breaking any bindings made with the DLL importer since it looks for the DLLs in the current directory. The new PB IDE has a "create temporary DLLs in source directory" option so I've had to switch to it for now with 4.10.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Karbon wrote:One feature request that would fix a problem that has bitten me. When running from jaPBE the temp exe is created in the temp directory, breaking any bindings made with the DLL importer since it looks for the DLLs in the current directory. The new PB IDE has a "create temporary DLLs in source directory" option so I've had to switch to it for now with 4.10.
Did you try to run jaPBe with /LOCAL switch ?
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 »

Hurga wrote:When I add a custom keyword for folding, (I used compilerif and compilerendif), then it folds, but it doesnt show a white triangle at the start of the line
Works here ...
Settings I used :
CompilerIf 1 0 0 "" 0
CompilerEndIf -1 0 0 "" 0
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

No, I didn't know about the /LOCAL switch, I'll try it. Just run the IDE with that parameter?
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
unhappy
User
User
Posts: 19
Joined: Sat Dec 10, 2005 6:58 am
Location: Prague, Czech Republic

Post by unhappy »

2gnozal:
hi.
i save PB on my flash drive, and try to learn it sometime when have some free time.
in preferences i set "Purebasic path" not absolute, but relative (e.g. "..\purebasic\").
and so i have that "Compile/Debug (F6)" doesnt work. :-\
now i manually change this field before run japbe.exe, but it is not good.
--- no signal
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Karbon wrote:No, I didn't know about the /LOCAL switch, I'll try it. Just run the IDE with that parameter?
Yes : jaPBe /LOCAL
http://www.purebasic.fr/english/viewtop ... &start=809
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 »

unhappy wrote:2gnozal:
hi.
i save PB on my flash drive, and try to learn it sometime when have some free time.
in preferences i set "Purebasic path" not absolute, but relative (e.g. "..\purebasic").
and so i have that "Compile/Debug (F6)" doesnt work. :-\
now i manually change this field before run japbe.exe, but it is not good.
And like this : '\Purebasic\' (assuming your purebasic directory is in %FlashDrive%\Purebasic\) ?
You may have to set the current directory of your project [F8] to '\Purebasic\' too because of the external PBDebugger.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
unhappy
User
User
Posts: 19
Joined: Sat Dec 10, 2005 6:58 am
Location: Prague, Czech Republic

Post by unhappy »

gnozal wrote:And like this : '\Purebasic\' (assuming your purebasic directory is in %FlashDrive%\Purebasic\)
great!
thank you very much!
--- no signal
Hurga
Enthusiast
Enthusiast
Posts: 148
Joined: Thu Jul 17, 2003 2:53 pm
Contact:

Post by Hurga »

You re right. My fault
Post Reply