-
Notifications
You must be signed in to change notification settings - Fork 127
JSDOMNodeJSEnv is handled incorrectly (Scalajs support issue) #183
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
Comments
With 0.6.13 this becomes more real issue, because it affects default run configuration with |
Running into the same issue with scala.js 0.6.14. Looks like the PhantomJs is a fallback case during runtime interpreter resolution: https://github.com/scoverage/scalac-scoverage-plugin/blob/master/scalac-scoverage-runtime/js/src/main/scala/scalajssupport/File.scala#L62. Is there any better way to determine the runtime interpreter? |
@vpavkin sorry, just noticed you are pointing to the same code line. |
Is there a known workaround for this issue? |
Has this been fixed/ has a workaround? Am trying to run scoverage and getting |
When
jsEnv
is set toJSDOMNodeJSEnv().value
, plugin treats it as PhantomJS environment.This environment has a
window
property, so this conditional treats it as PhantomJS:https://github.com/lustefaniak/scalac-scoverage-plugin/blob/master/scalac-scoverage-runtime/js/src/main/scala/scalajssupport/File.scala#L62
As a consequence - tests fail with:
The conditional should be tweaked somehow (no suggestions yet, so far just reporting).
Steps to reproduce:
jsEnv in Test := JSDOMNodeJSEnv().value
npm install jsdom
The text was updated successfully, but these errors were encountered: