https://pantsbuild.org/ logo
#general
Title
# general
g

gentle-hydrogen-65984

12/14/2021, 3:28 AM
I'm on 1.27 trying to lint scala with
lint.jvm-dep-check.unnecessary_deps
and
missing_direct_deps
and seeing this:
Copy code
File "/Users/mitesh/.cache/pants/setup/bootstrap-Darwin-x86_64/1.27.0_py36/lib/python3.6/site-packages/pants/backend/jvm/tasks/jvm_dependency_check.py", line 292, in _compute_unnecessary_deps
    for dep_entries in actual_deps.values():

Exception message: 'list' object has no attribute 'values'
I debugged here and printed out
target
and
actual_deps
and it gives this. The TODO comment seems to acknowledge the bug?
Copy code
JarLibrary(//:scala-library-synthetic) ['/usr/local/Cellar/openjdk@8/1.8.0+312/libexec/openjdk.jdk/Contents/Home/jre/lib/rt.jar']
@happy-kitchen-89482 should i make an issue or keep the convo in slack?
h

happy-kitchen-89482

12/15/2021, 10:29 PM
Hey, an issue would be great!
1.27 is pretty old so it might take us a moment to figure this out
Can you post the link here when you have the issue up?
g

gentle-hydrogen-65984

12/16/2021, 4:17 AM
3 Views