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 »

tomijan wrote:It's possible to use in jaPBe this kind of debugger, as in original PB IDE? I find this more convenient as standalone version.
No, jaPBe can only use the external debugger.
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 :
- some fixes and updates in help.pbi
- enhanced 'AutoIndent2' features
Flype wrote:You (we) can consider, definitely, that it is only possible on lines such as the ones in my example.
First step

Code: Select all

x + 10 ; update sprite x
y + 8 ; update sprite y 
width + 12 ; adjusting the width
height + (50) ; adjusting the height
Last step

Code: Select all

x      + 10   ; update sprite x
y      + 8    ; update sprite y 
width  + 12   ; adjusting the width
height + (50) ; adjusting the height
After CTRL+SHIFT+TAB, if 'AutoIndent2 : Optimize' is activated and jaPBe detects a 'possible case', the code is autoindented like your example above.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

yeah, works well thank you very much gnozal :P
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Sorry for the long downtime between replies ...

I downloaded the newest version, and the three bugs I have posted before (autocomplete on with, with blocks do not indent correctly, and the OffsetOf) have been fixed :) Thanks very much! I havent been able to test out the auto-declare bug on the newest version yet, but I definately will :)

Here's another bug I reported awhile ago that the author refused to fix.

The indentation of CompilerIf/CompilerEndIf does not work. It's doing the samething With/EndWith did until recently. Basically..

Code: Select all

; This is wrong!
CompilerIf
Whee.s = "FooBar"
CompilerEndIf

; This is correct!
CompilerIf
     Whee.s = "FooBar"
CompilerEndIf
JaPBe will do the wrong indention, while the correct one should be done.
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

Great work Gnozal!

There is a indent fail: equal after comment

Code: Select all

For i= 1 To 10
    a+1
Next          ; OK

For i= 1 To 10  ;= 1 
        a+1   ; Fail
    Next    
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post by Dummy »

Shannara wrote:Sorry for the long downtime between replies ...

I downloaded the newest version, and the three bugs I have posted before (autocomplete on with, with blocks do not indent correctly, and the OffsetOf) have been fixed :) Thanks very much! I havent been able to test out the auto-declare bug on the newest version yet, but I definately will :)

Here's another bug I reported awhile ago that the author refused to fix.

The indentation of CompilerIf/CompilerEndIf does not work. It's doing the samething With/EndWith did until recently. Basically..

Code: Select all

; This is wrong!
CompilerIf
Whee.s = "FooBar"
CompilerEndIf

; This is correct!
CompilerIf
     Whee.s = "FooBar"
CompilerEndIf
JaPBe will do the wrong indention, while the correct one should be done.
What about this:

Code: Select all

CompilerIf #JaPBe_DebuggerIsRunning
If blub = 1
  CompilerEndIf
  Whee.s = "FooBar"
  CompilerIf #JaPBe_DebuggerIsRunning
EndIf
CompilerEndIf
I think it is better not to do indentation on "Compiler*" directives as these can be used in many ways where that indentation would be really confusing
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Dummy wrote:I think it is better not to do indentation on "Compiler*" directives as these can be used in many ways where that indentation would be really confusing
I agree. I don't think this is a bug, it's a feature !
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 »

einander wrote:Great work Gnozal!

There is a indent fail: equal after comment

Code: Select all

For i= 1 To 10
    a+1
Next          ; OK

For i= 1 To 10  ;= 1 
        a+1   ; Fail
    Next    
It's a feature, not a bug :wink:
jaPBe's readme.txt wrote:New in Version 2.4.9.25
#######################
...
* Manual indent - Marks
Example
compilerif #debug ;>
dothis()
compilerelse ;=
dothat
compilerendif ;<
...
';=' is a manual indent mark
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

:oops:

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

Post by gnozal »

Update

Changes :
- added some folding marker styles, including a PB IDE style.
- added custom subsystem in Project/Options [language file entry 490]
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

einander wrote::oops:

Image
it took me 2 hours but i think i got the joke, "VolksWagen Bug" :lol:
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

Gnozal says:
It's a feature, not a bug :wink:
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

New to jaPBe,

Sorry to ask in this forum a newbe question....

How I can debug in jaPBe?

Is it the same as the IDE PB or with another tools....?

could you give a hand here????

thanks :oops:
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

LOL!

Will never see "Feature/Bug" again without remembering that VW!
@}--`--,-- A rose by any other name ..
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

Somebody have some minutes to teach me how to debug in jaPBe..? :roll:
Post Reply