Issue #19 on hold

Error: nothing at ....

Anonymous created an issue

on this file simple.ml: let f x = x + 1

with $ ocamlc -version 4.00.1 $ ocamlc -c -bin-annot simple.ml $ ls -l simple.cmt -rw-r--r-- 1 yoann.pa 1876110778 2037 Dec 4 12:57 simple.cmt $ cd ~/local/ocaml/ocamlspot $ hg branch $ default $ hg head changeset: 219:ebf35b4c7712 tag: tip user: Jun Furuse jun.furuse@gmail.com date: Mon Dec 03 03:00:12 2012 -0800 summary: Changed (not done yet though) ... $ uname -a Darwin Padioleaumbp15.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 i386 MacBookPro8,2 Darwin

Then under emacs, after loading ocamlspot.el I get Error nothing at l1c10 when I C-c C-t on the x identifier in simple.ml

Comments (5)

  1. camlspotter repo owner

    I cannot reproduce the problem:

    What I did:

    $ ./ocamlspot issue19.ml:l1c10
    Pathreparse: not supported: x (Failure("The given position is not clear enough"))
    Use: Value, x__1009
    Type: int
    XType: int
    At: Expr
    Tree: l1c10b10:l1c11b11
    XTree: </home/jun/.share/projects/ocamlspot/tests/issue19.ml:l1c10b10:l1c11b11>
    In_module: 
    Val: val x : int
    Spot: </home/jun/.share/projects/ocamlspot/tests/issue19.ml:l1c6b6:l1c7b7>
    BYE!
    

    Could you check the same using the very built ocamlspot (not one in your PATH), instead via Emacs?

  2. camlspotter repo owner

    I got the simple.cmt of the reporter (I do not attach it here since it contains author's name in it). The file seems to be normal. Some possibilities come to my mind:

    • Newly added file identification by dev+inode is not working in Darwin
    • Using wrong ocamlspot binary
    • Node tree search has a bug
  3. Log in to comment