Closed korner11 closed 1 year ago
Formatter config file not resolved
it is looking for a config within your project, create it, or select it manually.
It should be located in the ".settings/org.eclipse.jdt.core.prefs" of the currently opened maven module.
Project specific config option should find it under maven module folder right? But looks like it wont find it for unknown reason.
Seems broken :(
Any tip what could be wrong that file is not visible for plugin?
Some platform change, I need to convert the project to Gradle and debug it.
OK. Please let me know if you find something.
it seems that it only needed a recompilation
you can try it before an approval: EclipseFormatter-23.0.223.000.0-Eclipse_2023-03.zip
Thank you. But it still not work for me. Maybe I will need to reinstall WSL.
Perhaps you could debug the plugin?
krasa.formatter.eclipse.ConfigFileLocator#traverseToFindConfigurationFileByConvention
Thank you for the tip. :) After debugging of the plugin I found out that problem is missing *.iml file in the module directory. We also discovered that newer version of IDEA do not generate these files automatically anymore. User have to uncheck "Enable Fast import" option and check "Store generated project files under the project root"
However this options became deprecated and probably will be removed in the future. We submitted new issue to JetBrain guys to provide a new way of determination of the parent module directory, so the plugin can be then updated accordingly. https://youtrack.jetbrains.com/issue/IDEA-317813/Missing-iml-files-for-maven-modules
Well, Module#getModuleFile
should not be used anyway, perhaps this will work.
Thanks, looks like fix is working.
Thanks, I will release it.
After update of IDEA from v2022.3 to 2023.1 plugin stared to throw this error.
I am running IDEA community in WSL2 (Ubuntu 20.04) via Xserver with fallowing settings:
What scenarios do I tried to fix this error? Reinstalling plugin. Erase IDEA cache. Reverting the update of IDEA back to 2022.3 (Now it happens also on the older version) Installing other version of IDEA (2022.3.3) Installing trial ultimate version of IDEA (2023.1). Checkout new copy of repository. Open project located in WSL hard-drive via Windows installation of IDEA (still not working).
These are the log files from IDEA: IntelliJ IDEA 2023.1 (Community Edition) Build #IC-231.8109.175, built on March 28, 2023 WSL2 - Ubuntu 20.04
It works when using Windows installation with project located on windows hard-drive. These are the log files from windows installation: IntelliJ IDEA 2023.1 (Community Edition) Build #IC-231.8109.175, built on March 28, 2023 Windows 10
Any idea what could go wrong? (Any tips to fix this)