Comments (5)
I have figured out part of the problem. I checked out the source code so I'm
now looking at the 4-SNAPSHOT build.
This line returns null to "te":
TextEdit te = formatter.format(CodeFormatter.K_COMPILATION_UNIT +
CodeFormatter.F_INCLUDE_COMMENTS, code, 0, code.length(), 0, lineSeparator);
Using this 'custom' formatter file:
http://maven.apache.org/developers/maven-eclipse-codestyle.xml
When I remove the custom formatter file I get more (minor) issues, but this one
goes away. My boss really likes the curly braces on new lines so I'm going to
debug a little further. There's a bug somewhere - maybe in Maven's official
codestyle.xml rules (doubtful) ?
Original comment by [email protected]
on 11 Feb 2013 at 4:06
from formatter-maven-plugin.
Okay, problem solved:
<setting id="org.eclipse.jdt.core.compiler.source" value="1.7"/>
That was set to 1.5 in the Eclipse export file, but I had it set to 1.7 in the
options -- this causes te to come back null.
So far as I can tell, this is the only cause to my issue.
Original comment by [email protected]
on 12 Feb 2013 at 5:01
from formatter-maven-plugin.
It should be noted that my issues only go away completely with version
.4-SNAPSHOT, 0.3.1 still will not format some files.
Original comment by [email protected]
on 12 Feb 2013 at 5:23
from formatter-maven-plugin.
Original comment by [email protected]
on 28 May 2013 at 11:12
- Added labels: Milestone-0.4
from formatter-maven-plugin.
Version 0.4 is released
Original comment by [email protected]
on 12 Aug 2013 at 11:51
- Changed state: Fixed
from formatter-maven-plugin.
Related Issues (20)
- Eclipse Formatter Attribute Ignored: Parameter After Annotation HOT 1
- Sealed interfaces are not correctly formatted HOT 3
- Not able to run validate due to ExtensionRegistry return null value HOT 4
- False configuration used for line Indentation HOT 2
- lineEnding=KEEP breaks JSON validation on Windows HOT 6
- Report problematic line number in error message HOT 3
- Tab treated as one space for the purpose of line length HOT 3
- Includes are not honored by includeResources HOT 1
- Rewrite the cache store to match that done on impsort HOT 1
- Please use change log or github releases HOT 3
- Support 'windows' users for contributions HOT 1
- No documentation for 'find-transitive-eclipse-updates.sh' and it does not work on windows without additional software HOT 1
- Next Release: placeholder to prevent release HOT 6
- Java 21 compliance HOT 1
- Incorrect documentation HOT 5
- Formatter no longer formats in version 2.24.0 HOT 10
- Integration Tests needed - Good for first time contributors
- NPE: Cannot invoke "org.eclipse.jdt.internal.compiler.ast.TypeReference.extraDimensions()" with version 2.24 HOT 1
- Allow 'validate' to write violations to a file, and not stop the build HOT 1
- Js Formatter not work HOT 6
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 formatter-maven-plugin.