Coder Social home page Coder Social logo

Comments (15)

lavrton avatar lavrton commented on June 22, 2024

Try to use "Coffe: Display Javascript"

from sublime-better-coffeescript.

Siyfion avatar Siyfion commented on June 22, 2024

Sorry @lavrton I don't really understand what you're suggesting... My settings are simply:

{
  "compileOnSave": false
}

So as to stop the javascript files from being automatically generated. But the shortcut alt+shift+d for displaying the compiled javascript doesn't work with that option off.

from sublime-better-coffeescript.

lavrton avatar lavrton commented on June 22, 2024

Command palette. Press ctrl+shift+p. Then find Coffee: Display Javascript

from sublime-better-coffeescript.

Siyfion avatar Siyfion commented on June 22, 2024

Ah, okay thanks! Is there a way I can assign this to a keyboard shortcut?

from sublime-better-coffeescript.

lavrton avatar lavrton commented on June 22, 2024

I have this option too:

{
  "compileOnSave": false
}

And alt+shift+d works for me.

from sublime-better-coffeescript.

Siyfion avatar Siyfion commented on June 22, 2024

Hmmm.. Maybe because I'm running Linux it's not working?

from sublime-better-coffeescript.

lavrton avatar lavrton commented on June 22, 2024

I have linux too. Can you open console and print output after keys pressed, please. ctrl+` from console.

from sublime-better-coffeescript.

Siyfion avatar Siyfion commented on June 22, 2024

Nothing at all gets printed.

from sublime-better-coffeescript.

lavrton avatar lavrton commented on June 22, 2024

Close this issue for now. I can't reproduce your bug with keyboard shortcut. You can try other command:

[
    {"keys": ["alt+shift+s"], "command": "check_syntax"}
,   {"keys": ["alt+shift+r"], "command": "run_script"}
,   {"keys": ["alt+shift+t"], "command": "run_cake_task"}
,   {"keys": ["alt+shift+c"], "command": "compile"}
,   {"keys": ["alt+shift+d"], "command": "compile_and_display", "args": {"opt": "-p"}}
,   {"keys": ["alt+shift+l"], "command": "compile_and_display", "args": {"opt": "-t"}}
,   {"keys": ["alt+shift+n"], "command": "compile_and_display", "args": {"opt": "-n"}}
,   {"keys": ["alt+shift+w"], "command": "toggle_watch"}
,   {"keys": ["alt+shift+z"], "command": "toggle_output_panel"}
]

Is any of them work?
Please, open new issue if you need help.

from sublime-better-coffeescript.

Siyfion avatar Siyfion commented on June 22, 2024

@lavrton Nope, non of the key-bindings work at all.

from sublime-better-coffeescript.

aponxi avatar aponxi commented on June 22, 2024

@Siyfion You are on sublime text 3 right?

You are able to display the compiled javascript by pressing alt shift d and to run the script and display the output by pressing alt shift r.

I'm on Ubuntu 13.04 with ST3 and nothing gets printed at console `ctrl`` when I use those hotkeys. However, they work fine.

from sublime-better-coffeescript.

Siyfion avatar Siyfion commented on June 22, 2024

Very weird, same version of Ubuntu (13.04) and yet nothing.. Not sure what to try next! :\

from sublime-better-coffeescript.

aponxi avatar aponxi commented on June 22, 2024

Try setting the coffee binary location. Go to Better CoffeeScript settings and edit the "binDir": "/usr/local/bin" setting.

When you hit alt shift d or use command pallet to make it compile coffee to js, does it open a new tab where it was supposed to appear? This is important. If it is openning an empty tab, then the plugin is working but fails to run the coffee command to actually compile.

Also when you hit alt shift r does it open up a panel on the bottom where the output would be displayed? Again, is it an empty panel or no panel at all?

As a last resort, in case you installed via package manager, try installing the plugin manually. Basically download the code from the repo and place it under Better CoffeeScript folder under plugin folder. Readme has information on how to do this.

from sublime-better-coffeescript.

Siyfion avatar Siyfion commented on June 22, 2024

All the command pallet functions work fine, it's only the shortcuts that don't work. So it's unlikely to be the binary location, otherwise I would assume neither would work?!

I'll have a bit more of a play around with it tonight, uninstall it and try reinstalling from the repo directly.

from sublime-better-coffeescript.

aponxi avatar aponxi commented on June 22, 2024

Yes you are right. Then it might be an issue about ST3 API, maybe the shortcuts need to be corrected...

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.