-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch debug details #363
Patch debug details #363
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #363 +/- ##
=======================================
Coverage 87.52% 87.52%
=======================================
Files 35 35
Lines 4760 4763 +3
=======================================
+ Hits 4166 4169 +3
Misses 594 594 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good first crack at this but this does not really fix the issue.
The useful thing is communicating the final (i.e. combined CLI + config) initialisation settings of the LanguageServer
. This only restates what the CLI and config inputs are, which the user can just retrieve from looking at their fortls settings. (Also, you shouldn't be using sys.argv
to retrieve the CLI options).
The solution I had in mind was rearchitecting parts of the constructor and initialization methods. Generally, care must be taken since certain variables like root_path
are only available from the RPC request of the serve_initialization
and could not be delegated to the constructor of the class.
thanks for the advice. |
quick question {
"root_path": "/home/nero/Documents/library/Programming/test/test",
"workspace": "{}",
"obj_tree": "{}",
"link_version": "0",
"_version": "0.1.dev1064+g3386073",
"config": ".fortlsrc",
"nthreads": "4",
"notify_init": "False",
"incremental_sync": "False",
"sort_keywords": "False",
"disable_autoupdate": "False",
"preserve_keyword_order": "False",
"debug_log": "True",
"source_dirs": "{'/path/to/source'}",
"incl_suffixes": "set()",
"excl_suffixes": "set()",
"excl_paths": "{'/path/to/exclude'}",
"autocomplete_no_prefix": "False",
"autocomplete_no_snippets": "False",
"autocomplete_name_only": "False",
"lowercase_intrinsics": "False",
"use_signature_help": "False",
"variable_hover": "False",
"hover_signature": "False",
"hover_language": "fortran90",
} would this be correct or am i missing something? |
1dcfeab
to
3386073
Compare
Not quite, because that would be duplicating the CLI options inside the language server. |
After our discussion over at Fortran-lang I will be closing this PR now. |
i tried to not refactor the code too much for this small change.
i have tested it and it works as intended