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.

Error on color box click

See original GitHub issue

Description

Traceback (most recent call last):
  File "...\sublime3\sublime_plugin.py", line 812, in run_
    return self.run(edit, **args)
  File "color_helper in ...\sublime3\Data\Installed Packages\ColorHelper.sublime-package", line 983, in run
  File "color_helper in ...\sublime3\Data\Installed Packages\ColorHelper.sublime-package", line 891, in show_color_info
  File "color_helper in ...\sublime3\Data\Installed Packages\ColorHelper.sublime-package", line 553, in format_info
  File "...\sublime3\Data\Packages\mdpopups\st3\mdpopups\__init__.py", line 458, in color_box
    border_size, check_size, max_colors, alpha, border_map
  File "...\sublime3\Data\Packages\mdpopups\st3\mdpopups\colorbox.py", line 250, in color_box
    base64.b64encode(color_box_raw(*args, **kwargs)).decode('ascii')
  File "...\sublime3\Data\Packages\mdpopups\st3\mdpopups\colorbox.py", line 97, in color_box_raw
    assert height - (border_size * 2) >= 0, "Border size too big!"
AssertionError: Border size too big!

Support Info

  • Sublime Text Build 3152 (64bit, portable)
  • Win10 Pro x64 Version 1709
  • default "dpi_scale": 1.0, but HighDPI screen
  • ColorHelper v2.5.1
  • Install via PC: True
  • mdpopups ver.: 3.0.2
  • markdown ver.: 2.6.9
  • pygments ver.: 2.1a0
  • jinja2 ver.: 2.8

Steps to Reproduce Issue

  1. Open a Color Scheme (*.tmTheme) file.
  2. Click on a color box.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
facelessusercommented, Oct 24, 2017

Box size is calculated by line height. I was curious how small a font you were using. I need a safe minimum size.

0reactions
facelessusercommented, Aug 23, 2019

Low end of image calculation will now be capped to prevent this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the color of input when theres an error on submit click
You have two different CSS options. First use: .has-error input{ border: 1px ...
Read more >
Colorbox FAQ - Jack Moore
This is often due to loading colorbox.css after jquery.colorbox.js or stems from a bad doctype. Both jQuery and colorbox.css need to be loaded...
Read more >
How to change the color of error message in jquery validation ...
Let's learn how to modify the colour of the error message in JavaScript while using jQuery form validation in this tutorial.
Read more >
How to display error without alert box using JavaScript
We can show errors with two methods without using the alert box. ... "Some error message" // To draw attention node.style.color = "red";....
Read more >
Video: Input and error messages - Microsoft Support
Select the cells that you want to create a message for, and click Data Validation. · On the Input Message tab, check the...
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