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

PR: Prevent an error during the initialization of the Editor plugin #8249

Merged
merged 1 commit into from
Nov 15, 2018
Merged
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
16 changes: 8 additions & 8 deletions spyder/plugins/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,14 @@ def __init__(self, parent, ignore_last_opened_files=False):
self.dock_toolbar_actions = None
self.edit_menu_actions = None #XXX: find another way to notify Spyder
self.stack_menu_actions = None

self.__first_open_files_setup = True
self.editorstacks = []
self.last_focus_editorstack = {}
self.editorwindows = []
self.editorwindows_to_be_created = []
self.toolbar_list = None
self.menu_list = None

# Initialize plugin
self.initialize_plugin()
Expand All @@ -441,14 +449,6 @@ def __init__(self, parent, ignore_last_opened_files=False):
self.cursor_pos_index = None
self.__ignore_cursor_position = True

self.__first_open_files_setup = True
self.editorstacks = []
self.last_focus_editorstack = {}
self.editorwindows = []
self.editorwindows_to_be_created = []
self.toolbar_list = None
self.menu_list = None

# Don't start IntrospectionManager when running tests because
# it consumes a lot of memory
if (running_under_pytest()
Expand Down