Sublime Forum

Dev Build 3152

#21

plugin_host is really crashing a lot with this version… I’ve many installed (https://pastebin.ubuntu.com/25781106/), and various windows with many files opened, but while before the crash happened every few days (and when many files were opened), now it’s just question of minutes or seconds since the startup.

I would love to help debug this, but if there’s not a plugin_host with debug symbols available, I can’t do much.
I can provide core dumps if you want, though.

0 Likes

#22

@jps thanks for the region colouring fix, there is still one thing i dont quite understand.

my .sublime-color-scheme

"rules":
[
    {
        "scope": "string",
        "foreground": "green",
    },

    {
        "scope": "strong",
        "background": "rgba(0,0,0,0.01)",
        "foreground": "green",
    },

input

foo bar "baz"

console command

sublime.active_window().active_view().add_regions("test", [sublime.Region(0,3)], "string")
sublime.active_window().active_view().add_regions("tost", [sublime.Region(4,7)], "strong")

result (the caret is in the first line, highlight_line is set to true)

note how bars background is affected

is there a way to colour only the foreground without supplying a backgrdound rule?

0 Likes

#23

New color scheme format doesn’t seem to blend lineHighlight with background when lineHighlight has an alpha channel.

0 Likes

#24

Never mind. It appears I was using camel case case when I should have used line_highlight.

0 Likes

#25

I’ve opened an issue about commands failing tun on start during the plugin_loaded() hooks.

It’s happening a lot in the latest builds. It seems to have been introduced in the last few builds or exacerbated by some recent change.

The issue contains steps to reproduce at least one case. It’s not the only the situation when this happens, it’s just the one I’m able to reproduce. Hopefully the underlying the cause of the reproducible case is the root cause of the all the relating issues.

Steps to reproduce

Create a plugin, let’s say User/marvin.py:

import sublime
import sublime_plugin

class MarvinCommand(sublime_plugin.WindowCommand):
    def run(self):
        print('[Marvin] Marvin.run()')

def plugin_loaded():
    print('[Marvin] plugin_loaded()')

    window = sublime.active_window()
    print(window, window.id())

    print('[Marvin] plugin_loaded() running marvin...')
    window.run_command('marvin')
    print('[Marvin] plugin_loaded() running marvin DONE')
  1. Close ST.
  2. Start ST.
  3. Immediately upon starting ST: open the console panel. Use the keymap to do it quickly, Ctrl+` on Linux.

Expected

plugins loaded
[Marvin] plugin_loaded()
<sublime.Window object at 0x7fb89e29aed0> 2
[Marvin] plugin_loaded() running marvin...
[Marvin] Marvin.run()
[Marvin] plugin_loaded() running marvin DONE

Actual

plugins loaded
[Marvin] plugin_loaded()
<sublime.Window object at 0x7fe78a49ffd0> 2
[Marvin] plugin_loaded() running marvin...
[Marvin] plugin_loaded() running marvin DONE

Notice the marvin command is not run.

The commands appear to fail on random starts. I’m unable to reproduce any other cases.

Environment

  • Linux (Ubuntu 17.04)
  • ST 3151
0 Likes

#26

This isn’t currently possible

0 Likes

#27

Created issue to track the DRAW_EMPTY_AS_OVERWRITE style bug:

2 Likes

#28

Wow, is’s OK now, thank you :slight_smile:

0 Likes