Giter Site home page Giter Site logo

Comments (11)

petebankhead avatar petebankhead commented on July 30, 2024

Hmmm, builds for me but with a complaint.
PR now with an attempted fix (which also gets rid of the complaint).

from qupath-extension-template.

alanocallaghan avatar alanocallaghan commented on July 30, 2024

Very odd, even changing the javadocs the issue persists for me on a cloned copy, though using the IDE setup steps works fine.

from qupath-extension-template.

alanocallaghan avatar alanocallaghan commented on July 30, 2024

If it's only my machine then I'll dig into it properly tomorrow

from qupath-extension-template.

petebankhead avatar petebankhead commented on July 30, 2024

Have you checked the generated javadoc options file for clues?

I've seen small javadoc errors kill a build, but the default is to kindly ask the javadoc to not be so petty: https://github.com/qupath/qupath-extension-template/blob/main/build.gradle#L99

from qupath-extension-template.

alanocallaghan avatar alanocallaghan commented on July 30, 2024

I can't spot anything obvious, all of the listed directories exist and the other options all seem sensible too

from qupath-extension-template.

petebankhead avatar petebankhead commented on July 30, 2024

Does it build successfully if you comment on the line withJavadocJar() ?
(I guess you've also tried gradlew clean)

from qupath-extension-template.

alanocallaghan avatar alanocallaghan commented on July 30, 2024

Hadn't tried clean as I was working from a fresh clone, but it doesn't change anything. Removing withJavadocJar does allow me to build, yeah

from qupath-extension-template.

alanocallaghan avatar alanocallaghan commented on July 30, 2024

Ah! It's trying to run /usr/lib/jvm/java-11-openjdk-amd64/bin/javadoc but
ls: cannot access '/usr/lib/jvm/java-11-openjdk-amd64/bin/javadoc': No such file or directory

Just a jdk config error by me

from qupath-extension-template.

petebankhead avatar petebankhead commented on July 30, 2024

Hmmm, not an entirely satisfying solution though... only other thing i can think of is that you've got an unhappy JDK. Throwing

println System.properties['java.home']

into build.gradle should print whatever it's using. The easiest way to change is often to create a gradle.properties file and include (at least)

org.gradle.java.home=/path/to/jdk/

You can technically run Gradle with one JDK but build with another, thanks to toolchains - so conceivably the toolchain is hunting for some unexpected JDK to use.

I generally use the builds from Eclipse Temurin™ and that's also what is used with GitHub Actions here.

from qupath-extension-template.

alanocallaghan avatar alanocallaghan commented on July 30, 2024

It's poor exception handling from gradle for sure, the issue is I have openjdk-11-jdk installed (and maybe some other packages) but not openjdk11-doc.

To be safe, possibly best to install openjdk[version]-*

from qupath-extension-template.

petebankhead avatar petebankhead commented on July 30, 2024

Wow, I'm surprised those are two different things :/

from qupath-extension-template.

Related Issues (5)

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.