You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fantomas inserts space that breaks index lookups (without a dot) #2519
Fantomas inserts extra space between i.e negotiationRules and the [...] which breaks the code. This seems to happen if there are more than one argument after e.g negotiationRules [ mimeType ] () will be formatted correctly whiles negotiationRules [ mimeType ] () () will not.
This was fixed by PR #3259 ("Fix index-without-dot followed by application arguments"), merged on 2026-03-09 and included in 8.0.0-alpha-005.
The root cause described in that PR matches exactly: the App active pattern was flattening through IndexWithoutDot expressions and losing the no-space semantics, causing expr[idx] () () to become expr [ idx ] () () when multiple arguments followed the indexer.
/repo-assist okay, add another regression test for this specific report. Include in changelog but in unreleased section (even if that is technically not 100% accurate)
Activity
nojaf commentedon Sep 19, 2022
Hello, this is a tricky one to fix I think.
Interestingly enough, the problem doesn't occur when one of the arguments is indexed. (sample).
As a workaround you can use the dot notation
negotiationRules.[mimeType] () ()or submit a PR to fix this.github-actions commentedon Mar 14, 2026
nojaf commentedon Mar 16, 2026
/repo-assist which PR fixed this? We can close this as duplicate of another issue.
github-actions commentedon Mar 16, 2026
🤖 This is an automated response from Repo Assist.
This was fixed by PR #3259 ("Fix index-without-dot followed by application arguments"), merged on 2026-03-09 and included in
8.0.0-alpha-005.The root cause described in that PR matches exactly: the
Appactive pattern was flattening throughIndexWithoutDotexpressions and losing the no-space semantics, causingexpr[idx] () ()to becomeexpr [ idx ] () ()when multiple arguments followed the indexer.Happy to close this as resolved by that PR!
nojaf commentedon Mar 16, 2026
/repo-assist okay, add another regression test for this specific report. Include in changelog but in unreleased section (even if that is technically not 100% accurate)
Add regression test for index-without-dot with variable key and unit …
Add regression test for index-without-dot with variable key and unit …
Merge pull request #3311 from fsprojects/repo-assist/regression-test-…
Bump the dotnet-sidecars group with 6 updates (#257)
Bump the packages group with 5 updates (#106)
Bump the packages group with 6 updates (#84)