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

ocamldep omits filename in syntax error message #5370

Closed
vicuna opened this Issue Oct 4, 2011 · 0 comments

Comments

Projects
None yet
1 participant
@vicuna
Copy link
Collaborator

commented Oct 4, 2011

Original bug ID: 5370
Reporter: jfc
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2012-09-25T18:07:21Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.1
Fixed in version: 3.12.1
Category: ~DO NOT USE (was: OCaml general)

Bug description

Run ocamldep on this file, which has a syntax error:

let f a b = begin
let g a = f
end

The error message has an empty string in place of the filename:

$ ocamldep bad.ml
File "", line 3, characters 0-3:
Error: Syntax error

ocamlbuild runs ocamldep first so this bad error message is annoying in practice.

(I am actually using 3.12 branch svn version 11214, "version 3.12.2+dev1 (2011-08-03)", because I need the fix for another bug. I haven't tried 3.12.1 release.)

@vicuna vicuna closed this Sep 25, 2012

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.