Different syntax for .cfg and .mapcss validator files
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:
![](/raw-attachment/ticket/9503/source.png)
It works for the .cfg one.
Change History
(6)
Description: |
modified (diff)
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Resolution: |
→ fixed
|
Status: |
reopened → closed
|
In 6584/josm: