-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The gfortran linter is not working? [Win 10] #28
Comments
I have changed the regex variable in linter.py so it works now. regex = (
# filename:line:col: is common for multiline and single line warnings
r'.*:(?P<line>\d+):(?P<col>\d+):'
# Then we either have a space or (a newline, a newline, some source code,
# a newline, a col number, a newline)
r'(?:(\s*.*\s*\d+\s*))'
# Finally we have (Error|Warning): message to the end of the line
r'(?P<error>(Error|Fatal Error)|(?P<warning>Warning)): (?P<message>.*)'
) |
I'm using I got error messages that SublimeFortran's regex cannot handle.
And @8fdafs2 's regex works, as it correctly extracts some information. But, it incorrectly assigns The good news is, the 3rd line of original regex can work! regex = (
# filename:line:col: is common for multiline and single line warnings
r'.*:(?P<line>\d+):(?P<col>\d+):'
# Then we either have a space or (a newline, a newline, some source code,
# a newline, a col number, a newline)
r'(?:(\s*.*\s*\d+\s*))'
# Finally we have (Error|Warning): message to the end of the line
r'(?:(?P<error>Error|Fatal\sError)|(?P<warning>Warning)): (?P<message>.*$)'
) As shown here: https://regex101.com/r/xR8gH0/3 Maybe the original regex was written for a different of Thanks, @8fdafs2. |
… fixed by 8fdafs2 and Kailang)
The gfortran is already in system path and I also tried putting its path in linter setting file.
Either way it's not working.
The text was updated successfully, but these errors were encountered: