question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Toggle Code Wrap' and 'Copy Code Snippet' conflict by themselves and with 'Collapse In Comment'

See original GitHub issue

STR

  • Using TM 4.5.5663beta in Firefox 58 or TM 4.5 in Chrome 63: install latest versions of: ‘GitHub Collapse In Comment’ 1.0.13 ‘GitHub Toggle Code Wrap’ 1.1.3 ‘GitHub Copy Code Snippet’ 0.1.0

  • here is a long code example:

SublimeLinter: error in SublimeLinter daemon: 
SublimeLinter: -------------------- 
SublimeLinter: Traceback (most recent call last):
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\queue.py", line 57, in loop
    item = self.q.get(block=True, timeout=self.MIN_DELAY)
  File "./python3.3/queue.py", line 175, in get
queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\queue.py", line 65, in loop
    self.lint(view_id, timestamp)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\queue.py", line 111, in lint
    self.callback(view_id, timestamp)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\sublime_linter.py", line 263, in lint
    Linter.lint_view(view, filename, code, hit_time, callback)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\linter.py", line 1008, in lint_view
    callback(cls.get_view(vid), linters, hit_time)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\sublime_linter.py", line 316, in highlight
    highlights.draw(other_view)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\highlight.py", line 133, in draw
    all.draw(view)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\highlight.py", line 477, in draw
    icon = self.get_style("icon", style, error_type)
  File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\highlight.py", line 184, in wrapper
    return persist.gutter_marks["icons"][error_type]
KeyError: 'warning'
 
SublimeLinter: -------------------- 
  • Here is how the markdown is displayed, i.e. the code is not collapsed: 2018-01-23_180240
  • Clicking the header: 2018-01-23_181209
  • Disabling either ‘GitHub Toggle Code Wrap’ or ‘GitHub Copy Code Snippet’ or both fixes the issue: 2018-01-23_180307

Additionally, the two scripts ‘GitHub Toggle Code Wrap’ and ‘GitHub Copy Code Snippet’ work ok by themselves, but their icon is displayed on top of one another. and so, in order to be able to use them, you have to have only one enabled at a time.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Mottiecommented, Jan 28, 2018

All fixed! Please make sure to update both scripts.

1reaction
Mottiecommented, Jan 23, 2018

Hi @darkred!

Thanks for letting me know! Hmm, actually they behave differently depending on the priority; though either way, they misbehave! I’ll see what I can do later tonight.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I switch word wrap on and off in Visual Studio Code?
Go to the Preferences tab (menu File → Settings), and then search as “word wrap”. The ...
Read more >
Global toggle code wrap button #7875 - facebook/docusaurus
This proposal is that this setting will be stored globally to set it to the users needs. Self-service. I'd be willing to do...
Read more >
Visual Studio Code Key Bindings
Here you will find the complete list of key bindings for Visual Studio Code and how to change them.
Read more >
VS Code tips — Toggle word wrap - YouTube
Today's VS Code command: toggle word wrapQuickly enable or disable word wrapping in the current file. This works independently of your ...
Read more >
Write and edit source code | IntelliJ IDEA Documentation
Move and copy code fragments by dragging them in the editor. · To toggle between the upper and lower case for the selected...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found