View on GitHub

Random technical notes

Random technical notes

Common

Environment for VSCode

Plugins

Configure tasks.json VSCode for FPC

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "shell",
            "label": "PAS build active file",
            "command": "fpc",
            "args": [
                "${file}"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []
        }
    ]
}

Lazarus Tips

Please go to Tools–>Configure Build Lazarus, add to the options “-gw -gl -godwarfsets -gh -gt -Co -Cr -Ci -Sa -va” without the quote, then try to rebuild the IDE, maybe this way you will get more information why the build fails.

You missed the -va in the end. It will force the IDE to show everything, which sometimes helps.