Comments (8)
Thank you for reporting this!
I think you are doing everything right. From a quick glance at the code I see that here it should print the folder you specified in the console.
To help me find the problem you might first want to copy paste the console messages, see if it says something like "Compile dir specified: ../js"
. Then you might want to uncomment (if that's even a real word) the debug messages found in between these lines. Basically let it print
those things I put there for debug purposes.
From that you should be able to see on the console:
- the output folder you specified
- If the output folder exists
- (this one is already not commented) the output folder you specified again, like this
print "Compile dir specified: " + compile_dir
- if the output folder doesn't exist, in your case if js folder doesn't exist, it will create that; if it does then you should see
print "Compile dir did not exist, created folder: " + compile_dir
in console. (Again this is already not commented) - The absolute path to the folder, in your case it should be something like
/projectroot/js
via this debug lineprint folder
(This is also available by default, you don't have to uncomment that) - arguments that is being supplied to the
coffee
compiler. In example something likecoffee -b --output /projectroot/js
- Final arguments that will be passed to the
coffee
compiler, should be the same as the one above IF the compile directory is specified.
Those are the console outputs you should get after removing the #
in front of the lines that are in this area.
Basically just copy paste some console outputs for me so that I can see where the problem lies! If you need any help gathering these information feel free to ask and I'll write a more visual and detailed response!
from sublime-better-coffeescript.
Okay, after uncommenting and adding a quick print
to also print the status out, here's what I get:
Writing file /Users/asingh/Projects/d3maps/coffee/canvas.coffee with encoding UTF-8
Compiling on save...
/Users/asingh/Projects/d3maps/coffee/canvas.coffee
../js
Compile dir specified: ../js
/Users/asingh/Projects/d3maps/coffee
['--output', u'../js', '-b', '-c', u'/Users/asingh/Projects/d3maps/coffee/canvas.coffee']
['--output', u'../js', '-b', '-c', u'/Users/asingh/Projects/d3maps/coffee/canvas.coffee']
Compilation Succeeded
Again, there's still no output to ../js
.
However, if run coffee --output ../js -b -c /Users/asingh/Projects/d3maps/coffee/canvas.coffee
, I do get output.
For reference, if is set compileDir
to false
I get:
Writing file /Users/asingh/Projects/d3maps/coffee/canvas.coffee with encoding UTF-8
Compiling on save...
/Users/asingh/Projects/d3maps/coffee/canvas.coffee
False
['-b', '-c', u'/Users/asingh/Projects/d3maps/coffee/canvas.coffee']
Compilation Succeeded
In this case, I get javascript output in the same directory as my coffee files, which is expected. Let me know if you need me to help out anymore. I'd debug myself a little more, but I'm not that familiar with python.
from sublime-better-coffeescript.
You aren't on Windows are you?
from sublime-better-coffeescript.
Nah. I'm on a Mac. Mountain Lion.
Arjan
Typos by iPhone.
On Mar 10, 2013, at 8:59 PM, Logan Howlett [email protected] wrote:
You aren't on Windows are you?
—
Reply to this email directly or view it on
GitHubhttps://github.com//issues/30#issuecomment-14696772
.
from sublime-better-coffeescript.
I'll run tests on linux, and check for compatibility... Thanks for the updates :)
from sublime-better-coffeescript.
Hey I was digging around. It seems like everything is compiling into /Sublime Text 2/Packages/
.
It appears that if you specify a compileDir
, /Sublime Text 2/Packages/sublime-better-coffeescript
is your default path. Thus, when I used ../js
it was creating js
a level below /sublime-better-coffeescript/
.
If I can get a change working I'll submit a pull request, but I'd thought I'd give you the heads up in case you can solve it faster.
from sublime-better-coffeescript.
Ok... I haven't tested it yet, and merged the pull request. I hope it works! 😃
from sublime-better-coffeescript.
😃 I tested it out on Mac. The filesystem will throw an error if you don't have permissions to create, but I think that's desired behavior.
from sublime-better-coffeescript.
Related Issues (20)
- comment on js file HOT 1
- How to pass in custom arguments to coffeescript binary
- Not working on Windows ? HOT 1
- Plugin Not Working HOT 1
- Cake task output
- Execute me, how to write a similar key binding for ES6 ${}
- Separate CSON from CoffeeScript
- Why is so slow the saving with SublimeText3 and Better-coffescript?
- This keeps popping when loading: rule scope:source.rust##anon_struct-tuple_0 has a scope name, but is unreachable HOT 1
- modules - import and export HOT 1
- Ability to use variable path for binDIR and envPATH HOT 2
- # -> #{} Code Snippet Not Limited to CoffeeScript Files
- Would it be possible to properly highlight regex literals?
- Please update for CS v2.0 HOT 3
- NEED NEW MAINTAINER - PLEASE POST HERE HOT 6
- [Feature request] Regular expressions highlights HOT 1
- if "class" appears in coffeescript code, e.g., class_name, subsequent lines are indented
- Nothing matching obj.method 'arg'
- Add support for Sublime Text 4 (build 4121) HOT 1
- Last character missing in auto-suggest in ST4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublime-better-coffeescript.