Closed leeyisoft closed 7 years ago
I have found out that this error happens when you have disabled shadow root in your settings.
Just edit "lib/simple-drag-drop-text.coffee" file this way:
find: @lines = atom.views.getView(@editor).shadowRoot.querySelector
replace: @lines = atom.views.getView(@editor).querySelector
For me this solves the problem :)
Can you put that in as a PR?
On Fri, Apr 22, 2016 at 3:13 PM, cmosespl notifications@github.com wrote:
I have found out that this error happens when you have disabled shadow root in your settings.
Just edit "lib/simple-drag-drop-text.coffee" file this way:
find: @lines https://github.com/lines = atom.views.getView(@editor).shadowRoot.querySelector replace: @lines https://github.com/lines = atom.views.getView(@editor).querySelector
For me this solves the problem :)
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/mark-hahn/simple-drag-drop-text/issues/13#issuecomment-213606783
Done.
update to code:
@lines = atom.views.getView(@editor)
if @lines.shadowRoot
@lines = @lines.shadowRoot.querySelector '.lines'
else
@lines = @lines.querySelector '.lines'
Did you follow the github docs? You need to fork, pull, modify, push, and then request the PR.
On Sat, Apr 23, 2016 at 12:00 AM, cmosespl notifications@github.com wrote:
When I try to do pull request is gives me access denied...
— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/mark-hahn/simple-drag-drop-text/issues/13#issuecomment-213677568
@cmosespl Check out https://guides.github.com/activities/contributing-to-open-source/#contributing Let's make it a PR :)
I believe this issue was resolved and returned shortly in #23.
[Enter steps to reproduce below:]
Atom Version: 1.5.4 System: Mac OS X 10.11.3 Thrown From: simple-drag-drop-text package, v0.3.0
Stack Trace
Uncaught TypeError: Cannot read property 'querySelector' of null
Commands
Config
Installed Packages