-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AI] Add more uses statements #11788
Conversation
Tested locally:
|
The uses statements are not enough, you need to add the provides (for the services loading mechanism) to the build gradle, see my comment in the melting pot. It's about the merged module. Use the suggested merge module gradle task to add the correct provides |
No "real" change: uses 'ai.djl.engine.EngineProvider'
uses 'ai.djl.repository.RepositoryFactory'
uses 'ai.djl.repository.zoo.ZooProvider'
- uses 'dev.langchain4j.spi.prompt.PromptTemplateFactory'
uses 'kong.unirest.core.json.JsonEngine'
+ uses 'org.controlsfx.glyphfont.GlyphFont'
+ uses 'org.eclipse.jgit.lib.GpgSignatureVerifierFactory'
uses 'org.eclipse.jgit.lib.GpgSigner'
uses 'org.eclipse.jgit.transport.SshSessionFactory'
+ uses 'org.glassfish.hk2.extension.ServiceLocatorGenerator'
uses 'org.mariadb.jdbc.LocalInfileInterceptor'
- uses 'org.mariadb.jdbc.authentication.AuthenticationPlugin'
- uses 'org.mariadb.jdbc.credential.CredentialPlugin'
- uses 'org.mariadb.jdbc.tls.TlsSocketPlugin'
+ uses 'org.postgresql.shaded.com.ongres.stringprep.Profile' + requires 'com.fasterxml.jackson.annotation'
+ requires 'com.fasterxml.jackson.databind'
+ requires 'com.fasterxml.jackson.core'
+ requires 'com.fasterxml.jackson.datatype.jdk8'
+ requires 'com.google.errorprone.annotations'
requires 'com.google.gson'
+ requires 'com.googlecode.javaewah'
+ requires 'com.sun.xml.txw2'
+ requires 'jakarta.activation'
+ requires 'jakarta.annotation'
+ requires 'jakarta.inject'
+ requires 'jakarta.validation'
+ requires 'jakarta.ws.rs'
requires 'jakarta.xml.bind'
requires 'java.compiler'
requires 'java.datatransfer'
requires 'java.desktop'
+ requires 'java.instrument'
requires 'java.logging'
requires 'java.management'
requires 'java.naming'
requires 'java.net.http'
requires 'java.rmi'
- requires 'java.scripting'
requires 'java.security.jgss'
- requires 'java.security.sasl'
requires 'java.sql'
requires 'java.sql.rowset'
requires 'java.transaction.xa'
requires 'java.xml'
requires 'javafx.base'
requires 'javafx.controls'
requires 'javafx.fxml'
requires 'javafx.graphics'
requires 'javafx.media'
requires 'javafx.swing'
- requires 'jdk.jsobject'
+ requires 'jdk.attach'
+ requires 'jdk.jdi'
+ requires 'jdk.management'
requires 'jdk.security.jgss'
requires 'jdk.unsupported'
- requires 'jdk.unsupported.desktop'
- requires 'jdk.xml.dom'
+ requires 'kotlin.stdlib'
+ requires 'org.apache.commons.codec'
+ requires 'org.apache.commons.compress'
+ requires 'org.apache.commons.io'
requires 'org.apache.commons.lang3'
requires 'org.apache.commons.logging'
requires 'org.apache.commons.text'
requires 'org.freedesktop.dbus'
+ requires 'org.glassfish.grizzly'
+ requires 'org.glassfish.grizzly.http'
+ requires 'org.glassfish.grizzly.http.server'
+ requires 'org.jetbrains.annotations'
requires 'org.jsoup'
requires 'org.slf4j'
+ requires 'org.yaml.snakeyaml' Thus, leaving that part as is. |
Tested locally; works 😅 |
|
@@ -738,48 +741,52 @@ jlink { | |||
// This is based on ./gradlew suggestMergedModuleInfo, sort, strip ";"", comment non-used modules, and include the suggested directives here. | |||
// However, we need to fine-tune this manually (non-alphabetic order) | |||
mergedModule { | |||
requires 'javafx.base' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the xth time! Do not reorder the dependencies here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see the comment above in the build.gradle!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to find out the reason, while I am on it. We did not document it back than. We just said: Some local experiments showd that it does not work.
I tried today with alphabetic ordering. It works. - Having alphabetic ordering in place helps to include the output of ./gradlew suggestMergedModuleInfo
. Otherwise, it is an endless brainfuck.
If it does not, we have enough time before a release.
The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build. |
Works fine here. @ThiloteE Can you test, too? |
Doesn't work on my Windows 10 with Nvidia Geforce GTX 1060 3GB with
|
seems like your Caused by: java.lang.UnsatisfiedLinkError: C:\Users\Thilo.djl.ai\pytorch\2.4.0-cu124-win-x86_64\torch_cuda.dll: Can't find dependent libraries is still missing Did you install the VC++ stuff? |
@Siedlerchr yes, indeed. I have opened an issue here: https://github.com/JabRef/jabref-issue-melting-pot/issues/537. This is the third or fourth pull-request I am commenting on :D Yes, I have tried what you suggested already. See https://github.com/JabRef/jabref-issue-melting-pot/issues/537#issuecomment-2357959861 |
…xArxivHtmlImport * 'fixArxivHtmlImport' of github.com:JabRef/jabref: Fix focus for keywords and crossref fields (#11792) Fix ai chat not on fx thread (#11796) [AI] Add more uses statements (#11788) Update djl api dependency (#11787) Improve pdf content parser for DOIs (#11782) minor refactor to JabRefDialogService (#11767) Add more OS-dependent context to panel freeze dev documentation. (#11781)
Fixes https://github.com/JabRef/jabref-issue-melting-pot/issues/538
Still not working
Refs deepjavalibrary/djl#3473
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)