Gmansolf / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

TextMate as an editor for google docs #171

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. google docs edit --title "Test Document" --editor 'mate -w'

What is the expected output? What do you see instead?
I expect it to open up a new textmate window like SVN does, etc.

What version of the product are you using? On what operating system? What
gdata-python-client 2.0.10
googlecl 0.9.7

Traceback (most recent call last):
  File "/usr/local/bin/google", line 448, in <module>
    main()
  File "/usr/local/bin/google", line 442, in main
    run_once(options, args)
  File "/usr/local/bin/google", line 337, in run_once
    task.run(client, options, args)
  File "/Library/Python/2.6/site-packages/googlecl/docs/service.py", line 439, in _run_edit
    client.edit_doc(doc_entry, editor, format_ext)
  File "/Library/Python/2.6/site-packages/googlecl/docs/service.py", line 106, in edit_doc
    subprocess.call([editor, path])
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 444, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 595, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1106, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Original issue reported on code.google.com by derek.be...@gmail.com on 24 Jun 2010 at 6:29

GoogleCodeExporter commented 8 years ago
I haven't been able to test TextMate or Mac specifically, but the problem may 
be your inclusion of the -w flag. Including flags will definitely cause an 
otherwise valid value for --editor to fail. Can you try with just --editor mate 
and see if it works? Or is the -w flag necessary?

If --editor mate works, I'll update this issue to read "include flags in 
--editor option"

Original comment by tom.h.mi...@gmail.com on 26 Sep 2010 at 5:13

GoogleCodeExporter commented 8 years ago
Simply calling edit with --editor mate doesn't seem to work.  googlecli exits 
execution stating that no modifications have been made.  The "-w" option for 
textmate would tell Textmate to wait for the file to be closed.

Original comment by siegel.e...@gmail.com on 30 Sep 2010 at 6:48

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r484.

Original comment by tom.h.mi...@gmail.com on 29 Oct 2010 at 5:29

GoogleCodeExporter commented 8 years ago
I haven't tested this with TextMate, but I think I got the underlying problem. 
I've attached a patch against 0.9.11, please let me know if it doesn't work for 
TextMate.

Original comment by thmil...@google.com on 29 Oct 2010 at 5:30

Attachments: