CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

Cannot select source file to include in chat window via 📎 file list button when the build is out of source

Open ebernardatdxo opened this issue 8 months ago • 1 comments

Describe the bug Our project is configured to have the build directory out of the source directory. And the xcode project is generate by cmake. The tree is like that :

    project_src
    project_build
        project.xcodeproj
        bin 
        etc ...

In this configuration copilot don't list file from the source directory. It only list file from the build directory.

Versions

  • Copilot for Xcode: [e.g. 0.32.0]
  • Xcode: [e.g. 16.2]
  • macOS: [e.g. 15.3.2]

Steps to reproduce clic on 📎 and only files inside the project_build appear.

Screenshots

Logs No error in the log file

Additional context

ebernardatdxo avatar Apr 08 '25 09:04 ebernardatdxo

I got same issue and I found why copilot couldn't find any files.

CopilotForXcode can read only one Project. If your Project has another project files in project directory, copilot can't read any files.

It's example.

If one Project If Project has another Projects in directory
Image Image

JaewoongLee-swift avatar May 28 '25 08:05 JaewoongLee-swift

After testing a bit with project.xcodeproj location. I found that if I move my project.xcodeproj from the build folder to the src folder, CopilotForXcode is able to found file. The issue is that I can't build anymore because the moved project.xcodeproj is now wrongly configure.

ebernardatdxo avatar Jun 02 '25 07:06 ebernardatdxo

@ebernardatdxo @JaewoongLee-swift Could you share a small sample project for us to understand the workspace structure better?

testforstephen avatar Jun 03 '25 06:06 testforstephen