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

Add additional check for active view being None #747

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
"6.4.4": "messages/6.4.4.rst",
"6.4.5": "messages/6.4.5.rst",
"6.5.0": "messages/6.5.0.rst",
"6.5.1": "messages/6.5.1.rst"
"6.5.1": "messages/6.5.1.rst",
"6.5.2": "messages/6.5.2.rst"
}
24 changes: 24 additions & 0 deletions messages/6.5.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Version 6.5.2
=============

Improvements and bug fixes:
---------------------------
- Fix a rare crash when selecting code with error message on its line

Huuuge thanks to my GitHub Sponsors! You're amazing! 🙏
-------------------------------------------------------
- @vaporstack
- @Andreasdahlberg

Join them on GitHub Sponsors and support the development!
https://github.com/sponsors/niosus

Reach out! 😉
-------------

Tell me how YOU use the plugin!
- PM me on reddit: @soinus
- Tweet at me on twitter: @igor_niosus 🐦

Other means of support here:
https://github.com/niosus/EasyClangComplete#support-it
4 changes: 4 additions & 0 deletions plugin/utils/progress_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def __init__(self):
def set_status(message):
"""Set status message for the current view."""
view = sublime.active_window().active_view()
if not view:
# In some situations as described in issue 745 this view would end
# up being None. So we check it obsessively here again.
return
view.set_status(BaseProgressStatus.MSG_TAG, message)

def erase_status(self):
Expand Down