Olivia5k / vim-supervisor

supervisor wrappers for vim
7 stars 0 forks source link

after a pathogen install - the plugin fails with errors - #1

Open alonisser opened 10 years ago

alonisser commented 10 years ago

Any idea how to fix this?

Error detected while processing function <SNR>71_Detect..supervisor#BufInit..<SNR>88_parse_config..<SNR>88_parse_config_file:

E684: list index out of range: 1
E116: Invalid arguments for function s:strip(split[1])
E15: Invalid expression: s:strip(split[1])
E684: list index out of range: 1
E116: Invalid arguments for function s:strip(split[1])
E15: Invalid expression: s:strip(split[1])
E684: list index out of range: 1
E116: Invalid arguments for function s:strip(split[1])
E15: Invalid expression: s:strip(split[1])
E684: list index out of range: 1
E116: Invalid arguments for function s:strip(split[1])
E15: Invalid expression: s:strip(split[1])
E684: list index out of range: 1
E116: Invalid arguments for function s:strip(split[1])
E15: Invalid expression: s:strip(split[1])
E684: list index out of range: 1
E116: Invalid arguments for function s:strip(split[1])
E15: Invalid expression: s:strip(split[1])
E684: list index out of range: 1
E116: Invalid arguments for function s:strip(split[1])
E15: Invalid expression: s:strip(split[1])
E684: list index out of range: 1
Olivia5k commented 10 years ago

Yeah, there is a line in supervisor configuration file that is not an empty line, acomment, a header or an assignment (var=value). The plugin is not handling this, so it crashes. I can push a quick fix that will probably make it work.

Olivia5k commented 10 years ago

Could you also please gist the configuration file you're trying to open? I'd like to see the lines that go wrong.

alonisser commented 10 years ago

the whole supervisor.conf (long and I'll have to edit out some envs) ? or specific lines?

Olivia5k commented 10 years ago

I think the whole thing would be best, if that's possible! You can scramble the content if you want to, it's the syntax that matter to me. AFAIK, the .conf file format has a very simple syntax, and it should be easy to parse.

Also, did the fix I pushed to master help?

alonisser commented 10 years ago

I'll try the fix in a moment

alonisser commented 10 years ago

pulled the fix. no error message now. but I don't have the :Supervisor commands described here.. I can ```:set syntax=supervisor" and get some syntax highlighting but nothing else

alonisser commented 10 years ago

Also when I copied the original file content to another (~/supervisor.conf instead of /etc/supervisor/supervisor.conf) I didn't get the error message on it

alonisser commented 10 years ago

Ok . seems I have Sstatus and friends but getting this error message.

"/etc/supervisor/supervisord.conf" [readonly] 279L, 9688C
Error detected while processing function <SNR>88_Status..supervisor#BufInit..<SNR>88_parse_config..<SNR>88_parse_config_file:
line    4:
E484: Can't open file /etc/supervisor//var/supervisord.conf
Error detected while processing function <SNR>88_Status..supervisor#BufInit:
line   14:
E716: Key not present in Dictionary: supervisord
E116: Invalid arguments for function fnamemodify(sup.config['supervisord']['pidfile'], ':h')
E15: Invalid expression: fnamemodify(sup.config['supervisord']['pidfile'], ':h')
line   15:
E121: Undefined variable: piddir
E116: Invalid arguments for function <SNR>88_sup_path
E15: Invalid expression: sup.path(piddir, 'index')
Error detected while processing function <SNR>88_Status..supervisor#BufInit..<SNR>88_parse_config..<SNR>88_parse_config_file:
line    4:
E484: Can't open file /etc/supervisor//var/supervisord.conf
Error detected while processing function <SNR>88_Status..supervisor#BufInit:
line   14:
E716: Key not present in Dictionary: supervisord
E116: Invalid arguments for function fnamemodify(sup.config['supervisord']['pidfile'], ':h')
E15: Invalid expression: fnamemodify(sup.config['supervisord']['pidfile'], ':h')
line   15:
E121: Undefined variable: piddir
E116: Invalid arguments for function <SNR>88_sup_path
E15: Invalid expression: sup.path(piddir, 'index')
Error detected while processing function <SNR>88_Status..<SNR>88_write_index:
line    1:
E716: Key not present in Dictionary: index
E15: Invalid expression: self.index
Error detected while processing function <SNR>88_Status:
line    3:
E716: Key not present in Dictionary: index
E15: Invalid expression: b:supervisor.index
Error detected while processing function <SNR>88_Status..supervisor#BufInit..<SNR>88_parse_config..<SNR>88_parse_config_file:
line    4:
E484: Can't open file /home/supervisord.conf
Error detected while processing function <SNR>88_Status..supervisor#BufInit:

It happens when the supervisor.conf file is open in vim.. No automatic syntax highlighting though:

Olivia5k commented 10 years ago

Interesting. This was more complex than I thought, haha. I am at work right now, so I don't have time to actually dig deeper into this right now. I'll take a deeper look as soon as I can, which will probably be within the next few days. I'm sorry for the inconvenience!

alonisser commented 10 years ago

Thanks! Love open source community. No inconvenience בתאריך 6 במאי 2014 12:05, "Lowe Thiderman" notifications@github.com כתב:

Interesting. This was more complex than I thought, haha. I am at work right now, so I don't have time to actually dig deeper into this right now. I'll take a deeper look as soon as I can, which will probably be within the next few days. I'm sorry for the inconvenience!

— Reply to this email directly or view it on GitHub.