Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7248861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:11:53+00:00 2026-05-28T22:11:53+00:00

I’m not 100% what is causing this but something is getting past me with

  • 0

I’m not 100% what is causing this but something is getting past me with the CoffeeScript compiler (coffee.cmd). I just got node.js and CoffeeScript set up on my Windows machine. If I compile a file like so:

coffee.cmd -c test.coffee

I get test.js out perfectly fine. I have a build script set up in Sublime Text 2 that is generalized so I can build from any directory. When it compiles, it uses the full path of the file, like so:

coffee.cmd -c C:\Users\Spencer\test.coffee

Now, this outputs test.js as expected but for some reason, it also creates an empty ‘-p’ in the same directory. I’m not sure exactly why it’s doing this. Any help would be greatly apprectiated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T22:11:54+00:00Added an answer on May 28, 2026 at 10:11 pm

    I’m not certain as I don’t have Windows handy but command.coffee has this:

    # Write out a JavaScript source file with the compiled code. By default, files
    # are written out in `cwd` as `.js` files with the same name, but the output
    # directory can be customized with `--output`.
    writeJs = (source, js, base) ->
      #...
      path.exists jsDir, (exists) ->
        if exists then compile() else exec "mkdir -p #{jsDir}", compile
    

    And that looks like an excellent candidate for the source of your problem. On a Unixish system (Linux, OSX, FreeBSD, Cygwin, …), mkdir -p will create the desired directory and any intermediate directories that are required. I suspect that the standard Windows mkdir doesn’t know what -p means so it makes two directories instead.

    You could fix your local version of the CoffeeScript compiler’s source to use the Windows-specific version of mkdir -p or you could try installing Cygwin to get a mkdir that knows what -p means. Sending a bug report to the CoffeeScript maintainers would be a nice touch too (but probably not necessary since they’ll find this question on their own).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.