Command line use doesn't exit with -n on completion

I’ve been finding jabref command line custom export filters extremely valuable for building my personal site. However, using the -n option to prevent the GUI from launching does not mean that the java process completes (and exits) once the export is complete, requiring a Control-C. This isn’t so bad when doing one export, but I’m doing three separate ones so I fire these off in the background using &, and then need to pkill the java processes later, which seems pretty ugly. Is there a work around or can I consider this a bug?

Thanks!

Hm, that is strange.

Mabye @tobiasdiez has an idea. He recently looked into the command line stuff

1 Like

I can reproduce the problem (java -jar JabRef.jar -n hangs forever) and think this is a bug. @davidaknowles can an you please open a bug report at https://github.com/JabRef/jabref/issues. Thanks!

1 Like

This seems to be an issue again in v5. Maybe the fix (https://github.com/JabRef/jabref/pull/3274) got lost somewhere in the v5 updates?

Hi,

can you give me a full cli command you did? e.g. running with -n just starts and exits so I think this must be somethign specific. e.g. import/export?

1 Like

Hmm so actually for me (on MacOS) even with just -n it doesn’t exit. I do get the message
Messages are not initialized before accessing key: Display help on command line options
not sure if that’s related. My version is 5.10–2023-09-01–779e555.
It’s not a big deal ofc I can just kill the process.

Can you please try again with the 5.11? (just released yesterday) JabRef download latest version