purebasic IDE “Format indentation” bug

Post bugs related to the IDE here
diskay
User
User
Posts: 25
Joined: Sun Aug 02, 2015 7:17 pm

purebasic IDE “Format indentation” bug

Post by diskay »

An attempt to use "Format indentation" on the following code produced strange results:

Code: Select all

a(0, 1, "你好世界!", 100)
Debug 1
It looks like this

Code: Select all

a(0, 1, "你好世界!", 100)
                 Debug 1
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: purebasic IDE “Format indentation” bug

Post by BarryG »

Doesn't do that here. Try it with a default PureBasic Prefs file.
breeze4me
Enthusiast
Enthusiast
Posts: 511
Joined: Thu Mar 09, 2006 9:24 am
Location: S. Kor

Re: purebasic IDE “Format indentation” bug

Post by breeze4me »

Confirmed on Windows 10 Korean version.

In addition, the line continuation has the indentation bug on Korean Windows.

Code: Select all

Debug #PB_Compiler_Procedure + "한:" +
hWnd

Debug #PB_Compiler_Procedure + "asdf:" +
      hWnd
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: purebasic IDE “Format indentation” bug

Post by Mijikai »

What PB Versions have those issues?
breeze4me
Enthusiast
Enthusiast
Posts: 511
Joined: Thu Mar 09, 2006 9:24 am
Location: S. Kor

Re: purebasic IDE “Format indentation” bug

Post by breeze4me »

Mijikai wrote:What PB Versions have those issues?
Tested it in PB 5.60, 5.71, 5.72 b1.
diskay
User
User
Posts: 25
Joined: Sun Aug 02, 2015 7:17 pm

Re: purebasic IDE “Format indentation” bug

Post by diskay »

I hope someone can see it :(
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: purebasic IDE “Format indentation” bug

Post by BarryG »

Still can't replicate it here. Did you try it with a default PureBasic prefs file like I asked?
diskay
User
User
Posts: 25
Joined: Sun Aug 02, 2015 7:17 pm

Re: purebasic IDE “Format indentation” bug

Post by diskay »

I've found the problem

It is located in:

https://github.com/fantaisie-software/p ... er.pb#L421



PureBasicIDE/ SourceParser.pb

line 421-430,433

Delete these lines and it's OK :D
Post Reply