Comments (11)
Send me a screenshot of your settings of this plugin, and the file which you use for optimize imports settings.
from eclipsecodeformatter.
Seriously m8, I don't know how to help you :)
from eclipsecodeformatter.
I came into this problem too. In last version, that would not happen.
from eclipsecodeformatter.
That's because I have added validation.
So either your file is wrong, or the validation. But how could I know if you do not send the file to me?
from eclipsecodeformatter.
Eclipse Import Optimizer failed: You must provide either *.importorder file or 'org.eclipse.jdt.ui.prefs' file, see instructions.
krasa.formatter.exception.ParsingFailedException: You must provide either *.importorder file or 'org.eclipse.jdt.ui.prefs' file, see instructions.
from eclipsecodeformatter.
Eclipse Import Optimizer failed: You must provide either *.importorder file or 'org.eclipse.jdt.ui.prefs' file, see instructions.
krasa.formatter.exception.ParsingFailedException: You must provide either *.importorder file or 'org.eclipse.jdt.ui.prefs' file, see instructions.
from eclipsecodeformatter.
Eclipse Import Optimizer failed: You must provide either *.importorder file or 'org.eclipse.jdt.ui.prefs' file, see instructions.
krasa.formatter.exception.ParsingFailedException: You must provide either *.importorder file or 'org.eclipse.jdt.ui.prefs' file, see instructions.
from eclipsecodeformatter.
Eclipse Import Optimizer failed: You must provide either *.importorder file or 'org.eclipse.jdt.ui.prefs' file, see instructions.
krasa.formatter.exception.ParsingFailedException: You must provide either *.importorder file or 'org.eclipse.jdt.ui.prefs' file, see instructions.
from eclipsecodeformatter.
Eclipse Import Optimizer failed: You must provide either *.importorder file or 'org.eclipse.jdt.ui.prefs' file, see instructions.
krasa.formatter.exception.ParsingFailedException: You must provide either *.importorder file or 'org.eclipse.jdt.ui.prefs' file, see instructions.
from eclipsecodeformatter.
step1:
find the org.eclipse.jdt.ui.prefs file under your eclipse workspace ( /workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs )
step2:
copy it to another space
step3:
add "org.eclipse.jdt.ui.importorder=java;javax;org;com;" to it
step4:
set your Import order from the org.eclipse.jdt.ui.prefs file which you adjust just now.
from eclipsecodeformatter.
- Check "Optimizing Imports" configuration
- Set import order
- Either leave the default
- Or set path to Eclipse configuration file:
- Go to Eclise | Windows | Preferences | Java | Code Style | Organize Imports
- Either click on "Export...", (example)
- Or enable project specific settings and use "org.eclipse.jdt.ui.prefs" file which should contain the line "org.eclipse.jdt.ui.importorder=..."
- Value of "Class count to use import with ''" and "Name count to use static import with ''" (Settings | Editor | Code Style | Imports) - Eclipse uses value of 30 by default
- For versions lower than 4.0 - make sure to keep disabled IntelliJ's Import Optimizing in the reformat dialog (Settings | Editor | Show "Reformat Code" dialog), the plugin will take care of imports anyway
- For versions higher than 4.0 - imports will be reordered together with normal IntelliJ's import optimizing
- Disable "Optimize imports on the fly"
- Set import order
from eclipsecodeformatter.
Related Issues (20)
- Formatter not working anymore with newest IDEA version. HOT 6
- Imports have an empty line between packages HOT 2
- Missing space before instanceof operator HOT 3
- Support loading XML configuration from JAR HOT 1
- Support disable modules in project
- Resolve project specific config can not find configuration file HOT 1
- Document is locked by write PSI operations during Replace in files
- Error logged by IDEA
- Eclipse Correct Indentation leads to different result
- Document version of bundled eclipse used by this plugin
- Newest Eclipse version is not compatible with EclipseCodeFormatter
- Failed to format with Adapter for Eclipse Code Formatter. Formatter config file not resolved. HOT 13
- @formatter:off is not working HOT 3
- Absolute Path to config file gets replaced with relative path using variable $PROJECT_DIR$ rendering settings unusable for a global central settings location HOT 7
- error failed to format with Adapter for Eclipse Code Formatter. Configured settings file does not exist, path="" HOT 3
- IconDeferrerImpl.clearCache IllegalStateException HOT 7
- Incompatible with IDEA2023.3.1 HOT 1
- Upgrade bundled eclipse to 2023-12 (4.30) HOT 3
- Code formatting before committing is not working in the newer version of IntelliJ IDEA
- EclipseCodeStyleManager not honoring plugin listeners HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eclipsecodeformatter.