Skip to content

Conversation

@Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Aug 22, 2022

Fixes #1231
This is a reworked version of #1216, kudos to @BlackAnubis7 for the initial PoC

Issues to be addressed separately

  • properly supporting using directives
    • currently only supported in the first scala raw and scala test snippets in a given .md file, given to the way they are being processed
    • not supported at all in plain scala snippets.
    • fixing those will require a further refactor of the code wrapping & preprocessing logic
    • separate scopes will probably have to be supported as separate Scala files after all
    • I initially thought we could maybe even limit the number of generated sources to just 1 (after Enable defining and running tests inside same Scala file #1093 is addressed), but this will likely prevent that
  • currently there's only support for on-disk sources (piped and remote Markdown inputs will be addressed separately)
  • another refactor will be necessary to get rid of the empty lines hack in the generated code (currently, a lot of empty lines are added in the Scala sources generated from Markdown to keep the line numbers consistent)
  • we currently only support scala snippets, but supporting java shouldn't be hard to add
@Gedochao Gedochao added the enhancement New feature or request label Aug 22, 2022
@Gedochao Gedochao force-pushed the markdown-support-initial branch from 90bd5ed to a79fa21 Compare August 22, 2022 07:48
@Gedochao Gedochao marked this pull request as ready for review August 22, 2022 08:44
@Gedochao Gedochao force-pushed the markdown-support-initial branch 2 times, most recently from 8f3a37f to 5fcc047 Compare August 24, 2022 12:11
@Gedochao Gedochao requested a review from lwronski August 24, 2022 12:14
@Gedochao Gedochao force-pushed the markdown-support-initial branch from 5fcc047 to db101f0 Compare August 25, 2022 07:20
 - Hide markdown support behind a feature flag (`--enable-markdown`) - still process explicitly passed Markdown files - remove some PoC simplifications and workarounds - misc refactors
@Gedochao Gedochao force-pushed the markdown-support-initial branch from db101f0 to 982c5b6 Compare August 25, 2022 07:55
@Gedochao Gedochao merged commit 929dfc3 into VirtusLab:main Aug 25, 2022
@Gedochao Gedochao deleted the markdown-support-initial branch August 25, 2022 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

3 participants