You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 2 commands "sf dev generate command" and "sf dev generate flag" are not EOL compatible on windows platform.
the first one creates the "command" from template with UNIX EOL style and the "flag" readlines based on fs.EOL so windows style.
Steps To Reproduce:
Use a windows machine.
Initiate a new sfdx plugins with "sf dev generate command"
try to add any flag with "sf dev generate flag"
see the error
Expected result
Coherent behavior between the two commands.
Actual result
Code error and all additions of "flag" are at the beginning of the command file.
System Information
Which shell/terminal are you using? (e.g. bash, zsh, powershell 5, powershell 7, cmd.exe, etc.)
Powershell 7.3.3
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
KevinGossentCap
changed the title
EOL problem and incompatibility on widonws for dev generate command/flag
EOL problem and incompatibility on windows for dev generate command/flag
Apr 11, 2023
Summary
The 2 commands "sf dev generate command" and "sf dev generate flag" are not EOL compatible on windows platform.
the first one creates the "command" from template with UNIX EOL style and the "flag" readlines based on fs.EOL so windows style.
Steps To Reproduce:
Expected result
Coherent behavior between the two commands.
Actual result
Code error and all additions of "flag" are at the beginning of the command file.
System Information
Which shell/terminal are you using? (e.g. bash, zsh, powershell 5, powershell 7, cmd.exe, etc.)
Powershell 7.3.3
If you are using
sfdx
sfdx version --verbose --json
If you are using
sf
sf version --verbose --json
Paste the output here (Happens with both sfdx and sf)
{
"cliVersion": "sfdx-cli/7.196.5",
"architecture": "win32-x64",
"nodeVersion": "node-v18.15.0",
"osVersion": "Windows_NT 10.0.19044",
"shell": "cmd.exe",
"rootPath": "C:\KGO_Tools\node-v18-win-x64\node_modules\sfdx-cli",
"pluginVersions": [
"@copado/copado-cli 1.1.19 (user)",
"@oclif/plugin-autocomplete 2.1.8 (core)",
"@oclif/plugin-commands 2.2.13 (core)",
"@oclif/plugin-help 5.2.9 (core)",
"@oclif/plugin-not-found 2.3.23 (core)",
"@oclif/plugin-plugins 2.4.4 (core)",
"@oclif/plugin-search 0.0.15 (core)",
"@oclif/plugin-update 3.1.9 (core)",
"@oclif/plugin-version 1.3.2 (core)",
"@oclif/plugin-warn-if-update-available 2.0.33 (core)",
"@oclif/plugin-which 2.2.18 (core)",
"apex 2.2.10 (core)",
"auth 2.7.11 (core)",
"community 2.2.9 (core)",
"custom-metadata 2.1.11 (core)",
"data 2.3.9 (core)",
"deploy-retrieve 1.8.8 (core)",
"dev 0.7.0 (user)",
"info 2.6.4 (core)",
"limits 2.3.12 (core)",
"org 2.6.5 (core)",
"packaging 1.16.3 (core)",
"schema 2.3.6 (core)",
"settings 1.4.3 (core)",
"signups 1.4.11 (core)",
"source 2.9.1 (core)",
"telemetry 2.1.3 (core)",
"templates 55.4.5 (core)",
"trust 2.4.6 (core)",
"user 2.3.7 (core)",
"@salesforce/sfdx-diff 0.0.6 (user)",
"@salesforce/sfdx-plugin-lwc-test 1.0.1 (core)",
"sfdx-cli 7.196.5 (core)",
"sfdx-hardis 3.13.0 (user)",
"sfdx-kgo-plugin 0.0.24 (link) C:\GitRepos\sfdx-kgo-plugin"
]
}
{
"cliVersion": "@salesforce/cli/1.73.0",
"architecture": "win32-x64",
"nodeVersion": "node-v18.15.0",
"osVersion": "Windows_NT 10.0.19044",
"shell": "cmd.exe",
"rootPath": "C:\KGO_Tools\node-v18-win-x64\node_modules\@salesforce\cli",
"pluginVersions": [
"@oclif/plugin-autocomplete 2.1.8 (core)",
"@oclif/plugin-commands 2.2.13 (core)",
"@oclif/plugin-help 5.2.9 (core)",
"@oclif/plugin-not-found 2.3.23 (core)",
"@oclif/plugin-plugins 2.4.4 (core)",
"@oclif/plugin-search 0.0.15 (core)",
"@oclif/plugin-update 3.1.9 (core)",
"@oclif/plugin-version 1.3.2 (core)",
"@oclif/plugin-warn-if-update-available 2.0.33 (core)",
"@oclif/plugin-which 2.2.18 (core)",
"@salesforce/cli 1.73.0 (core)",
"apex 2.2.9 (core)",
"auth 2.7.11 (core)",
"data 2.3.9 (core)",
"deploy-retrieve 1.8.8 (core)",
"dev 0.7.0 (user)",
"info 2.6.4 (core)",
"limits 2.3.12 (core)",
"login 1.2.5 (core)",
"org 2.6.5 (core)",
"schema 2.3.6 (core)",
"settings 1.4.3 (core)",
"sobject 0.1.14 (core)",
"source 2.9.1 (core)",
"telemetry 2.1.3 (core)",
"templates 55.4.5 (core)",
"trust 2.4.6 (core)",
"user 2.3.7 (core)"
]
}
Additional information
Feel free to attach a screenshot.
The text was updated successfully, but these errors were encountered: