Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    bfrodsham
    @bfrodsham
    Hello! I'm a new contributor and I'm looking for some help getting the local workspace set up. I'm using the guide. I'm at this part of the guide: "After that, you can use the Gradle Tool Window to build all parts JabRef and run it. To do so, expand the JabRef project in the Gradle Tool Window and navigate to Tasks. From there, you can
    Build and run JabRef by double-clicking JabRef | Tasks | application | run." However, I'm unable to expand the JabRef project as it says. Any ideas what I might've done wrong? I'll attach an image as well.
    1 reply
    bfrodsham
    @bfrodsham
    Any help is appreciated, thanks.
    Carl Christian Snethlage
    @calixtus
    Looks like an issue gradle recently had with java.
    Please make sure you have the latest JDK16 and JavaFX16 installed. Then make sure your local main branch is up to date (git fetch --all, then git checkout main, then git merge upstream/main)
    (You can't see the gradle tasks because gradle fails to build it' s buildscript)
    Christoph
    @Siedlerchr
    @MarcelPa Sorry, I think I accidently reported your post. Can you please open an issue at our github tracker?
    Marcel P
    @MarcelPa

    @MarcelPa Sorry, I think I accidently reported your post. Can you please open an issue at our github tracker?

    Sure, will do :-)

    Houssem Nasri
    @HoussemNasri
    Hi, is it normal behavior that we can define custom field names
    Christoph
    @Siedlerchr
    Yes, that's totally valid!
    4 replies
    And also complete new entry types
    ketchupninja
    @ketchupninja

    Hi, I'm having trouble using gradle to build Jabref locally. I'm on Windows 10, using a local installation of Gradle 7.2, using JDK 16.0.2, and 64-bit JRE 1.8.

    The "gradlew assemble" command results in the build failing the task "':generateBstGrammarSource'" due to the reason 'Process 'command 'C:\jdk-16.0.2\bin\java.exe'' finished with non-zero exit value 1'.

    Running with the -debug flag reveals the more specific issue "error(1): cannot write file : java.io.FileNotFoundException: src-gen\main\java\org\jabref\logic\bst\C:\BstParser.java (The filename, directory name, or volume label syntax is incorrect)"

    Just looking in src-gen via the file explorer confirms it's a bunch of empty folders.

    I'm not sure why the C: drive is showing up in a path like that. It may be related to the fact that my JDK installation/JAVA_HOME environment variable are set to C:/jdk-16.0.2 ?

    Carl Christian Snethlage
    @calixtus
    Hi @ketchupninja, thanks for you question. Im slightly confused why you are using jdk 16 with jre 1.8? Have you tried uninstalling all older versions of JRE? Did you use LibericaJDK 16?
    ketchupninja
    @ketchupninja
    Ah, I was confused about the distinction between JRE and JDK. I've removed the unnecessary JRE and other old versions of Java. I was following the local workspace guide and using OpenJDK 16.02. The problem persists, but I'll try using LibericaJDK16.
    ketchupninja
    @ketchupninja
    Switching my JDK installation to Liberica hasn't affected anything. generateBstGrammarSource still fails to find "src-gen\main\java\org\jabref\logic\bst\C:\BstParser.java".
    2 replies
    Brittany
    @jiezheng5
    Hi,
    I am using Ubuntn 20.04 and IntelliJ, and I closely followed every step of contributing guide at https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace. I can build and run perfectly fine with gradlew but it was a pain to get working with IntelliJ. Even though I already enabled auto imports in IntelliJ following distributing guide, I still got lots of read lines in IntelliJ indicating missing dependency, and the error message is "java: package org.jabref.logic.importer.fileformat.bibtexml does not exist". I searched online, and I already tried restart cache, delete .idea folder then re-import, move the folder, none worked.
    thanks very much for your time.
    image.png
    Christoph
    @Siedlerchr
    @ketchupninja Can you try to isntall the jdk in the default location? And in which folder is your JabRef workspace located?
    5 replies
    Carl Christian Snethlage
    @calixtus
    @jiezheng5 yes, i can totally relate to that. Thats why i'm always compiling with gradlew run because of these problems. But @koppor prefers using intellij to build an run since it's compiles somewhat quicker. Anyway, there seems to be something wrong with the project folder structure. Could you show us what "File->Project Structure->Modules shows?" displays on the right hand side below "+ Add content root"?
    10 replies
    Benedikt Tutzer
    @btut

    Hi @jiezheng5

    I still got lots of read lines in IntelliJ indicating missing dependency, and the error message is "java: package org.jabref.logic.importer.fileformat.bibtexml does not exist".

    When you get the red lines, does Idea still build and run fine? I have that some times (red lines but still building and running). Invalidating caches (File -> Invalidate Caches, but from what I understand you already tried that) helps. I usually do a gradlew clean and then invalidate the caches.

    5 replies
    Brittany
    @jiezheng5
    image.png
    ketchupninja
    @ketchupninja
    In the local workspace setup guide, it instructs us to delete Log4jPlugins. I wanted to clarify a couple points about this.
    1. Is this only necessary if we want to make use of IntelliJ's internal build system, and it is not necessary otherwise?
    2. Deleting this file generates warnings because this file is referenced other places in the code base. Should these warnings simply be ignored?
    1 reply
    Brittany
    @jiezheng5
    2021-11-13_05-09.png

    Error: Could not find or load main class org.jabref.gui.JabRefMain
    Caused by: java.lang.ClassNotFoundException: org.jabref.gui.JabRefMain

    I can never get jabref to run in IntelliJ and I am using Ubuntn 20.04. I can always run with gradle.
    I also noticed that the generated folder under src-gen is always empty after running gradle assemble and gradle run. I have tried multiple times and all possible sequences of the following steps:

    File -> Invalidate Cache...
    File -> Open -> build.gradle -> open as project,
    gradle clean
    gradle assemble
    gradle run

    then run JabRef Main in IntelliJ, always got the same error:
    Error: Could not find or load main class org.jabref.gui.JabRefMain
    Caused by: java.lang.ClassNotFoundException: org.jabref.gui.JabRefMain

    any suggestions are greatly appreciated,

    7 replies
    Jonatan Asketorp
    @k3KAW8Pnf7mkmdSMPHz27
    Skärmavbild 2021-11-13 kl. 10.07.34.png
    Brittany
    @jiezheng5
    2021-11-13_16-06.png
    Brittany
    @jiezheng5
    2021-11-13_05-09.png
    3 replies
    Oliver Kopp
    @koppor
    Did you know that IntelliJ supports running test cases separately? And that also debug run is possible?
    grafik.png
    Navigate to the test class by pressing Ctrl+Shift+T. At each @Test method, you can click on the green play button
    HarshSawarkar
    @HarshSawarkar

    Hi team, I am new to Gsoc program, highly motivated for contributing to Open Source Projects specifically in JAVA language.
    I am an undergraduate with verse knowledge in JAVA, C++, Worked on projects based JAVA, Advance Data Structure. I am keenly interested to contribute to JAVA PathFinder.

    I would like to begin contributing to the projects and issues, Please Can I get some guidance to get started, I am going through some references, But it would be great If I get a path to follow.

    Carl Christian Snethlage
    @calixtus
    Hi @HarshSawarkar I think you are probably in the wrong chat. This is the JabRef chat, not the Java PathFinder chat. JabRef is a citation management software written in Java. However, if you are interested in contributing to JabRef too, I would like to invite you to read the developer docs https://devdocs.jabref.org/ and take a look at our good first issues https://github.com/JabRef/jabref/labels/good%20first%20issue to get started in JabRef development.
    If you have questions, don't hesitate to ask, we are happy to answer.
    HarshSawarkar
    @HarshSawarkar
    Yes I would love to contribute to Jabref
    Is Jabref going to participate in GSOC 2022?
    Carl Christian Snethlage
    @calixtus
    We participated in 2021. It always depends on google, if they accept an application. We'll be discussing internally if we are going to apply for it next year, but applications wont open until april anyway.
    HarshSawarkar
    @HarshSawarkar
    Anyways,I find your projects very interesting and hence want to contribute and learn. Please can you guide me to get started for the contribution. Also please let me know regarding GSOC thing.
    Carl Christian Snethlage
    @calixtus
    Yes, like said, check our devdocs and the good first issues, they are a good start into JabRef development.
    HarshSawarkar
    @HarshSawarkar
    okay i will check
    Kristijan Cindrić
    @kcindric
    Hi folks! Was there any incentive to build a restful api on top of JabRef engine so it could work as a webservice?
    Christoph
    @Siedlerchr
    @kcindric We are currently trying to connect JabRef to JabRef-Online (work in progress, web application for JabRef) via a graphql-connection
    JabRef/jabref#7832
    Kristijan Cindrić
    @kcindric
    @Siedlerchr that's awesome, nice work!
    Kristijan Cindrić
    @kcindric
    I suppose you're trying to not re-invent the wheel with JabRef-Online and use the JabRef engine for handling reference entries?
    Christoph
    @Siedlerchr
    Jabref online https://github.com/JabRef/JabRefOnline is a kind of different concept .
    Best ask @tobiasdiez for the overall concept
    But we also had the idea of modulizing JabRef so that it can be used as a library
    However, as we all work on JabRef in our free time we lack the time and manpower...
    Kristijan Cindrić
    @kcindric
    I would love to help with JabRef development as I was using it a lot when I was working in academia as a biologist. Now I switched careers and I'm working mostly as a backend dev using .NET Core. As a novice developer Java, although similar to C#, seems daunting to start working in.
    Christoph
    @Siedlerchr
    @kcindric Cool ;) If you prefer not to give Java a try we also have other options to contribute https://docs.jabref.org/contributing
    Or if you want to give Typescript a try https://github.com/JabRef/JabRefOnline or the word addin https://github.com/JabRef/JabRef-Word-Addin