-
Notifications
You must be signed in to change notification settings - Fork 78
Formatting is unstable (not idempotent) #686
Copy link
Copy link
Open
Description
Describe the bug
Running dprint fmt on the on some code twice, leads to different output each time.
Input Code
const createTestData = () =>
function*() {
const startingFrom = yield* Effect.map(DateTime.now, now =>
DateTime.startOf(now, 'day'))
return HashSet.make(DateTime.toEpochMillis(startingFrom))
}Expected Output
const createTestData = () =>
function*() {
const startingFrom = yield* Effect.map(DateTime.now, now =>
DateTime.startOf(now, 'day'))
return HashSet.make(DateTime.toEpochMillis(startingFrom))
}Actual Output
first time:
const createTestData = () =>
function*() {
const startingFrom = yield* Effect.map(DateTime.now, now =>
DateTime.startOf(now, 'day'))
return HashSet
.make(DateTime.toEpochMillis(startingFrom))
}second time:
const createTestData = () =>
function*() {
const startingFrom = yield* Effect.map(DateTime.now, now =>
DateTime.startOf(now, 'day'))
return HashSet
.make(DateTime
.toEpochMillis(startingFrom))
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels