Comments (8)
..and by "attached" I mean: https://gist.github.com/idcmp/e5e12da322e943f2b0ff
from eclipsecodeformatter.
Both Eclipse and this plugin wraps it the same. What Eclipse version do you use?
from eclipsecodeformatter.
Well that's embarrassing. Let me double check this situation.
from eclipsecodeformatter.
I'm able to reproduce this locally with the latest version of EAP 14 with something as simple as:
public class Hello {
public void hello(String name) {
System.out.println("name = " + name);
}
}
Hitting reformat outputs the following in idea.log:
2014-08-28 11:19:10,256 [ 402765] DEBUG - plugin.EclipseCodeStyleManager - reformatText Hello.java 0 162
2014-08-28 11:19:10,257 [ 402766] DEBUG - er.plugin.EclipseCodeFormatter - #format 0-162
2014-08-28 11:19:10,257 [ 402766] DEBUG - er.plugin.EclipseCodeFormatter - #formatWhenEditorIsOpen Hello.java
2014-08-28 11:19:10,257 [ 402766] DEBUG - clipse.JavaCodeFormatterFacade - #formatInternal
2014-08-28 11:19:10,258 [ 402767] DEBUG - clipse.JavaCodeFormatterFacade - #starting to format by eclipse formatter
2014-08-28 11:19:10,261 [ 402770] DEBUG - clipse.JavaCodeFormatterFacade - reformatting done
2014-08-28 11:19:10,264 [ 402773] DEBUG - er.plugin.EclipseCodeFormatter - #formatWhenEditorIsOpen done
This gives me:
public class Hello {
public void hello(
String name) {
System.out.println("name = " + name);
}
}
Formatter XML was created on (and runs fine on) Eclipse Kepler SR2 20140224-0627
from eclipsecodeformatter.
Eclipse Kepler SR2 20140224-0627
from eclipsecodeformatter.
Perhaps there is another save action active in eclipse, which is applied after the formatting? Remove-Whitespaces or so...
from eclipsecodeformatter.
I finally found the root cause of this. The developer configuring the standards was committing the wrong file into git. User error. Thanks for looking into this; if you have a paypal link, let me know. :-)
from eclipsecodeformatter.
@idcmp : I am not the author of this plugin. @krasa is the author. His paypal link you will find on the project page: http://plugins.jetbrains.com/plugin/?idea&id=6546 (the big button on the bottom)
from eclipsecodeformatter.
Related Issues (20)
- 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
- Eclipse Formatter not called in IntelliJ 2024.1 EAP HOT 1
- ImportsComparator IndexNotReadyException
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.