juanfranblanco / vscode-solidity

Visual Studio Code language support extension for Solidity smart contracts in Ethereum https://marketplace.visualstudio.com/items?itemName=JuanBlanco.solidity
MIT License
871 stars 187 forks source link

Formatter error: Extension 'solidity' is configured as formatter but it cannot format 'solidity - files #452

Closed amusingaxl closed 3 months ago

amusingaxl commented 3 months ago

I have the following in my settings.json:

    "[solidity]": {
        "editor.defaultFormatter": "JuanBlanco.solidity"
    },
    "solidity.formatter": "forge",

However, whenever I try to format a .sol file, I get this error:

2024-03-14_12-03

If I click "Configure", the only option I see is this one: 2024-03-14_12-03_1

If I select it, it overrides the value in settings.json:

     "[solidity]": {
-        "editor.defaultFormatter": "JuanBlanco.solidity"
+        "editor.defaultFormatter": "0xp.vsc-solidity"
     },
     "solidity.formatter": "forge",
juanfranblanco commented 3 months ago

What is 0xp.vsc-solidity? @amusingaxl , ah .. somebody experimenting with this extension and forking instead of contributing, hopefully he will make some pulls soon.

juanfranblanco commented 3 months ago

You need to remove that extension if you have it installed "0xp.vsc-solidity", as some how it might be clashing.

juanfranblanco commented 3 months ago

I have asked him to contribute here :), hopefully we will see stuff upstream