OCamlPro/typerex — Issue #30: Exception thrown when trying to use C-o features
Author: danmey
Created: 2012-03-05 01:44:09+00:00
State: open

I got:
`
Error: Failure: module Pervasives not found in
/home/wojciech/ocamlbrew/ocaml-3.12.1/lib/ocaml/
Raised at file "pervasives.ml", line 22, characters 22-33
Called from file "tools/ocp-profile/profile.ml", line 93, characters 12-15
Called from file "tools/ocp-wizard/semantics/ocpWizard.ml", line 423, characters 17-40
Called from file "tools/ocp-wizard/main/owzUI.ml", line 188, characters 10-60
Called from file "tools/ocp-wizard/main/owzUI.ml", line 834, characters 20-59
Called from file "tools/ocp-wizard/main/owzServer.ml", line 175, characters 28-49
Called from file "tools/ocp-profile/profile.ml", line 93, characters 12-15
Called from file "tools/ocp-wizard/main/owzServer.ml", line 218, characters 10-155
Called from file "tools/ocp-wizard/main/exceptions.ml", line 93, characters 4-9
`
Pervasives is all there and no problems building and running projects.

It's pretty much with all my projects I tried current RC2, I did a fresh rebuild and reinstall of typerex, and for each of the projects.

Here is a minimal test case to reproduce:

**test.ml:**
` let ala ma kota = List.tl;;`

If you go to the List.tl token and press `C-o` and for instance `d` I get the backtrace.

**.typerex:**
`
CMT _build
.
`
`ocamlbuild -use-ocamlfind test.byte`
Here is an excerpt from `findlib.conf`:
`...
ocamlc="ocp-ocamlc.opt"
ocamlopt="ocp-ocamlopt.opt"
...`

Effective command is - taken from ocamlfind -verbose:
`+ ocp-ocamlc.opt -verbose -c -o test.cmo test.ml`

I use:
`GNU Emacs 24.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)`

Completion on standard library however works.