maralla / validator.vim

Check syntax on the fly asynchronously.
MIT License
213 stars 14 forks source link

validator_filetype_map not work for me #16

Closed francescarpi closed 8 years ago

francescarpi commented 8 years ago

Hi again,

I have this setting:

let g:validator_filetype_map = {"python.django": "python", "javascript.jsx": "javascript"}
let g:validator_javascript_checkers = ['eslint']
let g:validator_python_checkers = ['flake8']
let g:validator_error_msg_format = "[ ● %d/%d issues ]"

But aliases not work and I not know why.

I'm using python.django filetype. This is an example:

#!/usr/bin/env python
# encoding: utf-8
# vim:ft=python.django:
# --------------------------------------------------------------------------

class Example(object):
    pass

Can you reproduce it? Thx

maralla commented 8 years ago
screen shot 2016-09-21 at 6 17 40 pm

In my environment it works pretty well.

Do you really installed flake8 and upgraded validator.vim to the latest commit?

francescarpi commented 8 years ago

Hi.

Yes. I'have installed flake8 and validator.vim has upgraded to latest version.

Work fine with python fieletype, but not with python.django.

I'm investigate why...

Do you know if exists any cache that I should clear?

mhinton commented 8 years ago

I have the same issue using these settings.

let g:validator_filetype_map = {"javascript.jsx": "javascript"}
let g:validator_javascript_checkers = ['eslint']
let g:validator_auto_open_quickfix = 1
maralla commented 8 years ago

@francescarpi Could you go to your validator.vim directory and run:

find . -name "*.pyc" -delete

to delete all python caches and try again?

francescarpi commented 8 years ago

Hi @maralla,

I'm sorry, but not work. I have deleted pyc.

My versions: Python 3.5.2 Vim 8.0.7 flake 3.0.4 eslint 3.5.0

Thx!

maralla commented 8 years ago

This fix #19 may fix the problem, please upgrade and try again.

francescarpi commented 8 years ago

Hi,

still not working. Look at this strange behavior.

validator

Thx!

maralla commented 8 years ago

I pushed one more commit to solve this problem. Can you try it again?

francescarpi commented 8 years ago

Yessss! Its ok, now!! You are the best!

Thx