Skip to content

Commit 5a8b048

Browse files
committed
Fixed improper canonicalization on Windows
It seems that if the path doesn't exists (as a file or directory) then it isn't correctly converted into a long form.
1 parent e8b6ccc commit 5a8b048

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: handler/handler.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,15 @@ func NewInoHandler(stdio io.ReadWriteCloser, board lsp.Board) *InoHandler {
137137
log.Fatalf("Could not create temp folder: %s", err)
138138
} else {
139139
handler.buildPath = buildPath.Canonical()
140-
handler.buildSketchRoot = buildPath.Join("sketch").Canonical()
140+
handler.buildSketchRoot = handler.buildPath.Join("sketch")
141141
}
142142

143143
handler.progressHandler = NewProgressProxy(handler.StdioConn)
144144

145145
if enableLogging {
146146
log.Println("Initial board configuration:", board)
147147
log.Println("Language server build path:", handler.buildPath)
148+
log.Println("Language server build sketch root:", handler.buildSketchRoot)
148149
}
149150

150151
go handler.rebuildEnvironmentLoop()

0 commit comments

Comments
 (0)