Skip to content

Badly formatted json configuration file hangs the IDE #912

@BlueInt32

Description

@BlueInt32

Steps to reproduce

  • Install Csharpier extension in Visual Studio (Community) or Jetbrains Rider on Windows 10
  • create the following configuration in the expected json file (both .csharpierrc or .csharpierrc.json will reproduce) but with a wrong format, i.e. notice the double quotes missing for properties:
{
    printWidth: 120,
    useTabs: false,
    tabWidth: 4
}
  • Set up csharpier to run on save
  • Save any file (triggers the formatting)

Expected
The formatting does not work, something tells us that the configuration file is badly formatted.

Actual
The IDE (either VS or Rider) completely hangs, nothing can be done except:

  • fixing the file (which un-hangs the IDE immediately)
  • killing the IDE in the task manager

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions