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

Crash when adding text to multiline comment is CSS #1371

Closed
spyder-bot opened this issue Feb 17, 2015 · 2 comments
Closed

Crash when adding text to multiline comment is CSS #1371

spyder-bot opened this issue Feb 17, 2015 · 2 comments

Comments

@spyder-bot
Copy link
Collaborator

From rad...@gmail.com on 2013-04-30T05:42:39Z

Please note that reporting bugs from Spyder's help menu ("?" > "Report
issue...") will fill version details for Spyder, Python and Qt in this description for you. Spyder 2.1.13
Python 2.7.3 64bits, Qt 4.8.4, PyQt4 (API v2) 4.10 on Linux

Description taken from: https://bugzilla.redhat.com/show_bug.cgi?id=958040 Description of problem:
I have a CSS file. There is a multiline comment. When I try to insert some text into it from clipboard, it crashes the application.

Version-Release number of selected component (if applicable):
spyder-2.1.13-3.fc18.noarch

How reproducible:
Always

Steps to Reproduce:

  1. I have this line in the file:
    /_select {width: 220px;background-color: #ffffff;} */
    (CSS file is autogenerated, so there is a possibility, that some comments are not closed properly thus making the CSS file invalid, but this should not crash IDE)
  2. When I insert text comment into it ("this is some pretty long text comment that explains why is this commented") and thus changed it to:
    /_select {width: 220px;background-color: #ffffff;} this is some pretty long text comment that explains why is this commented */
  3. Immediately after hitting ^V, spyder crashes

Actual results:
program crashed, changes not saved

Expected results:
display:
/*select {width: 220px;background-color: #ffffff;} this is some pretty long text comment that explains why is this commented */

Additional info:
When I run spyder in debug mode, it doesn't crash, instead there is this exception printed:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/spyderlib/widgets/sourcecode/syntaxhighlighters.py", line 717, in highlightBlock
self.formats[key])
KeyError: 'multiline_comment_end'

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1371

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2013-04-30T06:33:32Z

This issue was updated by revision 52fa776162dd .

Status: Fixed

@spyder-bot
Copy link
Collaborator Author

From jed.lud...@gmail.com on 2013-04-30T07:31:24Z

Labels: MS-v2.2

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

1 participant