Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
5f9c7c7d
Commit
5f9c7c7d
authored
Nov 18, 2013
by
MARCHE Claude
Browse files
Catch errors when opening source files in IDE
parent
ebaec40b
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/ide/gmain.ml
View file @
5f9c7c7d
...
...
@@ -150,12 +150,15 @@ let try_convert s =
with
Glib
.
Convert
.
Error
_
as
e
->
Printexc
.
to_string
e
let
source_text
fname
=
let
ic
=
open_in
fname
in
let
size
=
in_channel_length
ic
in
let
buf
=
String
.
create
size
in
really_input
ic
buf
0
size
;
close_in
ic
;
try_convert
buf
try
let
ic
=
open_in
fname
in
let
size
=
in_channel_length
ic
in
let
buf
=
String
.
create
size
in
really_input
ic
buf
0
size
;
close_in
ic
;
try_convert
buf
with
e
when
not
(
Debug
.
test_flag
Debug
.
stack_trace
)
->
"Error while opening or reading file '"
^
fname
^
"':
\n
"
^
(
Printexc
.
to_string
e
)
(********************************)
(* loading WhyIDE configuration *)
...
...
src/printer/cvc3.ml
View file @
5f9c7c7d
...
...
@@ -17,7 +17,6 @@ open Ident
open
Ty
open
Term
open
Decl
open
Theory
open
Printer
let
ident_printer
=
...
...
src/printer/smtv2.ml
View file @
5f9c7c7d
...
...
@@ -17,7 +17,6 @@ open Ident
open
Ty
open
Term
open
Decl
open
Theory
open
Printer
(** SMTLIB tokens taken from CVC4: src/parser/smt2/Smt2.g *)
...
...
src/printer/yices.ml
View file @
5f9c7c7d
...
...
@@ -17,7 +17,6 @@ open Ident
open
Ty
open
Term
open
Decl
open
Theory
open
Printer
let
ident_printer
=
...
...
src/session/session.ml
View file @
5f9c7c7d
...
...
@@ -2103,7 +2103,7 @@ let rec recompute_all_shapes_goal ~release g =
g
.
goal_checksum
<-
Termcode
.
task_checksum
t
;
if
release
then
release_task
g
;
iter_goal
(
fun
pa
->
()
)
(
fun
_
pa
->
()
)
(
iter_transf
(
recompute_all_shapes_goal
~
release
))
(
iter_metas
(
recompute_all_shapes_goal
~
release
))
g
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment