webreinvent / vaahcli

Command Line Tool to Generate Files for Rapid Development | Scaffolding Generator for VaahCMS
https://webreinvent.com
6 stars 2 forks source link

Path Problem for Generators #22

Closed endriupix closed 6 months ago

endriupix commented 1 year ago

I have this error when i try to generate new theme with "vaah cms:t" (but I think that it is the same with "vaah cms:m")

problemVaahCmsCLI

The problem for me is "\" in path in line 35 let source = '\\skeletons\\vaahcms\\theme\\';

I changed it (from "\" to "/") in these files:

lib/commands/cms/t.js lib/commands/cms/t-make.js

After these changes I had another problem

Immagine 2023-05-24 012358

The problem for me seems to be the "." in path after "/usr/lib/node_modules/vaah/lib/libraries"

I remove it from multiple lines in file "lib/libraries/Generator.js" and now all is working

solved

themodernpk commented 1 year ago

@endriupix thank you for reporting the error. We'll fix it soon

themodernpk commented 1 year ago

@endriupix I am unable to replicate the issue, can you please write the OS version? So that we can test. It's working fine on Windows and Mac

endriupix commented 1 year ago

Sure, I'm on Windows 11 with Vagrant (2.3.6) on VirtualBox (7.0.8) provider (i'm using homestead latest version)

This is homestead OS data vagrant@homestead:~/code/vaahcms$ cat /etc/os-release NAME="Ubuntu" VERSION="20.04.5 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.5 LTS" VERSION_ID="20.04"

For VaahCms setup i used the official documentation

I think that it works on Windows because it use backslash for paths

themodernpk commented 1 year ago

Thank you, will review on Linux based OS

endriupix commented 1 year ago

Sorry i forgot PHP version 8.2.1, i don't know if it's relevant

themodernpk commented 6 months ago

@endriupix Finally we have released a new version of VaahCLI v3 and this issue is fixed