-
-
Notifications
You must be signed in to change notification settings - Fork 36
Wrong use of configuration fortran.linter.compilerPath in file linter-provider.ts #492
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
Comments
This is not really a bug, the path is meant to be the rootpath of the binary, i.e. /usr/bin . The option There are 2 reasons why we don't allow you to just give the an arbitrary binary path:
Number 2. can be addressed by allowing you to specify the full path in |
I obviously understand how this might be a bummer since not all gfortran versions have a binary alias without the version appended at the end |
In the documentation a full path is used:
|
When speaking of a path, usually the full string with the binary should be set. Otherwise speak of Compare this to |
in the README you are right it should not have ifort appended in the end of that path. I will fix it. In general, I think that I might just remove the tricks with the compiler paths and leave it up to the user to not pass unsafe binaries to the linter. |
That's exactly what I think: Those tricks with the compiler path (here: directory) and the name are way too complicated. |
Describe the bug
When setting this option like
the function
getLinterExecutable()
inlinter-provider.ts
will return this compiler path:This is wrong! It has to be
/usr/bin/gfortran-9
. The linting feature isn't working any more.Build info (please complete the following information):
The text was updated successfully, but these errors were encountered: