bloop icon indicating copy to clipboard operation
bloop copied to clipboard

Bloop compiled on Windows can't access file on repo

Open wenwade opened this issue 1 year ago • 6 comments

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.

wenwade avatar Jun 20 '24 11:06 wenwade

which rust version do you use

Seumi avatar Jun 20 '24 15:06 Seumi

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

wenwade avatar Jun 21 '24 02:06 wenwade

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

watreyoung avatar Aug 05 '24 13:08 watreyoung

1.70.0 and 1.75.0 cannot work, too.

watreyoung avatar Aug 05 '24 15:08 watreyoung

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...

ForSeason avatar Aug 08 '24 13:08 ForSeason

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.

watreyoung avatar Aug 08 '24 13:08 watreyoung