Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch to improve "wrong file naming" error messages #5832

Closed
vicuna opened this issue Nov 17, 2012 · 1 comment
Closed

patch to improve "wrong file naming" error messages #5832

vicuna opened this issue Nov 17, 2012 · 1 comment
Assignees
Labels

Comments

@vicuna
Copy link

@vicuna vicuna commented Nov 17, 2012

Original bug ID: 5832
Reporter: sesquized
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:18:47Z)
Resolution: fixed
Priority: normal
Severity: tweak
Platform: Windows
OS: Windows
OS Version: Vista 64
Version: 4.00.1
Fixed in version: 4.01.0+dev
Category: misc

Bug description

This patch changes the error message for this situation:

open List
let _ = LIST.env

Instead of
File "test1.ml", line 1, characters 0-1:
Error: Wrong file naming: /usr/lib/ocaml/lIST.cmi
contains the compiled interface for
List

you get

File "test1.ml", line 1:
Error: Wrong file naming: c:\tools\Ocaml-cygwin\lib\ocaml/lIST.cmi
contains the compiled interface for
LIST when List was expected

File attachments

@vicuna
Copy link
Author

@vicuna vicuna commented Apr 29, 2013

Comment author: @alainfrisch

Thanks for your patch. I've integrated it to the trunk (commit 13618). It will be part of the next release (OCaml 4.01).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants