You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
I have tried to run
./pants goal compile
on a scala specs target, but the compilation failed. Here's the trackback:Line 226 of
jvm_dependency_analyzer.py
contains the following code, which I believe is the cause to this problem:The text was updated successfully, but these errors were encountered: