Giter Site home page Giter Site logo

Comments (12)

mortalapeman avatar mortalapeman commented on May 28, 2024

Thanks for reporting @ghachey!

I doubt this is the issue, but you don't need to specify all the libraries you want excluded. Just saying:

{:+ {:tern.config [(:lt.plugins.tern/libs :ecma5)
                   (:lt.plugins.tern/plugin :node true)]}
 :- {:tern.config [:lt.plugins.tern/libs]}}

will clear all the default libs and setup ecma5 for your environment.

That being said, can you provide the following information:

  • OS type and version
  • Light Table version
  • Any JS third party libraries you have in the problem workspace

If you have time, try adding each subfolder of your main project folder to the workspace. Add them one at a time and see if you can narrow the problem to a specific set of JavaScript files. If the problem files are public/open source, I might be able to resolve the issue swiftly.

from lt-ternjs.

ghachey avatar ghachey commented on May 28, 2024

Hi @mortalapeman ,

  • OS is Linux Mint 16 MATE Desktop 64 bit
  • LT 0.6.5

I had several projects in there of mine and some other projects such as CodeMirror, LightTable, core,logic. The projects I have in there make use of a variety of libs including AngularJS, many NodeJS modules, Underscore, test frameworks just too many to list.

I have noticed when I take everything out that it sort of works. For example, I added a small library of mine I just started writing (it has almost nothing in it) and only depends on mocha underscore and should, so I guess I can rule those out. However, when I try to view docs inline of one of my functions I get "?". I know I have docs for that function as I have the file open. To be honest I am not sure I am writing the docs properly for Javascript. You can look at the code at https://github.com/ghachey/node-rrd. And trying the jump to definition just gives me a "Could not find file:".

Also, I will try on my end to isolate what file(s) is causing problem as well.

Your help is appreciated.

from lt-ternjs.

ghachey avatar ghachey commented on May 28, 2024

I tried with nothing in the workspace and nothing works. I assume it parses javascript files in the workspace - ok, makes sense. I added a minimal project, the one I provided a link to my repo above and had the dependencies installed (underscore, mocha and should). I opened 2 of my files. The inline docs worked for a few minutes and then just stopped working: at first giving "?" and then doing nothing (nothing in the console). I don't mind providing feedback, but if I can't get this to work even in the simplest of cases I'm afraid I will have to leave it aside for now.

Thanks for this effort though, I do hope to use this plugin in the future.

One more thing. When using the JSDoc style I get the following inline docs.

fetch
fn(filename: string, CF: string, options: {}, callback: fn(?,?))
* @description *  Fetches data from a RRD database.

It seems it ignores most of my function docs which look like below.

/**
 * @description
 *
 * Fetches data from a RRD database. Takes exactly the same arguments as
 * rrdtool (see man rrdfetch). Supported ones are documented below. At a minimum
 * a filename should be passed to fetch data.
 *
 * @param {String} filename
 * @param {String} CF the consolidation function
 * @param {Object} options parameters for the remaining, for example,
 *                 {start: '1395994500', end: '1396076100'}
 *
 */

I thought it would display nicely the description of the function then the argument types, name and descriptions. Is it suppose to work with JSDoc style docs?

Anyway, it's all I got for now.

Cheers,

from lt-ternjs.

mortalapeman avatar mortalapeman commented on May 28, 2024

Thanks for the great feedback! Sorry to hear that it's giving you so much trouble. I had planned to dog food my self with the plugin at work, but then I got moved to the backend team writing C# so I haven't been able to fully test it as much as I'd like.

I've tried it out on the jQuery and angular-ui source, and it seemed be working as expected on those; however, I did not try to do any development on them for extended periods of time. Obviously I need to do some more extensive testing.

Once again, thank you for the feedback and I'll get to working the issue as soon as possible.

from lt-ternjs.

ghachey avatar ghachey commented on May 28, 2024

No worries. Thanks. Meanwhile, I'll try to document issues I face a bit more clearly with minimal test cases hopefully making it easier for you when you have time for it.

Regards,

from lt-ternjs.

mortalapeman avatar mortalapeman commented on May 28, 2024

Hmmm, everything works fine on my Linux Mint 13 machine, but my Ubuntu 13.04 VM is showing the same problem. I have a feeling I am going to severely dislike this bug. I'll have to try out my windows box this weekend.

from lt-ternjs.

ghachey avatar ghachey commented on May 28, 2024

Yeah, Linux Mint 16 is based on Ubuntu 13.10, I think. Any luck with this so far?

from lt-ternjs.

mortalapeman avatar mortalapeman commented on May 28, 2024

Sort of, I've determined that I can replicate the issue if the path to ternserver.js is incorrect. I will release a small update to see if that fixes/confirms this problem later tonight.

from lt-ternjs.

mortalapeman avatar mortalapeman commented on May 28, 2024

I've pushed up an update that should at the very least tell me if the problem is just a path issue. Please download it and let me know.

from lt-ternjs.

ghachey avatar ghachey commented on May 28, 2024

Hi @mortalapeman ,

Sorry for the delay. I'm in the process of moving into a new house I bought and find it hard to get some quality time with my text editor :)

I have installed the latest from the plugin list and it seems to work. For some reason when I have more projects open in my workspace things are not working as well. I will try to pinpoint what is causing this following the good old simple process of elimination strategy and report back here.

One thing though, Aas I mentioned above, and I see you also created a new issue for it at #12, the formatting of JSDocs is not as useful as it could be. Since JSDoc is common I think it would be useful to get this working. I'll be happy to test and report back issues in #12.

Thanks for efforts on this plugin, I think it is a superb addition to the LT project.

from lt-ternjs.

mortalapeman avatar mortalapeman commented on May 28, 2024

Awesome! Glad to hear it's working slightly better for you. Hope you enjoy your new house.

If you could open up another ticket with a description of what not is not working so well for you when you have multiple workspaces open, we can move the discussion there. I'll be working the JSDoc issue here in the next few weeks, so I hope to have something for you soon.

As for this issue, I sounds like the problem is solved so I'll go ahead and close it out.

from lt-ternjs.

Mouvedia avatar Mouvedia commented on May 28, 2024

I am having the same problem with the dev branch.

Error: channel closed
    at ChildProcess.target.send (child_process.js:402:26)
at eval … LightTable/plugins/TernJS/ternjs_compiled.js:86:18)

from lt-ternjs.

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.