jaPBe 3.13.4 [IDE for PB 4 and PB 5]

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

Moderator: gnozal

JoRo
User
User
Posts: 70
Joined: Sat May 10, 2003 2:03 pm
Location: Essen, Germany
Contact:

Post by JoRo »

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.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

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.
In PB you see a debugger window if you choose the external debugger.
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.
I don't know.
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).
JoRo
User
User
Posts: 70
Joined: Sat May 10, 2003 2:03 pm
Location: Essen, Germany
Contact:

Post by JoRo »

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!!!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

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!!!
I don't know what you mean with 'error handler' ?
What can I do if the debugger crashes ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
JoRo
User
User
Posts: 70
Joined: Sat May 10, 2003 2:03 pm
Location: Essen, Germany
Contact:

Post by JoRo »

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?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

JoRo wrote:I mean
OnErrorGosub(@errorprocedure())
Yes, I know OnErrorEtc()...
It is even used in jaPBe :wink:
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 ?
JoRo wrote:What is your suggestion, what should 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
oryaaaaa
Addict
Addict
Posts: 825
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Post by oryaaaaa »

"UNICODE 2byte crush"
gnozal, I debug jaPBe source.
because most Japanese users are reporting this crush. (maybe china user too)

I think debugger launch problem is purebasic side.
before debug jaPBe source, no problem. Please try Re-Install PureBasic.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

oryaaaaa wrote:"UNICODE 2byte crush"
gnozal, I debug jaPBe source.
because most Japanese users are reporting this crush. (maybe china user too)
Good, I hope you find the bug, because I can't reproduce it (you probably need a japanese OS).
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 :
- 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).
User avatar
oryaaaaa
Addict
Addict
Posts: 825
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Post by oryaaaaa »

WindowCallback.pbi (Line: 1051)

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
FIX

Code: Select all

Default
  If AllowedChars(*msg\ch &$FF)=#False
   ;{ After every word a new undoaction
Q*bert
User
User
Posts: 27
Joined: Sat Dec 30, 2006 12:17 am
Location: Milwaukee, WI USA

Post by Q*bert »

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".
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

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".
Works here.
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).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

oryaaaaa wrote:WindowCallback.pbi (Line: 1051)
FIX

Code: Select all

Default
  If AllowedChars(*msg\ch &$FF)=#False
   ;{ After every word a new undoaction
Thanks, I will update the code for the next version.
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 :
- fixed crash with japanese OS (thanks oryaaaaa)
- enhanced Project/Tailbite dialog
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 »

thank you for the update gnozal.

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
Post Reply