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

coffee-script doestn't auto complete #5896

Closed
huaoguo opened this issue Apr 26, 2016 · 10 comments
Closed

coffee-script doestn't auto complete #5896

huaoguo opened this issue Apr 26, 2016 · 10 comments
Labels
- Mailling list - Feature request JavaScript stale marked as a stale issue/pr (usually by a bot)

Comments

@huaoguo
Copy link
Contributor

huaoguo commented Apr 26, 2016

Description

CoffeeScript doesn't auto complete

Reproduction guide

  • Start Emacs
  • Open a .coffee file
  • write code

Observed behaviour:
doesn't have auto completion support

Expected behaviour:
has auto completion support

System Info

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.105.19
  • Spacemacs branch: master (rev. 3274e7d)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(auto-completion emacs-lisp javascript git markdown react org clojure yaml)

Backtrace

BACKTRACE IF RELEVANT
@TheBB
Copy link
Collaborator

TheBB commented Apr 26, 2016

Yes, there's no company backend for coffeescript. If you find one, do let us know.

@huaoguo
Copy link
Contributor Author

huaoguo commented Apr 27, 2016

When I M-x invoke company-mode in coffee file, it realy works. So I think company-mode has support it, we just need to enable it?

@TheBB
Copy link
Collaborator

TheBB commented Apr 27, 2016

You're getting the basic autocompletion then, I believe, not semantic. Not sure how useful that is, since it's pretty straightforward and knows nothing of the language you're writing.

@huaoguo
Copy link
Contributor Author

huaoguo commented Apr 27, 2016

If you write coffeescript,you will know it is useful.

@syl20bnr
Copy link
Owner

We can add company to the coffeescript hook then.

@huaoguo
Copy link
Contributor Author

huaoguo commented Apr 28, 2016

Cool @syl20bnr

@JuanCaicedo
Copy link

JuanCaicedo commented Feb 14, 2017

On the latest develop, I see company-disabled with coffescript by default. How do I add it to the coffeescript hook like you mentioned @syl20bnr ? Or should it already be enabled by default and I'm seeing a bug?

I tried adding (add-hook 'coffee-mode-hook 'company-mode) to dotspacemacs/user-config, is that correct?

@sdwolfz
Copy link
Collaborator

sdwolfz commented Feb 14, 2017

@JuanCaicedo let me know if #8365 fixes your problem.

To check out my branch execute the following commands:

cd ~/.emacs.d
git remote add sdwolf https://github.com/sdwolf/spacemacs.git
git fetch sdwolf feature/coffee-dumb-autocomplete
git checkout feature/coffee-dumb-autocomplete

@JuanCaicedo
Copy link

@SDWolf Thanks for the step by step instructions! I'll comment on your PR

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Mailling list - Feature request JavaScript stale marked as a stale issue/pr (usually by a bot)
Projects
Mailing list
  
Acknowledged
Development

No branches or pull requests

6 participants