ruby-block icon indicating copy to clipboard operation
ruby-block copied to clipboard

ruby-block isn't working on my version of atom

Open snackattas opened this issue 7 years ago • 9 comments

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.

snackattas avatar Nov 06 '18 16:11 snackattas

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

ducd avatar Nov 06 '18 21:11 ducd

Mine just stopped working as well...I noticed it after upgrading to Mojave.

jonathan-nye avatar Nov 08 '18 16:11 jonathan-nye

I'm still on High Sierra, not on Mojave, and experiencing the issue

snackattas avatar Nov 08 '18 17:11 snackattas

Experiencing the same issue, hopefully gets resolved soon.

OctoberComstock avatar Nov 14 '18 21:11 OctoberComstock

Broken for me as well, both on atom 1.32.1 and 1.32.2, tried reinstalling ruby-block on both versions

John-Nenniger avatar Nov 15 '18 22:11 John-Nenniger

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.

MiralDesai avatar Nov 19 '18 16:11 MiralDesai

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; } } }`

jhony75 avatar Nov 19 '18 16:11 jhony75

Thanks MiralDesai, your solution works for me.

gsum avatar Mar 12 '19 18:03 gsum

The package "blocky" is working with this functionality as of April 2019.

CKolkey avatar Apr 15 '19 09:04 CKolkey