Skip to content
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

Wiki page - How to add tern-ide module #125

Closed
paulvi opened this issue Sep 25, 2014 · 13 comments
Closed

Wiki page - How to add tern-ide module #125

paulvi opened this issue Sep 25, 2014 · 13 comments

Comments

@paulvi
Copy link
Contributor

paulvi commented Sep 25, 2014

there should be Wiki page - How to add tern-ide module

related to #39 #47

@angelozerr
Copy link
Owner

I have done that for each tern modules. For instance for tern lint https://github.com/angelozerr/tern.java/wiki/Tern-&-Validation

@paulvi
Copy link
Contributor Author

paulvi commented Sep 25, 2014

There is no yet understanding.

What I mean is let users to add new Modules to tern.

This is possibly duplicate of #43
but the confusion already start with terms, as I see defs/plugin/modules ....

while there some docs for tern itself, there should be answer to user question:

"How do I get my favorite framework supported and listed in Tern -> Modules ?"

@angelozerr
Copy link
Owner

What I mean is let users to add new Modules to tern.

Today it's not possible, the list of modules are hard coded.

This is possibly duplicate of #43

Yes that's it. I would like to support custom tern module. The big problem is that you must host your tern plugin file inside the tern/node-modules folder which belongs to an Eclipse plugin. I don't know with node.js if we can have a file outside node-modules folder?

but the confusion already start with terms, as I see defs/plugin/modules ....

Some screenshot are out of updated. Today we speak about tern module which is :

"How do I get my favorite framework supported and listed in Tern -> Modules ?"

Today this list is hard coded. When I will have time, I would like to know if it's possible to load it with npm install and provide some UI to load tern plugin/defs from a git. Must find time for that -(

@paulvi
Copy link
Contributor Author

paulvi commented Sep 26, 2014

Today it's not possible, the list of modules are hard coded.

OK, then the instruction should mention that it is not possible to do in Eclipse,
but I guess no Java and Eclipse API knowledge is required.

I don't know with node.js if we can have a file outside node-modules folder?

If it is packaged as npm module, that it can be updated with npm install.
Also it is possibly to require() any .json file at any location (as a short cut for opening and reading file)
i.e. Node.js can read file from anywhere, the question is how to pass file path.

OK, so modules is either plugin or typedef.

BTW, https://github.com/angelozerr/tern.java/wiki/Tern-Toolings has tools list, but not how to get results

When I will have time, ...

Just publish any module with npm publish (read doc via npm help publish, just try it is straight forward)

try on tern-lint to publish
related to angelozerr/tern-lint#26

@angelozerr
Copy link
Owner

OK, then the instruction should mention that it is not possible to do in Eclipse,
but I guess no Java and Eclipse API knowledge is required.

I would like to support this feature soon. The basic idea is to list plugins/defs from the filesystem folder :
https://github.com/angelozerr/tern.java/tree/master/core/tern.core/node_modules/tern :

  • official plugins are hosted inside /plugin
  • official typedef are hosted inside /defs
  • custom plugins hosted inside /node_modules/tern-*

If it is packaged as npm module, that it can be updated with npm install.

When tern server is started it loads plugins from the tern folder : tern/plugins and tern/node_modules/tern-*

I don't know if we could have a tern-xxxx plugins outside tern/node_modules/tern-* (without having some require(../../tern) inside the tern plugin)

BTW, https://github.com/angelozerr/tern.java/wiki/Tern-Toolings has tools list, but not how to get results

Wizard gives you the capability to generate tern defs, plugins and Web Browser editor. The missing features is to use the generated tern plugin with Eclipse :

  • list of module should not hard coded.
  • where store the generated tern plugin? Today I'm afraid that we must store it inside tern/node_modules/tern-* folder. This folder is hosted in the tern.core Eclipse plugin.

try on tern-lint to publish

I will try it

@paulvi
Copy link
Contributor Author

paulvi commented Sep 26, 2014

When tern server is started it loads plugins from the tern folder : tern/plugins and tern/node_modules/tern-*

I don't know if we could have a tern-xxxx plugins outside tern/node_modules/tern-* (without having some require(../../tern) inside the tern plugin)

tern as in https://github.com/angelozerr/tern.java/tree/master/core/tern.core/node_modules/tern
may be regarded as TernConfiguration Node.js project. Any npm install a-module will add new modules (of cause they are to follow naming conventions)

package.json may be update to list used modules, then npm install will update all used modules.

@angelozerr
Copy link
Owner

Thank's for your info. I will recontact you when I will develop custom tern module.

@paulvi
Copy link
Contributor Author

paulvi commented Dec 11, 2014

ref #19 #20

@paulvi
Copy link
Contributor Author

paulvi commented Dec 11, 2014

What I mean is let users to add new Modules to tern.

Today it's not possible, the list of modules are hard coded.

https://github.com/angelozerr/tern.java/wiki/Creating-Tern-Plugins should just start from general thing like new project and pushing it to GitHub

http://ternjs.net/doc/manual.html has no instructions ternjs/tern#443

@angelozerr
Copy link
Owner

Today it's not possible, the list of modules are hard coded.

Now this list is not harde coded and you can use your own tern repository.

@paulvi
Copy link
Contributor Author

paulvi commented Dec 11, 2014

#43 is also related.

Now there are #19 #20 #43 #125 and ternjs/tern#443 that all should tell what advanced user should do.

Please put current knowledge and state into wiki https://github.com/angelozerr/tern.java/wiki/Creating-Tern-Plugins and close some issues.

I am closing this one as outdated, plus wiki page though empty is there.

Thank's for your info. I will recontact you when I will develop custom tern module.

You forgot when doing Tabris POS

Now this list is not harde coded and you can use your own tern repository.

I am adding to wiki

@paulvi paulvi closed this as completed Dec 11, 2014
@angelozerr
Copy link
Owner

Please put current knowledge and state into wiki https://github.com/angelozerr/tern.java/wiki/Creating-Tern-Plugins and close some issues.

Is not the same wiki page than https://github.com/angelozerr/tern.java/wiki/Tern-Toolings-Server-Plugins ?

@paulvi
Copy link
Contributor Author

paulvi commented Dec 11, 2014

I am sorry to miss that.
The page was not in SideBar list https://github.com/angelozerr/tern.java/wiki/_Sidebar/_edit

Could you please move content to https://github.com/angelozerr/tern.java/wiki/Creating-Tern-Plugins

because "Tern Toolings Server Plugins" is confusing name

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

No branches or pull requests

2 participants