diff options
| author | Maxime Dénès | 2017-12-11 15:56:12 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2017-12-11 15:56:12 +0100 |
| commit | 4cd5ba6019ecf8a9c41c8594a5446286af725793 (patch) | |
| tree | 52555a6f72d481085151d117973db30924487991 | |
| parent | ecf15647873e390171d6a62f9c28162424cb5a65 (diff) | |
| parent | 511d3ed44705c58234b95b65500f9f597d56c7cf (diff) | |
Merge PR #6311: Don't Add LoadPath on CoqIDE startup, #6153
| -rw-r--r-- | ide/ide_slave.ml | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ide/ide_slave.ml b/ide/ide_slave.ml index cfc0e09a0c..43d7aa3635 100644 --- a/ide/ide_slave.ml +++ b/ide/ide_slave.ml @@ -377,15 +377,8 @@ let init = match file with | None -> init_sid | Some file -> - let dir = Filename.dirname file in - let open Loadpath in let open CUnix in let doc, initial_id, _ = - let doc = get_doc () in - if not (is_in_load_paths (physical_path_of_string dir)) then begin - let pa = Pcoq.Gram.parsable (Stream.of_string (Printf.sprintf "Add LoadPath \"%s\". " dir)) in - let loc_ast = Stm.parse_sentence ~doc init_sid pa in - Stm.add false ~doc ~ontop:init_sid loc_ast - end else doc, init_sid, `NewTip in + get_doc (), init_sid, `NewTip in if Filename.check_suffix file ".v" then Stm.set_compilation_hints file; set_doc (Stm.finish ~doc); |
