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

can't create project - panic: runtime error: slice bounds out of range #27

Open
clarking opened this issue Jan 16, 2017 · 1 comment
Open

Comments

@clarking
Copy link

I can't create a new fragmenta project from src folder, when i run the command
fragmenta new cms fragmenta throws the following error:

clarking@falcon65:~/gocode/src$ fragmenta new cms fragmenta
00:21:33 Fetching from url: github.com/fragmenta/fragmenta-cms
00:21:47 Creating files at: /home/clarking/gocode/src/fragmenta
00:21:47 Removing all at:/home/clarking/gocode/src/fragmenta/.git
00:21:47 Initialising new git repo at:/home/clarking/gocode/src/fragmenta
00:21:47 Updating import paths to: fragmenta
00:21:47 Generating new config at /home/clarking/gocode/src/fragmenta/secrets/fragmenta.json
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
panic(0x6ddd80, 0xc4200101b0)
	/usr/local/go/src/runtime/panic.go:500 +0x1a1
main.ToCamel(0x0, 0x0, 0xc4201397da, 0x1)
	/home/clarking/gocode/src/github.com/fragmenta/fragmenta/textual.go:50 +0x28f
main.reifyString(0xc42027f400, 0x937, 0x937, 0xb37)
	/home/clarking/gocode/src/github.com/fragmenta/fragmenta/generate.go:527 +0x1db
main.generateCreateSQL(0xc420017440, 0x23, 0x0, 0x0)
	/home/clarking/gocode/src/github.com/fragmenta/fragmenta/new.go:218 +0x52e
main.RunNew(0xc42000c380, 0x4, 0x4)
	/home/clarking/gocode/src/github.com/fragmenta/fragmenta/new.go:88 +0x5ff
main.main()
	/home/clarking/gocode/src/github.com/fragmenta/fragmenta/fragmenta.go:69 +0x7d4
clarking@falcon65:~/gocode/src$ 

i'm on xubuntu 16.04 running go1.7.4 linux/amd64

any help on this issue would be appreciated

@kennygrant
Copy link
Contributor

Thanks for reporting. I'm just in the middle of updating the default templates, and should be done this week. I'll try to look into this at the same time.

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