Coder Social home page Coder Social logo

Comments (8)

aponxi avatar aponxi commented on July 2, 2024

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:

  1. the output folder you specified
  2. If the output folder exists
  3. (this one is already not commented) the output folder you specified again, like this print "Compile dir specified: " + compile_dir
  4. 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)
  5. The absolute path to the folder, in your case it should be something like /projectroot/js via this debug line print folder (This is also available by default, you don't have to uncomment that)
  6. arguments that is being supplied to the coffee compiler. In example something like coffee -b --output /projectroot/js
  7. 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.

arjansingh avatar arjansingh commented on July 2, 2024

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.

aponxi avatar aponxi commented on July 2, 2024

You aren't on Windows are you?

from sublime-better-coffeescript.

arjansingh avatar arjansingh commented on July 2, 2024

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.

aponxi avatar aponxi commented on July 2, 2024

I'll run tests on linux, and check for compatibility... Thanks for the updates :)

from sublime-better-coffeescript.

arjansingh avatar arjansingh commented on July 2, 2024

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.

aponxi avatar aponxi commented on July 2, 2024

Ok... I haven't tested it yet, and merged the pull request. I hope it works! 😃

from sublime-better-coffeescript.

arjansingh avatar arjansingh commented on July 2, 2024

😃 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.