daveleroy / SublimeDebugger

Graphical Debugger for Sublime Text for debuggers that support the debug adapter protocol
MIT License
369 stars 42 forks source link

[Bug] Unable to insert configuration into sublime-project file #189

Closed LDAP closed 1 year ago

LDAP commented 1 year ago

Debugger fails to add a configuration to a sublime project if the key debugger_configurations is not present.

Debugger: ProjectConfiguration.reload
Debugger: No project associated with window
Debugger:Traceback (most recent call last):
  File "/home/lucas/.config/sublime-text/Packages/Debugger/modules/adapters_registry.py", line 81, in _insert_snippet
    raise core.Error('Unable to find debugger_configurations')
Debugger.modules.core.error.Error: Unable to find debugger_configurations

--
error: Unable to insert configuration into sublime-project file: Copied to clipboard instead
daveleroy commented 1 year ago

Snippet insertion is not supported when not using a sublime-project at the moment

LDAP commented 1 year ago

That was with an active sublime project.

dongguaguaguagua commented 1 year ago

change your sublime-project into this:

{
    "folders": [
        {
            "path": "."
        },
    ],
    "debugger_tasks": [
    ],
    "debugger_configurations": [
    ],
}
LDAP commented 1 year ago

change your sublime-project into this:

Thanks @dongguaguaguagua I already did this as a workaround. However, Debugger should be able to insert snippets into sublime projects with missing debugger_* keys as well.

daveleroy commented 1 year ago

Its supposed to add debugger_configurations when first opening the debugger. Should be fixed here 73acaf1b139c0f44098173decb8047c69cd3aebd