Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#9503 closed defect (fixed)

Different syntax for .cfg and .mapcss validator files

Reported by: naoliv Owned by: team
Priority: normal Milestone: 14.01
Component: Core Version:
Keywords: template_report Cc:

Description (last modified by naoliv)

Unless I can't see a problem here, it seems that JOSM differently loads a .cfg from a .mapcss validator file:

INFO: Adding /home/naoliv/file:/home/naoliv/.josm/validador-local.mapcss to tag checker
WARNING: java.lang.RuntimeException: Failed to add /home/naoliv/file:/home/naoliv/.josm/validador-local.mapcss to tag checker. Cause: java.io.FileNotFoundException: file:/home/naoliv/.josm/validador-local.mapcss (No such file or directory)
java.lang.RuntimeException: Failed to add /home/naoliv/file:/home/naoliv/.josm/validador-local.mapcss to tag checker
	at org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.initialize(MapCSSTagChecker.java:401)
	at org.openstreetmap.josm.data.validation.OsmValidator.initializeTests(OsmValidator.java:297)
	at org.openstreetmap.josm.data.validation.OsmValidator.<init>(OsmValidator.java:140)
	at org.openstreetmap.josm.Main$2.call(Main.java:477)
	at org.openstreetmap.josm.Main$2.call(Main.java:464)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
Caused by: java.io.FileNotFoundException: file:/home/naoliv/.josm/validador-local.mapcss (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:146)
	at java.io.FileInputStream.<init>(FileInputStream.java:101)
	at org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.initialize(MapCSSTagChecker.java:399)
	... 8 more

Note how both the .cfg and .mapcss are being included:

It works for the .cfg one.

Attachments (1)

source.png (54.6 KB ) - added by naoliv 11 years ago.

Download all attachments as: .zip

Change History (6)

by naoliv, 11 years ago

Attachment: source.png added

comment:1 by naoliv, 11 years ago

Description: modified (diff)

comment:2 by simon04, 11 years ago

Resolution: fixed
Status: newclosed

In 6584/josm:

fix #9503 - Different syntax for .cfg and .mapcss validator files paths (implementation uses MirroredInputStream now)

comment:3 by naoliv, 11 years ago

Resolution: fixed
Status: closedreopened

There is one problem: after updating JOSM to 6596 my local validator file was removed from JOSM (now it has 3 files: tagchecker.cfg, ignoretags.cfg and words.cfg)

It shouldn't drop my included data source.

comment:4 by naoliv, 11 years ago

Resolution: fixed
Status: reopenedclosed

Looking at the changelog it was due to changeset 6593 (so sorry for reopening it).

comment:5 by Don-vip, 11 years ago

Milestone: 14.01

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.