Skip to content

Make testing more robust #2160

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

Merged
merged 7 commits into from
Mar 31, 2017

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Mar 31, 2017

Emacs often produces temporary files in directories. These used to
cause NPEs in the new testing framework. We now fix this by only
compiling file names that designate source files.

Based on #2158. Only last commit is new.

DarkDimius and others added 7 commits March 30, 2017 21:52
ThisType doesn't have a termSymbol.
And the check is actually too strong,
and not needed.
scala#2158 has uncovered flaws in the classfile parser. Matches that used
to always miss led to code that made no sense. The function naming was terrible
too, that's why nobody understood what was going on. `findSourceFile` to find
the class file, seriously?
Emacs often produces temporary files in directories. These used to
cause NPEs in the new testing framework. We now fix this by only
compiling file names that designate source files.
@odersky odersky requested a review from felixmulder March 31, 2017 11:02
@felixmulder felixmulder merged commit a0c0b60 into scala:master Mar 31, 2017
@smarter
Copy link
Member

smarter commented Mar 31, 2017

Emacs often produces temporary files in directories

Off-topic, but if this behavior annoys you, note that you can easily get these files in a separate directory by putting something like this in your .emacs:

(setq backup-directory-alist
      `((".*" . "~/.emacs.d/backups/")))
(setq auto-save-file-name-transforms
      `((".*" "~/.emacs.d/autosaves/\\1" t)))

@allanrenucci allanrenucci deleted the make-testing-more-robust branch December 14, 2017 19:23
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.

4 participants