Open lironess opened 8 years ago
Thanks for the report!
This might be related to #115, I'll see if I can replicate this when I get a chance.
Hmm, my initial attempts to replicate by installing packages that match those from #115 failed. Do you consistently get this error? If so, are you able to get the error with all your packages except for advanced-open-file disabled? I'd like to see if it's an issue with a specific library being installed.
I'm getting this error only from advanced-open-file package, everything else works fine (and I have a lot of packages ..) Also - I tried to uninstall and install it again, but same error occurs again
Getting the same error, every time I try to open the open file dialog.
Let me know if you need any further info. Let me also take this chance to say that I love this plugin! :)
For anyone coming along this issue, I was able to downgrade to the last running version via apm install advanced-open-file@0.16.1
.
@hobofan I'm not free tonight, but tomorrow I can try and see if there's a way to make a non-minified build that will show the actual error, and then ask you to run it and see if you still get an error with more useful info than "i hate freedom and won't tell anyone why I'm breaking".
Here's the real error message:
addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a
component that was not created inside a component's `render` method, or you have multiple copies
of React loaded (details: https://fb.me/react-refs-must-have-owner).
Given the amount of reports of this problem and my inability to find a solution promptly, I've decided to AGAIN revert the React changes until I can solve this. I've release v0.16.3, which is identical to v0.16.0, the first time I reverted to pre-React advanced-open-file.
@lironess @hobofan Can ya'll confirm if the new version works for you again?
@Osmose :+1: 0.16.3 works.
Cool, thanks for verifying!
Also, there's a lot of I in my last comment. I am more than willing to accept help or patches for this problem, I just don't get a whole lot of PRs usually for this project.
I suspect the problem here is, as the error message says, conflicting instances of React. Multiple instances of React in the same page don't play well together. There's react-for-atom which proposes sharing a single React instance among all the plugins, but this approach breaks when packages want to rely on different versions of React.
After some testing, I thought that I found that React can coexist with other instances of itself on a page as long as they don't interact (IE they don't mess with globals and their components never touch each other), but apparently that's not the case.
I'm not really that strong of a frontend developer so I'm not confident in my ability to write a good non-React view for the package that does the clever things the React view changes introduced, but that might be the only solution here.
just pressed Cmd+alt+O and got :
Atom Version: 1.7.3 System: Mac OS X 10.11.5 Thrown From: advanced-open-file package, v0.16.2
Stack Trace
Failed to activate the advanced-open-file package
Commands
Config
Installed Packages