Scaffolding / command line not working

Sep 30, 2010 at 1:36 PM

Any ideas on this? I am running 0.5.146. Thanks.

 

orchard> help commands
Error: Value cannot be null.
Parameter name: context
   at Autofac.ResolutionExtensions.Resolve(IComponentContext context,
rvice, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext
IEnumerable`1 parameters)
   at Orchard.Commands.CommandHostAgent.CreateStandaloneEnvironment(St
t) in c:\Users\sebros\My Projects\Orchard\src\Orchard\Commands\Command
cs:line 133
   at Orchard.Commands.CommandHostAgent.RunCommand(TextReader input, T
output, String tenant, String[] args, Dictionary`2 switches) in c:\Use
My Projects\Orchard\src\Orchard\Commands\CommandHostAgent.cs:line 50

 

orchard> scaffolding create module SimpleCommerce
Error: Value cannot be null.
Parameter name: context
   at Autofac.ResolutionExtensions.Resolve(IComponentContext context,
rvice, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext
IEnumerable`1 parameters)
   at Orchard.Commands.CommandHostAgent.CreateStandaloneEnvironment(St
t) in c:\Users\sebros\My Projects\Orchard\src\Orchard\Commands\Command
cs:line 133
   at Orchard.Commands.CommandHostAgent.RunCommand(TextReader input, T
output, String tenant, String[] args, Dictionary`2 switches) in c:\Use
My Projects\Orchard\src\Orchard\Commands\CommandHostAgent.cs:line 50

Coordinator
Sep 30, 2010 at 9:23 PM

Yes, I can confirm that the command line is broken in that release. Sorry about that. For what it's worth, this is fixed in the current dev branch.

Oct 21, 2010 at 3:46 PM

I can't find the Scaffolding feature in version 0.8.0, but I see a bunch of new features under Developer. Is the feature renamed, or what is the alternative command now?

Thanks

Coordinator
Oct 21, 2010 at 3:52 PM
Scaffolding was renamed to CodeGeneration. The command is now "generate".
Oct 21, 2010 at 3:57 PM

Yup, I just figured it out. I sort of liked "Scaffolding" better for the command, since for example "generate create module" sounds a little weird. I think something like "codegen module" would be more intuitive.

Coordinator
Oct 21, 2010 at 8:42 PM

Yeah we've known it was an ugly command. In fact, someone on the team actually got sick when the typed it. True story.

I just submitted a change to make it just 'codegen'. What used to be 'scaffolding create' is now just 'codegen' (e.g. codegen module|theme|controller|etc).

Oct 22, 2010 at 12:29 AM

Awesome!

Oct 27, 2010 at 3:09 AM
Edited Oct 27, 2010 at 3:13 AM

There is a regression on the command tool (as of change #3070):

orchard> feature enable codegeneration
Enabling features codegeneration
Could not find feature codegeneration
Could not enable features: codegeneration
Available features are : ... ,Orchard.CodeGeneration, ...

orchard> feature enable CodeGeneration
Enabling features CodeGeneration
Could not find feature CodeGeneration
Could not enable features: CodeGeneration

orchard> feature enable Orchard.CodeGeneration
Enabling features Orchard.CodeGeneration
Orchard.CodeGeneration was enabled

Logged in issue tracker: http://orchard.codeplex.com/workitem/16669

Coordinator
Oct 27, 2010 at 3:12 AM

Could you please file a bug? Thanks!

Oct 27, 2010 at 3:15 AM

Sure, updated it in the last message.