Modify ↓
Opened 8 months ago
Closed 8 months ago
#23605 closed defect (duplicate)
Unable to search for negative id
Reported by: | nkamapper | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
Search for a new element (with a negative id), e.g. search string 'id: -636079' or 'id:"-63079"'.
What is the expected result?
Correct element is selected.
What happens instead?
JOSM assumes the search is for a range/interval.
Please provide any additional information below. Attach a screenshot if possible.
Perhaps I am not aware of a trick to get the search string right ...
Revision:19017 Build-Date:2024-03-18 12:34:48 Identification: JOSM/1.5 (19017 en_GB) Mac OS X 12.7.2 OS Build number: macOS 12.7.2 (21G1974) Memory Usage: 2228 MB / 4096 MB (593 MB allocated, but free) Java version: 21.0.2+13-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM Look and Feel: com.apple.laf.AquaLookAndFeel Screen: Display 69733568 1440×900 (scaling 2.00×2.00) Maximum Screen Size: 1440×900 Best cursor sizes: 16×16→16×16, 32×32→32×32 System property file.encoding: UTF-8 System property sun.jnu.encoding: UTF-8 Locale info: en_GB Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Djpackage.app-version=19017, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=/Applications/JOSM.app/Contents/MacOS/JOSM] Dataset consistency test: No problems found Plugins: + PicLayer (1.0.3) + RelationDissolve (0.2.0) + apache-commons (36176) + apache-http (36176) + changeset-viewer (0.0.7) + conflation (0.6.11) + ejml (36176) + ext_tools (36126) + geotools (36176) + imagery-xml-bounds (36196) + jackson (36176) + jaxb (36118) + jna (36176) + jts (36004) + log4j (36176) + opendata (36200) + pdfimport (36205) + reverter (36233) + scripting (v0.3.1) + todo (137) + utilsplugin2 (36226) Tagging presets: + https://josm.openstreetmap.de/josmfile?page=Presets/LaneAttributes&zip=1 + https://raw.githubusercontent.com/OpenNauticalChart/josm/master/INT-1-preset.xml Map paint styles: + https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1 - https://raw.githubusercontent.com/OpenSeaMap/josm/master/CEVNI_MapCSS.mapcss - https://raw.githubusercontent.com/OpenSeaMap/josm/master/INT1_Seamark.mapcss - https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1 Last errors/warnings: - 10571.249 W: org.openstreetmap.josm.data.osm.search.SearchParseError: Range of primitive ids expected
Attachments (0)
Change History (2)
comment:1 by , 8 months ago
comment:2 by , 8 months ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Closed as duplicate of #17611.
Note:
See TracTickets
for help on using tickets.
The trick is to use the MapCSS selector. This expression will find any object with the id -636079:
That said I agree that it would be nicer if the normal search could be used as this syntax is hard to remember.