Skip to content
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

IllegalStateException when using XPECT in a PlugIn-Project #230

Open
mmews-n4 opened this issue Feb 7, 2018 · 0 comments
Open

IllegalStateException when using XPECT in a PlugIn-Project #230

mmews-n4 opened this issue Feb 7, 2018 · 0 comments
Labels

Comments

@mmews-n4
Copy link
Contributor

mmews-n4 commented Feb 7, 2018

Reproduce

  • run the PlugIn project where XPECT is available
  • create a new file in a new project (does not need to have the extension .xt with the following content
// XPECT warnings --> "The local variable v1 is never used"
let v1;

//// XPECT warnings --> "The local variable v2 is never used"
//let v2;

// IllegalStateException appears with any key input

Stacktrace

java.lang.IllegalStateException: No line with non-hidden tokens found after 
...et v1;\n\n//// >>>XPECT warnings --> "The local variable v2 is never used"<<<\n//let v2;\n\n
	at org.eclipse.xpect.xtext.lib.util.NextLine$NextLineProvider.findNextNonHiddenLeaf(NextLine.java:65)
	at org.eclipse.xpect.xtext.lib.util.NextLine$NextLineProvider.<init>(NextLine.java:47)
	at org.eclipse.xpect.xtext.lib.tests.ValidationTestModuleSetup$TestingResourceValidator.validateDelegateAndMapByOffset(ValidationTestModuleSetup.java:160)
	at org.eclipse.xpect.xtext.lib.tests.ValidationTestModuleSetup$TestingResourceValidator.validateDelegate(ValidationTestModuleSetup.java:144)
	at org.eclipse.xpect.ui.services.XtResourceValidator.validate(XtResourceValidator.java:55)
	at org.eclipse.xtext.ui.editor.validation.ValidationJob$1.exec(ValidationJob.java:91)
	at org.eclipse.xtext.ui.editor.validation.ValidationJob$1.exec(ValidationJob.java:1)
	at org.eclipse.xtext.util.concurrent.CancelableUnitOfWork.exec(CancelableUnitOfWork.java:26)
	at org.eclipse.xtext.resource.OutdatedStateManager.exec(OutdatedStateManager.java:91)
	at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.internalReadOnly(XtextDocument.java:520)
	at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.readOnly(XtextDocument.java:492)
	at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:133)
	at org.eclipse.xtext.ui.editor.validation.ValidationJob.createIssues(ValidationJob.java:86)
	at org.eclipse.xtext.ui.editor.validation.ValidationJob.run(ValidationJob.java:67)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
@mmews-n4 mmews-n4 added the bug label Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant