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
Original bug ID: 5238 Reporter: till Assigned to:@damiendoligez Status: closed (set by @damiendoligez on 2011-08-04T15:01:38Z) Resolution: fixed Priority: normal Severity: minor Target version: 4.00.0+dev Category: ~DO NOT USE (was: OCaml general) Has duplicate:#5277
Bug description
The default (i.e. empty) value for [Location.input_name] (in parsing) is "none". Several places assume it to be "" when it isn't set and will therefor try to load the file none.
Fatal error: exception Sys_error("none: No such file or directory")
Additional information
running this in ocamlopt yields:
Fatal error: exception Sys_error("lib.cmx: No such file or directory")
Which is linked but will require a different fix.
Your patch is a bit too naive: it gives error messages in the wrong format.
The problem is that the toplevel code needs different error messages.
I'll have to sort it out (and remove a lot of obsolete code), but not for 3.12.1.
Original bug ID: 5238
Reporter: till
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2011-08-04T15:01:38Z)
Resolution: fixed
Priority: normal
Severity: minor
Target version: 4.00.0+dev
Category: ~DO NOT USE (was: OCaml general)
Has duplicate: #5277
Bug description
The default (i.e. empty) value for [Location.input_name] (in parsing) is "none". Several places assume it to be "" when it isn't set and will therefor try to load the file none.
$ echo "val run : unit -> unit" > test.mli
$ ocamlc -for-pack lib test.mli
$ ocamlc -pack test.cmi -o lib.cmo
Fatal error: exception Sys_error("none: No such file or directory")
Additional information
running this in ocamlopt yields:
Fatal error: exception Sys_error("lib.cmx: No such file or directory")
Which is linked but will require a different fix.
File attachments
The text was updated successfully, but these errors were encountered: