Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

This message keep showing even when there's no error with my code #73

Closed
kachunwong628 opened this issue Feb 1, 2016 · 10 comments
Closed

Comments

@kachunwong628
Copy link

Everytime I save a html file, the following error message is showed:

SyntaxError: Unexpected end of input
    at Object.parse (native)
    at /Users/aaaaaa/.atom/packages/linter-htmlhint/lib/index.js:61:30
    at process._tickCallback (node.js:368:9)
@Arcanemagus
Copy link
Member

Can you open up Developer Tools and put a breakpoint on that line and see what the contents of output is?

@smlombardi
Copy link

I am getting this too. On my app, the error was:

SyntaxError: Unexpected end of input
    at Object.parse (native)
    at /Users/stevelombardi/.atom/packages/linter-htmlhint/lib/index.js:61:30

And the value of output is:

"[{"file":"/Users/stevelombardi/github/designsystem/app/modules/resources/templates/resources-tools.html","messages":[{"type":"error","message":"The attribute name of [ viewBox ] must be in lowercase.","raw":" viewBox=\"0 0.388 121.5 89.612\"","evidence":" <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0.388 121.5 89.612\"><defs><path id=\"a\" d=\"M0 .39h121.5V90H0z\"/></defs><clipPath id=\"b\"><use xlink:href=\"#a\" overflow=\"visible\"/></clipPath><path d=\"M..."

the rest of it was the svg path coordinates, which stopped eventually.

@ivanreese
Copy link

I get this error on every file that contains some HTML + some other markup format. Eg: all of my erb templates in a rails project. This is a common problem — see #72

@RedSentry
Copy link

Same here getting this error

@deftOfCenter
Copy link

Same

@fwd079
Copy link

fwd079 commented Apr 10, 2016

Oh okay so its already reported. I think I need to disable htmllint for RoR projects till its fixed.

@jerone
Copy link

jerone commented Apr 14, 2016

Same issue on normal HTML files.

Atom 1.7.0
linter-htmlhint 1.1.2
Windows 8.1 x64

@jerone
Copy link

jerone commented Apr 14, 2016

@Arcanemagus commented on 1 feb. 2016 08:51 CET:

Can you open up Developer Tools and put a breakpoint on that line and see what the contents of output is?

linter-htmlhint

@Arcanemagus
Copy link
Member

@jerone You're almost certainly hitting #99, which at it's root I've filed atom/atom#11471 to figure out what is going on.

@Arcanemagus
Copy link
Member

Atom v1.7.1 (And v1.8.0-beta1) has been released which should fix this. If you are still having issues please re-open this or file a new issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants