Skip to content

ANTLR 4.12.0 produces java sources with illegal unicode escapes if a folder in the absolute path starts with 'u' #9783

@Zylence

Description

@Zylence

JabRef version

Latest development branch build (please note build date below)

Operating system

Windows

Details on version and operating system

Windows 10 22H2

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. Clone the project into a directory whose absolute path contains at least one folder starting with u (e.g: 'uTest', 'university')
  2. Build the project

This is an ANTLR related issue which only seems to affect windows antlr/antlr4#4128

Suggestion:
Downgrade ANTLR version to 4.11
Or mention this limitation as part of the workspace setup process on Windows.

(I assume the development branch is main - build date was today - 22.04.)

Appendix

...

Log File
F:\Share\education\university\<more directories>\src-gen\main\java\org\jabref\logic\bst\BstBaseVisitor.java:1: Error: invalid unicode escape character
// Generated from F:\Share\education\university\<more directories>/src/main/antlr4/org/jabref/bst/Bst.g4 by ANTLR 4.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    [outdated] type: bugConfirmed bugs or reports that are very likely to be bugsstatus: depends-on-externalA bug or issue that depends on an update of an external library

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions