Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tdsfugal opened this issue Oct 11, 2014 · 7 comments
Open

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

tdsfugal opened this issue Oct 11, 2014 · 7 comments

Comments

@tdsfugal
Copy link

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

@markalfred
Copy link
Contributor

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

@tdsfugal
Copy link
Author

tdsfugal commented Nov 1, 2014

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?

@markalfred
Copy link
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?

@iainhouston
Copy link

Picking this thread up again:

  Traceback (most recent call last):
  File "/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

@markalfred
Copy link
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

@iainhouston
Copy link

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. .

@markalfred
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants