Hello,
Debian Linux 12 with VS Code v-1.85.1, Modern Fortran Pre-Release v3.4.2024010301. fortls
is installed through pipx
and available in my $PATH
. The linter is disabled for the moment.
Here are my *.code-workspace
settings:
{
"folders": [
{
"path": "."
}
],
"settings": {
"cmake.automaticReconfigure": false,
"cmake.parallelJobs": 4,
"workbench.colorTheme": "Visual Studio Dark - C++",
"workbench.preferredDarkColorTheme": "Abyss",
"workbench.iconTheme": "vs-minimal",
"workbench.sideBar.location": "right",
"workbench.editor.closeOnFileDelete": false,
"window.density.editorTabHeight": "compact",
"files.autoSave": "onFocusChange",
"editor.wordWrap": "on",
"fortran.linter.compiler": "Disabled",
"fortran.linter.compilerPath": "/usr/bin/gfortran",
"fortran.logging.level": "Debug",
"fortran.fortls.configure": "/home/ziad/CoursesTutorials/Fortran/NetCDF/.fortlsrc"
}
}
And here are the settings in my local .fortlsrc
:
{
"lowercase_intrinsics": false,
"source_dirs": ["./**", "/usr/include"],
"enable_code_actions": false,
"nthreads": 4
}
The DEBUG output from VS Code is the following:
[DEBUG - 16:00:12] [lsp.client] Language Server arguments:
[
"--enable_code_actions",
"--hover_signature",
"--use_signature_help",
"-c",
"/home/ziad/CoursesTutorials/Fortran/NetCDF/.fortlsrc",
"--nthreads=1",
"--disable_autoupdate",
"--symbol_skip_mem"
]
[DEBUG - 16:00:12] [lsp.client] Language Server version: 2.13.0
It’s clear that the .fortlsrc
settings were not picked up by the server, since nthreads
and enable_code_actions
correspond to the VS Code settings, and there is no reporting of source_dirs
.
Is fortls
actually parsing the local .fortlsrc
or not?