Skip to content

Commit

Permalink
fix(debug): config file handling
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gnikit committed May 10, 2024
1 parent e25c46b commit bf1a0bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fortls/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ def read_config(root: str | None):

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

try:
Expand Down

0 comments on commit bf1a0bc

Please sign in to comment.