Broken "Paste Document / Selection Online…"

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Broken "Paste Document / Selection Online…"

Quinn Comendant
My "Paste Document / Selection Online…" command isn't working (TM2 2.0-beta.1). I haven't used it in awhile so not sure when it broke, but it is identical in content to https://github.com/textmate/textmate.tmbundle/blob/master/Commands/Paste%20Selection%20:%20Line%20Online%E2%80%A6.tmCommand

The error I get is:

----

The script failed with the following exception:

NoMethodError: undefined method `[]' for nil:NilClass

At line 70 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
At line 69 in ‘TextMate_command.z1Zsvt’ (inside method ‘each’)
At line 69 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
At line 66 in ‘TextMate_command.z1Zsvt’ (inside method ‘each’)
At line 66 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
At line 213 in ‘TextMate_command.z1Zsvt’ (top level)
At line 13 in ‘detach.rb’ (inside method ‘call’)
At line 13 in ‘detach.rb’ (inside method ‘detach’)
At line 8 in ‘detach.rb’ (inside method ‘fork’)
At line 8 in ‘detach.rb’ (inside method ‘detach’)
At line 212 in ‘TextMate_command.z1Zsvt’ (top level)

_______________________________________________
textmate mailing list
[hidden email]
http://lists.macromates.com/listinfo/textmate
Reply | Threaded
Open this post in threaded view
|

Re: Broken "Paste Document / Selection Online…"

René Schwaiger
Quinn Comendant wrote
My "Paste Document / Selection Online…" command isn't working (TM2 2.0-beta.1). I haven't used it in awhile so not sure when it broke, but it is identical in content to https://github.com/textmate/textmate.tmbundle/blob/master/Commands/Paste%20Selection%20:%20Line%20Online%E2%80%A6.tmCommand

The error I get is:

----

The script failed with the following exception:

NoMethodError: undefined method `[]' for nil:NilClass

At line 70 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
At line 69 in ‘TextMate_command.z1Zsvt’ (inside method ‘each’)
At line 69 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
At line 66 in ‘TextMate_command.z1Zsvt’ (inside method ‘each’)
At line 66 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
At line 213 in ‘TextMate_command.z1Zsvt’ (top level)
At line 13 in ‘detach.rb’ (inside method ‘call’)
At line 13 in ‘detach.rb’ (inside method ‘detach’)
At line 8 in ‘detach.rb’ (inside method ‘fork’)
At line 8 in ‘detach.rb’ (inside method ‘detach’)
At line 212 in ‘TextMate_command.z1Zsvt’ (top level)

_______________________________________________
textmate mailing list
[hidden email]
http://lists.macromates.com/listinfo/textmate
Hi Quinn,

the command works fine for me (TextMate 2.0-beta.5.3, OS X 10.10). You mention that your “Paste Document / Selection Online…” is identical to that of the original bundle. Does this mean that you cloned the bundle and modified some parts of it? If so, does the command in the original bundle work? Which version of OS X do you use? Does the bundle work if you revert to the default settings?

Kind regards,
  René
Reply | Threaded
Open this post in threaded view
|

Re: Broken "Paste Document / Selection Online…"

Quinn Comendant
On Tue, 4 Nov 2014 02:23:40 -0800 (PST), René Schwaiger wrote:
> You mention that your “Paste Document / Selection Online…” is identical to that
> of the original bundle. Does this mean that you cloned the bundle and
> modified some parts of it?

No, I mentioned that as a way of saying that I didn't modify it—the command I'm invoking is original.

> Which version of OS X do you use?

10.9.5

> Does the bundle work if you revert
> to the  default settings

Still doesn't work =(

Q

_______________________________________________
textmate mailing list
[hidden email]
http://lists.macromates.com/listinfo/textmate
Reply | Threaded
Open this post in threaded view
|

Re: Broken "Paste Document / Selection Online…"

René Schwaiger
Quinn Comendant wrote
On Tue, 4 Nov 2014 02:23:40 -0800 (PST), René Schwaiger wrote:
> You mention that your “Paste Document / Selection Online…” is identical to that
> of the original bundle. Does this mean that you cloned the bundle and
> modified some parts of it?

No, I mentioned that as a way of saying that I didn't modify it—the command I'm invoking is original.

> Which version of OS X do you use?

10.9.5

> Does the bundle work if you revert
> to the  default settings

Still doesn't work =(

Q
Unfortunately my only computer runs OS X 10.10. I might have access to the Mac of a friend with an older OS version tomorrow. If nobody has a fix for you until tomorrow midday (GMT +1), I will try to reproduce your problem on that machine.
Reply | Threaded
Open this post in threaded view
|

Re: Broken "Paste Document / Selection Online…"

Ronald Wampler
In reply to this post by Quinn Comendant
On Tue, Nov 4, 2014 at 1:58 AM, Quinn Comendant <[hidden email]> wrote:

> My "Paste Document / Selection Online…" command isn't working (TM2 2.0-beta.1). I haven't used it in awhile so not sure when it broke, but it is identical in content to https://github.com/textmate/textmate.tmbundle/blob/master/Commands/Paste%20Selection%20:%20Line%20Online%E2%80%A6.tmCommand
>
> The error I get is:
>
> ----
>
> The script failed with the following exception:
>
> NoMethodError: undefined method `[]' for nil:NilClass
>
> At line 70 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
> At line 69 in ‘TextMate_command.z1Zsvt’ (inside method ‘each’)
> At line 69 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
> At line 66 in ‘TextMate_command.z1Zsvt’ (inside method ‘each’)
> At line 66 in ‘TextMate_command.z1Zsvt’ (inside method ‘get_destinations’)
> At line 213 in ‘TextMate_command.z1Zsvt’ (top level)
> At line 13 in ‘detach.rb’ (inside method ‘call’)
> At line 13 in ‘detach.rb’ (inside method ‘detach’)
> At line 8 in ‘detach.rb’ (inside method ‘fork’)
> At line 8 in ‘detach.rb’ (inside method ‘detach’)
> At line 212 in ‘TextMate_command.z1Zsvt’ (top level)
>

I was able to reproduce this error if  the "selectedDestinations:"
default value in
~/Library/Preferences/com.macromates.textmate.paste_online.yaml did
not actually exist. Try removing that file. The bundle will recreate
it.

_______________________________________________
textmate mailing list
[hidden email]
http://lists.macromates.com/listinfo/textmate
Reply | Threaded
Open this post in threaded view
|

Re: Broken "Paste Document / Selection Online…"

Quinn Comendant
On Tue, 4 Nov 2014 10:55:32 -0500, Ronald Wampler wrote:
> I was able to reproduce this error if  the "selectedDestinations:"
> default value in
> ~/Library/Preferences/com.macromates.textmate.paste_online.yaml did
> not actually exist. Try removing that file. The bundle will recreate

Yep! Fixed. I would never have found that on my own. Thanks!

Quinn

_______________________________________________
textmate mailing list
[hidden email]
http://lists.macromates.com/listinfo/textmate