-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support Emberjs #9
Comments
@mtangoo please add a simple sample (with your github) whch throws this error (i don't know ember and no time to initialize a project). thanks!
Please add a sample which causes your problem.
Sorry I don't understand? |
Here is a sample model in Ember import DS from 'ember-data';
export default DS.Model.extend({
name: DS.attr(),
contact: DS.attr(),
policy: DS.attr(),
create_time: DS.attr(),
update_time: DS.attr()
}); Another one for component import Ember from 'ember';
export default Ember.Component.extend({
});
I mean when error happens it will be logged to standard IO. I want to surpress the error |
Have you tested with the last version of outline.js (not from npm but with github project)? I have none error with your sample? Please share a github project which have a problem. Please note that If you wish support ember.js, you should create a tern plugin for that to support DS.model.extend for instance. |
@angelozerr I would like to create a plugin but my NodeJs skills lacks a lot. |
@mtangoo please share your project, it will be very easy for me to see the errors.
I was not (and I'm not) a big star with javascript, but I have read and debug ternjs a lot. Perhaps you could start with https://github.com/angelozerr/tern-jug In my case I use chrome to debug my plugin |
Hi @angelozerr I will check the plugin, hope its plain javascript. Thanks! |
Turned on verbose (tern) and it started working fine. I will reopen if it occurs but for now it looks ok (with latest github sources) |
So I found the real problem. {
"ecmaVersion": 6,
"libs": [
"browser",
"jquery"
],
"plugins": {
"lint": {},
"browser-extension": {},
"jquery-extension": {},
"outline": {}
}} and then I have tern server under completely different directory (let say /home/stef/utilities/tern/) So I invoke tern using full path and set current working dir to the one in project. I find that I get error:
But If I run with CWD pointing to tern server it just works fine. Do you know how to fix such situation (I know it might be entirely tern issue, but only if you know how to solve it) |
Perhaps it's the same problem than angelozerr/tern-lint#64 ? |
let me check that one! |
If I edit files written in Emberjs tern cannot recognize them and throws error
12:09:40: Error: Failed to Parse Outlines
. I have two requests in this:Thanks for the good work!
The text was updated successfully, but these errors were encountered: