You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am fumbling with Emacs+Utop+company under Windows, and I may have stumbled into some bug.
At the prompt from utop mode in Emacs, if I type Utop (instead of UTop), then a dot, the text cursor stops blinking, and if I type another character, utop crashes with code 2 after a Fatal error: exception Persistent_env.Error(_).
This happens too if I do the same kind of case-mistyping with modules not from the stdlib (eg. GRaphics), but not with eG. ARRay.
I also could not reproduce the behaviour under Linux.
I believe this to be related to filenames being case insensitive under windows : when one case-mistypes the module name, one still gets to the corresponding .cmi file, but the module name is wrong and this is not properly handled.
This is corroborated by the following : running utop directly in a cygwin terminal, typing Utop.version;; gives
Error: Wrong file naming: C:\OCaml64\home\yann\.opam\4.14.0+mingw64\lib\utop\utop.cmi
contains the compiled interface for UTop when Utop was expected
although the file is actually named uTop.cmi.
Doing the same under linux gives Error: Unbound module Utop.
EDIT : this might be an OCaml bug or deficiency, in fact.
The text was updated successfully, but these errors were encountered:
ysalmon
changed the title
Utop in Emacs under Windows crashes when eg. UTop is mistyped as eg. Utop
Utop in Emacs under Windows crashes when UTop is mistyped as Utop
Jan 23, 2023
I am fumbling with Emacs+Utop+company under Windows, and I may have stumbled into some bug.
At the prompt from utop mode in Emacs, if I type
Utop
(instead ofUTop
), then a dot, the text cursor stops blinking, and if I type another character, utop crashes with code 2 after aFatal error: exception Persistent_env.Error(_)
.This happens too if I do the same kind of case-mistyping with modules not from the stdlib (eg.
GRaphics
), but not with eG.ARRay
.I also could not reproduce the behaviour under Linux.
I believe this to be related to filenames being case insensitive under windows : when one case-mistypes the module name, one still gets to the corresponding
.cmi
file, but the module name is wrong and this is not properly handled.This is corroborated by the following : running utop directly in a cygwin terminal, typing
Utop.version;;
givesalthough the file is actually named
uTop.cmi
.Doing the same under linux gives
Error: Unbound module Utop
.EDIT : this might be an OCaml bug or deficiency, in fact.
The text was updated successfully, but these errors were encountered: