Modify

Opened 7 months ago

Closed 10 days ago

Last modified 10 days ago

#24374 closed defect (fixed)

when adding address, I can no longer select -1, -2 as I could before

Reported by: mnalis Owned by: team
Priority: normal Milestone: 25.10
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. add a node
  2. choose F3 / Annotation/Address
  3. notice there are only "+1" and "+2" increments there

What is the expected result?

I would be offered "+1", "+2", "-1", "-2" (as it was a case some time ago)

What happens instead?

only "+1" and "+2" are offered

Please provide any additional information below. Attach a screenshot if possible.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2025-06-02 16:42:20 +0200 (Mon, 02 Jun 2025)
Revision:19412
Build-Date:2025-06-03 01:30:55
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (19412 en) Linux Debian GNU/Linux 12 (bookworm)
Memory Usage: 690 MB / 3936 MB (414 MB allocated, but free)
Java version: 17.0.15+6-Debian-1deb12u1, Debian, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920x1080x[Multi depth]@60Hz (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: hr_HR.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: ICEWM
Java package: openjdk-17-jre:amd64-17.0.15+6-1~deb12u1
fonts-noto: fonts-noto:all-20201225-1
Dataset consistency test: No problems found

Last errors/warnings:
- 00040.191 E: Cannot parse auto-increment value of '-2' into an integer
- 00040.191 E: Cannot parse auto-increment value of '-1' into an integer

Attachments (1)

addr.png (45.4 KB ) - added by mnalis 7 months ago.
no -1, -2 decrements offered; only +1, +2 increments

Download all attachments as: .zip

Change History (6)

by mnalis, 7 months ago

Attachment: addr.png added

no -1, -2 decrements offered; only +1, +2 increments

comment:1 by mnalis, 2 months ago

Any ideas? It is still present in latest josm-tested.jar 19439 (on Java 21.0.9), only the error message format changed a little:

2025-11-14 01:57:41.998 SEVERE: Cannot parse auto-increment value of '-2' into an integer
2025-11-14 01:57:41.999 SEVERE: Cannot parse auto-increment value of '-1' into an integer

Is it reproducible? If not, can I do anything else to try help to narrow it down?

Last edited 2 months ago by mnalis (previous) (diff)

comment:2 by GerdP, 2 months ago

I cannot reproduce it. The corresponding line in the defaultpresets.xml looks like this

            <text key="addr:housenumber" text="House number" match="key" auto_increment="-2,-1,+1,+2" />

comment:3 by mnalis, 10 days ago

I seem to have tracked it down to some locale interactions.

On the same system, following commands:

  • env -i DISPLAY=:0 LANG=hr_HR.UTF-8 LC_MESSAGES=C java -jar josm-tested.jar exhibits the bug (i.e. -2 and -1 are missing)
  • env -i DISPLAY=:0 LANG=hr_HR.UTF-8 java -jar josm-tested.jar works normally
  • env -i DISPLAY=:0 LC_MESSAGES=C java -jar josm-tested.jar works normally

could you reproduce it with that first command?

comment:4 by stoecker, 10 days ago

Resolution: fixed
Status: newclosed

In 19459/josm:

fix #24374 - parsing errors for integer values

comment:5 by stoecker, 10 days ago

Milestone: 25.10

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.