Why can't I run Coffeescript project in Netbeans? - netbeans

[Newbie] I downloaded Netbeans 7.3 RC2 and installed it and also the CoffeeScript plugin. Then I created a new CoffeeScript project which gave me two files - HelloWorld.coffee and Cakefile. I try to run the project but the Run Main Project command under the Run menu is dim indicating that I can't select it. How do I run this program? (I'm brand new to this; I haven't tried any other versions of NetBeans or Coffeescript.)

the netbeans-coffeescript-plugin is used to have syntax-highlighting for cofeescriptfiles in the netbeans ide. you still need a third party tool to compile your coffeescripts into javascript in order to run them. you can use the guard gem in ruby for example

Related

Netbeans 8.1, Angular 2: Cannot find module 'angular2/core', base project created with Angular-CLI

Since Netbeans is used as my primary editor, and the project is built with angular-cli, this is a cosmetic issue, the project builds and deploys fine using ng serve -o, this is just an annoyance as I like my Netbeans to flag errors in files that actually have errors.
This is a Netbeans specific question, there are many "Cannot find module 'angular2/core'" questions but each requires different IDE configuration (VS, Webstorm, etc) I have not found one that addressed this issue in Netbeans.
To recreate the issue:
(using angular-cli)
ng new example-of-problem
Then opening example-of-problem in Netbeans:
As you can see from the above, a number of files have errors. All of which are resolving paths starting with '#angular' you can see it can resolve local paths fine (./app.component).
Some solutions request adding: "moduleResuolution":"node" to tsconfig.json however this is a standard angular-cli build and that line is of course present.
Versions of software:
Netbeans 8.1, Node 7.7.4, #angular/cli 1.0.0
The solution is to simply upgrade to netbeans 8.2. The typescript support has been fixed and the lines which are flagged above are no longer flagged.
Netbeans should automatically install the TypeScript Editor plugin, and as a matter of convenience install the netbeans-angular2-code-templates plugin.

Is there a workflow to update a Netbeans 7.0.1 project using Swing to use Netbeans 7.4?

(I'm new to Netbeans and my Java experience is rudimentary and limited to using Processing with Eclipse, so this may be a very basic question.)
I am working with an open source project which was developed using NetBeans 7.0.1 for gui stuff. The project will load and run in NetBeans 7.4 but the GUI is not editable. Is there some workflow to update the GUI? I don't want to rebuild it from scratch but I would like to use the latest version of NetBeans.
The error msg I get is below. I suspect I face rebuilding.

How to use Netbeans plugin?

I'm using NetBeans 7.2.1 and I'm new to Java (but I program in C# for most of the time).
I recently downloaded, installed and activated a plugin (nbm file) from Java.net. I had been struggling on how to "Import" or "Package" it within my JFrame application in order for me to start writing the code.
Here is the link to download the plugin: http://java.net/projects/nbplugin-avr/downloads
Can some one please guide me on this, it is greatly different in C#.
plugins work on netbeans app. it adds functions to the netbeans IDE. plugins aren't classes you can import to your projects.
you should also check if that plugin is written for netbeans 6 or 7. netbeans 6 plugins dont work on netbeans 7

Does Eclipse ship ant with its own distribution?

First time using Apache Ant (I'm excited and overwhelmed at the same time!) for automating a Java app.
I did not go to the ant website and download ant directly. Rather, I'm using the standard plugin that ships with Eclipse. From Eclipse, I can run test build.xml projects perfectly. But when I go to run ant directly off the command-line, Windows doesn't recognize it as a recognized command.
This leads me to believe that I either do not have ant installed, or I have not configured it properly (at all). If it's not installed, then why do these build.xml scripts work when I fire them inside of Eclipse? Does Eclipse ship with its own distrib of ant that isn't accessible from the cmd line?
And if it's just a config issue, what do I need to do in order to get ant to run a buildscript of my own flavor?
I want to start using Apache Ivy and in order to run the demos I first need ant up and running from the command line.
Thanks for any help or insight :-)
Does Eclipse ship with its own distrib of ant that isn't accessible from the cmd line?
Essentially, yes. Eclipse bundles the core Ant runtime plus its own extensions and integration, but it's private to the Eclipse installation.
If you want to run the builds from outside of Eclipse, you need to download and install the full distribution of Ant.

Failure creating clojure project in Netbeans

I decided to take a look at Clojure and thought the best and easiest method for me would be to use Netbeans with the Enclojure plugin as I didn't want to have to learn Emacs at the same time. I installed Netbeans 6.9.1 together with the latest JDK using the bundled install (on Windows 7). All went smoothly. I then followed the instructions at http://www.enclojure.org/gettingstarted for installing the enclojure plugin.
When creating a new Clojure application I get the following and see no project files :
java.io.IOException: Could not connect to URL nbresloc:/org/enclojure/ide/templates/project/ClojureProjectTemplate-1.1-distribution.zip. No such resource was found.
Maven is working using mvn --version
I have installed on both Windows 7 and Ubuntu 10.04 (same result).
I have looked on the Enclojure forum and there is a recent open thread for this issue, but it is not solved by anybody presently.
I have Java SE enabled in Netbeans
I have tried enabling the different platform versions of Clojure, 1.0.0, 1.1.0, etc..
The REPL seems to be working happily in Netbeans : (printf "hello") hellonill
I did try ClojureBox on Windows 7, but again that's Emacs, but emacs failed to start the server and hung there and became totally unresponsive.
I come from a .Net background (not Java) so my knowledge of the Java environment is somewhat lacking. My reason for looking at Clojure and not Java.
I am new to Netbeans
If you're interested in a working Maven pom, here is one I've used with Enclojure successfully:
http://puredanger.com/techfiles/100624/pom.xml
There are some project settings you'll need to change and a few dependencies to remove but it might be a good start. In general, I usually create the pom first and then just import the project into NetBeans rather than using the NetBeans options to create projects.
By the way, the REPL work in Enclojure has been split and is coming soon to the Eclipse plugin Counterclockwise.
I had written a small post on it on my blog.
Anyways here is the procedure:
On searching realized that this is a common problem for installing it on > Netbeans 7.. But with some manual tweeks managed to install it. Here are the instructions to install on Netbeans 7. plus:
Install Netbeans 7. You need only the Java SE version.
First Run of Netbeans after installation. Activate feature Java SE
Activate features is on the Start page or from Tools,->Plugins>Installed, click ‘Activate next to the Java SE support
Install Maven: It is HIGHLY recommended that you install maven: http://maven.apache.org/download.html
Go to the Netbeans->Preferences, click on the Miscellaneous tab and make sure the External Maven Home path is pointed to your maven install
Download the EnClojure 1.5 version from here. If you want to manually build, you can do that by following the instructions from here.
After downloading the file, In Netbeans: Goto:- Tools ->Plugins->Downloaded->Add Plugins->Downloaded
Then browse to the downloaded file. Later install by clicking at the “install : button.
Restart and you are on the go.
Visit here to build and run hello world project.Basically building the EnClojure 1.5 manually is the tough job. I hope above was useful.