-
Notifications
You must be signed in to change notification settings - Fork 5
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
JDK 11 / OpenJFX 11 no CSS autocomplete and “Unknown property” warning #75
Comments
I have this issue too, but in nun-modular project. I asked at stackoverflow.com - https://stackoverflow.com/questions/62123931/eclipse-doesnt-see-javafx-properties-in-css-file-unknown-property?noredirect=1#comment109877393_62123931, but nobody answer me. |
@4n4h3l I also posted a question on stack about this topic, but never got any answer as well. The developers of e(fx)clipse have a development repository that seems to "work". By that I mean, it does the trick for now but it needs a lot of work done, that's why this issue is still open. Try removing your current e(fx)clipse and instead use the following repositories: |
@4n4h3l I'm very glad I could be of help. This issue was very frustrating for me too because I lost about a week of development not being able to fix this and no replies whatsoever. I looked into it and there are 2 maven (m2e) packages installed in my Eclipse installation. Should have mentioned them, but glad you found it. |
I know it's been a while, and maybe things have changed, but the above solutions do not work. I have tried with multiple versions from version 3.6.0 up to the current 3.10.0 nightly builds, but the results are always the same. It appears that some properties do work, for example
It would be useful maybe if efx could just consider anything that starts with |
My css autocomplete doesn't work and I get "unknown property" warnings. I've tried a lot already but nothing seems to work. I even reinstalled eclipse, removed all the plugins, and reinstalled all of them. I created new workspaces, new projects, ... Nothing works.
My Environment
Eclipse 2020-03 (4.15.0)
Windows 10 (1903)
Java JDK 11.0.7
What I did
Created a new Maven project (JavaSE-11)
Added OpenJFX as dependency in the pom file
Made sure the Maven dependencies are on the classpath since I don't want to use the module system
Added the JavaFX SDK library to the classpath
Downloaded the OpenJFX libraries and point JavaFX 11 + SDK path in preferences to the path I installed it to
(C:\Program Files\OpenJFX\javafx-sdk-11.0.2\lib)
Write a test class using the JavaFX libraries (which works)
Create a css file to style my application which adds the
xtext
nature (and open it with the e(fx)clipse css editor)So I can use the JavaFX libraries and I can launch my application without any errors. But I can't use the css autocomplete feature because all properties are unknown and this causes warnings.
My POM file
My CSS file (application.css)
Launcher class (main class)
TestApp class
The text was updated successfully, but these errors were encountered: