question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intelij run configuration not working

See original GitHub issue

JabRef version

Other (please describe below)

Operating system

GNU / Linux

Details on version and operating system

Manjaro with GNOME 42.4, Jabref main branch (commit 349c879)

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Setup local workspace, including Intelij IDE configuration;
  2. Try running application with JabRef Main run config;
  3. Errors stop the application from running.

This behavior seems to manifest in two ways:

  1. Intelij cannot run because the application’s main entry point has changed from org.jabref.gui.JabRefMain to org.jabref.cli.Launcher in PR #9217. I’ve been able to run normally by just changing the entry point on the config file (and was not sure if this was going to be reverted, as PR #9257 was still open at the time)
  2. Now, I cannot run even with the entry point change because of a build error on org.jabref.gui.desktop.os.Windows. See appendix for error message.

Appendix

Log File
/home/james/Documents/Github Repos/Public/jabref/src/main/java/org/jabref/gui/desktop/os/Windows.java:84:9
java: cannot access com.sun.jna.LastErrorException
  class file for com.sun.jna.LastErrorException not found

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
kopporcommented, Oct 24, 2022

I will remove the IntelliJ run config in a PR - it does not run on my machine, too. 😇

The manual start can be triggered at Launcher.java:

grafik

Runs only with Gradle.


Does NOT work with IntellIJ:

grafik

grafik

I don’t know about a quick fix here…

0reactions
kopporcommented, Nov 6, 2022

I worked on refining the guideline. It is currently under review at https://github.com/JabRef/jabref/pull/9355.

You have to configure IntelliJ to use Gradle for Build and running - and “IntelliJ IDEA” for test:

grafik


IntelliJ creates the launch configurations. Check out following steps:

grafik

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run/debug configurations | IntelliJ IDEA Documentation
Learn how to use run configurations to run/debug your code in IntelliJ IDEA with various startup properties.
Read more >
All IntelliJ run configurations disappeared - Stack Overflow
You can go to your main project and right click on it, select local history --> show history. Find some point in time...
Read more >
Help! Run/Debug are not working at IntelliJ IDEA. : r/Kotlin
Just a quick guess, try going to File-> project structure and make src a source directory. It doesn't look like you have the...
Read more >
Run Configurations - IntelliJ with Bazel
Bazel run configurations are different from normal IntelliJ run ... In addition, re-running failed tests is only supported for single-test targets (not ...
Read more >
How to share run configurations in IntelliJ IDEA
Just go to Add configuration... (Or Edit Configurations... ) and you should see your stored configs in the list. From there, you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found