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

Fix using directives for multiple Scala snippets in a Markdown file and for plain scala code blocks #1288

Closed
Gedochao opened this issue Aug 25, 2022 · 0 comments · Fixed by #1598
Assignees
Labels
bug Something isn't working markdown
Projects

Comments

@Gedochao
Copy link
Contributor

Version(s)
nightly

Describe the bug
Using directives are only correctly handled in the first scala raw or scala test snippet.
Also, plain scala code blocks don't handle using directives correctly at all.

Known workarounds
Just put all the using directives in a single scala raw code block

To Reproduce

# Faulty snippet
```scala
//> using lib com.lihaoyi::os-lib:0.7.8
println(os.pwd)
```

Expected behaviour
using directives should be handled correctly in each snippet, even when declared within the bounds of a single Markdown file.

@Gedochao Gedochao added bug Something isn't working markdown labels Aug 25, 2022
@Gedochao Gedochao added this to To do in Issue Board Aug 25, 2022
@Gedochao Gedochao self-assigned this Nov 17, 2022
@Gedochao Gedochao moved this from To do to In progress in Issue Board Nov 17, 2022
@Gedochao Gedochao moved this from In progress to To Document in Issue Board Nov 22, 2022
@Gedochao Gedochao moved this from To Document to Done in Issue Board Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working markdown
Projects
Development

Successfully merging a pull request may close this issue.

1 participant