PB IDE plugin : smart indent, remove spaces, autocompletions

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

Michael Vogel wrote:
eddy wrote:I can't reproduce this bug ???
I pressed the following keys (no spaces) after creating a new source:

a <enter> a <anter> a <enter> <up> <up> <end> <enter> <alt-backspace>

That's it!

But it has only problems, if you have all options but Format word-spacing on !

Michael
Not confirmed :)
POiNT.OF.PRESENCE group
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

eddy wrote:[version v3.3]
ADDED : format word-spacing
FIXED : ProcedureC indent

Code: Select all

If TEST( 1,2,3 ) = 4
	x =x+ 1/2:START ()		  ;// result		
EndIf
:arrow: formatted code

Code: Select all

If TEST(1, 2, 3)=4
	x=x+1/2 : START()		  ;// result		
EndIf
[/code]
doesn't work with negative numbers:

Code: Select all

min_box_x= -10
POiNT.OF.PRESENCE group
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

<enter><alt><backspace>
Perhaps a bug from IDE : http://www.purebasic.fr/english/viewtopic.php?t=32548
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

eddy wrote:
<enter><alt><backspace>
Perhaps a bug from IDE : http://www.purebasic.fr/english/viewtopic.php?t=32548
When pressing the final <alt+backspace> combination, I'll get:
-----------------------------
PureEditorExtensionError
459676 : -1
-----------------------------
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

[released v3.4]
- ADDED : indent and autocomplete Compiler directives
- ADDED : define spacing rules

:arrow: I enabled PB debugger line, perhaps it will return a correct line number this time.
-----------------------------
PureEditorExtensionError
459676 : -1
-----------------------------
Last edited by eddy on Sun May 25, 2008 9:28 pm, edited 2 times in total.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

I love U :oops: :lol:
POiNT.OF.PRESENCE group
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

I reuploaded something wrong in my previous file.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Post by hallodri »

Good tool. Can you add "ImportC" ?
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

hallodri wrote:Good tool. Can you add "ImportC" ?
yes
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

eddy wrote:[released v3.4]
- ADDED : indent and autocomplete Compiler directives
- ADDED : define spacing rules

:arrow: I enabled PB debugger line, perhaps it will return a correct line number this time.
-----------------------------
PureEditorExtensionError
459676 : -1
-----------------------------
Now I get the error box:
-----------------------------
PureEditorExtensionError
0 : 1361
-----------------------------

And then endless (until I kill the PureExtension process):
-----------------------------
PureEditorExtensionError
0 : 123
-----------------------------

After that I get the "An attempted read or write to/from..." message

Hmm... maybe it was just by accident, but with the new 3.4 version this happens also when the word spacing function is disabled...

If this can't reproduced on some machines, maybe it depends on the windows (or OS language) type?
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

Code: Select all

 "An attempted read or write to/from..." message

...maybe it depends on the windows (or OS language) type
I saw the same message but the bug was not related to any tool.

:arrow: test to do :
1- Disable (uncheck) all plugin entries in your external tool configuration panel
2- Restart your IDE and try to reproduce your bug.
3- If you see the same message, it means this bug is from IDE : http://www.purebasic.fr/english/viewtopic.php?t=32548
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

No kidding, when the trigger option of the tool configuration for the PureEditorExtension has been set to "Editor Startup" (and so the tool is disabled after the start) I'll get no error, when I set this option to "Editor Startup" and restart the Purbasic IDE the crash is back again :(
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

I improved the debugger, I'll hope it will be usefull.


[released v3.5]
- ADDED : source formatting rules ( for manual and automatic formatting)
- CHANGED : option 'format whole source' controls the automatic formatting (has no effect on manual formatting)
- UPDATED : debugger returns dll error and error description
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

Good work :!:
POiNT.OF.PRESENCE group
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

With version 3.5 the following happens: Starting the PureBasic-IDE and pressing Alt-Backspace:

---------------------------------------------------
PureEditorExtensionDLL Error
An attempted read or write...
ErrorLine=1378
---------------------------------------------------

And endless...
---------------------------------------------------
PureEditorExtensionDLL Error
An attempted read or write...
ErrorLine=131
---------------------------------------------------

When using the "Stop"-button in the PureExtension Configuration dialog, there is no error...
Post Reply