Generate uml class diagram from existing angularjs code - angularjs

I am looking for a tool like Angularjs explorer viewer that can generate mvc diagram including all the controller/services and the dependencies between them from existing angularjs code. This one is a plugin in eclipse. And I failed to installed it when I tried to followed the instruction Getting started.
the error said :
Cannot complete the install because one or more required items could
not be found. Software being installed: tern feature
0.3.0.201406242125 (tern-feature.feature.group 0.3.0.201406242125) Missing requirement: Tern - Server - Nodejs 0.3.0.201406242125
(tern.server.nodejs 0.3.0.201406242125) requires 'package
org.apache.http 0.0.0' but it could not be found Missing
requirement: Tern - Server - Nodejs 0.4.0.201407211814
(tern.server.nodejs 0.4.0.201407211814) requires 'package
org.apache.http 0.0.0' but it could not be found Cannot satisfy
dependency:
From: tern feature 0.3.0.201406242125 (tern-feature.feature.group 0.3.0.201406242125)
To: tern.eclipse.ide.core [0.3.0.201406242125] Cannot satisfy dependency:
From: Tern - Eclipse - Core IDE 0.3.0.201406242125 (tern.eclipse.ide.core 0.3.0.201406242125)
To: bundle tern.server.nodejs 0.2.0
Is there any?
Thanks

This question is about installation of AngularJS Eclipse. It seems that your Eclipse has not the plugin org.apache.http.
I suggest you to use Eclipse Luna (4.4) and the distribution Eclipse IDE for Java EE Developers.

AngularJS Eclipse is based on tern.java which is based on tern.js a JS inference engine. So you could use just tern.js with Grunt task for instance to call angular tern plugin which will parse your JS files and returns a JSON with Module, Contrroller, etc. Never done that but I think it's possible.

Related

AngularJS plugin for intellij 15.0.1 not found

I am trying to install the AngularJS plugin for Intellij IDEA (https://plugins.jetbrains.com/plugin/6971?pr=idea), but am facing the following issues:
when using the plugin browser, IDEA does not find it (only result is Ionic Framework when searching AngularJS)
when downloading and installing manually, I get the following message: "Plugin AngularJS depends on unknown plugin JavaScript". A plugin I cannot, obviously, find.
Is this plugin no longer available for Intellij IDEA?
As mentionned by Lawrence, this is not available for Community edition.

What plugins do I need to install to get WebStorm functionality in IDEA?

My company (Java + AngularJS shop) is evaluating both IDEA and WebStorm. Based on some Googling, it looks like IntelliJ IDEA is a superset of the *Storm editors, assuming you install the proper plugins (source1, source2):
Practically, if we purchased IntelliJ IDEA 13.1 Ultimate, what plugins would we need to get these WebStorm features?
Grunt integration
AngularJS integration
Bower integration
Karma integration
JavaScript auto-complete/navigation
Grunt and Bower support, as well as javaScript completion, etc. are available out of the box. AngularJS, Node.js and Karma plugins have to be installed from the repository (Settings/Plugins, Browse Repositories..., type plugin name in the search box to quickly locate it).
Just search the repo, you can do this from within intellij with a nice gui aswell.
javascript code complete is in vanilla (not an external plugin) version btw, as I would imagine most of the others are. Just try the trial version.

NoClassDefFoundError: Could not initialize OauthRawGcsServiceFactory on production environment

I'm using appengine-sdk 1.9.3.
In devserver, works in Eclipse and Ant normally.
When I deploy (update) to appengine (production environment), I get this error:
event.getResults(): [<pre>Error for /p7/formPanelServlet
java.lang.NoClassDefFoundError: Could not initialize class
com.google.appengine.tools.cloudstorage.oauth.OauthRawGcsServiceFactory
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createRawGcsService(GcsServiceFactory.java:42)
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:34)
at com.bitvisio.p7.server.FormPanelServlet.<init>(FormPanelServlet.java:27)
At FormPanelServlet.java:27, the code is:
private final GcsService gcsService = GcsServiceFactory
.createGcsService(new RetryParams.Builder()
.initialRetryDelayMillis(10)
.retryMaxAttempts(10)
.totalRetryPeriodMillis(15000)
.build());
I put the lib appengine-gcs-client-0.3.9.jar in war/WEB-INF/lib. I think there is a problem with this lib.
Thanks for help.
Always use tools like Maven or Ivy to resolve dependencies for you. Copying JARs to war/WEB-INF/lib/ directory and editing .classpath file manually will be painful and may not help you always. If you use Eclipse & Google App Engine plugin, use Add Google APIs... as mentioned here - Google Plugin for Eclipse. In my case, adding Cloud Storage API via Google Plugin for Eclipse helped resolve this NoClassDefFoundError.
I had the same problem. I use Ivy to resolve dependencies and always get the latest.integration (with Maven use RELEASE) for revisions.
However I usually ignore transitive libraries. It looks like Google is expanding the API family - at least splitting out discrete functionality.
There are now quite a few transitive dependencies and it seems they released a new version of the GCS client around the same time as 1.9.3.
Getting all dependencies and packaging them in my deployment fixed my issue. I did not have the issue in development which made it more confusing.
You are facing this issue because you are not adding the some of the jar like
google-api-services-storage-v1-rev78-1.22.0.jar download link
joda-time-2.94.jar download link
guava-19.0.jar link to download
you can use the different version of jar according to your appengine-gcs-client jar file.
Note : Add all these jar and build path with the project and problem will get solve.

Plugin AngularJS depends on unknown plugin JavaScript

I'm trying to install the AngularJS plugin, I go to the plugins page in the Settings and click install from disk, I choose angular-js-plugin.jar from my filesystem and get this error:
Plugin AngularJS depends on unknown plugin JavaScript
The JetBrains repo for JavaScript if here but there is no plugin called 'JavaScript'.
Where do I get the correct pluging from?
The JavaScript plugin is only included in the Ultimate version. If you are using the community edition, it won't work.

GAE/GWT: Error loading modules: Unable to find 'com/androidstartup/serialization/KPadProject.gwt.xml'

I am using Eclipse 3.5 with GAE SDK 1.3.7 and GWT SDK 2.1.0 and Restlet 2.0.3. When I run my app, the console log shows:
Loading modules
com.androidstartup.serialization.KPadProject
[ERROR] Unable to find 'com/androidstartup/serialization/KPadProject.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doSlowStartup method
The main module /KPadProject.gwt.xml is in the root package. I checked out the configuration and I think it's all right.
At this point I don't know what to do to solve this problem.
In my experience, one of these two solves the problem:
Project -> Properties -> Java build path:
Is your XML included in the source?
Is the order okay?
In the project you are loading, include the KPadproject as follows:
<inherits name='com.androidstartyp.serialization.KpadProject'/>;
That is the entire path, with dots instead of slashes, and without the .gwt.xml extension.

Resources