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

Error: unable to generate test output: failed to format template #89

Closed
gshilin opened this issue Jan 10, 2017 · 4 comments
Closed

Error: unable to generate test output: failed to format template #89

gshilin opened this issue Jan 10, 2017 · 4 comments

Comments

@gshilin
Copy link

gshilin commented Jan 10, 2017

When running

sqlboiler -o gmodels_old -p gmodels --no-hooks postgres

I'm getting the following error. I'm unable to find this code in any of generated files, so I have no idea where to look...

Error: unable to generate test output: failed to format template

 339 		t.Fatal(err)
 340 	}
 341 
 342 	randomize.Struct(seed, &b, catalogDescriptionDBTypes, false, catalogDescriptionColumnsWithDefault...)
 343 	randomize.Struct(seed, &c, catalogDescriptionDBTypes, false, catalogDescriptionColumnsWithDefault...)
>>>> 	a.Code3.Valid = trueb.LangID.Valid = true
 345 	c.LangID.Valid = true
 346 	b.LangID.String = a.Code3.String
 347 	c.LangID.String = a.Code3.String
 348 	if err = b.Insert(tx); err != nil {
 349 		t.Fatal(err)

: 344:37: expected '==', found '=' (and 2 more errors)
@aarondl
Copy link
Member

aarondl commented Jan 11, 2017

Hi @gshilin, I've pushed what I think is a fix for your issue to the dev branch. Can you verify that it solves your issue and I'll push it to master.

@gshilin
Copy link
Author

gshilin commented Jan 12, 2017 via email

@nullbio
Copy link
Member

nullbio commented Jan 12, 2017

@gshilin Thanks. Does the dev branch work for you? Should be fixed in there.

To test it you can:

cd $GOPATH/src/github.com/vattle/sqlboiler
git checkout dev
go install

Then run your sqlboiler command again in your project directory.

@gshilin
Copy link
Author

gshilin commented Jan 12, 2017 via email

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