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

"The system cannot find the file specified" on windows #1301

Closed
retsyo opened this issue Jun 20, 2022 · 0 comments
Closed

"The system cannot find the file specified" on windows #1301

retsyo opened this issue Jun 20, 2022 · 0 comments
Labels
Milestone

Comments

@retsyo
Copy link

retsyo commented Jun 20, 2022

The following program sample.gop triggers an unexpected result

// add a sample
import (
    "math"
)

const s string = "constant"

println s

const n = 500000000

const d = 3e20 / n
println d

println int64(d)

println math.sin(n)

Expected result

`gop run` can run the code, or `gop build` can compile into an exe

Got

The system cannot find the file specified.

===> errors stack:
mod.GOPMOD("", 0)
        C:/Users/USER/go/pkg/mod/github.com/goplus/mod@v0.9.12/modload/module.go:122 mod.GOPMOD(dir, mode)
modload.Load("", 0)
        C:/Users/USER/go/pkg/mod/github.com/goplus/mod@v0.9.12/gopmod/module.go:186 modload.Load(dir, mode)

Gop Version

latest cloned and build one

Additional Notes

I am on windows 10 64 bits. I have tested both in CMD and MSYS2+MingW64.

Howwever, if I run gop mod init something, both gop run and gop build runs as expected

@xushiwei xushiwei added the bug label Jun 20, 2022
@xushiwei xushiwei added this to the Go+ v1.2 milestone Jun 20, 2022
xushiwei added a commit that referenced this issue Jun 20, 2022
xushiwei added a commit that referenced this issue Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants