question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OSX: Entering curly braces and brackets is broken in 0.10.5 while 0.10.4 works (javafx14)

See original GitHub issue

Expected Behavior

On a Macbook with Mac OSX 10.15 I am able to enter curly braces and brackets. []{}. using the Option (or Alt) ⌥ key

Actual Behavior

With version 0.10.5 I am unable to enter curly braces and brackets , when I downgrade to 0.10.4 it works.

Reproducible Demo

Orgiinal code

public class Bug extends Application {

 public void start(Stage primaryStage) {

	StackPane root = new StackPane();
       Scene scene = new Scene(root,400,400);

        CodeArea codeArea = new CodeArea();
        codeArea.setWrapText(true);
        codeArea.setInputMethodRequests(new InputMethodRequestsObject());
        codeArea.setOnInputMethodTextChanged(event -> {
            String committed = event.getCommitted();
            if (!committed.isEmpty()) {
                codeArea.insertText(codeArea.getCaretPosition(), committed);
            }
        });


        codeArea.setId("bibtexSourceCodeArea");
         root.getChildren().add(codeArea);
 primaryStage.setScene(scene);

  primaryStage.show();



 }
 /* Work around for different input methods.
     * https://github.com/FXMisc/RichTextFX/issues/146
     */
    private static class InputMethodRequestsObject implements InputMethodRequests {

        @Override
        public String getSelectedText() {
            return "";
        }

        @Override
        public int getLocationOffset(int x, int y) {
            return 0;
        }

        @Override
        public void cancelLatestCommittedText() {
            return;
        }

        @Override
        public Point2D getTextLocation(int offset) {
            return new Point2D(0, 0);
        }
    }
}

Environment info:

  • RichTextFX Version: 0.10.5
  • Operating System: OSX 10.15.7
  • Java version: 14 + openjfx14

Current Workarounds

Downgrade to 0.10.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Jugencommented, Oct 4, 2020

Great, will release new version probably later this week or the next.

0reactions
Siedlerchrcommented, Oct 4, 2020

@Jugen Confirmed, works now again! Would be nice if you could release a new version with that fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I don't know why my program is giving me curly brace errors ...
But it is giving me error at last two curly braces at the lastline of the program(SAYING WHILE LOOP EXPECTED/REACHED END OF FILE...
Read more >
NegativeArraySizeException on saving · Issue #8265 · JabRef ...
When I open the program on my computer and with the backup from a ... curly brace "}" is missing and so JabRef...
Read more >
Java Common Errors with Explanations - Mimir HQ Help Center
This typically means that the placement of your parentheses and curly brackets is incorrect. Make sure you're using the correct syntax, that your...
Read more >
Check for Balanced Brackets in an expression (well ...
Given an expression string, write a program to examine whether the pairs and the orders of parentheses are balanced in expression or not....
Read more >
JavaFX Slider Control not working on Mac OS 10.9.1
I am updating slider value using javafx mediaplayer.currentTime().addListener() method by adding Change/Invalidate listener. While playing MP4 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found