facebook / facebook/flow

Impossible to ignore symlinks; hard to control what Flow parses

Đang mở
#2,250 5 bình luận 12 reaction 0 người được giao Xem trên GitHub
enhancement feature request
Ngôn ngữ chính
Rust
Star
22.3k
Fork
1.9k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

My code's directory structure contains a symlink to `..`.

Flow happily follows this symlink and ends up parsing all kinds of code that doesn't actually belong to my project.

Unfortunately, naming the symlink in `[ignore]` doesn't work: Flow only checks ignore rules against the absolute path after resolving all symlinks.

Naming the actual parent directory of my source directory in `[ignore]` also doesn't work: Flow fails with:

```
The flow server is not responding (0 retries remaining): [processing] -
Out of retries, exiting!
```

There are no errors in the server log. Running `flow` again here (with the server already running from the previous execution) simply says `No errors!`, which I know is false, so one possibility is that flow has decided to ignore all my code because it is all under the ignored parent directory.

I really just want to tell flow exactly what to parse. I don't want my project root to be included by default.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.