Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wenwade opened this issue Jun 20, 2024 · 6 comments
Open

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

wenwade opened this issue Jun 20, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@wenwade
Copy link

wenwade commented Jun 20, 2024

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 wenwade added the bug Something isn't working label Jun 20, 2024
@Seumi
Copy link

Seumi commented Jun 20, 2024

which rust version do you use

@wenwade
Copy link
Author

wenwade commented Jun 21, 2024

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

@watreyoung
Copy link

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

@watreyoung
Copy link

watreyoung commented Aug 5, 2024

1.70.0 and 1.75.0 cannot work, too.

@ForSeason
Copy link

ForSeason commented Aug 8, 2024

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants