Skip to content
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

LSP throws an exception if no project is opened. #153

Closed
deathaxe opened this issue Oct 5, 2017 · 0 comments
Closed

LSP throws an exception if no project is opened. #153

deathaxe opened this issue Oct 5, 2017 · 0 comments

Comments

@deathaxe
Copy link
Contributor

deathaxe commented Oct 5, 2017

commit: d3a8da3

The traceback

Traceback (most recent call last):
  File "C:\Apps\Sublime\sublime_plugin.py", line 417, in run_async_view_listener_callback
    vel.__class__.__dict__[name](vel)
  File "C:\Apps\Sublime\Data\Packages\LSP\main.py", line 2552, in on_activated_async
    Events.publish("view.on_activated_async", self.view)
  File "C:\Apps\Sublime\Data\Packages\LSP\main.py", line 1927, in publish
    listener(*args)
  File "C:\Apps\Sublime\Data\Packages\LSP\main.py", line 932, in initialize_on_open
    config = config_for_scope(view)
  File "C:\Apps\Sublime\Data\Packages\LSP\main.py", line 849, in config_for_scope
    window_client_config = apply_window_settings(global_client_config, view)
  File "C:\Apps\Sublime\Data\Packages\LSP\main.py", line 823, in apply_window_settings
    window_config = get_project_config(view.window())
  File "C:\Apps\Sublime\Data\Packages\LSP\main.py", line 798, in get_project_config
    project_settings = project_data.setdefault('settings', dict())
AttributeError: 'NoneType' object has no attribute 'setdefault'
@tomv564 tomv564 closed this as completed in 740b57d Oct 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant