-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
by executing the command:
opa --parser js-like demo_resizable.opa -o resizable.exe
i get the following error message:
Error
File "demo_resizable.opa", line 15, characters 0-249, (15:0-23:1 | 356-605)
Function was found of type Server.conf, Server.handler -> void but
application expects it to be of type
Server.conf,
{ hd:
{ resources: ordered_map(string, Resource.resource, String.order) } / 'c.b;
tl: list
({ register: { hd: string; tl: list(string) } / 'c.d } /
{ page: -> xhtml; title: string } / 'c.c) } /
'c.a -> 'a.
Types string and
{ css: list(string) } / { doctype: Resource.doctype } /
{ favicon: list(Favicon.t) } /
{ hd: Server.registrable_resource; tl: list(Server.registrable_resource) } /
{ js: list(string) } / { nil } are not compatible
Hint:
Error occurred through field hd.
i use version 0.9.4 of opa compiler.
i solved this issue by editing the file demo_resizable.opa
from:
Server.start(Server.http,
[ { resources: @static_resource_directory("resources") }
, { register: [ "resources/jquery-ui-1.8.16.custom.css"
, "resources/style.css"
]
}
, {title: "jQuery-UI demo", ~page}
]
)
to:
Server.start(Server.http,
[ { resources: @static_resource_directory("resources") }
, { register:{css: [ "resources/jquery-ui-1.8.16.custom.css"
, "resources/style.css"
]}
}
, {title: "jQuery-UI demo", ~page}
]
)
i think the syntax has changed and so the additional {css: ... } is necessary.
jojo
Metadata
Metadata
Assignees
Labels
No labels