CoffeeScript For NetBeans 8.0 Plugin: Set Target Folder For Compiles JS - netbeans

I am using this Plugin for NetBeans CoffeeScript For NetBeans to compile my CoffeeScript File to JS.
For the project I have this folder.
http://prntscr.com/7euyfe
The coffee file will go to the app/coffee and the compiled goes to app/js.
What I want is, when I compile the File, it will go to the /app/js folder. But as it stands, it only dumps the file on the same folder where the coffee file is.
There is a setting in the Tools > Options, where I can set the target directory as seen in the screenshot.
http://prntscr.com/7euyur
But when I set it, the compiled result became like this.
Is there anyone who use NetBeans know how to do set this up?

You can use Grunt/Gulp to compile coffescript instead of the plugin. Set watcher (grunt-contrib-watch) to watch your coffee scripts files and set the watcher to execute grunt-contrib-coffee task upon file save.

Related

Netbeans is there a way to manualy complile all .less files in one directory (which has subdirectories)

I have a dir where are lots of subdirs and inside those are .less files, until today my settings were "compile on save" so if i changed some .less files netbeans would automatically compile them on save, but now i'm looking for a functionality to recompile all .less files in a dir even if some weren't changed, is there a way to do that?
You can use Grunt task to that (and invoke the task from IDE assuming you have 8.0 and higher) or maybe try to disable Less compilation in NetBeans, close the project properties dialog and enable it again. It could trigger compilation.

Custom Makefile With Eclipse CDT

I have a C++ project with 3 .hpp files and 1 .cpp file, and a custom Makefile. The code and the Makefile for this project already existed, so I right clicked in the Project Explorer, and did Import->Existing Code as Makefile Project I named my project and pointed the location to the root dir of the project which contains all of my files. And I selected MinGW GCC as my toolchain because that is the compiler that I have. Then I went to Project->Properties->C/C++ Build and unchecked Generate Makefiles automatically
Then I changed my Build directory by choosing File system and navigating to the root directory of my project which contains all of my files. The Build directory is C:\Users\Ryan\Desktop\School\CSE\CSE 100\pa1-rbridges
Then I changed the Build command to make -f C:\Users\Ryan\Desktop\School\CSE\CSE 100\pa1-rbridges\Makefile bst where bst is a target in my Makefile and my Makefile is at that location. When I click the hammer on the toolbar to build my project, nothing happens. When I try to run my project, I get Launch failed: Binary not found.
I just want my project to use my Makefile and build properly.
I have searched Google and stack overflow for hours trying to figure out how to get this to work and have had no luck. Any help is appreciated.
The solution to these sorts of problems usually begins with breaking them down.
First try and build build from the command line. Does the "make -f ..." work from the command line?
It could be an issue with MinGW not working properly.
It sounds like you have done everything correctly as far as eclipse goes. You may find a clue in the eclipse console window.
Too late for giving an answer. But this is for the other people who end up here.
You need to create a new run configuration in Run->Run Configuration... for your project, and then type a name for the output binary file like Debug\name.exe in 'C/C++ Application' box. The name must be the same as the project name.

How to use SASS with Netbeans 8.0.1

I'm trying to use SASS in Netbeans 8.0.1. I have Ruby and SASS set up correctly based upon the feedback from ruby -v.
I have a web application set up with css and scss folders under Project\Web Pages\resources.
My input and output are set to /scss and /css respectively and I have checked 'Compile Sass File on Save'. I have created a styles.scss file and added some SASS/CSS.
When I save the styles.scss file, is it supposed to generate a styles.css? Nothing happens when I save or compile the project.
Has anyone run into any similar problems or have suggestions on how to debug this problem?
Thanks in advance!
Installing SASS on Windows10, Ruby2.2.3, Netbeans8
Download SASS for Windows - RubyInstaller.org
Install Ruby like:
Search windows for CMD (Command Prompt) and start it.
Access Ruby's bin folder using cd \Ruby\bin (Hit Enter)
Install sass using the command gem install sass (Hit Enter to install)
Wait for the installation to finish
In Netbeans open
Options → Tools → Miscellaneous (HTML/JS in v8.1+) → CSS Preprocessors tab
Enter the path to the installed sass.bat C:\Ruby\bin\sass.bat than click Install Sass.
Confirm your changes with Apply / OK
Use an existing one or Create a New Project (HTML5, PHP, whatever...).
After the project is created open the Projects window.
Right-Click your project and choose > Properties.
From the Project Properties popup select CSS Preprocessors.
Select the Compile SASS Files on Save.
(If you want the compiler to automatically minimize your .css result file, use --style compressed under the Compiler Options)
You can see from the image above that the compiler uses two default Input(watchable)/Output(compiled destionation) folders paths.
Create the scss folder (an optionally the css folder) in your project as well.
You're done!
As soon you create a new .scss file or you save it Netbeans will automatically compile the file to .css in the /css folder.
Yes, when you save the file, the css should be created/updated. I think you have wrong mapping for the input/output directories. The paths need to be relative to site root/web root. I don't know for sure what your project is (HTML5 or PHP or Java Web or other?), but if you have Java Web project, then the paths need to be
resources/scss -> resources/css
Salam guys, the below image form my (Command Prompt with Ruby) says that:
"Ruby Sass has reached end-of-life and should no longer be used"
For modern SASS and Netbeans we can just use https://github.com/sass/dart-sass/releases/tag/1.56.1 and install it in our PATH.
The release has the sass.bat file we need (as Roko C. Buljan pointed in his tutorial for Ruby).
There's not need to install Ruby and any other environment.
I applied this on Netbeans 15

How can I setup Eclipse to compile single SASS Files?

We're trying to setup Eclipse to automatically compile .sass files on change. However all answers to this on stackoverflow and on the internet allways compile ALL css files in a folder.
This is unacceptable for us because we have 58 CSS files in the folder, with a combined size of 142kb. Both on Windows and Mac it takes about 45 seconds to compile the files, and this happens after every save.
Is there a way to setup Eclipse / an Ant build file to compile only the one file that was saved?
Edit: Or is there a way to launch sass --watch ONCE when opening the project in Eclipse?

update eclipse workspace with ant-errors

I have LaTeX project that is hosted in the eclipse environment. To compile the LaTeX code I'm using an ant script that calls pdflatex.exe from a local MiKTeX installation. This works fine for me so far.
Now the question: In case the compilation with pdflatex.exe detects some errors in the .tex files. Is there any way to tell eclipse from the ant script, what files have errors and to mark those files in the project explorer with a red mark or something so that they are easily to identify?
The marks are called label decorations. How do I set them via an ant script? Is there some file-property that could be set eventually?
You can't add error markers on project resources from an Ant script, but you could try TeXlipse plugin that may do the work for you.