app
app copied to clipboard
IntelliJ -> Cody App doesn't work when git repository has 2 sublevels
For a while I couldn't get the IntelliJ plugin to connect to the local Cody app for my application.
My project is hosted in a self-hosted gitlab instance, and the repository structure is "gitlab/project/subproject/repo".
In the Cody App when indexing this app, the name of the project (eg in the context dropdown below the question section) would always show as "subproject". In IntelliJ on the Cody tab, there would always be an error at the bottom of the panel saying "
I believe the problem is the app is referring to the project by the "subproject" name instead of the "repo" name.
I confirmed this by moving my repository up a level so the structure looks like "gitlab/project/repo". When I did this, the IntelliJ plugin correctly connected to the Cody App.
Note, I did not change my filesystem layout or my IntelliJ module layout. The only thing I changed was the remote git path to not include a subproject name. Also, I'm adding the repository as a local repository using the "Add a repository" button and selecting the root directory of my repository.
Setup:
- MacOS 13.4.1
- Cody App Version 2023.7.11+1384.7d20a90ce7
- IntelliJ Cody Plugin 3.0.9