Skip to content

@String handling seems broken #12174

@jspitz

Description

@jspitz

JabRef version

5.15 (latest release)

Operating system

GNU / Linux

Details on version and operating system

JabRef 5.15--2024-07-10--1eb3493
Linux 6.11.6-2-default amd64
Java 21.0.2
JavaFX 22.0.1+7

Checked with the latest development build (copy version output from About dialog)

  • 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

Trying to use @String constants with JabRef I am facing multiple challenges:

  1. Trying to enter a new string I follow the docs and use the string editor. However, whatever I do, any string name I enter is reset to "NewString" as soon as I leave the widget, and any value reset to empty. So I end up with @String{NewString = {}}
  2. After having fixed this in a text editor (let's say to @String{ffm = {Frankfurt a.\,M.}}) the string is correctly listed in the string editor. But if I want to use it in the location field as advised, namely #ffm#, JabRef wrongly writes location = {#ffm#}, (rather than location = ffm,)
  3. Now if I fix this in the code editor, the location widget keeps on displaying #ffm#; fine. But as soon as I change anything in this entry (say, fill in the langid field), the source changes back to location = {#ffm#}, (and the output is broken)

Unless I have missed something, it looks like this feature is completely broken in this version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions