Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

yo aspnet just gives me an empty folder #55

Closed
thepatrick opened this issue Feb 2, 2015 · 7 comments
Closed

yo aspnet just gives me an empty folder #55

thepatrick opened this issue Feb 2, 2015 · 7 comments
Assignees
Labels

Comments

@thepatrick
Copy link

[patrick@Inigo] /Users/patrick/SourceCache/csharp$ yo aspnet

     _-----_
    |       |    .--------------------------.
    |--(o)--|    |      Welcome to the      |
   `---------´   |   marvellous ASP.NET 5   |
    ( _´U`_ )    |        generator!        |
    /___A___\    '--------------------------'
     |  ~  |     
   __'.___.'__   
 ´   `  |° ´ Y ` 

? What type of application do you want to create? MVC Application
? What's the name of your ASP.NET application? MvcApplication

     info ... Fetching https://github.com/OmniSharp/generator-aspnet/archive/release.tar.gz ...
     info This might take a few moments
/Users/patrick/.cache/yeoman


Your project is now created, you can use the following commands to get going
    kpm restore
    kpm build
    k run for console projects
    k kestrel or k webfor web projects

Which is great, except while I now have an MvcApplication folder, it's empty.

For what it's worth /Users/patrick/.cache/yeoman does not exist on my machine (creating it doesn't change anything though)

[patrick@Inigo] /Users/patrick/SourceCache/csharp$ ls
MvcApplication
[patrick@Inigo] /Users/patrick/SourceCache/csharp$ cd MvcApplication/
[patrick@Inigo] /Users/patrick/SourceCache/csharp/MvcApplication$ ls
[patrick@Inigo] /Users/patrick/SourceCache/csharp/MvcApplication$ kpm restore
[patrick@Inigo] /Users/patrick/SourceCache/csharp/MvcApplication$ kpm build
Unable to locate project.json.'
[patrick@Inigo] /Users/patrick/SourceCache/csharp/MvcApplication$ k web
System.Exception: Unable to locate project.json
  at Microsoft.Framework.Runtime.DefaultHost.Initialize (Microsoft.Framework.Runtime.DefaultHostOptions options, IServiceProvider hostServices) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.Runtime.DefaultHost..ctor (Microsoft.Framework.Runtime.DefaultHostOptions options, IServiceProvider hostServices) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.ApplicationHost.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
[patrick@Inigo] /Users/patrick/SourceCache/csharp/MvcApplication$
@peterblazejewicz
Copy link
Member

@thepatrick
Is there any actual download/unarchivea visible in your generator output after This might take a few moments and ....\cache\yeoman\:

...................................
✔ Done in C:\Users\PIBL\.cache\yeoman\OmniSharp\generator-aspnet\release

   create MvcApplication\Controllers\HomeController.cs
   create MvcApplication\Models\User.cs
   create MvcApplication\Startup.cs
   create MvcApplication\Views\Home\Index.cshtml
   create MvcApplication\Views\Shared\_Layout.cshtml
   create MvcApplication\project.json
   create MvcApplication\wwwroot\.gitignore

@peterblazejewicz
Copy link
Member

NTS: the application code does not handle errors during Yo remote downloads:
https://github.com/OmniSharp/generator-aspnet/blob/master/app/index.js#L91-L93

@peterblazejewicz
Copy link
Member

@thepatrick
This is a bug - I can recreate it locally - no output is shown if you are offline:

     info ... Fetching https://github.com/OmniSharp/generator-aspnet/archive/release.tar.gz ...
     info This might take a few moments
/Users/piotrblazejewicz/.cache/yeoman


Your project is now created, you can use the following commands to get going
    kpm restore
    kpm build
    k run for console projects
    k kestrel or k webfor web projects

@sayedihashimi
Copy link
Member

If we fix #26 that should resolve this as well.

@peterblazejewicz
Copy link
Member

@sayedihashimi I know, but we need a fix for this one first. It's not a trivial UX problem - I think it should go with current version (I know you will need to build release and resubmit to NPM)

spboyer added a commit that referenced this issue Feb 3, 2015
Show generic error and exit on network error. Fixes #55
@thepatrick
Copy link
Author

Thanks for that

@peterblazejewicz
Copy link
Member

@thepatrick You're welcome :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants