Coder Social home page Coder Social logo

Comments (19)

oryband avatar oryband commented on July 21, 2024

I've sent a pull request fixing this issue on #60.

Closing this one.

from syntastic.

oryband avatar oryband commented on July 21, 2024

@scrooloose: Say, did the latest csslint version stop working with the syntax-checker for you?

I updated it via npm.

If so, please reopen the issue or create a new one until we fix it.

from syntastic.

oryband avatar oryband commented on July 21, 2024

Current CSS Lint version 0.5.0 stopped working with this plugin. Requires a fix.

I've tried looking into it, and can't seem to pin down the problem. The reg-ex appears to be fine, and is supposed to catch the error & warning messages.

Could somebody else try it? I must be missing something.

from syntastic.

oryband avatar oryband commented on July 21, 2024

Well, I asked CSS Lint's developers very nicely to add compact output, so it would be easy to parse. They'd already did that, but still - I can't seem to successfully parse the output.

If you execute csslint --format=compact you'll get an easy to parse print-out:

$ csslint --format=compact base.css

base.css: line 97, col 1, Missing vendor-prefixed CSS gradients for Webkit (Safari, Chrome), Internet Explorer 10+, Opera 11.1+.
base.css: line 35, col 3, Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set text-direction for that item to ltr.
base.css: line 57, col 1, Don't use IDs in selectors.
base.css: line 61, col 1, Don't use IDs in selectors.

This is my main syntax_checkers/css.vim code:

let makeprg = 'csslint --format=compact '.shellescape(expand('%'))

let errorformat = '%f\:\ line\ %l\,\ col\ %c\,\ %m,%-G%.%#'

The reg-ex looks fine. I must be missing something. Perhaps an encoding issue or some other bizzare idea?

from syntastic.

chrisgeo avatar chrisgeo commented on July 21, 2024

Ah, was going to ask about this. I couldn't figure out why the parser wasn't working.

from syntastic.

oryband avatar oryband commented on July 21, 2024

@chrisgeo: Do you have any idea what's wrong with my regex? Frustrating. You're welcome to test it yourself.

from syntastic.

chrisgeo avatar chrisgeo commented on July 21, 2024

The biggest problem I see is that CSSLint isn't outputting to stdout/err. I can't actually redirect the output in the shell.

master:[07:56:09]:foo: csslint foo.css > tmp.output
master:[07:56:15]:foo: cat tmp.output 
<empty output>

Let me take a closer look into csslint.

from syntastic.

axolx avatar axolx commented on July 21, 2024

subscribing

from syntastic.

chrisgeo avatar chrisgeo commented on July 21, 2024

@oryband: I'll take a look tonight. Nicolas made some changes to css-lint that fixed a few issues with the way node was doing some underlying stuff. I'll let you know, and make a fork of your code to work on a fix if it's needed.

from syntastic.

chrisgeo avatar chrisgeo commented on July 21, 2024

@oryband: Looks like your regex is fine now (or at least the one I'm using) except that it doesn't look like the output is being parsed into a displayable error. On a CSS file I have the output of "loclist" that you can see in this gist:
https://gist.github.com/1236814

from syntastic.

oryband avatar oryband commented on July 21, 2024

@chrisgeo: Hey, thanks for the help :)

I didn't quite understand what you meant in your last message:

Did you fix the regex? If so, please feel free to commit the fix instead of _gist_ing. We'll check to see if it's working and merge it with the master branch.

from syntastic.

chrisgeo avatar chrisgeo commented on July 21, 2024

@oryban: Sorry for the confusion. I didn't actually end up fixing it because I am not familiar with how Syntastic parses the output. Mostly the second file in the gist: https://gist.github.com/1236814#file_dump.py, is the output I'm seeing with running CSSLINT. I assume that means it found matches to notify with and that the regex is working. The part where I'm stuck on is why that's not being put into clist/cerrors for inspection OR being used to highlight lines by Syntastic. Maybe you can help me out on that and I'd love to help patch it?

from syntastic.

chrisgeo avatar chrisgeo commented on July 21, 2024

Looks like someone added what we needed: CSSLint/csslint#152

And sitedyno did a pull request for it. @oryband

from syntastic.

scrooloose avatar scrooloose commented on July 21, 2024

Hey guys, sorry for not responding to this earlier - I have just moved to a different country (best excuse ever?!).

I have pulled from sitedyno. Please confirm that this fixes the issue :)

from syntastic.

chrisgeo avatar chrisgeo commented on July 21, 2024

No problem. I'm actually having issues with csslint 0.8.0 not working at all.

from syntastic.

chrisgeo avatar chrisgeo commented on July 21, 2024

@scrooloose have you gotten the syntax checker to notify you at all?

from syntastic.

scrooloose avatar scrooloose commented on July 21, 2024

you guys still having issues with this? it seems to be working fine for me on csslint 0.8.5

from syntastic.

chrisgeo avatar chrisgeo commented on July 21, 2024

It's working for me now.

from syntastic.

scrooloose avatar scrooloose commented on July 21, 2024

cool, ill close this off then. Just comment here or open another issue if there are any more problems

from syntastic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.