fix: treat .pkl and .pickle as text files#552
Conversation
Pkl (pkl-lang.org) is a configuration language with .pkl files. Was classified as binary alongside Python pickle (.pickle). Remove both — pkl is plain text; legacy pickle is rare and harmless to preview. Closes #550
|
@gustav-fff why this PR is failing windows CI second time in a row? |
|
[triage-bot] DIRECTED: not caused by this PR. Failing test: Same failure on Symptom: after Suggest tracking as a separate Windows-flake issue. Want me to open one? Honk-Honk 🪿 |
|
@gustav-fff try to open a separate PR to fix this issue, rerun the CI at least 5 times to make sure that it is gone until you figure out the exact reason what is going on |
|
[triage-bot] DIRECTED: opened #587 with the fix. Root cause: Fix is 10 lines: set Will queue ≥5 Windows CI runs on #587 once the first one completes and report results back here before requesting merge. Honk-Honk 🪿 |
Closes #550
Root cause
is_known_binary_extensionincrates/fff-core/src/file_picker.rs:1981listedpklandpickleunder ML/Data Science binaries..pklis now also the Pkl configuration language — plain text. Files were classified binary, so preview rendered as binary.Fix
Removed
pklandpicklefrom the binary extension match list (file_picker.rs:2022).Steps to reproduce
Expected: text preview with syntax. Actual (pre-fix): binary placeholder.
How verified
cargo check --workspacepasses. Diff is one line.Automated triage via Gustav. Honk-Honk 🪿