-
Notifications
You must be signed in to change notification settings - Fork 16
Plugin doesn't work with Nuclide #3
Comments
Hm, strange. It sounds like the the plugin trigger doesn't get called at all, If even executing it through the Command Palette doesn't work. I'll make some research if that's a known problem for atom packages, and how to fix this. In the meantime, could you please specify your Atom Version (the output of |
I'd love to help to investigate this, I'll be on a few hour long train ride tomorrow and will look into the plugin code, maybe I'll find something else I can contribute to as well! :) |
Reporting back, Nuclide is the culprit here. Haven't figured out why yet though, but here is an interesting clue: When I log out the I don't think I will solve this without looking into what Nuclide does with panes, but it might be something you want to add to the README or something until it is resolved, so that people know that the plugin works, but that it is incompatible with that package. Works great when Nuclide is disabled! :) By the way, the shadows in your demo looks great, what do you do to make your Atom look like that? |
Aaaah, Nuclide, okay. Nuclide is I'll add a note to the README. I don't want to close this issue now, I'll try to investigate this, too – but I can't promise I'll have more success than you. Thank you very much for your research, it really helped me a lot. Oh, yeah, the shadow/darkened tree-view is pretty dope. I ripped it from @brumm. (Shameless advertising, you should really check out the stuff he's programming. He's also the reason why we have the awesome custom title bar for Atom in macOS.) Add this to your styles.less: .tree-view-resizer {
position: relative;
&:after {
content: '';
position: absolute;
top: 0;
right: 0;
height: 100%;
width: 10px;
background-image: linear-gradient(
90deg,
transparent,
rgba(0, 0, 0, 0.2)
);
z-index: 1;
}
}
.tree-view {
transition: opacity 150ms;
&:not(:hover) {
opacity: 0.2;
}
} |
@ehellman here's the lastest iteration of that little sidebar hack .tree-view-scroller > ol > li > ol > li {
padding-left: 0 !important;
}
.tree-view-resizer {
width: 100% !important;
min-width: 0;
&:hover {
transition: all 0ms linear 100ms;
}
&:not(:hover) {
opacity: 0.2;
width: 13px !important;
}
position: relative;
&:after {
content: '';
position: absolute;
top: 0;
right: 0;
height: 100%;
width: 10px;
background-image: linear-gradient(
90deg,
transparent,
rgba(0, 0, 0, 0.1)
);
z-index: 1;
}
}
.tree-view {
.project-root-header {
display: none;
}
} |
@timomeh maybe you could add some kind of compatibility warning to your package, like language-babel does in this commit: gandm/language-babel@0069b92 |
@brumm Ha! Didn't know that's even a thing. Yep, will definitely add this in the next days. |
Thanks for the tip @brumm, I got the newer snippet working with standard Atom, however Nuclide breaks that one too. I ended up removing Nuclide (used it for working sets). |
I don't know when I am going to have more time to debug this, but when I get time I will check back and install Nuclide again to see if I can fix it and put the fix in a PR. I imagine I have to look a bit at the Nuclide code first though to see how it handles panes. |
It seems like Nuclide behaves very strangely. Try running the following command in the DevTools Console of Atom (with Nuclide), which should resize the active pane:
Nothing will happen. Without Nuclide, it'll work. But if you run this:
... it will work. But I don't know why, because in my understanding of JavaScript, this shouldn't make a difference. Nevertheless, this doesn't mean that it's easily fixable. I tried a few things and they didn't work. I don't want to implement some weird things, which I'll have to maintain in the future, just to support Nuclide. I hereby announce that this Package is incompatible with Nuclide and that I won't fix this. 😄 If you or someone else has a simple solution to this, feel free to open a PR. |
You won't believe it, but there are no problems with Nuclide anymore. I don't know if that was fixed by Nuclide, by Atom itself or through my enhancements with v0.3.0. Thus I removed the incompatibility message. |
I'm having the same issue as another person who's ticket is now closed, it just started working for him again after a while.
As requested, I looked in dev tools and my active pane does not have the hey-pane-focus class. Flex-grow changes when I resize the pane manually.
I've tried switching the keybinding to something else, but it just won't fire.
Here is a list of my installed packages:
https://gist.githubusercontent.com/ehellman/6ccf288440808c1c2da2c205baa11530/raw/4eb50972689f6175be44b6d72861a3ae1db1331f/packages.json
The text was updated successfully, but these errors were encountered: