gpt4all icon indicating copy to clipboard operation
gpt4all copied to clipboard

localDocs is ignoring .dart files in a flutter project lib directory, and only seen if file name changed AND changed back with .dart extension

Open nblaisot opened this issue 8 months ago • 0 comments
trafficstars

I haven't found any bug report that matched the issue I have found

Bug Report

In a directory with ".dart" files (text files with .dart extension) for a flutter project, I have noticed that they are not getting indexed in localDocs. Those files are in a "lib" directly in the bigger folder of my flutter project.

The weird thing is that if I actually change the name of the file, for instance changing the extension, and CHANGE IT BACK to .dart, then it's detected by localDocs. So it's not the extension per say, for some reason originally it's not seeing the files individually unless I change their names and then back again.

Steps to Reproduce

Declare "dart" in the supported file extensions in localDocs

Pick a flutter directory, or a directory that corresponds to flutter .dart files that have been copied

Create a collection in localDocs with this directory

See in localDocs that 0 files are indexed.

Or alternatively: within a rich directory with plenty of files, and then ask questions in a chat to reference .dart files: you'll realize that it does not "see" the files

Expected Behavior

.dart files are properly indexed as text files when the "dart" extension is declared in localDocs and all files with the declared extensions are consistently detected by localDocs

Your Environment

  • GPT4All version (if applicable): 3.10.0
  • Operating System: macOS 15.3.2
  • Chat model used (if applicable): Any

nblaisot avatar Mar 11 '25 19:03 nblaisot