Skip to content

Investigate [warn] Could not instrument [EmptyTree$/null]. No position. #5

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

Closed
RadoBuransky opened this issue Jan 9, 2014 · 16 comments

Comments

@RadoBuransky
Copy link
Contributor

I can see following warning in logs:
[warn] Could not instrument [EmptyTree$/null]. No position.

I believe that the parsing logic needs an update. Need to investigate. This happens for a Play app.

@sksamuel
Copy link
Member

sksamuel commented Jan 9, 2014

0.95.6 has better information, so the log on that version will be able to
tell me what is wrong.

On 9 January 2014 05:12, Rado Buranský [email protected] wrote:

I can see following warning in logs:
[warn] Could not instrument [EmptyTree$/null]. No position.

I believe that the parsing logic needs an update. Need to investigate.
This happens for a Play app.


Reply to this email directly or view it on GitHubhttps://github.com//issues/5
.

@sksamuel
Copy link
Member

Did the latest release fix this ?

@nmccready
Copy link

I am on 0.98.2 maven plugin via 0.98.4 scalac-scoverage-plugin and this error is still happening.

@ssundell
Copy link

ssundell commented May 9, 2014

Same here. sbt-scoverage-plugin 0.98.4 and getting the same warning. I originally thought it didn't instrument anything, but I haven't had a chance to really try and debug on what's actually happening.

For what it's worth, it's a multi-project SBT build, running on Scala 2.10 and SBT 0.13, using Build.scala instead of build.sbt, and to make matters a bit more interesting, we're forking tests. The end result is that it appears we run no statements whatsoever.

@fommil
Copy link

fommil commented Jul 2, 2014

we're seeing this in the https://github.com/ensime/ensime-server CI runs as well.

I'm guessing its mostly harmless, since coverage is reporting sensible things, so is there a way to silence this?

@sksamuel
Copy link
Member

sksamuel commented Jul 2, 2014

There's no way to silence it at moment, but I suppose I should remove that
warning. It was basically a debug for me to find areas where I had not yet
covered the AST.

On 2 July 2014 21:58, Sam Halliday [email protected] wrote:

we're seeing this in the https://github.com/ensime/ensime-server CI runs
as well.

I'm guessing its mostly harmless, since coverage is reporting sensible
things, so is there a way to silence this?


Reply to this email directly or view it on GitHub
#5 (comment)
.

@agustina-biscayart-olx
Copy link

Is this fixed? I'm using the latest release and I'm getting this error.

@sksamuel
Copy link
Member

It's not really a bug, it's a leftover. I'll remove it from the next
release.

On 26 January 2015 at 18:47, Agustina Biscayart [email protected]
wrote:

Is this fixed? I'm using the latest release and I'm getting this error.


Reply to this email directly or view it on GitHub
#5 (comment)
.

@reid-spencer
Copy link

Still seeing this in 1.0.4 btw, with a scala Play application.

@natemurthy
Copy link

Also seeing this running sbt coverage test with Play! plugin 2.4.2 and scoverage plugin 1.1.0:

[info] [info] Beginning coverage instrumentation
[info] [warn] Could not instrument [EmptyTree$/null]. No pos.
[info] [warn] Could not instrument [EmptyTree$/null]. No pos.
[info] [warn] Could not instrument [EmptyTree$/null]. No pos.
...

@fmayer-tstllc
Copy link

I am still seeing this with sbt-scoverage 1.3.3. It's about a third of the log output when running tests.

@Chuwiey
Copy link

Chuwiey commented Dec 29, 2015

+1

@jorgedfbranco
Copy link

I'm still seeing this all over with 1.3.5.

@imarios
Copy link

imarios commented Dec 22, 2016

Still see it in 1.5.0 :)

@sukumarinbox
Copy link

Hello All I am using

  1. Jenkins
    Jenkins ver. 1.625.18.3 (CloudBees Jenkins Enterprise 15.11)
  2. scoverage plugin:
    SbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0")
  3. sbt version
    sbt-0.13.9
  4. sbt settings:
    [process_args] java_version = '1.8.0_111'
    # Executing command line:
    java
    -Xms4096m
    -Xmx4096m
    -XX:ReservedCodeCacheSize=512m
    -XX:MaxMetaspaceSize=1024m
    -jar

when i issue sbt coverage test coverageReport from jenkins
I am getting the below issue
[info] [info] Beginning coverage instrumentation
[info] [warn] Could not instrument [EmptyTree$/null]. No pos.
[info] [warn] Could not instrument [EmptyTree$/null]. No pos.
[info] [warn] Could not instrument [EmptyTree$/null]. No pos.
[info] [warn] Could not instrument [EmptyTree$/null]. No pos.

And the same if i try to do command line (linux) i am getting coverage

Could any one help me here. Thanks in advance

@artekzet
Copy link

Which version solves this problem?

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

No branches or pull requests