-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
.mod files for linting out of src directory #159
Comments
Hello there, Also other flags to the compile command can be set in |
I've tested the include and |
@newmrdenis Need any help with this? It worked? |
This will be closed due to be a duplicate of the improvements proposed in #86 |
Oh, thanks for your reply. I was busy so couldn't answer instantly, sorry. The include works as expected for me, but is it really? You have to paste only absolute path? This really bad. Because I use it for my external libraries and there I specified only an absolute path I've never noticed it . As for -J option it seems no longer to create .mods file in dir I specified. Or maybe I've done something wrong? Here I'll try to clarify my request: is there any way to create temporary .mods files, used for checking interfaces of funcs and others, create in the out of dir where the sources of these modules are storing? |
My bad, |
IntroFirstly our extension has two major drawbacks (that we are aware of) when it comes to the linter usage:
I'm gathering these To-Do developments in #86. TutorialFolder structureThis tutorial runs in the following code structure:
Where Let's compile the code now. Our linter helps you see errors end warnings but doesn't know compilation order, linking and stuff like that. After running
Include foldersNow we open the VSCode in this workspace, with the following settings in this extension: {
"fortran.gfortranExecutable": "gfortran",
"fortran.linterEnabled": true
} By opening the program file ( {
"fortran.gfortranExecutable": "gfortran",
"fortran.linterEnabled": true,
"fortran.includePaths": [
"/home/pedro/Documents/Codes/LinkedList/bin"
]
} By saving/reopening the Managing temporary
|
@newmrdenis I'll wait longer now I promise 👍 Let me know if this helps, or if something is still wrong. |
Yes, now all is clarified.I am really grateful for your spent time. P.S. There is one more trouble with -J option such as you have to paste your dir right after -J key. No space is available. This is confusing. |
It doesn't bother me so much since I'm used with similar flags But I understand, if it bothers that much you can separate it like this: "fortran.linterExtraArgs": [
"-Wall",
"-J","/home/pedro/Documents/Codes/LinkedList/bin"
] It also works. I'll leave the closure of this issue to you. If there's something else just ask. |
Thank you again) |
Can this be done in a per project basis? If I do the following setting then all the |
Not as far as I know, you can use VSCode workspaces and set the -J in the workspace settings. You might also be able to use relative directories although I have not tested that myself. |
Hello there. First of all thank you a lot for creating and maintaining this great extension!
My question is pretty simple: is there any way to create .mod files needed for linting in user-specific directory? Because my project has the corresponding structure:
project
-src
-obj
makefile
And I really want to have the setting specifying the obj dir as storing .mods files. Something like adding -J obj seems not to work.
Thank you for reply in advance.
The text was updated successfully, but these errors were encountered: