ext(fortls): Can't Suppress `Variable ... masks variable in parent scope' error
amam3214 opened this issue · 1 comments
Is there an existing issue for this?
- I have searched the existing issues
Description
I want to suppress the warning shown in the following figure:

These are my the extra args in the linter settings:

Thanks!
Screenshots
Code Example
module my_module
implicit none
integer :: i, j, k
contains
subroutine my_sub(i,j)
implicit none
integer, intent(in) :: i
integer, intent(out) :: j
! implementation of my_sub
end subroutine my_sub
end module my_moduleFortran Version (Free/Fixed Form)
Free Form e.g. F90+
Version of Modern Fortran
v3.2.0
Version of Visual Studio Code
v1.80.2
Platform and Architecture
Windows
Additional Information
No response
This warnings are generated by fortls not the vscode extension itself.
At this point there is not way to enable/disable individual diagnostics, you can disable all the diagnostics emitted from forts by adding to the fortls options in vscode the --disable_diagnostics flag.
In the pre-release of the VS Code extension you can easily do that with the option
"fortran.fortls.disableDiagnostics": true,For everything else have a look at the fortls configuration documentation and add either a configuration file with this option or edit the command line arguments passed into vscode directly.