Skip to content

[BUG]: The "path" argument must be of type string. Received undefined #314

@MarchandMD

Description

@MarchandMD

Thanks for taking the time to fill out this out! 🙇
By submitting this issue, you agree to follow our Code of Conduct.

What happened?

What did you do? What happened? What did you expect to happen?

I asked copilot cli to do some very basic git behaviors, such as:

  • change to master branch
  • create a branch
  • switch to a new branch
  • show the reflog

I also asked copilot cli to pwd (using natural language, instead of the very concise 3 characters of pwd)

All of these behaviors resulted in title of this issue, repeatedly being displayed, before copilot cli admitting to an internal error related to bash commands.

Versions

What versions of the relevant software are you running?
For example: gh v2.37.0, gh-copilot v0.5.2-beta

Relevant terminal output

Please copy and paste any relevant terminal output.
Please check your output before submission to ensure sensitive information is redacted.

 ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ > switch to the master branch                                                                                                          │
 ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

 ✗ Switch to master branch
   $ git checkout master
   The "path" argument must be of type string. Received undefined

 ✗ Switch to master branch
   $ git checkout master
   The "path" argument must be of type string. Received undefined

 ● I apologize, but I'm experiencing technical difficulties with the bash tool. The
   system is encountering an error that prevents me from executing git commands
   directly in your local repository.

   However, you can switch to the master branch yourself by running this command in
   your terminal:

     git checkout master

   Or if you prefer the newer git syntax:

     git switch master

   Once you've switched branches, let me know if you need help with anything else!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions