Open drahnr opened 2 weeks ago
It's hard to act in any way without details about the project, how many files, how is taplo used, etc.
I think it be great to have some addition tracing::trace!
level logs in there.
I added some and it turns out self.env.glob_files_normalized(&pat)
doesn't return but gets hung up. There are 71 files that match the regex ^.+\.toml$
, the repository contains 5 symlinks, 0 of them are toml files.
After deleting my arguably hefty target
dir, it goes back to normal.
tl;dr it might make sense to honour .gitignore
if present to avoid scanning temporary build directories.
We already have an exclude configuration option that can resolve that.
Reading .gitignore
might introduce unwanted behaviour of not formatting files that are ignored but not expected to be.
Well, know I have to define two places where I have globs of ignores. I personally find that more unexpected vs taking into account .gitignore
files.
Our project grew and
taplo
evolved. Trying0.9.0
and0.9.1
(unreleased, git) both exhibit a rather slow glob resolution and file collection. It hangs for minutes.EDIT: it doesn't finish collecting the files at all