tamentis / cartman

Command line Trac tools
http://tamentis.com/projects/cartman/
ISC License
22 stars 10 forks source link

error: unable to get an EDITOR environment variable #8

Closed strk closed 8 years ago

strk commented 9 years ago

~/.cartman/config presence of an "editor" variable does not prevent the error from occurring on "cm new"

tamentis commented 8 years ago

What OS? I can't reproduce that issue with an empty/missing EDITOR variable. Can you share the config file (minus your credentials) and maybe your env. I tried deleting the EDITOR environment variable but I don't get an error, unless editor is missing from the configuration file as well.

strk commented 8 years ago

Ubuntu 14.04.3 LTS, no "editor" in config file results in the error, no matter exporting an EDITOR variable.

There's no much to see in the configuration file, as the issue here is being unable to avoid writing an "editor" variable in there.

tamentis commented 8 years ago

Ok, so you have an exported EDITOR variable in your environment and nothing in your cartman config.

I literally have the same setup and it works fine here, what do you have if you type the following in a python interpreter:

>>> import os
>>> os.getenv("EDITOR")
strk commented 8 years ago

Never mind, it looks like I cannot reproduce this anymore, it's working fine. Not sure what I stepped on before. This can be closed.

tamentis commented 8 years ago

Thanks for confirming.