Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

Notepad3 becomes unresponsive when opening certain Kotlin files

Open WPum opened this issue 1 year ago • 2 comments

Version: Notepad3 (x64) 6.23.203.2

Sample (updated):

Test.zip

WPum avatar Jan 13 '24 12:01 WPum

Hello @RaiKoHoff , I confirm the bug. 😬

Version: Notepad3 (x64) 6.24.111.1 rc2

Notepad3 freezes completely with this "Kotlin" file: Test_Kotlin.zip which contains:

package com.example.service

class TestService

Edited: From your new Sample (updated): "Test.zip"

I see that Notepad3 completely freezes with your new "Test.kt" file which ONLY contains the letter "a". 😬

hpwamr avatar Jan 13 '24 13:01 hpwamr

When porting lexers from Notepad2, SafeGetCharAt(pos) should be replaced with SafeGetCharAt(pos, '\0'), see https://github.com/zufuliu/notepad2/blob/main/scintilla/lexlib/LexAccessor.h#L92

zufuliu avatar Jan 21 '24 01:01 zufuliu

PR #5121 tries to port Zufu Liu's current Lexers for Kotlin and Dart.

RaiKoHoff avatar Feb 28 '24 07:02 RaiKoHoff

Hello @WPum ,

Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_6.24.228.1_rc2.paf" or newer, see in issue #1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.

Also, feel free to test the "BETA/RC Setup", version "Notepad3_6.24.228.1_rc2_Setup" or newer, see the 2nd list in issue #1129.

Comments and suggestions are welcome... 😃

hpwamr avatar Feb 28 '24 22:02 hpwamr