From a0b177e450be9e41d734291e35b7982b688a8617 Mon Sep 17 00:00:00 2001 From: PatrickHaecker <152268010+PatrickHaecker@users.noreply.github.com> Date: Wed, 24 Sep 2025 06:16:05 +0200 Subject: [PATCH] Fix location parsing Fixes BoundsError when trying to open the found method by hitting the return key on Julia >= 1.9. Fixes #32 Solution by @jd-foster --- src/InteractiveCodeSearch.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/InteractiveCodeSearch.jl b/src/InteractiveCodeSearch.jl index 0a9bed5..8000713 100644 --- a/src/InteractiveCodeSearch.jl +++ b/src/InteractiveCodeSearch.jl @@ -189,8 +189,8 @@ end function parse_loc(line) rest, lineno = rsplit(line, ":", limit=2) - _, path = rsplit(rest, " at ", limit=2) - return String(path), parse(Int, lineno) + _, path = rsplit(rest, " ", limit=2) + return String(expanduser(path)), parse(Int, lineno) end function run_matcher(input)