[Omake] omake summary messages are not parsed by emacs

Sam Steingold sds at gnu.org
Wed Feb 18 12:46:23 PST 2009


Hi,
the final omake messages:

*** omake: blocked (7.54 sec, 16/1826 scans, 1086/8118 rules, 2143/80867 digests)
*** omake: targets were not rebuilt because of errors:
    a/b/c.cmi
       depends on: a/b/c.ml
    a/b/c.cmo
       depends on: a/b/c.ml
       - build news/tools c.cmo
       + ocamlfind ocamlc ... -c c.ml
       File "c.ml", line 219, characters 23-43:
       Error: Unbound value Foo.bar
    a/b/c.cmx
       depends on: a/b/c.ml
    a/b/c.o
       depends on: a/b/c.ml
*** omake: polling for filesystem changes

is not handled correctly by the emacs compilation mode because the error 
message [[File "c.ml", line 219, characters 23-43:]] contains the local file 
name while the "current directory" (as established by the "entering/leaving" 
messages) is the top-level.
the result is that when I click on "c.ml", emacs prompts me for the path 
instead of opening "a/b/c.ml".
(note that the running messages are handled correctly because of the 
"entering/leaving" messages).

This could be fixed by either
1. adding the "entering/leaving" messages to the final omake report or
2. using full paths in the summary message, i.e.
        File "a/b/c.ml", line 219, characters 23-43:
or
        File "/home/sds/src/a/b/c.ml", line 219, characters 23-43:

Thanks
Sam.



More information about the Omake mailing list