Skip to content

Commit f03a4d8

Browse files
committed
Avoid abspath for REPL-defined "paths"
1 parent d832e9f commit f03a4d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CodeTracking.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ Return the signatures of all methods whose definition spans the specified locati
114114
Returns `nothing` if there are no methods at that location.
115115
"""
116116
function signatures_at(filename::AbstractString, line::Integer)
117-
filename = abspath(filename)
117+
if !startswith(filename, "REPL[")
118+
filename = abspath(filename)
119+
end
118120
if occursin(juliabase, filename)
119121
rpath = postpath(filename, juliabase)
120122
id = PkgId(Base)

0 commit comments

Comments
 (0)