internlm/SWE-Fixer-Train-110K huggingface dataset:
Repository: spyder-ide/spyder

Issue:
Spyder should depend on QtWebEngine for pyqt >= 5.12
In PyQt5.12 the QtWebEngine has been split out into its own pypi package see 
https://www.riverbankcomputing.com/news/pyqt-512 but spyder does not depend on it so a new pip install of spyder fails on launch. 

### Issue Report Checklist

* [x] Searched the [issues page](https://github.com/spyder-ide/spyder/issues?q=is%3Aissue) for similar reports
* [x] Read the relevant sections of the [Spyder Troubleshooting Guide](https://github.com/spyder-ide/spyder/wiki/Troubleshooting-Guide-and-FAQ) and followed its advice
* [x] Reproduced the issue after updating with ``conda update spyder`` (or ``pip``, if not using Anaconda)
* [x] Completed the **Problem Description**, **Steps to Reproduce** and **Version** sections below


## Problem Description

### What steps reproduce the problem?
In a clean env without pyqt or spyder installed
1. pip install spyder
2. spyder3.exe

### What is the expected output? What do you see instead?
```
Traceback (most recent call last):
  File "c:\users\jenielse\appdata\local\continuum\miniconda3\envs\mypipenv\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 22, in <module>
    from PyQt5.QtWebEngineWidgets import QWebEnginePage
ModuleNotFoundError: No module named **'PyQt5.QtWebEngineWidgets'**
```
 
pip install pyqtwebengine fixes the issue and spyder launches normally

## Versions

* Spyder version: 3.3.3
* Python version: 3.6.8 
* Qt version: 5.12
* PyQt version: 5.12
* Operating System name/version: Windows 10




Discussion:
We didn't know that was going to happen, else we'll have added it as a dependency in our 3.3.3 release. But we'll fix it for 3.3.4.

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -244,7 +244,10 @@ def run(self):
     'keyring;sys_platform!="linux2"',
     # Packages for pyqt5 are only available in
     # Python 3
-    'pyqt5<=5.12;python_version>="3"'
+    'pyqt5<=5.12;python_version>="3"',
+    # pyqt5 5.12 split WebEngine into the
+    # pyqtwebengine module
+    'pyqtwebengine'
 ]
 
 extras_require = {


Test patch:
Repository: spyder-ide/spyder

Issue:
Closing moved files creates IndexError
## Description

### What steps will reproduce the problem?

<!--- You can use Markdown here --->

- close all files so that you have untilted1.py
- open two files
- move/delete/rename them outside of spider
- when coming back to spyder, a windows appears that will ask you to close the first one. do that
- You end up on the second one. The windows doesn't appear
- click on untilted1.py
- click back on the second one
- a windows appears that will ask you to close it. do that
- Indexerror

### Traceback
```python-traceback
  File "/Users/quentinpeter/pyscripts/spyder/spyder/plugins/editor/widgets/editor.py", line 1971, in current_changed
    (index, self.data[index].editor.filename))
IndexError: list index out of range
```

## Versions

* Spyder version: 4.0.0.dev0 dccf03854
* Python version: 3.7.0
* Qt version: 5.9.3
* PyQt5 version: 5.9.2
* Operating System: Darwin 18.2.0

### Dependencies

```
pygments >=2.0    :  2.2.0 (OK)
qdarkstyle >=2.6.4:  2.6.4 (OK)
sphinx >=0.6.6    :  1.8.1 (OK)
psutil >=0.3      :  5.4.7 (OK)
pyls >=0.19.0     :  0.21.2 (OK)
nbconvert >=4.0   :  5.4.0 (OK)
pandas >=0.13.1   :  0.24.1 (OK)
numpy >=1.7       :  1.15.2 (OK)
sympy >=0.7.3     :  1.3 (OK)
cython >=0.21     :  0.28.5 (OK)
qtconsole >=4.2.0 :  4.4.1 (OK)
IPython >=4.0     :  7.0.1 (OK)
matplotlib >=2.0.0:  3.0.2 (OK)
pylint >=0.25     :  2.1.1 (OK)
```



Discussion:
Thanks for the very clear way to reproduce this.

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -229,7 +229,7 @@ def run(self):
     # pyqtwebengine module
     'pyqtwebengine<5.13',
     # Pyls with all its dependencies
-    'python-language-server[all]>=0.19.0',
+    'python-language-server[all]>=0.19.0,<0.23',
     # Required to get SSH connections to remote kernels
     'pexpect;platform_system!="Windows"',
     'paramiko;platform_system=="Windows"'
diff --git a/spyder/plugins/editor/widgets/editor.py b/spyder/plugins/editor/widgets/editor.py
--- a/spyder/plugins/editor/widgets/editor.py
+++ b/spyder/plugins/editor/widgets/editor.py
@@ -1973,8 +1973,14 @@ def current_changed(self, index):
         self.stack_history.refresh()
         self.stack_history.remove_and_append(index)
 
-        logger.debug("Current changed: %d - %s" %
-                     (index, self.data[index].editor.filename))
+        # Needed to avoid an error generated after moving/renaming
+        # files outside Spyder while in debug mode.
+        # See issue 8749.
+        try:
+            logger.debug("Current changed: %d - %s" %
+                         (index, self.data[index].editor.filename))
+        except IndexError:
+            pass
 
         self.update_plugin_title.emit()
         if editor is not None:


Test patch:
Repository: spyder-ide/spyder

Issue:
spyder_io_hdf5 plugin no longer available
<!--- **PLEASE READ:** When submitting here, please ensure you've completed the following checklist and checked the boxes to confirm. Issue reports without it may be closed. Thanks! --->

### Issue Report Checklist

* [ x] Searched the [issues page](https://github.com/spyder-ide/spyder/issues?q=is%3Aissue) for similar reports
* [ x] Read the relevant sections of the [Spyder Troubleshooting Guide](https://github.com/spyder-ide/spyder/wiki/Troubleshooting-Guide-and-FAQ) and followed its advice
* [ x] Reproduced the issue after updating with ``conda update spyder`` (or ``pip``, if not using Anaconda)
* [ ] Could not reproduce inside ``jupyter qtconsole`` (if console-related)
* [ x] Tried basic troubleshooting (if a bug/error)
    * [ x] Restarted Spyder
    * [ x] Reset preferences with ``spyder --reset``
    * [ x] Reinstalled the latest version of [Anaconda](https://www.anaconda.com/download/)
    * [x ] Tried the other applicable steps from the Troubleshooting Guide
* [ x] Completed the **Problem Description**, **Steps to Reproduce** and **Version** sections below


## Problem Description
Plugin to load hdf5 files into variable explorer does not appear - h5 files not supported


### What steps reproduce the problem?

1.  Select 'import data' in variable explorer.
2. 
3. 

### What is the expected output? What do you see instead?
Expected to see .h5 extension in file dropbox


### Paste Traceback/Error Below (if applicable)
<!--- Copy from error dialog or View > Panes > Internal Console --->

```python-traceback

PASTE TRACEBACK HERE

```

## Versions
<!--- You can get this information from Help > About Spyder...
or (if Spyder won't launch) the "conda list" command
from the Anaconda Prompt/Terminal/command line. --->

* Spyder version:  3.3.4 dev0
* Python version: 3.6.8
* Qt version: 5.9.6
* PyQt version: 5.9.2
* Operating System name/version:  Win 10

### Dependencies
<!--- Please go to the menu entry Help > Dependencies,
press the Copy to clipboard button and paste below --->

```
PASTE DEPENDENCIES HERE
```



Discussion:

Resolving patch:
diff --git a/spyder_io_hdf5/__init__.py b/spyder_io_hdf5/__init__.py
--- a/spyder_io_hdf5/__init__.py
+++ b/spyder_io_hdf5/__init__.py
@@ -7,3 +7,5 @@
 FORMAT_EXT  = ".h5"
 FORMAT_LOAD = load_hdf5
 FORMAT_SAVE = save_hdf5
+
+PLUGIN_CLASS = True


Test patch:
Repository: spyder-ide/spyder

Issue:
Error when saving LANG_FILE
## Description

### What steps will reproduce the problem?

<!--- You can use Markdown here --->

1. Try to open Preferences from Tools/Preferences


### Traceback
```python-traceback
  File "C:\Users\tracylin.SABRINA\AppData\Local\Continuum\anaconda3\envs\Tracy\lib\site-packages\spyder\app\mainwindow.py", line 2663, in edit_preferences
    dlg = ConfigDialog(self)
  File "C:\Users\tracylin.SABRINA\AppData\Local\Continuum\anaconda3\envs\Tracy\lib\site-packages\spyder\plugins\configdialog.py", line 190, in __init__
    CONF.set('main', 'interface_language', load_lang_conf())
  File "C:\Users\tracylin.SABRINA\AppData\Local\Continuum\anaconda3\envs\Tracy\lib\site-packages\spyder\config\base.py", line 361, in load_lang_conf
    save_lang_conf(lang)
  File "C:\Users\tracylin.SABRINA\AppData\Local\Continuum\anaconda3\envs\Tracy\lib\site-packages\spyder\config\base.py", line 346, in save_lang_conf
    with open(LANG_FILE, 'w') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'Temp\\.spyder-py3\\langconfig'
```

## Versions

* Spyder version: 3.3.1 
* Python version: 3.6.6
* Qt version: 5.9.6
* PyQt5 version: 5.9.2
* Operating System: Windows 7

### Dependencies

```
pyflakes >=0.6.0  :  2.0.0 (OK)
pycodestyle >=2.3 :  2.4.0 (OK)
pygments >=2.0    :  2.2.0 (OK)
sphinx >=0.6.6    :  1.7.9 (OK)
rope >=0.9.4      :  0.11.0 (OK)
jedi >=0.9.0      :  0.12.1 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
pandas >=0.13.1   :  0.23.4 (OK)
numpy >=1.7       :  1.15.1 (OK)
sympy >=0.7.3     :  None (NOK)
cython >=0.21     :  0.29 (OK)
qtconsole >=4.2.0 :  4.3.1 (OK)
IPython >=4.0     :  6.5.0 (OK)
matplotlib >=2.0.0:  2.2.2 (OK)
pylint >=0.25     :  2.1.1 (OK)
```



Discussion:

Resolving patch:
diff --git a/spyder/config/base.py b/spyder/config/base.py
--- a/spyder/config/base.py
+++ b/spyder/config/base.py
@@ -345,8 +345,14 @@ def get_interface_language():
 
 def save_lang_conf(value):
     """Save language setting to language config file"""
-    with open(LANG_FILE, 'w') as f:
-        f.write(value)
+    # Needed to avoid an error when trying to save LANG_FILE
+    # but the operation fails for some reason.
+    # See issue 8807
+    try:
+        with open(LANG_FILE, 'w') as f:
+            f.write(value)
+    except EnvironmentError:
+        pass
 
 
 def load_lang_conf():


Test patch:
Repository: spyder-ide/spyder

Issue:
Text written in help pane gets automatically selected and replaced with every keystroke
**Steps to reproduce:**
* Type something in the help pane, in the field named “Object” where one puts names like `np.arange`.

**Expected behavior:**
After every keystroke, the text that was written there should remain, unless deleted or selected by the user.

**Actual behavior:**
After every keystroke, the full text there becomes selected, which makes it be deleted/replaced with every keystroke (so it only displays the last character that one typed).

**Reproducible:** always

**Setup:** Spyder 3.3.3, Python 3.6.5, running on either Windows 10 or Debian Linux (KDE).


Discussion:
This is indeed a problem. The only work around  I could think of is to type the query in a text editor and paste it in the search bar. 
What if we change the current behavior to expect an Enter from the user before searching of an object's help? Would that be better?
That’s certainly better than how it is right now, but isn’t it possible to revert that search field to how it was in 3.3.1? or is it a QT issue or something like that?
I think we didn't change anything related to that behavior, but we'll take a look at it for 3.3.4
I can confirm this error, so we'll definitely fix it in 3.3.4
@dalthviz, please take a look at this one.

Resolving patch:
diff --git a/spyder/plugins/help.py b/spyder/plugins/help.py
--- a/spyder/plugins/help.py
+++ b/spyder/plugins/help.py
@@ -397,7 +397,7 @@ def __init__(self, parent=None):
         self.combo.setMaxCount(self.get_option('max_history_entries'))
         self.combo.addItems( self.load_history() )
         self.combo.setItemText(0, '')
-        self.combo.valid.connect(lambda valid: self.force_refresh())
+        self.combo.valid.connect(lambda valid: self.force_refresh(valid))
 
         # Plain text docstring option
         self.docstring = True
@@ -750,11 +750,12 @@ def handle_link_clicks(self, url):
             self.rich_text.webview.load(QUrl(url))
 
     #------ Public API ---------------------------------------------------------
-    def force_refresh(self):
-        if self.source_is_console():
-            self.set_object_text(None, force_refresh=True)
-        elif self._last_editor_doc is not None:
-            self.set_editor_doc(self._last_editor_doc, force_refresh=True)
+    def force_refresh(self, valid=True):
+        if valid:
+            if self.source_is_console():
+                self.set_object_text(None, force_refresh=True)
+            elif self._last_editor_doc is not None:
+                self.set_editor_doc(self._last_editor_doc, force_refresh=True)
 
     def set_object_text(self, text, force_refresh=False, ignore_unknown=False):
         """Set object analyzed by Help"""


Test patch:
Repository: spyder-ide/spyder

Issue:
IOError raised when completion plugins fail to start
## Description

### What steps will reproduce the problem?

<!--- You can use Markdown here --->

raise IOError('Could not start %s' % self)
OSError: Could not start <spyder.utils.introspection.plugin_client.PluginClient object at 0xb5fc7c5e8>"

### Traceback
```python-traceback
  File "/Users/jimmyxiao/anaconda3/lib/python3.7/site-packages/spyder/utils/introspection/plugin_client.py", line 158, in _on_finished
    self.run()
  File "/Users/jimmyxiao/anaconda3/lib/python3.7/site-packages/spyder/utils/introspection/plugin_client.py", line 104, in run
    raise IOError('Could not start %s' % self)
OSError: Could not start <spyder.utils.introspection.plugin_client.PluginClient object at 0xb5fc7c5e8>
WARNING:spyder.widgets.github.backend:Failed to send bug report on Github. response={'code': 502, 'json': {'message': 'Server Error'}}
```

## Versions

* Spyder version: 3.3.2 
* Python version: 3.7.1
* Qt version: 5.9.6
* PyQt5 version: 5.9.2
* Operating System: Darwin 18.2.0

### Dependencies

```
pyflakes >=0.6.0  :  2.0.0 (OK)
pycodestyle >=2.3 :  2.4.0 (OK)
pygments >=2.0    :  2.3.1 (OK)
sphinx >=0.6.6    :  1.8.2 (OK)
rope >=0.9.4      :  0.11.0 (OK)
jedi >=0.9.0      :  0.13.2 (OK)
psutil >=0.3      :  5.4.8 (OK)
nbconvert >=4.0   :  5.4.0 (OK)
pandas >=0.13.1   :  0.23.4 (OK)
numpy >=1.7       :  1.15.4 (OK)
sympy >=0.7.3     :  1.3 (OK)
cython >=0.21     :  0.29.2 (OK)
qtconsole >=4.2.0 :  4.4.3 (OK)
IPython >=4.0     :  7.2.0 (OK)
matplotlib >=2.0.0:  3.0.2 (OK)
pylint >=0.25     :  2.2.2 (OK)
```



Discussion:
Thanks for reporting. We'll fix this in our next version (3.3.4).

Resolving patch:
diff --git a/spyder/utils/introspection/plugin_client.py b/spyder/utils/introspection/plugin_client.py
--- a/spyder/utils/introspection/plugin_client.py
+++ b/spyder/utils/introspection/plugin_client.py
@@ -101,7 +101,10 @@ def run(self):
         self.process.finished.connect(self._on_finished)
         running = self.process.waitForStarted()
         if not running:
-            raise IOError('Could not start %s' % self)
+            # Don't raise an error if the plugin fails to start
+            # Fixes issue 8934
+            debug_print('Could not start %s' % self)
+            return
 
         # Set up the socket notifer.
         fid = self.socket.getsockopt(zmq.FD)


Test patch:
Repository: spyder-ide/spyder

Issue:
Tests are failing with PyLS 0.23+
@steff456, please check what new changes were introduced in PyLS 0.23 that are breaking our tests and most probably code completion as well.


Discussion:
@steff456, I think the comment below should help you to solve the problems we're having with the latest versions of PyLS (i.e. PyLS > 0.23)

https://github.com/palantir/python-language-server/issues/512#issuecomment-467016798

So the idea is to add a new entry inside the `jedi_completion` section of our PyLS configuration:

https://github.com/spyder-ide/spyder/blob/master/spyder/config/main.py#L726

with the following

    'include_params': False

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -229,7 +229,7 @@ def run(self):
     # pyqtwebengine module
     'pyqtwebengine<5.13',
     # Pyls with all its dependencies
-    'python-language-server[all]>=0.19.0,<0.23',
+    'python-language-server[all]>=0.19.0',
     # Required to get SSH connections to remote kernels
     'pexpect;platform_system!="Windows"',
     'paramiko;platform_system=="Windows"'
diff --git a/spyder/config/main.py b/spyder/config/main.py
--- a/spyder/config/main.py
+++ b/spyder/config/main.py
@@ -723,7 +723,8 @@
                                     'enabled': False
                                 },
                                 'jedi_completion': {
-                                    'enabled': True
+                                    'enabled': True,
+                                    'include_params': False
                                 },
                                 'jedi_hover': {
                                     'enabled': True


Test patch:
Repository: spyder-ide/spyder

Issue:
Assign a keyboard shortcut to switch to the Plots pane
I'm using spyder 4 from master. How can I assign a shortcut to switch to the plot widget?


Discussion:
There's no shortcut right now to go to the Plots pane, but it's a good idea to have one for it.

@jnsebgosselin, what do you think about using `Ctrl+Shift+G` (`G` for graphics)? `Ctrl+Shift+P` is already taken for Projects. 
@gepcel, after we assign a default shortcut, you'll be able to change it through our Preferences to the one you like.
> @jnsebgosselin, what do you think about using `Ctrl+Shift+G` (`G` for graphics)? `Ctrl+Shift+P` is already taken for Projects.

Ok, I think that makes sense, `G` can also be for graphs.

Great! Do you have time to work on this one?
@jnsebgosselin @ccordoba12  What do you think of adding shortcuts for "next figure" and "previous figure" of plots pane? It was a convenient shortcut to me.
> Great! Do you have time to work on this one?

Yes, I will try to do it soon.
> 
> 
> @jnsebgosselin @ccordoba12 What do you think of adding shortcuts for "next figure" and "previous figure" of plots pane? It was a convenient shortcut to me.

Good idea, please open a new issue about it.

Resolving patch:
diff --git a/spyder/config/main.py b/spyder/config/main.py
--- a/spyder/config/main.py
+++ b/spyder/config/main.py
@@ -355,6 +355,7 @@
               '_/switch to variable_explorer': "Ctrl+Shift+V",
               '_/switch to find_in_files': "Ctrl+Shift+F",
               '_/switch to explorer': "Ctrl+Shift+X",
+              '_/switch to plots': "Ctrl+Shift+G",
               # -- In widgets/findreplace.py
               '_/find text': "Ctrl+F",
               '_/find next': "F3",


Test patch:
Repository: spyder-ide/spyder

Issue:
Editor text is all shown in bold text
## Problem Description
@goanpeca  PR #9010 introduced a bug where the text in the Editor is all shown in bold.

![image](https://user-images.githubusercontent.com/10170372/55099944-112daa80-5097-11e9-8149-ad2680dc6e30.png)

The problem is due to [this line](https://github.com/spyder-ide/spyder/commit/bc7b90bbdfd23d0800961555815eb24282a35e63#diff-5c40d568fb43c7ea3925c425b0f33a65L35) that was changed for [this line](https://github.com/spyder-ide/spyder/commit/bc7b90bbdfd23d0800961555815eb24282a35e63#diff-5c40d568fb43c7ea3925c425b0f33a65R44).

By changing either `self.text_font = get_font(option='font')` for `self.text_font = get_font(option='rich_font')` or `self.text_font.setBold(True)`  to `self.text_font.setBold(False)`, the problem is resolved.

## Versions
<!--- You can get this information from Help > About Spyder...
or (if Spyder won't launch) the "conda list" command
from the Anaconda Prompt/Terminal/command line. --->

* Spyder version: Spyder 4.0.0.dev0 https://github.com/spyder-ide/spyder/commit/bc7b90bbdfd23d0800961555815eb24282a35e63
* Python version: Python 3.7.1 64-bit
* Qt version: Qt 5.9.6
* PyQt version: PyQt5 5.9.2
* Operating System name/version: Windows 10

### Dependencies
<!--- Please go to the menu entry Help > Dependencies,
press the Copy to clipboard button and paste below --->

```
pygments >=2.0    :  2.3.1 (OK)
qdarkstyle >=2.6.4:  2.6.4 (OK)
sphinx >=0.6.6    :  1.8.2 (OK)
pyls >=0.19.0     :  0.21.5 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
pandas >=0.13.1   :  0.23.4 (OK)
numpy >=1.7       :  1.15.4 (OK)
sympy >=0.7.3     :  None (NOK)
cython >=0.21     :  0.29.2 (OK)
qtconsole >=4.2.0 :  4.5.0.dev0 (OK)
IPython >=4.0     :  7.2.0 (OK)
matplotlib >=2.0.0:  3.0.2 (OK)
pylint >=0.25     :  2.2.2 (OK)
```



Discussion:
Hi @jnsebgosselin for pointing this out! 

Weird... that should have only affected the status bar. Will fix it!
Btw, doing this:

`self.text_font = QFont(get_font(option='font'))`

store a copy of the font in `self.text_font` and fixes the issue.
Indeed that solves the issue! Thanks for looking into it :-)

Resolving patch:
diff --git a/spyder/widgets/status.py b/spyder/widgets/status.py
--- a/spyder/widgets/status.py
+++ b/spyder/widgets/status.py
@@ -11,6 +11,7 @@
 
 # Third party imports
 from qtpy.QtCore import Qt, QTimer
+from qtpy.QtGui import QFont
 from qtpy.QtWidgets import QHBoxLayout, QLabel, QWidget
 
 # Local imports
@@ -41,7 +42,7 @@ def __init__(self, parent, statusbar):
         self.label_value = QLabel()
 
         # Widget setup
-        self.text_font = get_font(option='font')
+        self.text_font = QFont(get_font(option='font'))  # See Issue #9044
         self.text_font.setPointSize(self.font().pointSize())
         self.text_font.setBold(True)
         self.label_value.setAlignment(Qt.AlignRight)


Test patch:
Repository: spyder-ide/spyder

Issue:
QDarkStyle issue on Mac for status bar
<!--- **PLEASE READ:** When submitting here, please ensure you've completed the following checklist and checked the boxes to confirm. Issue reports without it may be closed. Thanks! --->

## Problem Description

On MacOS the Status bar  for the Dark style looks like:
<img width="1440" alt="Screen Shot 2019-04-05 at 20 00 53" src="https://user-images.githubusercontent.com/3627835/55662886-94f53e80-57dd-11e9-8d56-bd25e4b6101d.png">


### What is the expected output? What do you see instead?

It should look either like this:
<img width="1440" alt="Screen Shot 2019-04-05 at 19 48 38" src="https://user-images.githubusercontent.com/3627835/55662892-9de61000-57dd-11e9-99b8-59d3f3eaca77.png">

Or like this:

@ccordoba12 @dpizetta, is this an option we could consider as a default on QDarkStyle?

It would require something like

```css
/* QStatusBar ------------------------------------------------------------- */

QStatusBar {
    background: #32414B;
    border: 1px solid #32414B;
}

QStatusBar QLabel {
    background-color: transparent;
}
```

<img width="1440" alt="Screen Shot 2019-04-05 at 19 50 33" src="https://user-images.githubusercontent.com/3627835/55662893-a2122d80-57dd-11e9-8be7-8f5e4bbbd50c.png">



Discussion:

Resolving patch:
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -576,12 +576,15 @@ def setup(self):
         color_scheme = CONF.get('appearance', 'selected')
 
         if ui_theme == 'dark':
-            self.setStyleSheet(qdarkstyle.load_stylesheet_from_environment())
+            dark_qss = qdarkstyle.load_stylesheet_from_environment()
+            self.setStyleSheet(dark_qss)
+            self.statusBar().setStyleSheet(dark_qss)
             css_path = DARK_CSS_PATH
         elif ui_theme == 'automatic':
             if not is_dark_font_color(color_scheme):
-                self.setStyleSheet(
-                        qdarkstyle.load_stylesheet_from_environment())
+                dark_qss = qdarkstyle.load_stylesheet_from_environment()
+                self.setStyleSheet(dark_qss)
+                self.statusBar().setStyleSheet(dark_qss)
                 css_path = DARK_CSS_PATH
             else:
                 css_path = CSS_PATH


Test patch: