Open romiras opened 2 months ago
@romiras is this .gitignore in the root of your opened VS Code workspace? I just want to make sure I have all of the structural details of your folders correct so that I can test this myself. My first guess at what's happening is that we aren't correctly handling the leading '/' in .gitignore
@sestinj
Ruby on Rails (RoR) application has been generated by rails new r7_app --api -J -T -A --skip-hotwire
just to let me and others reproduce the issue. RoR was taken just for sake of example. You can generate skeleton app for Django app or whatever else.
File .gitignore
also located in root of project.
As result of indexing we can see all tmp
, secret file, ... everything that we don't expect... leaked into ~/.continue/index/index.sqlite
.
I think continue.dev is slowing down my machine when I open VSCode due to it indexing my 20,000 line daily_journal.md
despite a .gitignore
with *.md
existing in the same directory.
Can confirm. Using WSL or dev container, Continue will try to index my build folder, even though it is in the .gitignore. This is a particular issue, as the c++ package manager we are using copies the source of all the dependencies into the build folder, so Continue attempts to index all of Boost.
In my case Continue doesn't respect both .gitignore
and .continueignore
at all, I am using JetBrains IDE in Windows.
Similar issue here, actually worse than what other people have reported. My project is multi-root workspace, with .gitignore in each root (multiple folders
entries in the .code-workspace
file)
This code-workspace file is opened in a devcontainer.
What happens is that the VSCode Continue.dev extension will start indexing, which takes a very long time. A few seconds later, VSCode will freeze and get stuck on "Reconnecting to devcontainer..." making it impossible to do any work.
A few seconds later the Continue.dev indexing will get stuck, so I can't just wait for it to complete.
I tried adding a .continueignore
file at the file system root of the project, but didn't help.
Disabling the Continue extension will stop the problem.
I was able to mitigate the problem somewhat by adding a separate .continueignore
to each folder of my VSCode workspace even though 2 of them are subfolders of the root.
However, this still doesn't let me use the extension because it is never able to finish indexing (see #1467) and eventually leads to VSCode or the extension crashing/freezing.
Thanks everyone for adding details here. I'm going to do work on this problem this week, as it definitely seems pressing. Until then you can set "disableIndexing": true in your config.json to avoid any critical errors
The same issue for me as well. My workspace has a few conda
environments, but they are indeed added to .gitignore
. One thing I've noticed was the extension was busy looping the editor, so everything was very sluggish.
Adding the aforementioned environments to .continueignore
does fix the issue.
My setup: VS Code + Dev Container on Windows PC
@pbrit are you on the main release of the extension? I've just recently published a new pre-release version (0.9.177) that should correctly listen to all .gitignore patterns.
The only thing I can potentially think of if you're already on the pre-release: is there any chance you've opened a sub-folder in the repository at the root of your VS Code workspace, where the .gitignore is in the root of the repository, not in the VS Code workspace?
Before submitting your bug report
Relevant environment info
Description
It seems that Continue doesn't respect
.gitignore
at all. Every ignored file is leaked into indexing.To reproduce
Generate RoR application
.gitignore
:After long process of indexing
du -hs ~/.continue/index
reports about144M
. After runningecho 'ignore me' > tmp/ignore.txt
a file indexed also. Commandsqlite3 -column ~/.continue/index/index.sqlite "select * from tag_catalog where path like '%ignore.txt'"
shows:Log output
No response