CoffeeScript compilation works, but .js file is not generated

I have followed all the directions to set up CoffeeScript in IntelliJ IDEA. I've installed the plugins for CoffeeScript and NodeJS, installed the coffee-script package for NodeJS, and I've configured a File Watcher for the project.  I am able to run .coffee files fine within the IntelliJ environment, but the .js files are not being generated (even though I've put arguments in the File Watcher directing .js files to be output to a /js folder.  I can preview the compiled Javascript file by right-clicking on the .coffee file and selecting "Preview Compiled Coffeescript File" and it works fine.  When I choose to "Recompile" the .coffee file, compilation is successful, and when I run it, the code executes properly. Why is the .js file not being generated?   

0
3 comments

>I've installed the plugins for CoffeeScript

 

what plugin? coffeescript-core plugin is bundled with IDEA

 

>the .js files are not being generated (even though I've put arguments in the File Watcher directing .js files to be output to a /js folder

 

please attach a screenshot of you file watcher settings

 

>When I choose to "Recompile" the .coffee file, compilation is successful

 

haven't got what you mean,  there is no such action for coffeescript

0
Avatar
Permanently deleted user

> what plugin? coffeescript-core plugin is bundled with IDEA

I made sure all plugins were installed according to the instructions given here: https://www.jetbrains.com/help/idea/2017.1/coffeescript-support.html

> please attach a screenshot of you file watcher settings

> haven't got what you mean,  there is no such action for coffeescript

Yes there is. I'm referring to the highlighted
menu option below:

0

>I made sure all plugins were installed according to the instructions given here: https://www.jetbrains.com/help/idea/2017.1/coffeescript-support.html

 

So, what plugins did you actually install?

Your file watcher is not functional, as you didn't specify a program to run

>Yes there is. I'm referring to the highlighted

what project type is it? In Java project, this action applies to currently selected file. But, as no coffeescript compilers are actually available, this action will run java compiler, and build errors will be thrown. In static web project, this action is disabled.

Please can you provide a project I can use to recreate the issue?

BTW, as far as I can see from screenshot, you do have cspractice.js generated for your cspractice.coffee - it's shown as a subnode of .coffee file

0

Please sign in to leave a comment.