Git Product home page Git Product logo

Comments (4)

ctubbsii avatar ctubbsii commented on September 25, 2024

@galan There's no such Java version as 1.17. Change it to 17, and let us know if that works (will close in the meantime).

from formatter-maven-plugin.

galan avatar galan commented on September 25, 2024

Thanks for the hint, but unfortunately, the same error persists. @ctubbsii

[ERROR] Failed to execute goal net.revelc.code.formatter:formatter-maven-plugin:2.23.0:validate (default-cli) on project tester: Execution default-cli of goal net.revelc.code.formatter:formatter-maven-plugin:2.23.0:validate failed: Cannot invoke "org.eclipse.core.runtime.IExtensionRegistry.getExtensionPoint(String, String)" because the return value of "org.eclipse.core.runtime.Platform.getExtensionRegistry()" is null -> [Help 1]

from formatter-maven-plugin.

ctubbsii avatar ctubbsii commented on September 25, 2024

I could not reproduce the error, but I don't have your config file. I google'd for the error, and came across a similar issue, diffplug/spotless#1638 (comment), which pointed us back to our own issue #621 (comment)

So, I suspect your config file is not valid or is not compatible with the version of Eclipse JDT that this plugin is using. You can try importing your config file, and re-exporting it, from the corresponding Eclipse version for this plugin version.

from formatter-maven-plugin.

galan avatar galan commented on September 25, 2024

Yes, regarding your version compatibility sheet, this maven plugin does not cover the current eclipse verions. My version:

Eclipse IDE for Java Developers (includes Incubating components)
Version: 2023-09 (4.29.0)
Build id: 20230907-1323
OS: Linux, v.6.2.0-37-generic, x86_64 / gtk 3.24.33, WebKit 2.42.2
Java vendor: Eclipse Adoptium
Java runtime version: 17.0.9+9
Java version: 17.0.9

However, I downloaded Eclipse 2023-03 (4.27.0) and did an export for the older version, but the result was the same error as above.

Then I tested the hint from #621 (comment) and it turned out, that removing the following line also helped removing the error.

<setting id="org.eclipse.jdt.core.javaFormatter" value="org.eclipse.jdt.core.defaultJavaFormatter"/>

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.