Skip to content

Conversation

DarkDimius
Copy link
Contributor

And a sample test.

@DarkDimius
Copy link
Contributor Author

@odersky @sjrd please review.

@sjrd
Copy link
Member

sjrd commented Mar 1, 2014

LGTM.

It is a bit unfortunate that we have to write the source to a file. We should have a follow up enabling the compiler to compile a compilation unit from a string directly.

DarkDimius added a commit that referenced this pull request Mar 2, 2014
Infrastructure for per-phase tests, with inline source as a string.
@DarkDimius DarkDimius merged commit 5143f66 into scala:master Mar 2, 2014
DarkDimius added a commit to DarkDimius/dotty that referenced this pull request Mar 2, 2014
Infrastructure for per-phase tests, with inline source as a string.
DarkDimius added a commit to DarkDimius/dotty that referenced this pull request Mar 2, 2014
Infrastructure for per-phase tests, with inline source as a string.
@adriaanm
Copy link
Contributor

adriaanm commented Mar 3, 2014

VirtualFile allows this, I think @xeno-by has done this before. As is, this is likely to break on Jenkins/Travis.

@DarkDimius
Copy link
Contributor Author

AFAIK both jenkins and travis allow to use OS specific ways to create temporary files, as otherwise most tools will just stop working.
I'll have a look on making it use virtual files.

@adriaanm
Copy link
Contributor

adriaanm commented Mar 3, 2014

You're probably right, but interacting with the filesystem has the weirdest gotchas. In the long run, it's worth avoiding IMO.

noti0na1 pushed a commit to noti0na1/dotty that referenced this pull request Oct 22, 2019
szymon-rd pushed a commit that referenced this pull request Dec 9, 2022
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 this pull request may close these issues.

3 participants