Giter VIP home page Giter VIP logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024

Original comment by [email protected] on 28 May 2013 at 11:12

  • Added labels: Milestone-0.4

from formatter-maven-plugin.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.