-
Notifications
You must be signed in to change notification settings - Fork 1
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
File is parsed, but no settings applied. #6
Comments
Hi, the plugin converts the settings in the EditorConfig file to settings in the Eclipse project. So you can check in the For example, indentation settings should land in
You can also verify the project settings in Eclipse (first refresh) in the project properties, in different sections there (e.g. Resource for the file encoding and line delimiter, Java Editor/Save Actions for removal of trailing whitespace). The root setting should always be |
I was able to get EditorConfig to throw an exception because of malformed keys in the section
So not only the file is parsed, but the section as per your documentation as well properly recognized and the line for the |
I'm looking at your files already and they are deleted and created as necessary, depending on the task I execute in Gradle. But the important content is missing, the only thing written to the files is the following:
The only files with additional content are the following, not managed by your plugin:
It seems that simply all settings of Some tracing output for the settings retrieved by |
I've finally found the problem: I'm using Windows, your plugin passes native Windows paths using
The outputs on
These are the regular expressions matched against the paths and as you can see, those are using Should I create a PR for you and report the problem to |
This fixes stempler#6 and I additionally improved logging a bit to find such errors easier in future.
I'm pretty sure to use your plugin as described and can see on Windows that
.editorconfig
is parsed by some Java process. Additionally I see different behaviour of Java in caseroot = true
is present in the file vs. when it is not: If it's present only one.editorconfig
is parsed, if it's not the directory tree is searched upwords for additional files untilC:\.editorconfig
, which is not found in the end.Running the task
cleanEclipse
as well deletes all your managed files, while the taskeclipse
generates all of those containing the line with the version number only. I've already compared behaviour of both tasks with/without your plugin and there's a difference as well, because some of theprefs
-files are only created by your plugin, not the one nameeclipse
already.But whatever I put into
.editorconfig
, besidesroot = true
nothing seems to be recognized and I already only copied the examples from you. I don't even get any errors logged, it simply seems that all statements are completely ignored, not with wrong values.Any idea what could be the problem? Are there any logs available for EditorConfig?
Thanks!
The text was updated successfully, but these errors were encountered: