Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to set system.env environment #1282

Open
zorro0799 opened this issue Aug 13, 2023 · 1 comment
Open

Failed to set system.env environment #1282

zorro0799 opened this issue Aug 13, 2023 · 1 comment

Comments

@zorro0799
Copy link

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.

@visualfc
Copy link
Owner

this is go1.21 go env use ' diffrent of go1.20 "
fixed by 547be22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants