Community
Participate
Working Groups
Build Identifier: I20110613-1736 Given an open Xtext editor for a resource not in the workspace, executing the _Validate_ context menu action will cause current resource to be validated and an attempt to create markers will fail: the MarkerIssueProcessor seems to be instantiated with a null resource, this leading to an NPE in org.eclipse.xtext.ui.editor.validation.AddMarkersOperation#execute(IProgressMonitor). Also, the _Rename Element_ context menu action should probably be disabled in a read-only editor. Reproducible: Always
https://bugs.eclipse.org/bugs/show_bug.cgi?id=283086 solves the validation part of the problem. rename fails with java.lang.IllegalStateException: Could not determine project for context resource file:/Users/dietrich/demo.xtext at org.eclipse.xtext.ui.refactoring.ui.DefaultLinkedPositionGroupCalculator.getLinkedPositionGroup(DefaultLinkedPositionGroupCalculator.java:107) at org.eclipse.xtext.ui.refactoring.ui.RenameRefactoringController$1.run(RenameRefactoringController.java:145) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119) i think there should be no validation or rename available at all