jaPBe 3.13.4 [IDE for PB 4 and PB 5]
Moderator: gnozal
The main difference between PB and Japbe it the debugger window!!!
This does not exist in PB, but is there the main window.
Well I have tested the debugger typs- all the same,
I have tested the debugger settings in Japbe, all the same
the error appears during the compilation, before the executable is created.
And the reason must be the size of the source.
This does not exist in PB, but is there the main window.
Well I have tested the debugger typs- all the same,
I have tested the debugger settings in Japbe, all the same
the error appears during the compilation, before the executable is created.
And the reason must be the size of the source.
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
In PB you see a debugger window if you choose the external debugger.JoRo wrote:The main difference between PB and Japbe it the debugger window!!!
This does not exist in PB, but is there the main window.
I don't know.JoRo wrote: Well I have tested the debugger typs- all the same,
I have tested the debugger settings in Japbe, all the same
the error appears during the compilation, before the executable is created.
And the reason must be the size of the source.
Never had this problem. My currently biggest source only has 17000 lines.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
As I said, I had had this problem with an older versoin of Japbe and even with the PB compiler. But this problem had not appeared, when I build the exe. That was for a time the worst case, and I had to code without debugger. I have the error handler enabled. So, it is not too worst.
And I am wondering, why do you not use the error handler. The problem I have, and others have, are so found in seconds!!!
And I am wondering, why do you not use the error handler. The problem I have, and others have, are so found in seconds!!!
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
I don't know what you mean with 'error handler' ?JoRo wrote:And I am wondering, why do you not use the error handler. The problem I have, and others have, are so found in seconds!!!
What can I do if the debugger crashes ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
I mean
OnErrorGosub(@errorprocedure())
OnErrorGosub(@..) is explained in the PB docu.
You can define the output, with lines and lib, so you get exact the position in the source code, where the error occurs.
Coding for the error handler....about 5 to 10 minutes.
But so far you are right: PB also should use the error handling.
I use it in my Terraingenerator GeoControl, and I have got it extrem stable with this.
What is your suggestion, what should I do?
OnErrorGosub(@errorprocedure())
OnErrorGosub(@..) is explained in the PB docu.
You can define the output, with lines and lib, so you get exact the position in the source code, where the error occurs.
Coding for the error handler....about 5 to 10 minutes.
But so far you are right: PB also should use the error handling.
I use it in my Terraingenerator GeoControl, and I have got it extrem stable with this.
What is your suggestion, what should I do?
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Yes, I know OnErrorEtc()...JoRo wrote:I mean
OnErrorGosub(@errorprocedure())
It is even used in jaPBe

What I don't understand, is how it would help when the debugger crashes.
Like I said, jaPBe only sends a message : PostThreadMessage_(CompilerThreadID, PB_MSG_ID, #PB_MSG_Start_Compilation, flags) ; the rest is done by the PB compiler. And if the compiler doesn't send an error code when the debugger crashes, what can I do ?
As far as I understand, I think you have a PB problem rather than a jaPBe issue. Maybe you should post a well documented bug report.JoRo wrote:What is your suggestion, what should I do?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Good, I hope you find the bug, because I can't reproduce it (you probably need a japanese OS).oryaaaaa wrote:"UNICODE 2byte crush"
gnozal, I debug jaPBe source.
because most Japanese users are reporting this crush. (maybe china user too)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Update
Changes :
- added jaPBe_DeleteCurrentTab() and jaPBe_LockCurrentTab() to plugin SDK
These functions will be usefull for the next PureFORM release.
Changes :
- added jaPBe_DeleteCurrentTab() and jaPBe_LockCurrentTab() to plugin SDK
These functions will be usefull for the next PureFORM release.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
WindowCallback.pbi (Line: 1051)
FIX
Code: Select all
Case #SCN_CHARADDED
If Sources()\SourceType=#SourceType_PureBasic
Pos=SCI_GetCurrentPos()
i=SCI_LineFromPosition(Pos)
ColoringLine(#True,-1,i);mu゚ rein, sonst klappt Calltips, etc. nicht!
;SCI_SetLineState(i,#True)
Debug *msg\ch ; 12354
Select *msg\ch
Case 13; ret
;{ Automatic Indentation
SCI_BeginUndoAction()
Pos=SCI_GetCurrentPos()
line=SCI_LineFromPosition(Pos)-1
If AutoInsert
ChangeIndentation(line,2)
ElseIf line>-1
g=SCI_GetLineIndentation(line)
If g>0
;a$=Space(g)
;SCI_AddText(g,@a$)
SCI_SetLineIndentation(line+1,g)
SCI_GotoPos(SCI_PositionFromLine(line+1)+g)
EndIf
EndIf
SCI_EndUndoAction()
;}
Case '#' ; gnozal : Context Sensitive Constant Autocomplete
If ContextSensitiveAutocomplete And AutoCompletation
AutoCompletion2()
EndIf
Default
If AllowedChars(*msg\ch)=#False ; Array index out of bounds (Max:256) Crash (12354)
;{ After every word a new undoaction
If SpaceAdded=#False
SpaceAdded=#True
If *msg\ch=32
;{Space - Aktuelle Zeile Ident
Pos=SCI_GetCurrentPos()
If Pos-1=OldIndetationPos
ChangeIndentation(SCI_LineFromPosition(Pos),0)
EndIf
OldIndetationPos=-99
;}
EndIf
SCI_BeginUndoAction()
SCI_EndUndoAction()
EndIf
;}
;{ auto-completions
If SCI_AutoCActive()
SCI_AutoCCancel()
EndIf
;}
Else
; after every word a new undoaction
SpaceAdded=#False
OldIndetationPos=SCI_GetCurrentPos()
;{ Auto-completions
;Debug Str(WordUnderCursorPos)+" "+Str(Pos)+" "+Str(WordUnderCursorEnd)
If WordUnderCursorEnd=Pos-1; And WordUnderCursorPos<>WordUnderCursorEnd
;Debug "DO AUTOCOMPLETE"
AutoCompletion(WordUnderCursorPos,WordUnderCursorEnd,WordUnderCursorType)
Else
If SCI_AutoCActive()
SCI_AutoCCancel()
EndIf
EndIf
;}
EndIf
EndSelect
EndIf
Code: Select all
Default
If AllowedChars(*msg\ch &$FF)=#False
;{ After every word a new undoaction
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Works here.Q*bert wrote:Is it possible to assign a shortcut key to a plugin?
I would like to assign the PureForm plugin to a shortcut, but the shorcut doesn't seem to save when I set it in "Confg Tools".
You have to validate the new setting by using the 'Replace' button.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Thanks, I will update the code for the next version.oryaaaaa wrote:WindowCallback.pbi (Line: 1051)
FIXCode: Select all
Default If AllowedChars(*msg\ch &$FF)=#False ;{ After every word a new undoaction
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
thank you for the update gnozal.
another request.
please, could you add an Shortcut key for TailBite ?
maybe [Maj + F5] or [Ctrl + F5].
another request.
please, could you add an Shortcut key for TailBite ?
maybe [Maj + F5] or [Ctrl + F5].
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
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer