Skip to content

Commit 476d244

Browse files
Fixing session file not being parsed properly
1 parent ccaf0cf commit 476d244

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Common.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ function Self.ToRelPath(path)
4444
local wd, err = os.Getwd()
4545
local pathCopy = path
4646
if err == nil then
47+
pathCopy = filepath.Clean(pathCopy)
48+
wd = filepath.Clean(wd)
4749
local relPath, relErr = filepath.Rel(wd, pathCopy)
4850
if relErr == nil and relPath ~= nil then
4951
return relPath

Session.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function Session.LoadSession(bp, args, useWorkingDir)
202202

203203
for fileData in string.gmatch(line, "[^,]+") do
204204
-- Parse file path and line number
205-
local filePath, lineNum = string.match(fileData, "([^:]+):(%d+)")
205+
local filePath, lineNum = string.match(fileData, "(.+):(%d+)")
206206

207207
if filePath == nil then
208208
-- No line number in the file data

0 commit comments

Comments
 (0)