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

Support for using run in Scala Native @main methods #325

Closed
spamegg1 opened this issue Jan 28, 2023 · 5 comments · Fixed by scalameta/metals#5197
Closed

Support for using run in Scala Native @main methods #325

spamegg1 opened this issue Jan 28, 2023 · 5 comments · Fixed by scalameta/metals#5197
Assignees

Comments

@spamegg1
Copy link

spamegg1 commented Jan 28, 2023

Is your feature request related to a problem? Please describe.

Currently the run and debug buttons do nothing for Scala Native, so it's a bit confusing / misleading.

Describe the solution you'd like

I'm guessing debug would be hard to implement, but maybe run is possible?

Describe alternatives you've considered

N/A

Additional context

Inspired by the discussion on Discord

native-main

Search terms

scala native scala3 main run debug

@tgodzik
Copy link
Contributor

tgodzik commented Feb 1, 2023

We discussed it briefly on Scala Native discord and the best solution would be to use the run capability of BSP

I tried it and I think this could work, the only issue is reporting the output:
https://github.com/tgodzik/metals/pull/new/run-native

@tgodzik
Copy link
Contributor

tgodzik commented Feb 11, 2023

Took a stab at it today and I have some nice results, though there is a bit of ducktape here.

test-unused-1676153138274

@spamegg1
Copy link
Author

spamegg1 commented Jan 5, 2024

🥳

@spamegg1
Copy link
Author

spamegg1 commented Mar 3, 2024

Not working in Native 0.5.0-RC1.

@tgodzik
Copy link
Contributor

tgodzik commented Mar 9, 2024

Looking into it here scalacenter/bloop#2293

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

Successfully merging a pull request may close this issue.

2 participants