liteide icon indicating copy to clipboard operation
liteide copied to clipboard

Failed to set system.env environment

Open zorro0799 opened this issue 2 years ago • 1 comments

After the mac system starts LiteIDE, system.env cannot be edited, because it is read-only, so directly modify the LiteIDE.app package, open the package, and directly modify the system.evn file, GOROOT=/usr/local/go GOPATH=/Users/xxxxxx/Works/Developer/Workspace/Go GOBIN=/usr/local/go/bin

#GOARCH=amd64 #GOOS=darwin #CGO_ENABLED=1

PATH=$GOROOT/bin:$PATH:/usr/local/bin PATH=$PATH:/usr/local/bin

LITEIDE_GDB=/usr/local/bin/gdb LITEIDE_MAKE=make LITEIDE_TERM=/usr/bin/open LITEIDE_TERMARGS=-a Terminal LITEIDE_EXEC=/usr/X11R6/bin/xterm LITEIDE_EXECOPT=-e After saving, restart LITEIDE, switch the environment to system.env, 16:53:09 LiteBuild: go environment changed 16:53:09 GolangPackage: Found go bin at /usr/local/go/bin/go 16:53:09 GolangPackage: GOROOT='/usr/local/go' 16:53:09 GolangPackage: GOPATH=/Users/xxxxxx/Works/Developer/Workspace/Go 16:53:09 GolangCode: go environment changed

The value of GOROOT has a single quotation mark, which leads to an error in this environment value, and an error is reported when editing

/usr/local/go/bin/go build [/Users/EddyHu/Works/Developer/Workspace/Go/src/main/gopl.io-master/ch2/popcount] go: cannot find GOROOT directory: '/usr/local/go' Error: Process exited with code 2.

zorro0799 avatar Aug 13 '23 09:08 zorro0799

this is go1.21 go env use ' diffrent of go1.20 " fixed by https://github.com/visualfc/liteide/commit/547be22039bd4da21010fa5d323c6af228002894

visualfc avatar Aug 13 '23 12:08 visualfc