Skip to content

Commit ff898bf

Browse files
authored
Merge pull request #49 from bcmi-labs/patch-2
Stability patchset 2
2 parents 79df7c1 + 429acc5 commit ff898bf

File tree

13 files changed

+389
-252
lines changed

13 files changed

+389
-252
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.12
44

55
require (
66
github.com/arduino/arduino-cli v0.0.0-20201215104024-6a177ebf56f2
7-
github.com/arduino/go-paths-helper v1.4.0
7+
github.com/arduino/go-paths-helper v1.5.0
88
github.com/pkg/errors v0.9.1
99
github.com/sourcegraph/jsonrpc2 v0.0.0-20200429184054-15c2290dcb37
1010
github.com/stretchr/testify v1.6.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ github.com/arduino/go-paths-helper v1.0.1/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3
1717
github.com/arduino/go-paths-helper v1.2.0/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3v5YYu35Yb+w31Ck=
1818
github.com/arduino/go-paths-helper v1.4.0 h1:ilnseAdxmN1bFnLxxXHRtcdmt9jBf3O4jtYfWfqule4=
1919
github.com/arduino/go-paths-helper v1.4.0/go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU=
20+
github.com/arduino/go-paths-helper v1.5.0 h1:RVo189hD+GhUS1rQ3gixwK1nSbvVR8MGIGa7Gxv2bdM=
21+
github.com/arduino/go-paths-helper v1.5.0/go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU=
2022
github.com/arduino/go-properties-orderedmap v1.3.0 h1:4No/vQopB36e7WUIk6H6TxiSEJPiMrVOCZylYmua39o=
2123
github.com/arduino/go-properties-orderedmap v1.3.0/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk=
2224
github.com/arduino/go-timeutils v0.0.0-20171220113728-d1dd9e313b1b h1:9hDi4F2st6dbLC3y4i02zFT5quS4X6iioWifGlVwfy4=

handler/builder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ func (handler *InoHandler) rebuildEnvironmentLoop() {
9494
}
9595
}()
9696

97-
handler.synchronizer.DataMux.Lock()
97+
handler.dataMux.Lock()
9898
handler.initializeWorkbench(nil)
99-
handler.synchronizer.DataMux.Unlock()
99+
handler.dataMux.Unlock()
100100
done <- true
101101
close(done)
102102
}
@@ -112,7 +112,7 @@ func (handler *InoHandler) generateBuildEnvironment() (*paths.Path, error) {
112112
}
113113
data := overridesFile{Overrides: map[string]string{}}
114114
for uri, trackedFile := range handler.docs {
115-
rel, err := uri.AsPath().RelFrom(handler.sketchRoot)
115+
rel, err := paths.New(uri).RelFrom(handler.sketchRoot)
116116
if err != nil {
117117
return nil, errors.WithMessage(err, "dumping tracked files")
118118
}

0 commit comments

Comments
 (0)