Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sf org list : does not render properly in terminal if you have an expired org #2533

Closed
curtisk opened this issue Oct 23, 2023 · 7 comments
Closed
Labels
bug Issue or pull request that identifies or fixes a bug validated Version information for this issue has been validated

Comments

@curtisk
Copy link

curtisk commented Oct 23, 2023

Summary

When using the sf org list command since upgrading to 2.13.9 npm version, the output no longer works properly when there are expired previously authorized (non-scratch) orgs in list

Steps To Reproduce

Run sf org list from a terminal/command prompt, or within the terminal in vscode, when you have a previously authorized org credentials expire

Expected result

The org list should render just as it normally does

Actual result

The output has intermixed markup code including a large block of svg related markup on the rows that have expired creds. Instead of having the colored words there, the svg markup bleeds into the output, in my case on the rows with markup one row was 13719 characters wide, blowing out the output render

System Information

cmd.exe (both standalone and with vscode Terminal, git bash on windows (same)

{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.13.9",
  "nodeVersion": "node-v18.16.0",
  "osVersion": "Windows_NT 10.0.22621",
  "rootPath": "C:\\Users\\curtisk\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli",
  "shell": "cmd.exe",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 2.3.9 (core)",
    "@oclif/plugin-commands 2.2.28 (core)",
    "@oclif/plugin-help 5.2.20 (core)",
    "@oclif/plugin-not-found 2.4.3 (core)",
    "@oclif/plugin-plugins 3.9.1 (core)",
    "@oclif/plugin-search 0.0.23 (core)",
    "@oclif/plugin-update 3.2.4 (core)",
    "@oclif/plugin-version 2.0.1 (core)",
    "@oclif/plugin-warn-if-update-available 2.1.1 (core)",
    "@oclif/plugin-which 2.2.34 (core)",
    "@salesforce/cli 2.13.9 (core)",
    "apex 2.3.19 (core)",
    "auth 2.8.20 (core)",
    "community 2.3.15 (user)",
    "data 2.5.16 (core)",
    "deploy-retrieve 1.19.0 (core)",
    "info 2.6.49 (core)",
    "limits 2.3.38 (core)",
    "login 1.2.35 (core)",
    "marketplace 0.3.0 (core)",
    "org 2.10.12 (core)",
    "packaging 1.24.0 (user)",
    "schema 2.3.29 (core)",
    "settings 1.4.33 (core)",
    "sobject 0.2.11 (core)",
    "source 2.10.40 (core)",
    "telemetry 2.3.6 (core)",
    "templates 55.5.14 (core)",
    "trust 2.6.18 (core)",
    "user 2.3.36 (core)",
    "@salesforce/sfdx-scanner 3.16.0 (user)"
  ]
}

Additional information

@salesforce/cli/2.13.9 win32-x64 node-v18.16.0
2 screenshots attached, I piped the output to txt file to make sense of what was going on, since the in terminal view was a massive scrollfest. If I run sf org list --skipconnectionstatus that renders fine since it omits the Status column details.

sf-org-list-bug-1 sf-org-list-bug-2

sf-bug-version.json

@curtisk curtisk added the investigating We're actively investigating this issue label Oct 23, 2023
@github-actions
Copy link

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.

@github-actions
Copy link

Hello @curtisk 👋 It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.
    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)
    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.
  • Search GitHub for existing related issues.

Thank you!

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Oct 23, 2023
@curtisk
Copy link
Author

curtisk commented Oct 23, 2023

added version details json ^

@github-actions github-actions bot added investigating We're actively investigating this issue validated Version information for this issue has been validated and removed more information required Issue requires more information or a response from the customer labels Oct 23, 2023
@cristiand391 cristiand391 added bug Issue or pull request that identifies or fixes a bug and removed investigating We're actively investigating this issue labels Oct 23, 2023
@git2gus
Copy link

git2gus bot commented Oct 23, 2023

This issue has been linked to a new work item: W-14348441

@cristiand391
Copy link
Member

@curtisk thanks for reporting!
we got a fix for this, you can try it by installing sf from the nightly channel:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_update_cli.htm#sfdx_setup_install_cli_rc

or wait until it's gets promoted to RC in 1 week (and to stable the week after that).

@curtisk
Copy link
Author

curtisk commented Oct 26, 2023

Great news, and quick turnaround, thanks!

@jshackell-sfdc
Copy link
Collaborator

This issue is fixed in 2.15.9 (Nov 1, 2023).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

3 participants