caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ivan Gotovchits <ivg@ieee.org>
To: "Sébastien Hinderer" <Sebastien.Hinderer@inria.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] This expression has type ...
Date: Tue, 27 Jan 2015 18:48:36 -0500	[thread overview]
Message-ID: <2BF41B5C-0687-4CB5-AFD1-B63E7BE15AE0@ieee.org> (raw)
In-Reply-To: <20150127121555.GB22672@pl-59055.rocqadm.inria.fr>

[-- Attachment #1: Type: text/plain, Size: 1761 bytes --]

You must teach merging to understand your project. In general, you it means that you should write a .merlin file, that should show merlin where to search for your source code, build directory and libraries you’re using.   It is described [1] at merlin site. Also, you can look at other projects and use them as an example for merlin configuration [2]


[1] https://github.com/the-lambda-church/merlin#merlin-project
[2] https://github.com/BinaryAnalysisPlatform/bap


On Jan 27, 2015, at 7:15 AM, Sébastien Hinderer <Sebastien.Hinderer@inria.fr> wrote:

> Christophe Troestler (2015/01/27 12:56 +0100):
>>> It sometimes happens to me that I have troubles locating the exact
>>> expression OCaml reers to in error messages. So, I am wonering: would it
>>> be possible to have a mode where the error message would include the
>>> expression itself, rather than the "This"?
>> 
>> If you compile within Emacs (C-c C-c), you can just click on the error
>> to go to the right location.
> 
> Well, I have merlin installed and strangely enough it seems to detect
> more errors than the OCaml compiler. Perhaps because it's not reading
> all the modules it should. The errors are missing type constructors
> andother values...
> 
>> It will temporarily highlight the expression the error is about.
> 
> Well, as a blind user, the highlighting is not very convenient. Perhaps
> there could be an option which, whenenabled, would mark the expression
> as an emacs region.
> 
> Thanks,
> Sébastien.
> 
> -- 
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


[-- Attachment #2: Type: text/html, Size: 2495 bytes --]

      reply	other threads:[~2015-01-27 23:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-27 11:47 Sébastien Hinderer
     [not found] ` <20150127.125627.2001587085468205110.Christophe.Troestler@umons.ac.be>
2015-01-27 12:15   ` Sébastien Hinderer
2015-01-27 23:48     ` Ivan Gotovchits [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2BF41B5C-0687-4CB5-AFD1-B63E7BE15AE0@ieee.org \
    --to=ivg@ieee.org \
    --cc=Sebastien.Hinderer@inria.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).