@@ -53,7 +53,9 @@ let hover ~path ~line ~col =
53
53
let uri = Uri2. fromLocalPath path in
54
54
let result =
55
55
match ProcessCmt. getFullFromCmt ~uri with
56
- | Error message -> Protocol. stringifyHover {contents = message}
56
+ | Error message ->
57
+ prerr_endline message;
58
+ Protocol. null
57
59
| Ok (package , {file; extra} ) -> (
58
60
let pos = Utils. protocolLineColToCmtLoc ~line ~col in
59
61
match References. locItemForPos ~extra pos with
@@ -91,7 +93,9 @@ let definition ~path ~line ~col =
91
93
let uri = Uri2. fromLocalPath path in
92
94
let result =
93
95
match ProcessCmt. getFullFromCmt ~uri with
94
- | Error _message -> Protocol. null
96
+ | Error message ->
97
+ prerr_endline message;
98
+ Protocol. null
95
99
| Ok (package , {file; extra} ) -> (
96
100
let pos = Utils. protocolLineColToCmtLoc ~line ~col in
97
101
@@ -128,7 +132,9 @@ let references ~path ~line ~col =
128
132
let uri = Uri2. fromLocalPath path in
129
133
let result =
130
134
match ProcessCmt. getFullFromCmt ~uri with
131
- | Error _message -> Protocol. null
135
+ | Error message ->
136
+ prerr_endline message;
137
+ Protocol. null
132
138
| Ok (package , {file; extra} ) -> (
133
139
let pos = Utils. protocolLineColToCmtLoc ~line ~col in
134
140
match References. locItemForPos ~extra pos with
@@ -158,7 +164,9 @@ let references ~path ~line ~col =
158
164
let documentSymbol ~path =
159
165
let uri = Uri2. fromLocalPath path in
160
166
match ProcessCmt. fileForUri uri with
161
- | Error _ -> print_endline Protocol. null
167
+ | Error message ->
168
+ prerr_endline message;
169
+ print_endline Protocol. null
162
170
| Ok (file , _extra ) ->
163
171
let open SharedTypes in
164
172
let rec getItems {topLevel} =
0 commit comments