ocsigen-start icon indicating copy to clipboard operation
ocsigen-start copied to clipboard

Inferred type of client value not found on '_language.eliom'

Open remyzorg opened this issue 6 years ago • 0 comments

Hi,

File "maps_places_language.eliom", line 29, characters 19-55:
Error: Error: Inferred type of client value not found. You need to regenerate _server/maps_places_language.type_mli.
Makefile.os:284 : la recette pour la cible « _client/maps_places_language.cmo » a échouée
make: *** [_client/maps_places_language.cmo] Erreur 2

This is my output of make test.byte, where maps_places is the project name

I have this error, when I try to build a basic project with ocsigen-start. Regenerate the file doesn't seem to help.

There is a similar error here : https://github.com/ocsigen/ocsigen-start/issues/394

This is what my _server/maps_places_language.type_mli looks like

val __eliom__compilation_unit_id__ea'eliom_inferred_type__O9 : string
val best_matched_language : unit -> Maps_places_i18n.t Lwt.t
val _eliom_fragment_ea'eliom_inferred_type__O91 : unit Eliom_client_value.t option ref
val _eliom_escaped_ident_1 : Maps_places_i18n.t option ref
val update_language : Maps_places_i18n.t -> unit Lwt.t
val _eliom_fragment_ea'eliom_inferred_type__O92 : unit Eliom_client_value.t option ref
val _eliom_escaped_ident_2 : Maps_places_i18n.t option ref

After further investigation, the bug seems to be related to my project name... When I use any other name, It works like charm but maps_places always generates the same bug.

I tried to make varie by using _ or not in the project name, but I can't find any pattern.

remyzorg avatar Apr 11 '18 17:04 remyzorg