I'm working on a Java project in eclipse. Trying to open a file through Ctrl+Mouse click
, I got a popup that asked me if I want to add "Xtext nature to my project". I said ok. And now, I tried to put on a CSS
file the following line:
@import "myfile.css";
as first line. But I get this error, because of Xtext Check (fast)
:
missing EOF at ';'.
Can anybody help me on how to deal with this kind of error?
Thanks.
You have two ways to solve this issue:
First, you could uninstall the plug-in contributing the CssDsl
editor. A quick Google search told me that it is contributed by the e(fx)Eclipse
plugins. To uninstall a plug-in, go to the About
dialog, click on the Installation details feature, and in the upcoming dialog you could look for the feature to uninstall.
If the previous solution does not work for you (e.g. you need the e(fx)Eclipse
environment), you have to change the default file associations to avoid opening css files with the Xtext-based
editor, and remove the Xtext
nature from the projects you added.
.project file
, and remove the <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
entry and the corresponding org.eclipse.xtext.ui.shared.xtextBuilder
buildCommand manually.