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

Make the scratch buffer work with cljs #1789

Closed
expez opened this issue Jun 22, 2016 · 7 comments
Closed

Make the scratch buffer work with cljs #1789

expez opened this issue Jun 22, 2016 · 7 comments

Comments

@expez
Copy link
Member

expez commented Jun 22, 2016

Rotating the connection should dispatch to the right buffer. Alternatively we could add a cljs scratch buffer.

@bbatsov
Copy link
Member

bbatsov commented Jun 24, 2016

I'm not sure what exactly do you refer to. More details, please.

@expez
Copy link
Member Author

expez commented Jun 24, 2016

Right now the scratch buffer just dispatches to the clj buffer and there's noting to be done about it. Cljs users would like a scratch buffer too!

@bbatsov
Copy link
Member

bbatsov commented Jun 24, 2016

There's a command to set the connection used by the scratch buffer. Probably we can add something to directly create a cljs scratch or we can simply prompt at buffer creation time about the connection that should be associated with a scratch buffer.

@bbatsov
Copy link
Member

bbatsov commented Oct 9, 2016

See the changes I've made here - hopefully it's now clear how to change the buffer's connection.

@vspinu
Copy link
Contributor

vspinu commented Aug 1, 2017

This connection hack (among quite some others) is essentially due to unavailability in cider of an intermediate construct between connection process/buffer and connection's project-dir. None of the currently available "connection" units corresponds to the much needed "interaction connection" or "eval connection".

FYI, I started looking into refactoring the connection system and I am on the way to drop this change as well as the whole "default-connection & friends" hairdo in favor of a hopefully much simpler interaction model.

@achikin
Copy link

achikin commented Jan 7, 2019

Looks like cider-toggle-buffer-connection command is not available.

@vspinu
Copy link
Contributor

vspinu commented Jan 12, 2019

It has been removed with the new connection system. I think the best option would be to allow the scratch to be of various types clj, cljs and the default "cljc". You could choose the type with C-u on cider-scratch if you really need that.

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

No branches or pull requests

4 participants