Skip to content

Alt-shift-D doesn't work for .litcoffee or .coffee.md #190

Open

Description

@tdsfugal

Alt-shift-d (compile and display) works fine on plain old .coffee files, but doesn't display the transpiled .js for literate coffeescript. Literate coffee script (.litcoffee and .coffee.md) files seem to compile and run just fine. Am I doing something wrong?

BTW - excellent plugin. Alt-shift-D is a fantastic productivity boost.

(Using better coffee script in Sublime Text 2 on osX 10.9.5.)

Activity

  1. markalfred commented on Oct 11, 2014

    @markalfred
    Contributor

    Can you confirm that your code is indented 4 spaces, and that the Syntax for the litcoffee file is "CoffeScript (Literate)"?

  2. tdsfugal commented on Nov 1, 2014

    @tdsfugal
    Author

    Yes on both counts.

    • Tabs are set to 2, and I start all code with double tabs, so 4 spaces minimum for all code.
    • View -> Indentation -> "Indent using Spaces" is checked.
    • Have run "convert indentation to spaces" on all files.
    • View -> Syntax -> Better Coffeescript checked on "CoffeeScript (Literate)"
    • Files are all *.litcoffee

    Alt-shift-D used to open up a new unsaved window with the Javascript. Is that what it is supposed to do with .litcoffee? In other words, am I looking for the wrong thing?

  3. markalfred commented on Dec 4, 2014

    @markalfred
    Contributor

    From the sound of it, what you have should give you what you're looking for. Do you see any errors or output in your console when you hit alt+shift+d?

  4. iainhouston commented on May 19, 2015

    @iainhouston

    Picking this thread up again:

      Traceback (most recent call last):
      File "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/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 550, in run_
      return self.run(edit, **args)
      File "CoffeeScript in /Users/.../Better CoffeeScript.sublime-package", line 217, in run
      File "CoffeeScript in /Users/.../Better CoffeeScript.sublime-package", line 88, in brew
      File "CoffeeScript in /Users/.../Better CoffeeScript.sublime-package", line 43, in run
      File "CoffeeScript in /Users/.../Better CoffeeScript.sublime-package", line 74, in _run
      File "./subprocess.py", line 824, in __init__
      File "./subprocess.py", line 1448, in _execute_child
      FileNotFoundError: [Errno 2] No such file or directory: 'coffee'  
    

    in simple test project with almost exact same setup as @tdsfugal except I'm using Sublime Text 3.

    19_05_2015_08_53

  5. markalfred commented on May 19, 2015

    @markalfred
    Contributor

    Hi @iainhouston, do you have coffeescript installed and have its install location set in the binDir? If you follow the steps in the FAQ, this may help to diagnose or resolve the issue

  6. iainhouston commented on May 19, 2015

    @iainhouston

    Yes, it was the binDir setting. I didn't scroll far enough down the README. Please accept my apologies and my thanks for your patient reply. .

  7. markalfred commented on May 19, 2015

    @markalfred
    Contributor

    Happy to help, @iainhouston! Happy coding! 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions