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

panic : Dir not found #7

Closed
rockyrck opened this issue Nov 8, 2018 · 8 comments
Closed

panic : Dir not found #7

rockyrck opened this issue Nov 8, 2018 · 8 comments

Comments

@rockyrck
Copy link

rockyrck commented Nov 8, 2018

Hello Dave.I am a college student try to run the project locally for an education purpose.

First , I am not sure what should be contain in the "assets.zip" file so I just put a single main.go file
that just print out hello world.

After downloaded the zip to the directory,I had tried to start a go server which give me an output
"panic : Dir not found for github.com/dave/jsgo/assets/static/"
which the static directory is exist.

In summary,I just cloned the git into my gopath/src directory and downloaded assets.zip to the specific
directory without remove or modify any file or directory.
1

@dave
Copy link
Owner

dave commented Nov 8, 2018

Did you follow these instructions?

@dave
Copy link
Owner

dave commented Nov 8, 2018

The initialise the project step should create assets.zip...

@dave
Copy link
Owner

dave commented Nov 8, 2018

(the default for the temporary dir this is created in is ~/.jsgo-local)

@dave
Copy link
Owner

dave commented Nov 8, 2018

... but there's definitely no need to download assets.zip - it's created by the initialiser.

@dave
Copy link
Owner

dave commented Nov 8, 2018

BTW do you have the $GOPATH env variable set correctly? I think you might need this...

@dave
Copy link
Owner

dave commented Nov 8, 2018

(that panic looks like it's coming from my package helper package patsy, which resolves the dir given a package path... It badly needs updating to work without GOPATH, but right now I think it'll panic).

@rockyrck
Copy link
Author

rockyrck commented Nov 9, 2018

I did ran the initialise command first,but found out that the project doesn't work with the machine that has a ram less than 1GB (the command said that it is out of memory.) and the latest version of
Go (11.1.2) and 1.10.5 or below.So now I use Go version 1.11 and increase a machine RAM and now it can generate the zip file successfully.

@rockyrck
Copy link
Author

rockyrck commented Nov 9, 2018

When I type "go env" , the GOPATH value is exist but still panic.
Anyway thank you for your help!

@rockyrck rockyrck closed this as completed Nov 9, 2018
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