Skip to content

WSL mode: not able create folder or file via copilot cli #86

@tanghoong

Description

@tanghoong

Describe the bug

I instructed copilot to create the files and folders on Desktop folder, but it returns an unhandled error for executing the commands.

Affected version

0.0.328

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

  • Operating System: Window 11
  • Shell Windows Terminal > WSL > zsh
  • Node: 24.9.0
  • NPM: 11.6.1
  • Copilot: 0.0.328

Unhandled error: Error: /mnt/c/Users/user/CONFIG~1/herd/bin/nvm/v24.7.0/node_modules/@github/copi
lot/node_modules/node-pty/build/Release/pty.node: invalid ELF header

● Let me use bash to explore the directory structure first:

✗ List contents of current directory
$ ls -la

● Let me try a different approach to check the directory:

✗ Check current directory and look for existing documentation files
$ pwd && find . -maxdepth 1 -type f -name ".md" -o -name ".txt" -o -name "README*" | head -10

● Let me try using the file editor directly to create the files:

✗ Create copilot-cli-instructions.md
/mnt/c/Users/user/Desktop/GithubCopilot/copilot-cli-instructions.md
Unhandled error: Error: /mnt/c/Users/user/CONFIG~1/herd/bin/nvm/v24.7.0/node_modules/@github/copi
lot/node_modules/node-pty/build/Release/pty.node: invalid ELF header

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions