You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No detailed error log during ErrorLoadingExtension #378
Just produce e.g. an import error in an extension. When running putup --dsproject ... the error will be:
ERROR: There was an error loading 'pyscaffoldext-dsproject'.
Please make sure you have installed a version of the extension that is compatible
with PyScaffold 4.0b3.post1.dev1+ge4a1a38. You can also try unininstalling it.
In order to get to the actual cause of the error putup -vv --dsproject ... should work but due to the fact that ErrorLoadingExtension is a RuntimeError and the fact that the plugins are loaded before the error level is set, thus
if logger.level <= logging.DEBUG:
# user surely wants to see the stacktrace
traceback.print_exc()
print(f"ERROR: {ex}")
Hi @FlorianWilhelm thank you for reporting this bug. It looks like a tricky one... I will try to have a look at it during the weekend (no promises :P).
Activity
abravalheri commentedon Jan 7, 2021
Hi @FlorianWilhelm thank you for reporting this bug. It looks like a tricky one... I will try to have a look at it during the weekend (no promises :P).
Meanwhile, I think this might be solved by pyscaffold/pyscaffoldext-dsproject#10 ...
Use partial parsing to handle log_level before extensions
Use partial parsing to handle log_level before extensions
Implement get_log_level and use it in exceptions2exit
Implement get_log_level and use it in exceptions2exit
Implement get_log_level and use it in exceptions2exit
Implement get_log_level and use it in exceptions2exit
FlorianWilhelm commentedon Jan 9, 2021
This was fixed by @abravalheri. Thank you!