Skip to content

Commit d1ee1ba

Browse files
authored
Merge pull request #61 from bcmi-labs/stability-fix
Use canonical path in sketchRoot
2 parents 7ab6b4b + 32fcf17 commit d1ee1ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: handler/handler.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ func (handler *InoHandler) initializeWorkbench(ctx context.Context, params *lsp.
500500

501501
if buildPath, err := handler.generateBuildEnvironment(); err == nil {
502502
handler.buildPath = buildPath
503-
handler.buildSketchRoot = buildPath.Join("sketch")
503+
handler.buildSketchRoot = buildPath.Join("sketch").Canonical()
504504
} else {
505505
return err
506506
}
@@ -977,7 +977,7 @@ func (handler *InoHandler) ino2cppDocumentURI(inoURI lsp.DocumentURI) (lsp.Docum
977977
return lsp.NilURI, unknownURI(inoURI)
978978
}
979979
if !inside {
980-
log.Printf(" passing doc identifier to '%s' as-is", inoPath)
980+
log.Printf(" '%s' not inside sketchroot '%s', passing doc identifier to as-is", handler.sketchRoot, inoPath)
981981
return inoURI, nil
982982
}
983983

0 commit comments

Comments
 (0)