Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

linter.verify is not a function #76

Open
jaccovonk opened this issue Jun 3, 2020 · 8 comments
Open

linter.verify is not a function #76

jaccovonk opened this issue Jun 3, 2020 · 8 comments

Comments

@jaccovonk
Copy link

I installed the extension and got the following error popup: 'linter.verify is not a function'.

I found that if I changed the following line (168) in server.js (C:\Users\me.vscode\extensions\mkaufman.htmlhint-0.7.0\server\server.js) from:

const result = server.Files.resolveModule2(rootFolder, 'htmlhint', nodePath, trace).

to:

const result = server.Files.resolveModule(rootFolder, 'htmlhint').

then it worked...?!

Here's my VSCode About info:

Version: 1.45.1 (user setup)
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:27:35.169Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.17134

@jiayisheji
Copy link

I have the same problem

Version: 1.45.1 (user setup)
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:27:35.169Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363

@mike-kaufman
Copy link
Contributor

Not sure what's going on here, but I did just publish a new version 0.8.0 that fixed a different problem. LMK if you're still seeing this after that update.

@vasil4enko-vs
Copy link

I have version 0.8.0 - the same problem.

@apgarland
Copy link

Tried to install 0.8.0 this morning and am also getting this error.

@jiayisheji
Copy link

I have version 0.8.0 - the same problem.

Version: 1.46.0 (user setup)
Commit: a5d1cc28bb5da32ec67e86cc50f84c67cc690321
Date: 2020-06-10T09:03:20.462Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363

@inferpse
Copy link

@mike-kaufman this extension was working fine with "htmlhint": "0.13.0" but it doesn't work with "htmlhint": "0.14.0" - looks like package interface was changed.

Hopefully it will be updated soon. Meanwhile the workaround is to rollback "htmlhint" package in node_modules to 0.13

@jiayisheji
Copy link

@mike-kaufman I will go back to "htmlhint": "0.13.0" not work. I will go back to "htmlhint": "0.11.0" it will work

@mmajrk
Copy link

mmajrk commented Jun 18, 2020

Same issue with v0.8.0 here.

Version: 1.46.1
Commit: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
Date: 2020-06-17T21:17:14.222Z (20 hrs ago)
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.5.0

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

7 participants