Scott
unread,Aug 24, 2021, 10:10:00 AM8/24/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Illuminated Cloud Q&A, Reede Stockton, Scott, Kiran Machhewar, Santosh Duvvuri, t...@blumauconsulting.com
Oddly I'm still unable to reproduce this behavior even trying to do exactly what Reede has done. I've tried to generalize the following command-line execution:
2021-08-23 17:29:03,068 [ 42336] DEBUG - atedcloud.util.CommandLineUtil - Running command line: '/usr/local/bin/sfdx force:project:create -d /Users/reede.stockton/code -n ic_test6 -p force-app -t standard --json' from working directory: '/Users/reede.stockton/code/ic_test6'.
as:
cd /path/to/existing/project
sfdx force:project:create -d /path/to/existing -n project -p force-app -t standard [--json]
As a result, I've tried the following series of commands without any issues on both Windows and Mac:
cd /path/to/existing
# Create a project that doesn't already exist
sfdx force:project:create -d . -n project -p force-app -t standard
# Change the working directory to be in the project itself
cd project
# Try to recreate the project using fully-qualified paths which is what failed for Reede
sfdx force:project:create -d /path/to/existing -n project -p force-app -t standard
# Instead I get the following successful output:
target dir = /path/to/existing
identical package.json
identical config/project-scratch-def.json
identical README.md
identical sfdx-project.json
identical .husky/pre-commit
identical .vscode/extensions.json
identical .vscode/launch.json
identical .vscode/settings.json
identical force-app/main/default/lwc/.eslintrc.json
identical force-app/main/default/aura/.eslintrc.json
identical scripts/soql/account.soql
identical scripts/apex/hello.apex
identical .eslintignore
identical .forceignore
identical .gitignore
identical .prettierignore
identical .prettierrc
identical jest.config.js
I'll try to reproduce from inside IC2 just in case there's something different about how it's setting the sub-process' working directory. If that successfully reproduces it, I'll look at setting the working directory to be the parent instead of the existing project directory. Nonetheless, it doesn't seem like the CLI should yield this type of error to me, so I'm leaning toward logging a bug in that issue tracker regardless.
And yes, this isn't the way you'd want to create a project from existing source. Instead you'd want to do the following (from the user guide):
Having said that, this should be a legitimate way to do it, even if you come at it from a different angle (so to speak), so I'll see what I can do to address things...to the extent that they're under my control.
Regards,
Scott