-
-
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
bug(linter): GFortran 4.x.x support #813
Comments
That is weird, extensions don't do anything special when launched from a remote client. That is really the whole appeal of remote SSH, regardless can you try the following:
|
That seems to indicate something wrong with the version checking of your compiler, which is weird (given that we can see it). Can you post the entire screenshot of the log output when you try to lint a file with a mistake in it? Also can you run the terminal command for that file too? This old versions of gfortran have multiple bugs and features missing, so it's very likely we are doing something that is not backwards compatible with gfortran 4 |
You're right, the regex expression is not generic enough. I'll fix that today and it should be available in tomorrow's pre-release version. |
I haven't had time to work on this today. I need to rethink the version mechanism (it's not just the regex that's the issue) and make it more robust to these non semver versions of gfortran. |
From what I can tell from the very last screenshot you uploaded the linter does indeed capture the compiler error. I can't see anything wrong with the logs. I suspect you might have to close and reopen vscode to get this to work. BTW I have fixed the regex expression to account for the edge cases of GNU where you have I can't think of an SSH specific reason as to why the extension would not be working. Let me know if the issue has been resolved so that I can close the issue. |
Both logs look fine to me. The "Errors" are not extension errors but the output of gfortran. As for f95.exe that's just gfortran saying that it encountered a Fatal Error. Can you share your remote settings too please? All this is rather strange, it's as if the part of the linter responsible for creating the vscode diagnostics does not see the compiler output. I will add some more logs to the extension to trace this. If I upload here a .vsix file (it will contain all the logs that we might not want to include in an official pre-release) for the extension would you be able to install it in your remote? |
Here's some of my settings, I'm not sure whether these are what you need.
As for the .vsix file, I think I should be able to install it. |
Okay, @linyc253 I have just released a pre-release with additional log messages, this should hopefully help narrow down what's going on. From the log messages you've posted we can tell that your remote session's compiler works and produces valid output. |
I just realised what the issue is. I will fix it right away and issue a pre-relese. |
Hi, I think the bug is still unsolved, even after installing the latest version of extension. And the log looks the same as before Currently I've jump over this bug by upgrading my gfortran compiler to version 7.3.1. So basically the problem has been solved, for me. But if you're still interesting in this issue, I haven't remove the old version gfortran, so I can do the test if needed. |
Type: Bug
The linter of Modern Fortran cannot work when I use ssh remote extension to connet to my server.
SYSTEM
Local - Windows 10
Remote server - CentOS 7
STEP
RESULT
Most of the function (coloring etc...) work well, but the linter (detect the error or warning and show in the 'PROBLEM' log, using gfortran compiler) is not. No error shown even if I type a wrong line in my code.
More information:
Fortran syntax error checking is not working in Remote ssh microsoft/vscode-remote-release#1121
Extension version: 3.2.0
VS Code version: Code 1.74.3 (97dec172d3256f8ca4bfb2143f3f76b503ca0534, 2023-01-09T16:59:02.252Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No
Remote OS version: Linux x64 3.10.0-1160.81.1.el7.x86_64
The text was updated successfully, but these errors were encountered: