Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
3cffb857
Commit
3cffb857
authored
Feb 05, 2016
by
MARCHE Claude
Browse files
IDE: on reload, syntax errors force to switch to source tab
parent
79196f53
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ide/gmain.ml
View file @
3cffb857
...
...
@@ -2068,12 +2068,13 @@ let reload () =
display_warnings
()
with
|
e
->
let
e
=
match
e
with
begin
match
e
with
|
Loc
.
Located
(
loc
,
e
)
->
scroll_to_loc
~
color
:
error_tag
~
yalign
:
0
.
5
loc
;
e
|
e
->
e
in
notebook
#
goto_page
source_page
(* go to "source" tab *)
|
_
->
()
end
;
fprintf
str_formatter
"@[Error:@ %a@]"
Exn_printer
.
exn_printer
e
;
let
msg
=
flush_str_formatter
()
in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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