{"action":"opened","issue":{"url":"https://api.github.com/repos/the-lambda-church/merlin/issues/410","labels_url":"https://api.github.com/repos/the-lambda-church/merlin/issues/410/labels{/name}","comments_url":"https://api.github.com/repos/the-lambda-church/merlin/issues/410/comments","events_url":"https://api.github.com/repos/the-lambda-church/merlin/issues/410/events","html_url":"https://github.com/the-lambda-church/merlin/issues/410","id":90689956,"number":410,"title":"better error reporting when flags do not match","user":{"login":"gasche","id":426238,"avatar_url":"https://avatars.githubusercontent.com/u/426238?v=3","gravatar_id":"","url":"https://api.github.com/users/gasche","html_url":"https://github.com/gasche","followers_url":"https://api.github.com/users/gasche/followers","following_url":"https://api.github.com/users/gasche/following{/other_user}","gists_url":"https://api.github.com/users/gasche/gists{/gist_id}","starred_url":"https://api.github.com/users/gasche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasche/subscriptions","organizations_url":"https://api.github.com/users/gasche/orgs","repos_url":"https://api.github.com/users/gasche/repos","events_url":"https://api.github.com/users/gasche/events{/privacy}","received_events_url":"https://api.github.com/users/gasche/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-24T14:20:08Z","updated_at":"2015-06-24T14:20:08Z","closed_at":null,"body":"I am trying to sell Merlin to Coq users that write plugins in OCaml. When writing plugins outside the Coq directory, they need to have a `.merlin` of the following form:\r\n\r\n```\r\nFLG -rectypes\r\nS path-to-coq/**\r\nB path-to-co/**\r\n```\r\n\r\nUnfortunately, if they forget the `FLG -rectypes` part, the `.cmi` modules do not get loaded and, from an end-user point of view, *nothing works*: type lookup systematically fails with \"no result\". I was unable to get an explanation of what goes wrong from Merlin itself, and this is the issue I am reporting.\r\n\r\nIt would be much better to have a nice error message, either at `.merlin`-loading files (I am giving a `B` path to a place full of `cmi` that all have `-rectypes`, and thus cannot be loaded without the flag), or at `C-c C-t` time (I am looking for a module that has no valid `.cmi` file, but has a `.cmi` file in the build path that would work with `-rectypes` enabled)."}}