Skip to content

Make gfortran's seriously fucked-up output capturable to Visual Studio Code.

License

Notifications You must be signed in to change notification settings

chazeon/gfortran-vscode-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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
            }
        }
    ],
}

About

Make gfortran's seriously fucked-up output capturable to Visual Studio Code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages