BloopAI / bloop

bloop is a fast code search engine written in Rust.
https://bloop.ai
Apache License 2.0
9.45k stars 573 forks source link

Bloop compiled on Windows can't access file on repo #1279

Open wenwade opened 5 months ago

wenwade commented 5 months ago

Describe the bug I built Bloop on Windows 10. It can't read files on repo. It will notice "File not indexed This might be because the file is too big or it has one of bloop's excluded file types.".

Expected behavior I can read file on repo

To Reproduce

  1. build bloop on Windows10. Arch is x86_64.
  2. run Bloop on local
  3. New a project
  4. Add a local repo
  5. Click files on repo.

Screenshots or output image

Additional context Bloop release version can run.

Seumi commented 5 months ago

which rust version do you use

wenwade commented 5 months ago

which rust version do you use rustc 1.79.0 (129f3b996 2024-06-10)

watreyoung commented 3 months ago

I met the same issue. rustc 1.80.0 (051478957 2024-07-21)

watreyoung commented 3 months ago

1.70.0 and 1.75.0 cannot work, too.

ForSeason commented 3 months ago

1.80.0 also meet same issue I just found that i cannot retrieve file by calling by_path[src/indexes/file.rs] with args that query[src/query/execute.rs] returns. But it works on macos. That's confusing. Hope it is not the matter of tantivy...

watreyoung commented 3 months ago

I looked up the source code and suspected that there is an issue in the process of fetching or storing the file path (especially for relative path) in tantivy.

For Windows, you might get UNC paths when using rust (Thanks for an anonymous geek to provide the reference). Such a path may not occur in Unix-like systems, maybe you can try deleting the data folder (cache data) and re-opening the software.