Comments (15)
Try to use "Coffe: Display Javascript"
from sublime-better-coffeescript.
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.
Command palette. Press ctrl+shift+p
. Then find Coffee: Display Javascript
from sublime-better-coffeescript.
Ah, okay thanks! Is there a way I can assign this to a keyboard shortcut?
from sublime-better-coffeescript.
I have this option too:
{
"compileOnSave": false
}
And alt+shift+d
works for me.
from sublime-better-coffeescript.
Hmmm.. Maybe because I'm running Linux it's not working?
from sublime-better-coffeescript.
I have linux too. Can you open console and print output after keys pressed, please. ctrl+` from console.
from sublime-better-coffeescript.
Nothing at all gets printed.
from sublime-better-coffeescript.
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.
@lavrton Nope, non of the key-bindings work at all.
from sublime-better-coffeescript.
@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.
Very weird, same version of Ubuntu (13.04) and yet nothing.. Not sure what to try next! :\
from sublime-better-coffeescript.
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.
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.
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)
- comment on js file HOT 1
- How to pass in custom arguments to coffeescript binary
- Not working on Windows ? HOT 1
- Plugin Not Working HOT 1
- Cake task output
- Execute me, how to write a similar key binding for ES6 ${}
- Separate CSON from CoffeeScript
- Why is so slow the saving with SublimeText3 and Better-coffescript?
- This keeps popping when loading: rule scope:source.rust##anon_struct-tuple_0 has a scope name, but is unreachable HOT 1
- modules - import and export HOT 1
- Ability to use variable path for binDIR and envPATH HOT 2
- # -> #{} Code Snippet Not Limited to CoffeeScript Files
- Would it be possible to properly highlight regex literals?
- Please update for CS v2.0 HOT 3
- NEED NEW MAINTAINER - PLEASE POST HERE HOT 6
- [Feature request] Regular expressions highlights HOT 1
- if "class" appears in coffeescript code, e.g., class_name, subsequent lines are indented
- Nothing matching obj.method 'arg'
- Add support for Sublime Text 4 (build 4121) HOT 1
- Last character missing in auto-suggest in ST4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublime-better-coffeescript.