On Tue, Nov 4, 2014 at 1:58 AM, Quinn Comendant quinn@strangecode.com 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%20S...
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.