Skip to content

stylua hangs when num-threads is 1 #281

@slam

Description

@slam

I have a cheap digital ocean droplet with 1 cpu where stylua hangs every time.

After some debugging, I narrowed it down to num-threads getting a default of 1 on that instance. Setting num-threads to anything > 1 fixes it.

I repro'd it on my mac by setting num-threads to 1:

❯ stylua --num-threads 1 --verbose null-ls.lua
config: starting config search from /Users/slam/dotfiles/nvim/.config/nvim/lua/custom/plugins - recurisvely searching parents: false
config: looking for config in /Users/slam/dotfiles/nvim/.config/nvim/lua/custom/plugins
config: no configuration file found
config: falling back to default config
config: Config {
    column_width: 120,
    line_endings: Unix,
    indent_type: Tabs,
    indent_width: 4,
    quote_style: AutoPreferDouble,
    no_call_parentheses: false,
}
creating a pool with 1 threads
[hangs forever]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions