jaPBe 3.13.4 [IDE for PB 4 and PB 5]
Moderator: gnozal
Hi,
That was quick! I still like the concept very much...
Some comments:
1. Lines with no code and a comment should (a) be left un-touched or (b) tabbed to the same as the first character on the last non-blank line.
2. If the comment cannot go at the wanted indent because a code line is too long then (a) leave it alone or (b) move it to the end of the code +1. At present it damages the code!
Here are some example
Best Regards
RichardL
That was quick! I still like the concept very much...
Some comments:
1. Lines with no code and a comment should (a) be left un-touched or (b) tabbed to the same as the first character on the last non-blank line.
2. If the comment cannot go at the wanted indent because a code line is too long then (a) leave it alone or (b) move it to the end of the code +1. At present it damages the code!
Here are some example
Code: Select all
; Original
P=42 ; The real meaning
; This comment should stay left aligned, it is a description for the block of code
For n = 1 To 1000 ; This line ends with 1000
A.f=Sqr(n)
Result = CallFunctionFast(FunctionWithALongName,A,b,lots,of,1000) ; Fiddle the widgit
Next
; This went wrong
P=42 ; The real meaning
; This comment should stay left aligned, it is a description for the block of code
For n = 1 To ; This line ends with 1000
A.f=Sqr(n)
Result = CallFunctionFast(FunctionWithALongName,A,b,lots,of,100; Fiddle the widgit
Next
; Not so bad, the first line was tabbed to col 21 before adjusting
P=42 ; The real meaning
; This comment should stay left aligned, it is a description for the block of code
For n = 1 To 1000 ; This line ends with 1000
A.f=Sqr(n)
Result = CallFunctionFast(FunctionWithALongName,A,b,lots,of,1000); Fiddle the widgit
Next
RichardL
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
New version uploaded.
The lines with a comment [';'] in the first column are untouchedRichardL wrote:1. Lines with no code and a comment should (a) be left un-touched or (b) tabbed to the same as the first character on the last non-blank line.
Should be fixedRichardL wrote:2. If the comment cannot go at the wanted indent because a code line is too long then (a) leave it alone or (b) move it to the end of the code +1. At present it damages the code!
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
About PB4.0, I encountered a bug/problem with jaPBe that didn't occurs in the official IDE.
I can't compile projects that are using Import/EndImport for importing a custom .lib,
i mean for example fmod.lib, 7z.lib, or others.
NOT the ones in the /purelibraries/windows/librairies/.
This is the message i see when trying to compile (in french):
-----------------------------------------------
PureBasic1.exe - Composant introuvable
Cette application n'a pas pu démarrer car swedll32.dll est introuvable.
La réinstallation de cette application peut corriger ce problème.
-----------------------------------------------
But it works when i copy the dll to the compiler directory of purebasic.
So it seems that the string which is sent to the compiler by jaPBe to compile the project is not, at the moment, including the folder of the current project ! ? !
Look at this example:
test_swedll32.zip
![Image](http://purebasic.myftp.org/files/44/test_swedll32.zip/dl_count.png)
I can't compile projects that are using Import/EndImport for importing a custom .lib,
i mean for example fmod.lib, 7z.lib, or others.
NOT the ones in the /purelibraries/windows/librairies/.
This is the message i see when trying to compile (in french):
-----------------------------------------------
PureBasic1.exe - Composant introuvable
Cette application n'a pas pu démarrer car swedll32.dll est introuvable.
La réinstallation de cette application peut corriger ce problème.
-----------------------------------------------
But it works when i copy the dll to the compiler directory of purebasic.
So it seems that the string which is sent to the compiler by jaPBe to compile the project is not, at the moment, including the folder of the current project ! ? !
Look at this example:
test_swedll32.zip
![Image](http://purebasic.myftp.org/files/44/test_swedll32.zip/dl_count.png)
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
- netmaestro
- PureBasic Bullfrog
- Posts: 8433
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
I have problems with the japbe ide flickering badly on loading a program.
Last edited by netmaestro on Tue Feb 21, 2006 12:49 pm, edited 2 times in total.
@gnozal
I have carried out some tests on the SHIFT+CNTRL+TAB method for tidying comments. It is not yet quite perfect
Here are the results of some tests.
I do hope you can fix this.
Last week I used jaPBe for over 40 Hrs... beleive me, anything that can make it even better will save an old mans finger joint and eyes!
Best regards
I have carried out some tests on the SHIFT+CNTRL+TAB method for tidying comments. It is not yet quite perfect
![Sad :(](./images/smilies/icon_sad.gif)
Here are the results of some tests.
Code: Select all
If 1
; >>> This is the target layout
; Data import over USB
If GoOn
For ImportData.w = 1 To 2
Select ImportData.w
Case 1
; Set up start and bytes for S/Pad+TIF+TSDB Section
USB_Start_address.l = 0 ; Start of download S/Pad
USB_Size.l = *StartOfLOG ; Number of bytes to download
Case 2
; Set up start and bytes for the LOG section
USB_Start_address.l = USB_LogClip_Start.l ; Start of download
USB_Size.l = USB_Log_Clip_Size.l ; Number of bytes to download
EndSelect
; *****************
; LOTS OF CODE HERE
; *****************
Next
EndIf
; >>> As entered by me
; Data import over USB
If GoOn
For ImportData.w = 1 To 2
Select ImportData.w
Case 1
; Set up start and bytes for S/Pad+TIF+TSDB Section
USB_Start_address.l = 0 ; Start of download S/Pad
USB_Size.l = *StartOfLOG ; Number of bytes to download
Case 2
; Set up start and bytes for the LOG section
USB_Start_address.l = USB_LogClip_Start.l; Start of download
USB_Size.l = USB_Log_Clip_Size.l ; Number of bytes to download
EndSelect
; *****************
; LOTS OF CODE HERE
; *****************
Next
EndIf
; >>> After CNTRL+TAB with all lines highlighted. Standard jaPBe gets the
; >>> indenting of lines with comments right.
; Data import over USB
If GoOn
For ImportData.w = 1 To 2
Select ImportData.w
Case 1
; Set up start and bytes for S/Pad+TIF+TSDB Section
USB_Start_address.l = 0 ; Start of download S/Pad ***
USB_Size.l = *StartOfLOG ; Number of bytes to download
Case 2
; Set up start and bytes for the LOG section
USB_Start_address.l = USB_LogClip_Start.l; Start of download
USB_Size.l = USB_Log_Clip_Size.l ; Number of bytes to download
EndSelect
; *****************
; LOTS OF CODE HERE
; *****************
Next
EndIf
; >>> After tidy up comments, highlight from line with *** to end. OOOPS!
; Data import over USB
If GoOn
For ImportData.w = 1 To 2
Select ImportData.w
Case 1
; Set up start and bytes for S/Pad+TIF+TSDB Section
USB_Start_address.l = 0; Start of download S/Pad ***
USB_Size.l = *StartOfLOG; Number of bytes to download
Case 2
; Set up start and bytes for the LOG section
USB_Start_address.l = USB_LogClip_Start.l; Start of download
USB_Size.l = USB_Log_Clip_Size.l; Number of bytes to download
EndSelect
; *****************
; LOTS OF CODE HERE
; *****************
Next
EndIf
; >>> Inserted blank line and then tidy comments, *** to end
; Data import over USB
If GoOn
For ImportData.w = 1 To 2
Select ImportData.w
Case 1
; Set up start and bytes for S/Pad+TIF+TSDB Section
USB_Start_address.l = 0 ; Start of download S/Pad ***
USB_Size.l = *StartOfLOG ; Number of bytes to download
Case 2
; Set up start and bytes for the LOG section
USB_Start_address.l = USB_LogClip_Start.l ; Start of download
USB_Size.l = USB_Log_Clip_Size.l ; Number of bytes to download
EndSelect
; *****************
; LOTS OF CODE HERE
; *****************
Next
EndIf
EndIf
Last week I used jaPBe for over 40 Hrs... beleive me, anything that can make it even better will save an old mans finger joint and eyes!
Best regards
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Hmm.Flype wrote:About PB4.0, I encountered a bug/problem with jaPBe that didn't occurs in the official IDE.
I can't compile projects that are using Import/EndImport for importing a custom .lib,
i mean for example fmod.lib, 7z.lib, or others.
NOT the ones in the /purelibraries/windows/librairies/.
Works for me like this (using zlib static lib) :
File PureZIP_ZLIB_IMPORT.pb
Code: Select all
Import "C:\Purebasic400\Program\PureZIP_O.lib"
ZLIBCompress(*DestBuffer, *DestBufferLen, *SourceBuffer, SourceBufferLen.l) As "_compress@16"
ZLIBUnCompress(*DestBuffer, *DestBufferLen, *SourceBuffer, SourceBufferLen.l) As "_uncompress@16"
etc..
EndImport
Code: Select all
XIncludeFile "PureZIP_ZLIB_IMPORT.pb"
etc...
When using static import libraries (importing functions from a DLL), I think the DLL must be in the %path% or in the executable directory, eg. \compilers if you use compile/run.
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
- some fixes
- workaround for SHIFT+CTRL+TAB method : the comments in the 1st column and the comments with only spaces before them are untouched. All the comments on lines with source code are indented to match the comment of the first line of the block.
After CTRL+SHIFT+TAB
- some fixes
- workaround for SHIFT+CTRL+TAB method : the comments in the 1st column and the comments with only spaces before them are untouched. All the comments on lines with source code are indented to match the comment of the first line of the block.
Code: Select all
; >>> As entered by me
; Data import over USB
If GoOn
For ImportData.w = 1 To 2
Select ImportData.w
Case 1
; Set up start and bytes for S/Pad+TIF+TSDB Section
USB_Start_address.l = 0 ; Start of download S/Pad
USB_Size.l = *StartOfLOG ; Number of bytes to download
Case 2
; Set up start and bytes for the LOG section
USB_Start_address.l = USB_LogClip_Start.l; Start of download
USB_Size.l = USB_Log_Clip_Size.l ; Number of bytes to download
EndSelect
; *****************
; LOTS OF CODE HERE
; *****************
Next
EndIf
Code: Select all
; >>> As entered by me
; Data import over USB
If GoOn
For ImportData.w = 1 To 2
Select ImportData.w
Case 1
; Set up start and bytes for S/Pad+TIF+TSDB Section
USB_Start_address.l = 0 ; Start of download S/Pad
USB_Size.l = *StartOfLOG ; Number of bytes to download
Case 2
; Set up start and bytes for the LOG section
USB_Start_address.l = USB_LogClip_Start.l ; Start of download
USB_Size.l = USB_Log_Clip_Size.l ; Number of bytes to download
EndSelect
; *****************
; LOTS OF CODE HERE
; *****************
Next
EndIf
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).