fortls1
Fortran language server for the language server protocol
Overview
usage: fortls [options] [debug options]
fortls - Fortran Language Server
options:
-
-h, --help -
show this help message and exit
-
-v, --version -
Print server version number and exit
-
-c, --config CONFIG -
Configuration options file (default file name: .fortlsrc, other default supported names: .fortls.json, .fortls)
-
-n, --nthreads INTEGER -
Number of threads to use during workspace initialization (default: 4)
-
--notify_init -
Send notification message when workspace initialization is complete
-
--incremental_sync -
Use incremental document synchronization (beta)
-
--recursion_limit INTEGER -
Set the maximum recursion depth for the parser (default: 1000)
-
--sort_keywords -
Display variable keywords information, function/subroutine definitions, etc. in a consistent (sorted) manner default: no sorting, display code as is)
-
--disable_autoupdate -
fortls automatically checks PyPi for newer version and installs them.Use this option to disable the autoupdate feature.
-
--preserve_keyword_order -
DEPRECATED, this is now the default. To sort use sort_keywords
-
--debug_log -
Generate debug log in project root folder
-
--debug_help -
Display options for debugging fortls
Sources file parsing options:
--source_dirs[DIRS ...]-
Folders containing source files (default: set())
--incl_suffixes[SUFFIXES ...]-
Consider additional file extensions to the default (default: .F, .F77, .F90, .F95, .F03, .F08, .FOR, .FPP (lower & upper casing))
--excl_suffixes[SUFFIXES ...]-
Source file extensions to be excluded (default: set())
--excl_paths[DIRS ...]-
Folders to exclude from parsing
Autocomplete options:
-
--autocomplete_no_prefix -
Do not filter autocomplete results by variable prefix
-
--autocomplete_no_snippets -
Do not use snippets with place holders in autocomplete results
-
--autocomplete_name_only -
Complete only the name of procedures and not the parameters
-
--lowercase_intrinsics -
Use lowercase for intrinsics and keywords in autocomplete requests
-
--use_signature_help -
Use signature help instead of subroutine/function snippets. This effectively sets
--autocomplete_no_snippets
Hover options:
-
--variable_hover -
DEPRECATED: This option is always on. Show hover information for variables
-
--hover_signature -
Show signature information in hover for arguments
-
--hover_language HOVER_LANGUAGE -
Language used for responses to hover requests a VSCode language id (default: fortran90)
Diagnostic options (error swigles):
-
--max_line_length INTEGER -
Maximum line length (default:
-1)
-
--max_comment_line_length INTEGER -
Maximum comment line length (default:
-1)
-
--disable_diagnostics -
Disable diagnostics
Preprocessor options:
--pp_suffixes[SUFFIXES ...]-
File extensions to be parsed ONLY for preprocessor commands (default: all uppercase source file suffixes)
--include_dirs[DIRS ...]-
Folders containing preprocessor files with extensions PP_SUFFIXES.
-
--pp_defs JSON -
A dictionary with additional preprocessor definitions. Preprocessor definitions are normally included via INCLUDE_DIRS
Symbols options:
-
--symbol_skip_mem -
Do not include type members in document symbol results
CodeActions options [limited]:
-
--enable_code_actions -
Enable experimental code actions (default: false)
All options starting with '--' can also be set in a configuration file, by default named '.fortlsrc', '.fortls.json' or '.fortls' (other names/paths can specified via -c or --config). For more details see our documentation: https://fortls.fortran-lang.org/options.html#available-options
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
--config since Debian 12 (Bookworm);
--debug_help since Debian 12 (Bookworm);
--disable_autoupdate since Debian 12 (Bookworm);
--pp_defs since Debian 12 (Bookworm);
--recursion_limit since Debian 13 (Trixie);
--sort_keywords since Debian 12 (Bookworm);
-c since Debian 12 (Bookworm);
-n since Debian 12 (Bookworm);
-v since Debian 12 (Bookworm).
--debug_actions until Debian 11 (Bullseye);
--debug_char until Debian 11 (Bullseye);
--debug_completion until Debian 11 (Bullseye);
--debug_definition until Debian 11 (Bullseye);
--debug_diagnostics until Debian 11 (Bullseye);
--debug_filepath until Debian 11 (Bullseye);
--debug_full_result until Debian 11 (Bullseye);
--debug_hover until Debian 11 (Bullseye);
--debug_implementation until Debian 11 (Bullseye);
--debug_line until Debian 11 (Bullseye);
--debug_parser until Debian 11 (Bullseye);
--debug_references until Debian 11 (Bullseye);
--debug_rename until Debian 11 (Bullseye);
--debug_rootpath until Debian 11 (Bullseye);
--debug_signature until Debian 11 (Bullseye);
--debug_symbols until Debian 11 (Bullseye);
--debug_workspace_symbols until Debian 11 (Bullseye);
--incrmental_sync until Debian 11 (Bullseye).