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

bug: Cody not able to view or access files/context that i attach in the chat #5274

Open
flubzie opened this issue Aug 21, 2024 · 3 comments
Open
Labels
bug Something isn't working repo/cody

Comments

@flubzie
Copy link

flubzie commented Aug 21, 2024

Version

v1.30.3

Describe the bug

the @-mention feature doesn't seem to work. Cody is not able to view or access the files or repositories that I try to add via @-mention.

Direct response from Cody after asking it if it can see the code in the files I've attached:

It appears that I cannot directly view or access files that you attach in this chat. However, you can copy and paste the contents of your frontend code here, and I will be able to help you with it. Please go ahead and paste the relevant code or information, and I'll assist you accordingly.

Expected behavior

I would expect Cody to be able to access the code, or other content, that are contained in the files/repositories I try to add as context.

Additional context

No response

@flubzie flubzie added bug Something isn't working clients/vscode labels Aug 21, 2024
@MaartenKoller
Copy link

MaartenKoller commented Sep 10, 2024

(I'm on Intellij plugin version 7.0.1)
Same here. It appears to happen when I use @(root-folder) and for example ask 'what is the unit test framework configured', it gives the reply mentioned above. When I do @(root-folder) and @package.json it responds in the correct/expected way (which in this case saying there was no framework configured (the package file is quite empty))
So it seems the @(root-folder) does not give the appropriate context to Cody. Which kind of defeats the slogan "Cody: the AI assistant that actually knows your codebase" :P

@flubzie maybe this might help you if you are on VS? https://marketplace.visualstudio.com/items?itemName=mnismt.cody-plus-plus I came across it here: https://community.sourcegraph.com/t/adding-a-project-folder-as-context/737

Also, sometimes it just pretends to have access and just completely makes up a package json and starts reporting on that made up file. It's interesting to feel my reliability perception plummet.

Fun fact: Just installed VS Code and did the exact same steps as with my own IDE, and in VS Code it works flawlessly!
(exact same prompt in the exact same folder/vanilla project)

@leonardosalatino
Copy link

I'm facing this issue too. I have to specify each of the files that I want to review, cody is not getting the files from my repository or the root "src" folder.

I'm working with:

  • WebStorm 2024.2.3
  • plugin version 7.5.6
  • LLM Claude 3.5 Sonnet

@Kynlos Kynlos closed this as completed Jan 23, 2025
@cryther
Copy link

cryther commented Feb 2, 2025

Why was this closed? The issue persists @Kynlos

@Kynlos Kynlos reopened this Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working repo/cody
Projects
None yet
Development

No branches or pull requests

6 participants