-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No query type 'lint' defined #64
Comments
@tststs if I remember, this problem comes from when you do
Try to remove the |
It indeed works. But i don't think it's a good solution to rm the tern dir every time atom-ternjs is installed or updated. Is there any way to bypass the behaviour? https://github.com/tststs/atom-ternjs/blob/es6-tern-wrapper/lib/atom-ternjs-server.js#L289 If i require |
I agree with you, but I don't know how to fix this problem. I think it's a problem with npm install and package.json https://github.com/angelozerr/tern-lint/blob/master/package.json#L16 |
Ok, i think i have found a solution for the problem. I now use First i create the npm-shrinkwrap.json with
Greetings, |
Thanks @tststs for the info. |
@tststs I have perhaps an idea (not tested) to fix this problem. Instead of doing: require("tern/lib/infer") We could do: try {
require("../tern/lib/infer")
}
catch(e) {
require("tern/lib/infer")
} The first time, we try to use the tern from the parent node_modules and if it's not available we try to use tern from the child node_modules. What do you think about that? |
Hey,
with every request to the server, i get this error message.
Do i miss something?
.tern-project:
post:
Thanks and greetings,
tststs
The text was updated successfully, but these errors were encountered: