rapid-crayon-8232
12/15/2019, 4:50 PMnotebook.py
having:
import sys
from notebook.notebookapp import main
if __name__ == "__main__":
sys.exit(main())
dry-analyst-73584
12/16/2019, 6:46 PMtarget.sources_relative_to_source_root()
?early-needle-54791
12/18/2019, 6:55 PMtests/python/pants_test/projects:java_testprojects_integration
on latest master and it fails with pants.base.specs.Spec.AddressFamilyResolutionError: Path "contrib/python/src/python/pants/contrib/python/checks/checker" does not contain any BUILD files.
which is not true if I look at the source tree. Is this KTF locally?cold-journalist-66984
12/19/2019, 2:37 PMpants compile ::
it fails with `Problem launching via NailgunClient`and TruncatedHeaderError(u"Failed to read nailgun chunk header...
Do you have any thoughts on how I can go about debugging this? I think I want to see what the nailgun server is up to, but I’m not sure how to get my hands on its output.happy-kitchen-89482
12/19/2019, 8:08 PMhappy-kitchen-89482
12/19/2019, 8:08 PMhappy-kitchen-89482
12/19/2019, 8:09 PMhappy-kitchen-89482
12/19/2019, 10:27 PMwitty-crayon-22786
12/19/2019, 10:48 PMdamp-quill-59187
12/20/2019, 8:33 PMsetup_py
is available as a function call, would like to be able to allow my own function calls. I'm familiar with the plugin setup, but can't seem to be able to wire this piece togetherrapid-crayon-8232
12/23/2019, 1:01 PMadamant-mouse-92628
12/25/2019, 7:43 AMFAILURE: Dependencies cannot have a higher java target level than dependees!
testprojects/src/java/org/pantsbuild/testproject/targetlevels/unspecified:lib targeting "java8"
is depended on by:
testprojects/src/java/org/pantsbuild/testproject/targetlevels/unspecified:java7 targeting "java7"
Consider running ./pants jvm-platform-explain with the same targets for more details.
Waiting for background workers to finish.
23:38:09 00:05 [complete]
FAILURE
./pants lint :: 7.26s user 2.45s system 141% cpu 6.837 total; max RSS 208216Ki
[37737 23:38:10.490 eax@BuyingEagle ~/svn/pantsbuild/pants !1!]∴pants jvm-platform-explain :: (git:pants)-[master]
Scrubbed PYTHONPATH=/Users/eax/svn/pantsbuild/pants/src/python: from the environment.
FAILURE
07:40:51 [WARN] /Users/eax/svn/pantsbuild/pants/src/python/pants/base/exception_sink.py:423: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
process_title=setproctitle.getproctitle(),
ERROR: transitive
(Use --print-exception-stacktrace to see more error details.)
6.17s user 2.09s system 182% cpu 4.528 total; max RSS 211964Ki
6.19s user 2.11s system 181% cpu 4.570 total; max RSS 211964Ki
adamant-mouse-92628
12/25/2019, 7:43 AMhundreds-father-404
12/26/2019, 9:52 PM--skip
should look like for V2, including proposing a new --lint-only='pylint'
option. Comments appreciated 🙂 https://docs.google.com/document/d/13Qwb3JNgm3ogKeSgFz4QAiOs77jnrjfQqM6VqKWRyKM/edit?usp=sharinghundreds-father-404
12/27/2019, 8:02 PMaloof-angle-91616
12/27/2019, 8:30 PMhappy-kitchen-89482
12/29/2019, 4:28 PMcold-journalist-66984
01/02/2020, 4:48 PM16:45:41 [ERROR] Invalid scope [scala-platform] in /Users/johndowns/src/play-pants/pants.ini
16:45:41 [ERROR] Invalid scope [publish.jar] in /Users/johndowns/src/play-pants/pants.ini
16:45:41 [ERROR] Invalid scope [ivy] in /Users/johndowns/src/play-pants/pants.ini
16:45:41 [ERROR] Invalid scope [jvm-platform] in /Users/johndowns/src/play-pants/pants.ini
I’m fairly certain that [scala-platfom]
has been renamed to [scala]
, but when I try to change that header, I get a similar error 16:40:18 [ERROR] Invalid scope [scala] in /Users/johndowns/src/play-pants/pants.ini
This is my pants.ini
file
[GLOBAL]
pants_version: 1.16.0
pythonpath: [
'%(buildroot)s/build-support'
]
backend_packages: [
'repositories'
]
[scala]
version: 2.11
[publish.jar]
repos: {
'public': {
'resolver': '<http://oss.sonatype.org|oss.sonatype.org>',
'auth': ':netrc',
'help': 'Configure your ~/.netrc',
}
}
ivy_settings: %(pants_supportdir)s/ivy/ivysettings_for_publishing.xml
[ivy]
# We need a custom ivy profile to grab the optional pgp libs for
# signing artifacts we publish to maven central.
ivy_profile: %(pants_supportdir)s/ivy/ivy.xml
[jvm-platform]
default_platform: java8
platforms: {
'java7': {'source': '7', 'target': '7', 'args': [] },
'java8': {'source': '8', 'target': '8', 'args': [] },
}
Any idea what I’m missing?calm-artist-46894
01/03/2020, 7:15 AM./pants binary :: --filter-type=python_library
Or is there a way to pipe the result from ./pants filter
to the net goal?plain-sundown-25537
01/03/2020, 7:44 AMcalm-artist-46894
01/03/2020, 7:51 AMplain-sundown-25537
01/03/2020, 7:51 AMcalm-artist-46894
01/03/2020, 7:59 AMgo
dependencies for non-python targetcalm-artist-46894
01/03/2020, 8:01 AM23:58:37 00:00 [main]
(To run a reporting server: ./pants server)
23:59:03 00:26 [setup]
23:59:04 00:27 [parse]
Executing tasks in goals: unpack-wheels -> deferred-sources -> native-compile -> link -> resolve -> gen -> pyprep -> compile -> binary
23:59:04 00:27 [unpack-wheels]
23:59:04 00:27 [unpack-wheels]
23:59:04 00:27 [deferred-sources]
23:59:04 00:27 [deferred-sources]
23:59:04 00:27 [native-compile]
23:59:04 00:27 [conan-prep]
23:59:04 00:27 [conan-fetch]
23:59:04 00:27 [c-for-ctypes]
23:59:04 00:27 [cpp-for-ctypes]
23:59:04 00:27 [link]
23:59:04 00:27 [shared-libraries]
23:59:04 00:27 [resolve]
23:59:04 00:27 [go]
23:59:04 00:27 [cache]
No cached artifacts for 60 targets.
Invalidated 60 targets.
23:59:05 00:28 [fetch <http://cloud.google.com/go/bigquery]07:59:05|cloud.google.com/go/bigquery]07:59:05> [INFO] Cloning <https://code.googlesource.com/gocloud> into /tmp/tmpnz7pyg6v
Cloning into '/tmp/tmpnz7pyg6v'...
And I would like to skip the resolve.go
taskcalm-artist-46894
01/03/2020, 8:02 AMplain-sundown-25537
01/03/2020, 9:45 AMexplain
you can see the stepshappy-kitchen-89482
01/04/2020, 2:51 PMfreezing-xylophone-6667
01/06/2020, 9:20 PM3rdparty/jvm/BUILD
I have the following:
jar_library(
name="finatratests",
jars=[
scala_jar(org='org.scalatest', name='scalatest', rev='3.0.0'),
scala_jar(org='com.twitter', name='inject-server', rev='19.12.0'),
scala_jar(org='com.twitter', name='inject-app', rev='19.12.0'),
scala_jar(org='com.twitter', name='inject-core', rev='19.12.0'),
scala_jar(org='com.twitter', name='inject-modules', rev='19.12.0'),
],
scope="compile test",
)
However, even though I set scope="compile test"
it’s not pulling in the test version of the jars. I’ve attempted to append -tests
to the artifact name and to the rev number to see if that would do it, but the generated path URL is incorrect when I do that. In SBT I’d do the following with the tests
classifier:
libraryDependencies += "com.twitter" %% "inject-server" % versions.finatra % "test" classifier "tests"
Any help would be great! Thanks!best-nightfall-7221
01/06/2020, 10:29 PMError: Unknown option --fatal-warnings
Usage: scrooge-linter [options] <files...>
damp-quill-59187
01/07/2020, 7:19 PMrun
which operates on a python_library target. run
is set up to require publish
, publish does it's magic and produces an artifact, and within publish
a string is produced that needs to be associated with that particular library target for run
. Is there a standardized way to make that association, such that it can be accessed on the target when run
is executed?