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

Different extension files syntax coloring bug #6195

Open
gabrielclow opened this issue Jan 11, 2018 · 3 comments
Open

Different extension files syntax coloring bug #6195

gabrielclow opened this issue Jan 11, 2018 · 3 comments

Comments

@gabrielclow
Copy link

gabrielclow commented Jan 11, 2018

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)

@ccordoba12
Copy link
Member

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

@gabrielclow
Copy link
Author

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

@ccordoba12
Copy link
Member

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

@ccordoba12 ccordoba12 modified the milestones: v3.2.8, v3.2.9 Mar 3, 2018
@ccordoba12 ccordoba12 modified the milestones: v3.3, v3.3.1 May 22, 2018
@ccordoba12 ccordoba12 modified the milestones: v3.3.1, v3.3.2 Jul 15, 2018
@ccordoba12 ccordoba12 modified the milestones: v3.3.2, important Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants