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

SNOW-1633629: Error Message Box Rendering Creates Line Break in Command to Resolve the Error #1460

Open
sfc-gh-cwiese opened this issue Aug 20, 2024 · 0 comments
Labels
discussion Ongoing discussion before deciding about further steps with the issue

Comments

@sfc-gh-cwiese
Copy link

SnowCLI version

Snowflake CLI version: 2.6.1

Python version

Python 3.11.5

Platform

macOS-14.6.1-arm64-arm-64bit

What happened

A user installed the cli via homebrew and immediately ran into an error, because the config.toml file permissions were too wide (see #1459). In the cli output, the width of the Error text box caused a line break and inserted a pipe into the command to resolve the issue. The user did not realize this and hence ran into yet another error when trying to resolve the first one.
The text box width should be adjusted so that there is no line break in the command to resolve the issue.

Console output

(base) edendulk@HP7JGV926Q Applications % brew tap snowflakedb/snowflake-cli
brew update
==> Tapping snowflakedb/snowflake-cli
Cloning into '/opt/homebrew/Library/Taps/snowflakedb/homebrew-snowflake-cli'...
remote: Enumerating objects: 182, done.
remote: Counting objects: 100% (82/82), done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 182 (delta 49), reused 67 (delta 42), pack-reused 100 (from 1)
Receiving objects: 100% (182/182), 57.91 KiB | 3.05 MiB/s, done.
Resolving deltas: 100% (87/87), done.
Tapped 4 formulae (24 files, 86.7KB).
==> Updating Homebrew...
Already up-to-date.
(base) edendulk@HP7JGV926Q Applications % snow --help
╭─ Error ───────────────────────────────────────────────────────╮
│ Configuration file /Users/edendulk/Library/Application        │
│ Support/snowflake/config.toml has too wide permissions, run   │
│ `chmod 0600 "/Users/edendulk/Library/Application              │
│ Support/snowflake/config.toml"`                               │
╰───────────────────────────────────────────────────────────────╯
(base) edendulk@HP7JGV926Q Applications % chmod 0600 "/Users/edendulk/Library/Application              │
│ Support/snowflake/config.toml"
chmod: /Users/edendulk/Library/Application              │
│ Support/snowflake/config.toml: No such file or directory

How to reproduce

No response

@github-actions github-actions bot changed the title Error Message Box Rendering Creates Line Break in Command to Resolve the Error SNOW-1633629: Error Message Box Rendering Creates Line Break in Command to Resolve the Error Aug 20, 2024
@sfc-gh-astus sfc-gh-astus added the discussion Ongoing discussion before deciding about further steps with the issue label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Ongoing discussion before deciding about further steps with the issue
Projects
None yet
Development

No branches or pull requests

2 participants