We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c11b679 commit cc8611bCopy full SHA for cc8611b
src/generators/genhl.ml
@@ -333,18 +333,8 @@ let make_debug ctx arr =
333
| true -> if (Filename.is_relative p.pfile)
334
then Filename.concat (Sys.getcwd()) p.pfile
335
else p.pfile
336
- | false -> try
337
- (* lookup relative path *)
338
- let len = String.length p.pfile in
339
- let base = ctx.com.class_paths#find (fun path ->
340
- let path = path#path in
341
- let l = String.length path in
342
- len > l && String.sub p.pfile 0 l = path
343
- ) in
344
- let l = String.length base#path in
345
- String.sub p.pfile l (len - l)
346
- with Not_found ->
347
- p.pfile
+ | false ->
+ ctx.com.class_paths#relative_path p.pfile
348
in
349
let pos = ref (0,0,Globals.null_pos) in
350
let cur_file = ref 0 in
0 commit comments