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

Rizla throwing fork/exec: no such file or directory #17

Open
Ayanrocks opened this issue Nov 7, 2019 · 2 comments
Open

Rizla throwing fork/exec: no such file or directory #17

Ayanrocks opened this issue Nov 7, 2019 · 2 comments

Comments

@Ayanrocks
Copy link

$ rizla main.go
The above throws the following error
[ERRO] 2019/11/08 01:09 fork/exec ./cms_go: no such file or directory
and is stuck there.
When saving a file it does say change detected but that is it. Then again the same above error. Please help in how to fix this.

Thanks in advanced.

@wvq
Copy link

wvq commented Nov 15, 2020

I got the same problem, the solution is change the directory name as same as the mod name.

@lalifeier
Copy link

go build directory different with mod name, cause execution not find the directory.

func buildProject(p *Project) error {

	// relative := p.MainFile[len(p.dir)+1:len(p.MainFile)-3] + goExt
	// goBuild := exec.Command("go", "build", ".")
	goBuild := exec.Command("go", "build", "-o", filepath.Base(p.dir))
	goBuild.Dir = p.dir
	goBuild.Stdout = p.Out.Printer.Output
	goBuild.Stderr = p.Err.Printer.Output
	return goBuild.Run()
}

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

3 participants