Skip to content

Commit bf1a0bc

Browse files
committed
fix(debug): config file handling
This commit fixes the handling of the config file in the `debug_parser` function. It now correctly checks if the config file exists before attempting to parse it. Additionally, it prints the config details for debugging purposes.
1 parent e25c46b commit bf1a0bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fortls/debug.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@ def read_config(root: str | None):
439439

440440
# Check for config files
441441
config_path = locate_config(root)
442-
if not os.path.isfile(config_path):
442+
print(f" Config file = {config_path}")
443+
if config_path is None or not os.path.isfile(config_path):
443444
return pp_suffixes, pp_defs, include_dirs
444445

445446
try:

0 commit comments

Comments
 (0)