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

Project templates are not found and are coming up as incomplete. #943

Closed
RandallDavis opened this issue Jul 28, 2015 · 8 comments
Closed

Comments

@RandallDavis
Copy link

I'm experiencing two failures with project templates that might be related:

  1. Running pack without specifying a templatefile results in no files being added to the output directory.
  2. When specifying the templatefile for the project, I get the error "There was an attempt to pack incomplete template file...".

I'm working in a solution with more than one F# project and have created AssemblyInfo.fs files for both.

I've created a sample solution that illustrates this here.

@inosik
Copy link
Contributor

inosik commented Jul 29, 2015

  1. Your Template-Files are named packet.template, so Paket simply can't find them.
  2. Template files with type project have to be matching, which means they have to be named paket.template or Project.fsproj.paket.template, as stated in the docs. That's why Paket fails, as it can't find the matching project, to get the missing infos from.

Maybe we should show a better error message for such cases.

@forki
Copy link
Member

forki commented Jul 29, 2015

yes I was just about to write 1) - rename it to paket.template without the c

@RandallDavis
Copy link
Author

Sorry about the oversight in the template file name. It's been fixed, and I'm still experiencing the same behavior. I also added a few new projects to the solution to cover different potential use cases, but they're all failing the same way.

@forki
Copy link
Member

forki commented Jul 29, 2015

your repro worked with pack (without specific template file) after the rename.

With latest alpha version it also worked with specific template file

@RandallDavis
Copy link
Author

Okay - I tested with the latest version of whatever the bootstrapper pulls in (I'm assuming this isn't alpha). When I run paket pack output nugets, I'm getting a success message, but no files are being put in /.paket/nugets/.

@forki
Copy link
Member

forki commented Jul 29, 2015

did you try .paket\paket pack output nugets maybe it's just started from wrong folder!?

@RandallDavis
Copy link
Author

Okay - that did it!

When I run paket pack output nugets from within the .paket folder, it says it succeeds and creates the nugets directory. Going up to the solution directory and running .paket\paket pack output nugets crawls everything successfully.

Thanks a ton

@forki
Copy link
Member

forki commented Jul 29, 2015

yeah it just looks down. never up

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