Spyder: Different extension files syntax coloring bug

Created on 11 Jan 2018  ·  3Comments  ·  Source: spyder-ide/spyder

Description of your problem

What steps will reproduce the problem?

  1. Edit file with extension different than Python sources (tested with .ini and .sql) opened in editor
  2. Change tab
  3. Save all files

What is the expected output? What do you see instead?
I expect to just save the files, instead, when I come back to the file, the syntax coloring is gone. The text is now monocolor.

Please provide any additional information below
The coloring seems to refresh and come back to normal if I edit any character. It also works if I save it with the tab active. This has been happening since several versions before but I finally noticed the pattern.

Versions and main components

  • Spyder Version: 3.2.6
  • Python Version: 3.6.3
  • Qt Version: 5.6.2
  • PyQt Version: 5.6.0
  • Operating system: Windows 10 (up-to-date)

Dependencies

Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:

IPython >=4.0 : 6.2.1 (OK)
cython >=0.21 : 0.27.3 (OK)
jedi >=0.9.0 : 0.11.0 (OK)
nbconvert >=4.0 : 5.3.1 (OK)
numpy >=1.7 : 1.13.3 (OK)
pandas >=0.13.1 : 0.22.0 (OK)
pycodestyle >=2.3: 2.3.1 (OK)
pyflakes >=0.6.0 : 1.6.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 1.7.4 (OK)
qtconsole >=4.2.0: 4.3.1 (OK)
rope >=0.9.4 : 0.10.7 (OK)
sphinx >=0.6.6 : 1.6.3 (OK)
sympy >=0.7.3 : 1.1.1 (OK)

Editor Bug

All 3 comments

Please post a small file that is giving you this problem. Thanks.

I just tested with "select * from table" and named it test.sql and it happened
capture
If I erase a char it goes back to normal
capture2

We'll take a look at this in our 3.2.8 version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spyder-bot picture spyder-bot  ·  3Comments

Khalilsqu picture Khalilsqu  ·  3Comments

yousefoleyaei picture yousefoleyaei  ·  3Comments

dalthviz picture dalthviz  ·  3Comments

hedeqing picture hedeqing  ·  3Comments