Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eliomdep doesn't seem to understand -map option #718

Open
thizanne opened this issue Oct 8, 2021 · 1 comment
Open

eliomdep doesn't seem to understand -map option #718

thizanne opened this issue Oct 8, 2021 · 1 comment

Comments

@thizanne
Copy link

thizanne commented Oct 8, 2021

(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).

@thizanne
Copy link
Author

thizanne commented Oct 8, 2021

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant