Open alonisser opened 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.
Could you also please gist the configuration file you're trying to open? I'd like to see the lines that go wrong.
the whole supervisor.conf (long and I'll have to edit out some envs) ? or specific lines?
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?
I'll try the fix in a moment
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
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
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:
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!
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.
Any idea how to fix this?