Following this tutorial for setting up ActiveScaffold with Rails3:
http://vhochstein.wordpress.com/2010/08/28/setupactivescaffoldrails3/#comment-4
and, when I run the following command:
rails g active_scaffold_setup prototype
I get:
Could not find generator active_scaffold_setup.
Why is that? And, what should I do?
Thanks.
I got the command run after cloning the plugin from git and manuallly
moving it to vendor/plugins in the Rails application folder.
Thanks all.
Related
I'm getting an extremely weird error when trying to npm start my loopback application. I literally did nothing to the code and then this all of a sudden started to happen
Cannot start the application. TypeError: Cannot read property
'definition' of undefined
at getFieldsJsonSchemaFor (/Users/vikramkhemlani/Desktop/loopback/node_modules/#loopback/repository-json-schema/dist/filter-json-schema.js:101:64)
I have the same exact code in another file (which i actually created a git repo from using this repo) but this one is throwing this error for some reason
I went through the same issue.
Apparently there are caches which need to clean up before starting the application. (Expired caches also appear in openapi before I get into this issue)
The project needs to be clean and re-install packages by following:
npm run clean
npm install
I have the same problem.
However, I solved it when I tried the following.
delete node_modules directory.
npm install.
Hello from the LoopBack team 👋
This may be a bug in LoopBack introduced by recent changes. Please create a small application reproducing the problem (see our Bug reporting instructions) and open a new GitHub issue in https://github.com/strongloop/loopback-next/issues/new
I have a customized g8 scala template which contains a .travis.yml that can be used by projects created though this template. In my .travis.yml, I have docker login -u="$username" -p="$password" because I need to publish images to remote registry. However, when I try to create a boilerplate project by doing g8 file://template.g8, I always get this error .travis.yml, 31:42: '" -p="' came as a complete surprise to me.
I would really appreciate any help.
I figured this out. Need to escape all the $s.
Downloaded vscode source . Following their instructions to build , when I ran
scripts\npm.bat install
Failed at the electron-mksnapshot#1.6.0 install script.
the console also shows the below:
D:\vscode-master\node_modules\extract-zip\index.js:35
zipfile.readEntry()
^
TypeError: zipfile.readEntry is not a function
at D:\vscode-master\node_modules\extract-zip\index.js:35:15
at D:\vscode-master\node_modules\yauzl\index.js:31:7
at D:\vscode-master\node_modules\yauzl\index.js:96:14
at D:\vscode-master\node_modules\yauzl\index.js:342:5
at D:\vscode-master\node_modules\fd-slicer\index.js:32:7
at FSReqWrap.wrapper [as oncomplete] (fs.js:629:17)
I have installed extract-zip v 1.6.5 , this is mentioned in dependency. No Idea what is going wrong here. I deleted the node_modules and build file and checked again. Does not seem to work. Can you somebody please guide me here ?
I met the same problem today when I compiled the vscode source code with the npm#5.
You can try to remove the npm-shrinkwrap.json first. It solved this problem on my mac.
The reason seems zip path got undefined which should be ~/.electron-gyp/.electron/mksnapshot-v1.6.0-darwin-x64.zip.
Installed 4.6.1 . Didn't work initially. Took a fresh vscode source and built again and this seemed to do the trick. I had opened a git issue also and some people have posted their own solution to it.
Please check this git link issue.
Regards,
I want to switch to laravel 5, but have some trouble with ide - autocompletion. I'm using phpstorm.
In google, the answers always end up with suggesting to use https://github.com/barryvdh/laravel-ide-helper . But it seems like it is broken for Laravel 5.
The steps I am doing are:
Install Laravel 5
composer create-project laravel/laravel
Require ide-helper
composer require barryvdh/laravel-ide-helper
Added 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
....
'Illuminate\Translation\TranslationServiceProvider',
'Illuminate\Validation\ValidationServiceProvider',
'Illuminate\View\ViewServiceProvider',
'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
Trying to generate the helper file
artisan ide-helper:generate
But it always breaks with following error:
exception 'InvalidArgumentException' with message 'There are no commands defined in the "ide-helper" namespace.' in C:\xampp\htdocs\test\vendor\symfony\console\Symfony\Component\Console\Application.php:501
0 C:\xampp\htdocs\test\vendor\symfony\console\Symfony\Component\Console\Application.php(535): Symfony\Component\Console\Application->findNamespace('ide-helper')
1 C:\xampp\htdocs\test\vendor\symfony\console\Symfony\Component\Console
\Application.php(192): Symfony\Component\Console\Application->find('ide-helper:gene...')
2 C:\xampp\htdocs\test\vendor\symfony\console\Symfony\Component\Console\Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Outpu
t\ConsoleOutput))
3 C:\xampp\htdocs\test\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(91): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Out
put\ConsoleOutput))
4 C:\xampp\htdocs\test\artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
5 {main}
Maybe someone had the same issue and can help me.
I'm open for different solutions for autocompletion other than barryvdh's ide-helper.
I had the same problem and this fixed it:
Before you run php artisan ide-helper:generate command, make sure to php artisan clear-compiled and php artisan optimize as it's noted here. If this didn't fixed your problem, take a look at this and clean out PhpStorm cache by choosing this:
File | Invalidate Caches/Restart
After auto restarting, PhpStorm will index again and everything should work fine.
Sorry for my bad english.
Edited: After these steps import your Facades like this use Illuminate\Support\Facades\Auth link them inside your _ide_helper.php file like use Auth.
I ran into the same problem. These are the steps I took to fix it:
I double-checked that 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider' was correctly added to the providers array in config/app.php.
I executed artisan clear-compiled. Had no effect
Executing php artisan config:clear fixed the problem.
This error occur when the package ServiceProvider isn't loaded.
If you have multiple config file (like for different environment), you must ensure that the service provider is well set in all the environment you which to use the package.
config/
local/
app.php
app.php
to verify if the service provider is correctly set to your application you can dump the app config:
dd(\Config::get('app.providers'));
Try this:
php artisan ide-helper:generate
Here is an updated gist as of this month. I have tested this and it works in PHPStorm.
Also you don't have to install this through composer. Copy the gist and save it in your root folder as _ide_helper.php.
I've seen through the net that I should use the command java -jar, followed by the project name in order to RUN my eclipse project. Can someone please explain how does it work- where should the code which would unzip the project-be wrriten? somewhere it should be written to take the args the user write in the command line and analyze them. How does it all combine together?
Any explanation would be appriciated.
Thank you.
ok, I got the answer..
in order to run the project this way, I need to write a new project and get the arguments from the main. all functionality corresponding the task of "running from command line" would be in that main function.