Skip to content

No errors are being displayed when importing from lib w/ Foundry #490

@PensoGlide

Description

@PensoGlide

Greetings!

The compilation error check while typing is working, however, only when I don't import any smart contracts from the "lib" folder. I've also tried to specify "lib" as the default library directory as well as the "latest" remote version for the compiler, but nothing worked.
Attached you can find both the settings JSON, the errors showing up after I delete the imports, the files existing and the result of running forge build. The settings JSON is underneath, in case the GIF is too small.

I am using forge 1.4.1 and version 0.0.185 of your extension.

Any help is appreciated. Thank you in advance!

Image

{
    "files.autoSave": "afterDelay",
    "terminal.integrated.fontFamily": "MesloLGS NF",
    "workbench.iconTheme": "material-icon-theme",
    "workbench.colorTheme": "One Dark Pro Darker",
    "window.zoomLevel": 1,
    "aws.telemetry": false,
    "workbench.settings.applyToAllProfiles": [
        "editor.fontSize"
    ],
    "editor.formatOnSave": true,
    "[solidity]": {
        "editor.defaultFormatter": "JuanBlanco.solidity"
    },
    "solidity.formatter": "forge",
    "solidity.compileUsingRemoteVersion": "v0.8.30+commit.73712a01",
    "prettier.requireConfig": true,
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "diffEditor.codeLens": true,
    "python.defaultInterpreterPath": "/opt/homebrew/bin/python3",
    "chat.disableAIFeatures": true,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions