ruby-block isn't working on my version of atom
I'm on 1.32.1 I have ruby-block turned on, but am not seeing any blocks enabled. There's no highlighting of the top/bottom of blocks when the cursor is over one. And there's nothing on the bottom of Atom that indicates the line position of the start of the block. I really like this extension so I hope this can be fixed! Let me know if there's any other info I can post that can help track this down.
I have the same issue here. It's stopped working. I did try to uninstall and reinstall but the issue still there. Hopefully, it gets fixed soon
Mine just stopped working as well...I noticed it after upgrading to Mojave.
I'm still on High Sierra, not on Mojave, and experiencing the issue
Experiencing the same issue, hopefully gets resolved soon.
Broken for me as well, both on atom 1.32.1 and 1.32.2, tried reinstalling ruby-block on both versions
It's the new tree sitter parser that is enabled by default in Atom. In the settings you can disable it and it'll work again. You will lose new syntax highlighting though and probably performance.
Blocky is another package that does the same as this and that has also stopped working.
I guess it's because a deprecation. My atom says:
Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:
:host .line-number.ruby-block-highlight, atom-text-editor .line-number.ruby-block-highlight, atom-text-editor::shadow .line-number.ruby-block-highlight => :host .line-number.ruby-block-highlight, atom-text-editor .line-number.ruby-block-highlight, atom-text-editor.editor .line-number.ruby-block-highlight
:host .highlights .ruby-block-highlight .region, atom-text-editor .highlights .ruby-block-highlight .region, atom-text-editor::shadow .highlights .ruby-block-highlight .region => :host .highlights .ruby-block-highlight .region, atom-text-editor .highlights .ruby-block-highlight .region, atom-text-editor.editor .highlights .ruby-block-highlight .region
Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.
If I understand it correctly, I shoud edit the :host and the ::shadow to syntax-- but I do not know how to do this yet.
Here goes how my Ruby Block is on my style.less
//Ruby-block `//Ruby-block :host, atom-text-editor, atom-text-editor::shadow { .line-number.ruby-block-highlight { background-color: red; }
.highlights { .ruby-block-highlight .region { background-color: red; } } }`
Thanks MiralDesai, your solution works for me.
The package "blocky" is working with this functionality as of April 2019.