Sublime Forum

[bug] crashes when shifting a line upwards in a java-file

#1

Using build 4180. It crashed when trying to shift upwards a certain line in a Java-file, using the [Shift] + [Ctrl] + [Up] shortcut. The ZIP at this Dropbox link contains video-footage of it happening, along with the file that it happened with.

The crash happened consistently upon repeated tests of the exact same process with that file.

0 Likes

#2

Can reliably reproduce ST locking up and filed an issue with minimal steps to reproduce at https://github.com/sublimehq/sublime_text/issues/6524.

2 Likes

#3

I am a bit curious about following line:

public class map_maker__info_methods(){

According to Java 22 Language Spec parentheses are not allowed after class names.

It doesn’t make a difference for the original issue, but those extra parens cause following brackets not being scoped as class body.

0 Likes

#4

That was a mistake of mine to have written those parentheses in there, yes you’re right. Thanks for looking into the issue.

0 Likes