generator-wp-plugin-boilerplate icon indicating copy to clipboard operation
generator-wp-plugin-boilerplate copied to clipboard

Problem with renaming files

Open sribo23 opened this issue 10 years ago • 1 comments

while setting up the files some problem occurs with renaming files. The path seems not to be correct. Please see the output of yo wp-plugin-boilerplate:

[?] What do you want to call your plugin? test
[?] What is your new plugin's version? 1.0.0
[?] What is your name? was
[?] What is your e-mail? [email protected]
[?] What is your URL? https://github.com/my-user
[?] What goes in copyright tags? 
[?] Which resources your plublic site needs? JS, CSS
[?] Which resources your plugin needs? Activate Method, Deactivate Method, Uninstall File
[?] Does your plugin need an admin page? Yes
Downloading the WP Plugin Boilerplate...
File downloaded
All done!
fs: missing callback Error: ENOENT, rename 'test/plugin-name.php'
fs: missing callback Error: ENOENT, rename 'test/admin/class-plugin-name-admin.php'
fs: missing callback Error: ENOENT, rename 'test/public/class-plugin-name.php'
{ [Error: ENOENT, open 'test/test.php'] errno: 34, code: 'ENOENT', path: 'test/test.php' }
{ [Error: ENOENT, open 'test/public/class-test.php'] errno: 34, code: 'ENOENT', path: 'test/public/class-test.php' }
{ [Error: ENOENT, open 'test/admin/class-test-admin.php']
  errno: 34,
  code: 'ENOENT',
  path: 'test/admin/class-test-admin.php' }
{ [Error: ENOENT, open 'test/public/views/public.php']
  errno: 34,
  code: 'ENOENT',
  path: 'test/public/views/public.php' }
{ [Error: ENOENT, open 'test/admin/views/admin.php'] errno: 34, code: 'ENOENT', path: 'test/admin/views/admin.php' }
{ [Error: ENOENT, open 'test/uninstall.php'] errno: 34, code: 'ENOENT', path: 'test/uninstall.php' }
{ [Error: ENOENT, open 'test/README.txt'] errno: 34, code: 'ENOENT', path: 'test/README.txt' }

sribo23 avatar Jan 03 '15 21:01 sribo23

Can reproduce this:

fs.js:81
      throw err;  // Forgot a callback but don't know where? Use NODE_DEBUG=fs
            ^
Error: ENOENT, rename 'c:\_Server\wptest\wp-content\plugins\t\plugin-name.php'
    at Error (native)

mrgrain avatar Mar 12 '15 20:03 mrgrain