aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2016-06-09 11:35:02 +0200
committerGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2016-06-09 11:35:02 +0200
commit1cdb96f0201b4dda6bdb5f326f60314ae9bf700b (patch)
treef1dc40b18b208028f459173ef5e67831dff6364c
parent87f9a317b020554abef358aec614dad1fdc0bd98 (diff)
Remove failure on non-.v files (bug #4752).
The error message was not only causing coqtop to exit, but also coqide to crash, which led to a rather poor user experience. Since the code does not actually care about the file extension, this commit just removes the test.
-rw-r--r--ide/ide_slave.ml2
1 files changed, 0 insertions, 2 deletions
diff --git a/ide/ide_slave.ml b/ide/ide_slave.ml
index 2e6a361c6..1f933fb8a 100644
--- a/ide/ide_slave.ml
+++ b/ide/ide_slave.ml
@@ -351,8 +351,6 @@ let init =
match file with
| None -> Stm.get_current_state ()
| Some file ->
- if not (Filename.check_suffix file ".v") then
- error "A file with suffix .v is expected.";
let dir = Filename.dirname file in
let open Loadpath in let open CUnix in
let initial_id, _ =