Opened 8 years ago
Closed 8 years ago
#14381 closed enhancement (fixed)
Update to opening_hours v3.5.0
Reported by: | ypid23 | Owned by: | ypid23 |
---|---|---|---|
Priority: | normal | Milestone: | 17.02 |
Component: | Core validator | Version: | latest |
Keywords: | opening_hours | Cc: | simon04 |
Description (last modified by )
Hey
Please update to opening_hours v3.5.0 which fixes one issue with the legacy 12-hour clock format. 12:xxAM and 12:xxPM was handled incorrectly. This could lead to wrong data in OSM when users do an automatic fix of opening_hours. The other changes should not effect JOSM usage of the library.
Release: https://github.com/opening-hours/opening_hours.js/releases/tag/v3.5.0
Attachments (0)
Change History (14)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
comment:2 by , 8 years ago
Milestone: | → 17.02 |
---|
comment:3 by , 8 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | new → needinfo |
comment:4 by , 8 years ago
Type: | defect → enhancement |
---|
comment:7 by , 8 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
There are 16 new failing tests: https://josm.openstreetmap.de/jenkins/job/JOSM/2352/testReport/
comment:9 by , 8 years ago
javax.script.ScriptException: ReferenceError: "require" is not defined in <eval> at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:470) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:454) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264) at org.openstreetmap.josm.data.validation.tests.OpeningHourTest.initialize(OpeningHourTest.java:55) at org.openstreetmap.josm.data.validation.tests.ConditionalKeys.initialize(ConditionalKeys.java:50) at org.openstreetmap.josm.data.validation.tests.ConditionalKeysTest.setUp(ConditionalKeysTest.java:27) Caused by: <eval>:1 ReferenceError: "require" is not defined at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57) at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:319) at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:291) at jdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1441) at jdk.nashorn.internal.scripts.Script$21$\^eval\_.:program(<eval>:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
What's wrong?
comment:10 by , 8 years ago
A lot of stuff seems to be missing, are you sure make opening_hours.min.js
was the only command we had to run?
comment:13 by , 8 years ago
Damn, my hacky IntelliJ config fooled me (again). After updating the JS file, I ran the test. But since I obtain the data
/… resources from a built JAR file and I did not build an updated JAR file, I basically tested the old JS code. Sorry.
What's the command line to generate the .js file we include in JOSM, I don't remember?