amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

Fix to quote the path in SSH config

Open echinus opened this issue 1 year ago • 2 comments

Running on MacOS I occasionally get the below (paths replaced with /path/to).

zsh:1: no such file or directory: /path/to/Amazon
Warning: remote port forwarding failed for listen path /tmp/q-parent-[alphanumeric id].socket

The problem looks like the generation of ~/Library/Application Support/amazon-q/ssh_inner since it has this:

  LocalCommand /path/to/Amazon Q.app/Contents/MacOS/q _ ssh-local-command '%r@%n' '[alpha id]' 1>&2

It needs quotes around the first arg in LocalCommand. This is a generated file from crates/q_cli/src/cli/internal/generate_ssh.rs.

This error has been on and off for me, and the file hasn’t had recent changes, so it seems unlikely to be a straight bug as people would have seen and complained about it by now. Any thoughts? Here's a PR in case it's useful.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

echinus avatar May 19 '25 09:05 echinus

Interesting, do you have any steps to consistently reproduce this error? A bit hesitant to touch this configuration since this is the first bug I've seen around this, but I can test this out

brandonskiser avatar May 20 '25 21:05 brandonskiser

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 16.75%. Comparing base (cb90e38) to head (7be1a48). :warning: Report is 521 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1894   +/-   ##
=======================================
  Coverage   16.75%   16.75%           
=======================================
  Files         213      213           
  Lines       20704    20704           
  Branches      871      871           
=======================================
  Hits         3468     3468           
  Misses      17236    17236           

:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov-commenter avatar May 20 '25 21:05 codecov-commenter