eliom
eliom copied to clipboard
eliomdep doesn't seem to understand `-map` option
(I'm using eliom 7.0.0, and couldn't test it with a more recent version yet)
See the ocamldep invocation (and the expected failure):
thibault@manta \_o< eliomdep -server -ppx -verbose -eliom-inc src/auth/ -map auth.eliom src/auth/handler__auth.eliom
+ ocamldep.opt '-ppx' 'ppx_eliom_server -notype' '-ml-synonym' '.eliom' '-mli-synonym' '.eliomi' '-map' '-I' 'src/auth/' '-I' '.' '-impl' 'auth.eliom'
Fatal error: exception Invalid_argument("Filename.chop_extension")
-map is passed without its parameter to ocamldep, and then this parameter is considered as the "main" input of eliomdep.
So far I've been unable to find a workaround (apart from running ocamldep directly, that is).
Update: -map is not the issue, having the map as a .eliom[i] (or .ml[i]) is:
thibault@manta \_o< eliomdep -server -ppx -verbose -eliom-inc src/auth/ -map auth.foobar src/auth/handler__auth.eliom
+ ocamldep.opt '-ppx' 'ppx_eliom_server -notype' '-ml-synonym' '.eliom' '-mli-synonym' '.eliomi' '-map' 'auth.foobar' '-I' 'src/auth/' '-I' '.' '-impl' 'src/auth/handler__auth.eliom'
Fatal error: exception Failure("auth.foobar : empty map file or parse error")