Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.31 KB

README.md

File metadata and controls

31 lines (25 loc) · 1.31 KB

gfortran Visual Studio Code Adapter

Fortran is always a big headache for modern-day programmers. But many people has make their effects. Fortran Breakpoint Support has made users could set break points with Visual Studio Code (vscode).

However, parsing gfortran's output is another headache, because of the abnormal output format of gfortran and the unavailability of modifying the output format of gfortran makes vscode's problemMatcher functionality unusable.

The target of this project is to make gfortran's seriously fucked-up output capturable to Visual Studio Code's problemMatcher for tasks.

Usage

Provide whatever you want to call on gfortran to the fuck_gfortran.py program, it will make everything parsable.

Then write the vscode problemMatcher pattern as follows:

{
    "problemMatcher": [
        {
            "fileLocation": "absolute",
            "pattern": {
                "regexp": "^(.*):(\\d+):(\\d+):(\\S+): (.*)",
                "file": 1,
                "line": 2,
                "column": 3,
                "severity": 4,
                "message": 5,
                "code": 6
            }
        }
    ],
}