[Eric] [eric6] small glitch with fix and some notes

Hans-Peter Jansen hpj at urpla.net
Thu Nov 28 11:41:12 GMT 2019


Hi Detlev,

the glitch below is easily fixed with:

--- /usr/lib/python3.7/site-packages/eric6/QScintilla/Editor.py~        2019-11-23 11:22:49.000000000 +0100
+++ /usr/lib/python3.7/site-packages/eric6/QScintilla/Editor.py 2019-11-28 11:23:31.698303982 +0100
@@ -1697,7 +1697,7 @@ class Editor(QsciScintillaCompat):
         @type bool
         """
         self.__setSpellingLanguage(language)
-        self.__checkSpellLanguage(language)
+        self.__checkSpellLanguage()
         
         if not self.__inSpellLanguageChanged and propagate:
             self.__inSpellLanguageChanged = True


After some longer break, I'm back to work with Eric on a daily base. Now with
openSUSE Tumbleweed, where I maintain the eric package meanwhile..

While at it, I noticed an inconvenient behavior: when switching between tabs
with shortcuts (Ctrl-Alt-TAB, Ctrl-Alt-Shift-TAB), There's no active cursor
in this editor shown, but after a click into it only. That defeats the purpose 
of those shortcuts significantly. ;-)

Would be very nice, if you could look into this some time soon.

Thanks,
Pete


--------------------------------------------------------------------------------
2019-11-27, 08:29:57
--------------------------------------------------------------------------------
<class 'TypeError'>: 
__checkSpellLanguage() takes 1 positional argument but 2 were given
--------------------------------------------------------------------------------
  File "/usr/lib/python3.7/site-packages/eric6/QScintilla/Editor.py", line 5747, in __newViewNewSplit
    self.vm.newEditorView(self.fileName, self, self.filetype)
  File "/usr/lib/python3.7/site-packages/eric6/ViewManager/ViewManager.py", line 4788, in newEditorView
    editor, assembly = self.cloneEditor(caller, filetype, fn)
  File "/usr/lib/python3.7/site-packages/eric6/ViewManager/ViewManager.py", line 4809, in cloneEditor
    tv=e5App().getObject("TaskViewer"))
  File "/usr/lib/python3.7/site-packages/eric6/QScintilla/EditorAssembly.py", line 46, in __init__
    self.__editor = Editor(dbs, fn, vm, filetype, editor, tv)
  File "/usr/lib/python3.7/site-packages/eric6/QScintilla/Editor.py", line 493, in __init__
    propagate=False)
  File "/usr/lib/python3.7/site-packages/eric6/QScintilla/Editor.py", line 1700, in __spellLanguageChanged
    self.__checkSpellLanguage(language)

--------------------------------------------------------------------------------
Version Numbers:
  Python 3.7.3, 64-Bit
  Qt 5.13.1
  PyQt 5.13.1
  sip 4.19.19
  QScintilla 2.11.2
  WebEngine 73.0.3683.105
  eric6 19.11 (rev. 83df7d69e61b)

Platform: linux
3.7.3 (default, Apr 09 2019, 05:18:21) [GCC]

Desktop: KDE
--------------------------------------------------------------------------------
Plugins Version Numbers:
  PluginAbout 19.11
  PluginApis 2.1.0
  PluginAssistantEric 4.1.3
  PluginCodeStyleChecker 19.11
  PluginColorString 2.2.3
  PluginCompletionJedi 3.5.0
  PluginCxFreeze 6.0.13
  PluginDocumentationSets 1.0.0
  PluginEricapi 19.11
  PluginEricdoc 19.11
  PluginInvertHexColor 2.1.3
  PluginMetricsRadon 2.1.0
  PluginMqttMonitor 1.1.2
  PluginPrintRemover 2.1.2
  PluginProjectDjango 5.2.3
  PluginProjectDjangoTagsMenu 2.0.4
  PluginProjectKivy 2.0.3
  PluginProjectPyramid 2.4.3
  PluginProjectWeb 1.1.4
  PluginPyInstaller 1.0.2
  PluginPyLint 6.1.11
  PluginPySide2PyQt 2.2.1
  PluginRefactoringRope 6.10.0
  PluginSelectionEncloser 2.1.4
  PluginSplitMergeCamelCase 2.1.1
  PluginSyntaxChecker 19.11
  PluginTabnanny 19.11
  PluginTimeTracker 2.0.10
  PluginToolGenerateHash 2.1.3
  PluginToolPip 1.6.3
  PluginTranslator 19.11
  PluginVcsGit 19.11
  PluginVcsMercurial 19.11
  PluginVcsPySvn 19.11
  PluginVcsSubversion 19.11
  PluginVmListspace 19.11
  PluginVmTabview 19.11
  PluginVulture 2.0.1
  PluginWizardDataUriEncoder 2.0.4
  PluginWizardDotDesktop 19.11
  PluginWizardE5MessageBox 19.11
  PluginWizardEricPlugin 19.11
  PluginWizardPyRegExp 19.11
  PluginWizardQColorDialog 19.11
  PluginWizardQFileDialog 19.11
  PluginWizardQFontDialog 19.11
  PluginWizardQInputDialog 19.11
  PluginWizardQMessageBox 19.11
  PluginWizardQRegExp 19.11
  PluginWizardQRegularExpression 19.11
  PluginWizardSetup 19.11
  PluginWizardVirtualenv 2.2.7
--------------------------------------------------------------------------------
Distribution Info:
  /etc/os-release
  NAME="openSUSE Tumbleweed"
  # VERSION="20191124"
  ID="opensuse-tumbleweed"
  ID_LIKE="opensuse suse"
  VERSION_ID="20191124"
  PRETTY_NAME="openSUSE Tumbleweed"
  ANSI_COLOR="0;32"
  CPE_NAME="cpe:/o:opensuse:tumbleweed:20191124"
  BUG_REPORT_URL="https://bugs.opensuse.org"
  HOME_URL="https://www.opensuse.org/"
  LOGO="distributor-logo"




More information about the Eric mailing list