-
-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annotations get removed if a newline is added #129
Comments
I know I'm late to the party, but this might help: Try to set |
@Poltergeist did @leMaik 's advice fix the issue |
Well, at least it fixed the very same issue for me. 😉 |
Sadly I never got back to test it, I try to test it asap. Maik Marschner notifications@github.com schrieb am Fr., 23. Sep. 2016 um
|
I am getting the expected annotations but the hover effect is not there. Can anyone help? |
In latest version |
Sadly, I am reproducing this again.
Whenever cursor leaves or enters the line with custom annotation added, the annotation vanishes. Cursor can move freely and even add newlines without touching the annotated line. Once it hits it, the annotation disappears. |
Is there any update on this? I am experiencing the same issue as described by @mikolajpp Thanks |
I have this problem too. @abrarmahmood, @mikolajpp did you ever figure out why this is happening? The various ways of setting useWorker=false did not work for me. |
You need to set the $useWorker on the session:
|
I am wondering if there is a way around this because setting useWorker = false disables ace syntax checking and that's not what I want. I want to merge my annotations to the ace's ones. |
@hamoody-omar The following answer allows you to use custom annotations alongside the Workers annotations: #483 (comment) |
If one adds an annotations as a prop to the react ace component. They only get shown until I add a newline to the value. To show that problem I changed the example. The only thing I changed is adding annotations to the
example/index.js
in line29
.annotations={[{ row: 5, column: 2, type: 'error', text: 'Some error.'}]}
.I got it to work if I put the render on line
24
into a function and call that function with thenewValue
Full change starting on line19
I hope the description is clear, and I hope this is not me using the component wrong. Thanks in advance.
The text was updated successfully, but these errors were encountered: