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

Error when editing markdown #3970

Closed
rlaverde opened this issue Jan 16, 2017 · 1 comment
Closed

Error when editing markdown #3970

rlaverde opened this issue Jan 16, 2017 · 1 comment

Comments

@rlaverde
Copy link
Member

Description of your problem

What steps will reproduce the problem?

  1. Open a File with .md extension (I'm not sure if happen with other extensions)
  2. Press enter

What is the expected output? What do you see instead?
Some lines will throw an error

Please provide any additional information below

Traceback (most recent call last):
  File "/home/rlaverde/code/spyder/spyder/widgets/sourcecode/codeeditor.py", line 2695, in keyPressEvent
    cmt_or_str = self.in_comment_or_string()
  File "/home/rlaverde/code/spyder/spyder/widgets/sourcecode/codeeditor.py", line 2392, in in_comment_or_string
    current_color = self.__get_current_color()
  File "/home/rlaverde/code/spyder/spyder/widgets/sourcecode/codeeditor.py", line 2384, in __get_current_color
    color = current_format.foreground().color().name()
AttributeError: 'NoneType' object has no attribute 'foreground'

Versions and main components

  • Spyder Version: 3.x and master branch
@rlaverde rlaverde self-assigned this Jan 16, 2017
@ccordoba12 ccordoba12 added this to the v3.1.1 milestone Jan 16, 2017
@ccordoba12
Copy link
Member

Probably happens with markdown because we don't have a color scheme associated with it.

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

3 participants