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

Upload worksheet to scastie #199

Open
phdoerfler opened this issue Apr 13, 2021 · 3 comments
Open

Upload worksheet to scastie #199

phdoerfler opened this issue Apr 13, 2021 · 3 comments

Comments

@phdoerfler
Copy link

Is your feature request related to a problem? Please describe.
I start hacking in a worksheet, eventually I want to share it with the world.

Describe the solution you'd like
A command to upload the active worksheet to Scastie together with the sbt configuration.

Describe alternatives you've considered
Manually opening up Scastie, creating a new file, manually replicating the SBT build, copy pasting the worksheet into it.

Search terms:
metals scastie worksheet upload publish

@tgodzik
Copy link
Contributor

tgodzik commented Apr 13, 2021

Thanks for reporting! I think that might be an interesting thing to explore, however we would need to change the worksheet to something sbt understands, which might not be ideal. This will no longer be a worksheet and would need to me a normal Scala file, which would need to be run. What format would you see it in? Put everything into a Main object plus the sbt configuration with dependencies?

It's possible currently to use the Copy worksheet output command and lens to share the results with other users, which might be another workaround here.

@phdoerfler
Copy link
Author

I'm assuming that Scastie has (or will have) some sort of API for this, so the user doesn't have to manually add anything.
Scastie does support worksheets, in fact from an outside perspective they seem pretty close if not identical to Metals worksheets:
image

It also has a dedicated section for configuring the build:
image

It just seems too good a match to ignore.

@tgodzik
Copy link
Contributor

tgodzik commented Apr 13, 2021

I'm assuming that Scastie has (or will have) some sort of API for this, so the user doesn't have to manually add anything.
Scastie does support worksheets, in fact from an outside perspective they seem pretty close if not identical to Metals worksheets:

I didn't know that! Thanks!

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

2 participants