amtrack / force-dev-tool

[DEPRECATED] Command line tool supporting the Force.com development lifecycle
MIT License
108 stars 37 forks source link

echo "" | force-dev-tool changeset create Deploy src/classes/AccountHelper.cls causes error #206

Closed g1b3r closed 2 years ago

g1b3r commented 5 years ago

When i try to do this i got a error additionaly i cannot add more that 2 elements to create changeset

internal/validators.js:125 throw new ERR_INVALID_ARG_TYPE(name, 'string', value); ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at validateString (internal/validators.js:125:11) at Object.dirname (path.js:1260:5) at module.exports.DescribeMetadataService.getTypeForFilepath (/usr/lib/node_modules/force-dev-tool/lib/describe-metadata-service.js:374:41) at /usr/lib/node_modules/force-dev-tool/lib/metadata-container.js:210:43 at Array.forEach () at module.exports.MetadataContainer.determineMissingFiles (/usr/lib/node_modules/force-dev-tool/lib/metadata-container.js:209:31) at module.exports.MetadataContainer.completeMetadataWith (/usr/lib/node_modules/force-dev-tool/lib/metadata-container.js:253:26) at DestroyableTransform._transform (/usr/lib/node_modules/force-dev-tool/lib/metadata-container.js:360:41) at DestroyableTransform.Transform._read (/usr/lib/node_modules/force-dev-tool/node_modules/readable-stream/lib/_stream_transform.js:184:10) at DestroyableTransform.Transform._write (/usr/lib/node_modules/force-dev-tool/node_modules/readable-stream/lib/_stream_transform.js:172:83)

latest npm version force dev tool version 2.4.0 latest reac version

I think there can be problem with string lenght

BR

amtrack commented 5 years ago

@g1b3r I'm getting the same error when the file does not exist. Are you sure that src/classes/AccountHelper.cls exists?

g1b3r commented 5 years ago

Yes im sure its here :)

g1b3r commented 5 years ago

If i try to add for example 3 classes i got similiar error. On 2 working fine. I think there is a problem with lenght of string :(

amtrack commented 4 years ago

@g1b3r Could you please try if the new release (2.8.3) resolves this issue?

g1b3r commented 2 years ago

Sorry for late comment :) its looks like it works :) @amtrack thank you :)