Skip to content
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

Scala specs target fialed to compile #513

Closed
zyzheng opened this issue Aug 22, 2014 · 1 comment
Closed

Scala specs target fialed to compile #513

zyzheng opened this issue Aug 22, 2014 · 1 comment

Comments

@zyzheng
Copy link

zyzheng commented Aug 22, 2014

I have tried to run ./pants goal compile on a scala specs target, but the compilation failed. Here's the trackback:

Traceback (most recent call last):
  File "/home/htc/project/bdi/science/pants.pex/.bootstrap/_pex/pex.py", line 225, in execute
    self.execute_entry(entry_point, args)
  File "/home/htc/project/bdi/science/pants.pex/.bootstrap/_pex/pex.py", line 273, in execute_entry
    runner(entry_point)
  File "/home/htc/project/bdi/science/pants.pex/.bootstrap/_pex/pex.py", line 296, in execute_pkg_resources
    runner()
  File "/home/htc/project/bdi/science/pants.pex/pants/bin/pants_exe.py", line 200, in main
  File "/home/htc/project/bdi/science/pants.pex/pants/bin/pants_exe.py", line 181, in _run
  File "/home/htc/project/bdi/science/pants.pex/pants/commands/goal_runner.py", line 298, in run
  File "/home/htc/project/bdi/science/pants.pex/pants/engine/engine.py", line 48, in execute
  File "/home/htc/project/bdi/science/pants.pex/pants/engine/round_engine.py", line 184, in attempt
  File "/home/htc/project/bdi/science/pants.pex/pants/engine/round_engine.py", line 42, in attempt
  File "/home/htc/project/bdi/science/pants.pex/pants/backend/core/tasks/group_task.py", line 342, in execute
  File "/home/htc/project/bdi/science/pants.pex/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py", line 466, in execute_chunk
  File "/home/htc/project/bdi/science/pants.pex/pants/backend/jvm/tasks/jvm_compile/jvm_dependency_analyzer.py", line 149, in check
  File "/home/htc/project/bdi/science/pants.pex/pants/backend/jvm/tasks/jvm_compile/jvm_dependency_analyzer.py", line 253, in _compute_missing_deps
  File "/home/htc/project/bdi/science/pants.pex/pants/backend/jvm/tasks/jvm_compile/jvm_dependency_analyzer.py", line 226, in target_or_java_dep_in_targets
AttributeError: 'ScalaTests' object has no attribute 'java_sources'

Line 226 of jvm_dependency_analyzer.py contains the following code, which I believe is the cause to this problem:

225      elif target.is_scala:
226        return any(t in targets for t in target.java_sources)
@ericzundel
Copy link
Member

ScalaSpecs are now removed. Use JavaTests instead.

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

2 participants