eclipse-xtext / eclipse-xtext/xtext
New Fails with latest II (maybe flaky)
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 831
- Forks
- 330
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 12
Description
java.lang.NullPointerException: Cannot invoke "org.eclipse.jface.text.source.AnnotationModelEvent.getRemovedAnnotations()" because "this.event" is null
at org.eclipse.xtext.ui.tests.editor.occurrences.MarkOccurrencesTest$ExpectationBuilder.verify(MarkOccurrencesTest.java:179)
at org.eclipse.xtext.ui.tests.editor.occurrences.MarkOccurrencesTest.testMarkOccurrencesCrossFile(MarkOccurrencesTest.java:132)
java.lang.AssertionError:
<html><head><style CHARSET="ISO-8859-1" TYPE="text/css">/* Font definitions */
html { font-family: 'Sans',sans-serif; font-size: 10pt; font-style: normal; font-weight: normal; }
body, h1, h2, h3, h4, h5, h6, p, table, td, caption, th, ul, ol, dl, li, dd, dt { font-size: 1em; }
pre { font-family: monospace; }
/* Margins */
body { overflow: auto; margin-top: 0px; margin-bottom: 0.5em; margin-left: 0.3em; margin-right: 0px; }
h1 { margin-top: 0.3em; margin-bottom: 0.04em; }
h2 { margin-top: 2em; margin-bottom: 0.25em; }
h3 { margin-top: 1.7em; margin-bottom: 0.25em; }
h4 { margin-top: 2em; margin-bottom: 0.3em; }
h5 { margin-top: 0px; margin-bottom: 0px; }
p { margin-top: 1em; margin-bottom: 1em; }
pre { margin-left: 0.6em; }
ul { margin-top: 0px; margin-bottom: 1em; margin-left: 1em; padding-left: 1em;}
li { margin-top: 0px; margin-bottom: 0px; }
li p { margin-top: 0px; margin-bottom: 0px; }
ol { margin-top: 0px; margin-bottom: 1em; margin-left: 1em; padding-left: 1em; }
dl { margin-top: 0px; margin-bottom: 1em; }
dt { margin-top: 0px; margin-bottom: 0px; font-weight: bold; }
dd { margin-top: 0px; margin-bottom: 0px; }
/* Styles and colors */
a:link { color: #0000FF; }
a:hover { color: #000080; }
a:visited { text-decoration: underline; }
a.header:link { text-decoration: none; color: #000000 }
a.header:visited { text-decoration: none; color: #000000 }
a.header:hover { text-decoration: underline; color: #000080; }
h4 { font-style: italic; }
strong { font-weight: bold; }
em { font-style: italic; }
var { font-style: italic; }
th { font-weight: bold; }
</style></head><body text="#000000" bgcolor="#ffffff"><div style='position: absolute; left: 0; top: 0;'><image src='file:/home/jenkins/agent/workspace/xtext_main/org.eclipse.xtend.ide.tests/target/work/data/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/1.png'/></div><div style='position: relative; left: 20;'><b>Foo</b></div><p>@<a href="eclipse-xtext-doc:java:/Objects/java.lang.SuppressWarnings%23java.lang.SuppressWarnings">SuppressWarnings</a>("foo")<br></p></body></html>
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.eclipse.xtend.ide.tests.hover.XtendHoverInEditorTest.lambda$0(XtendHoverInEditorTest.java:149)
at org.eclipse.xtext.testing.logging.LoggingTester.captureLogging(LoggingTester.java:73)
at org.eclipse.xtext.testing.logging.LoggingTester.captureLogging(LoggingTester.java:49)
at org.eclipse.xtend.ide.tests.hover.XtendHoverInEditorTest.testHoverOfReferencedElementWithAnnotation(XtendHoverInEditorTest.java:152)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running MarkOccurrencesTest.testMarkOccurrencesCrossFile and XtendHoverInEditorTest.testHoverOfReferencedElementWithAnnotation, which are the reported failures. Inspect MarkOccurrencesTest.java:179 and XtendHoverInEditorTest.java:149 to determine whether the failures reproduce; done means the affected tests pass reliably without the reported null event or hover assertion failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100