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

Issue looking for GitHub app when running #1532

Closed
bejayoharen opened this issue Mar 30, 2021 · 1 comment
Closed

Issue looking for GitHub app when running #1532

bejayoharen opened this issue Mar 30, 2021 · 1 comment
Assignees
Labels
effort-unknown Needs more planning to determine priority-could when we have free time resolved status-needs-testing Code complete, needs peer verification

Comments

@bejayoharen
Copy link
Contributor

I have recently updated to revel 1.0, and my colleague pulled the changes. However, when it came time to run it, things got weird:

$ revel run -a .
Revel executing: run a Revel application
Changed detected, recompiling
Parsing packages, (may require download if not cached)...ERROR 15:57:14 harness.go:239: Build detected an error                   error="lstat /Applications/GitHub.app: no such file or directory"
panic: opps
goroutine 31 [running]:
github.com/revel/cmd/utils.(*SourceError).Error(0x0, 0x15bedda, 0x17)
	***gocode/pkg/mod/github.com/revel/cmd@v1.0.3/utils/error.go:49 +0x3ca
github.com/revel/cmd/harness.(*Harness).refresh(0xc000199570, 0x0)
	***gocode/pkg/mod/github.com/revel/cmd@v1.0.3/harness/harness.go:245 +0x6ab
github.com/revel/cmd/harness.(*Harness).Refresh(0xc000199570, 0xc000126ec0)
	***gocode/pkg/mod/github.com/revel/cmd@v1.0.3/harness/harness.go:210 +0xc6
created by github.com/revel/cmd/harness.(*Harness).Run
	***gocode/pkg/mod/github.com/revel/cmd@v1.0.3/harness/harness.go:302 +0x1fa

we eventually resolved this by using the GitHub Desktop app, and the following commands:

$ mkdir /Applications/GitHub.app/
$ mkdir /Applications/GitHub.app/Contents/
$ mkdir /Applications/GitHub.app/Contents/Resources/
$ cp -r /Applications/GitHub\ Desktop.app/Contents/Resources/app/git /Applications/GitHub.app/Contents/Resources/git

I don't know how to reproduce, since it doesn't happen on my machine, but it seems like a bug that revel is expecting expecting to find /Applications/GitHub.app, and I'm hoping that's useful to you even without more info.

@brendensoares brendensoares added status-needs-testing Code complete, needs peer verification effort-unknown Needs more planning to determine priority-could when we have free time labels Mar 1, 2022
@notzippy notzippy self-assigned this Mar 5, 2022
@notzippy
Copy link
Collaborator

notzippy commented Mar 6, 2022

The opps error indicates a Error was call on a nil error object Which was done in this bad line of code
revel/cmd#210 fixes the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort-unknown Needs more planning to determine priority-could when we have free time resolved status-needs-testing Code complete, needs peer verification
Projects
None yet
Development

No branches or pull requests

3 participants