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

Exception when run from the first line in a block comment #38

Open
FichteFoll opened this issue Aug 26, 2014 · 2 comments
Open

Exception when run from the first line in a block comment #38

FichteFoll opened this issue Aug 26, 2014 · 2 comments
Labels

Comments

@FichteFoll
Copy link

With a comment as follows (and empty file), running wrap plus from the first comment line results in an exception. (Syntax: C or Stylus)

/* first line
 * comment
 */
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3 Portable Beta\sublime_plugin.py", line 549, in run_
    return self.run(edit)
  File "wrap_plus in C:\Program Files\Sublime Text 3 Portable Beta\Data\Installed Packages\Wrap Plus.sublime-package", line 609, in run
  File "wrap_plus in C:\Program Files\Sublime Text 3 Portable Beta\Data\Installed Packages\Wrap Plus.sublime-package", line 343, in _find_paragraphs
  File "wrap_plus in C:\Program Files\Sublime Text 3 Portable Beta\Data\Installed Packages\Wrap Plus.sublime-package", line 275, in _find_paragraph_start
  File "wrap_plus in C:\Program Files\Sublime Text 3 Portable Beta\Data\Installed Packages\Wrap Plus.sublime-package", line 252, in _is_paragraph_break
  File "wrap_plus in C:\Program Files\Sublime Text 3 Portable Beta\Data\Installed Packages\Wrap Plus.sublime-package", line 263, in _is_blank_line
TypeError: expected string or buffer
@jtwalters
Copy link

Confirmed. Although, I believe the standard comment block is like this, with a blank first line:

/**
 * Example
 **/

@FichteFoll
Copy link
Author

It was just an example for reproduction, but I can confirm that it also happens if the comment is like yours.

@ehuss ehuss added the bug label Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants