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

How do I install a new JSON file for my API into an already installed module? #428

Closed
shehrozhussain opened this issue Jun 29, 2016 · 4 comments

Comments

@shehrozhussain
Copy link

So, in my environment, a module which is a ZIP file is already loaded. Now, later on, I get an updated JSON with new API information from somewhere. How do I install the new JSON to replace the old one in the module that was already loaded?

What public API calls can I use?

@angelozerr
Copy link
Owner

I'm not sur to understand what you wish, but perhaps https://github.com/angelozerr/tern.java/wiki/Tern-IDE-Extension#ternmoduleinstalls is what you are searching.

@shehrozhussain
Copy link
Author

I already have created a module for tern to consume. The module provides the API definition in JSON format. The module is currently a .zip folder with the name tern-mystuff. It has a JSON file with the API called mystuff.json.

Now, during the installation, the module gets installed. What I want to do is update the API provided by a new JSON file when an updated API becomes available (basically, I want to dynamically update the API provided by the JSON file) by replacing the old mystuff.json with a new version of mystuff.json.

@angelozerr
Copy link
Owner

basically, I want to dynamically update the API provided by the JSON file

I don't understand what you expect about tern.java? Which feature do you need? An new extension point? Perhaps it's the same issue than #323 ?

@shehrozhussain
Copy link
Author

Ok, so the issue 323 is somewhat different. Basically what I want to ask: is there any way to update the JSON type definition once the tern plugin is already loaded? How to re-load it?

I believe this functionality is not available (from my understanding), if it is, then kindly point me to the right direction.

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