Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chazeon/gfortran-vscode-adapter
Make gfortran's seriously fucked-up output capturable to Visual Studio Code.
https://github.com/chazeon/gfortran-vscode-adapter
fortran gfortran vscode
Last synced: about 2 months ago
JSON representation
Make gfortran's seriously fucked-up output capturable to Visual Studio Code.
- Host: GitHub
- URL: https://github.com/chazeon/gfortran-vscode-adapter
- Owner: chazeon
- License: mit
- Created: 2018-09-15T18:19:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-16T04:20:18.000Z (over 6 years ago)
- Last Synced: 2024-01-29T08:47:15.015Z (12 months ago)
- Topics: fortran, gfortran, vscode
- Language: Python
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/ekibun/FortranBreaker) has made users could set break points with [Visual Studio Code](https://github.com/Microsoft/vscode) (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`](https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher) 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:
```json
{
"problemMatcher": [
{
"fileLocation": "absolute",
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):(\\S+): (.*)",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5,
"code": 6
}
}
],
}
```