-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Running multiple times on the same file without otherwise changing the file sometimes yields different results.
- Version: 0.10.1
- Platform: macOS Big Sur 11.5.2
Config at /Users/tim/stylua.toml:
column_width = 88Lua file before (at `/Users/tim/example.lua):
local thisisathing = {this_is_one = "one", this_is_two = "two", this_is_three = "three"}First run:
stylua -v example.lua
config: starting config search from /Users/tim - recurisvely searching parents: false
config: Config {
column_width: 88,
line_endings: Unix,
indent_type: Tabs,
indent_width: 4,
quote_style: AutoPreferDouble,
no_call_parentheses: false,
}
creating a pool with 8 threads
formatted example.lua in 1.121355ms
local thisisathing =
{
this_is_one = "one",
this_is_two = "two",
this_is_three = "three",
}Second run:
stylua -v example.lua
config: starting config search from /Users/tim - recurisvely searching parents: false
config: Config {
column_width: 88,
line_endings: Unix,
indent_type: Tabs,
indent_width: 4,
quote_style: AutoPreferDouble,
no_call_parentheses: false,
}
creating a pool with 8 threads
formatted example.lua in 1.314414ms
local thisisathing = {
this_is_one = "one",
this_is_two = "two",
this_is_three = "three",
}Expected:
The output of the second run should be the result after the first run, and subsequent runs should result in no changes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working