Skip to content

Commit 3d7ede1

Browse files
fix short_path bug
1 parent 0592b54 commit 3d7ede1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/Profile/src/Profile.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ function short_path(spath::Symbol, filenamecache::Dict{Symbol, Tuple{String,Stri
572572
project_file = joinpath(root, proj)
573573
if Base.isfile_casesensitive(project_file)
574574
pkgid = Base.project_file_name_uuid(project_file, "")
575-
isempty(pkgid.name) && return path # bad Project file
575+
isempty(pkgid.name) && return path, "", path # bad Project file
576576
# return the joined the module name prefix and path suffix
577577
_short_path = path[nextind(path, sizeof(root)):end]
578578
return path, string("@", pkgid.name), _short_path

0 commit comments

Comments
 (0)