aloof-angle-91616
04/26/2018, 5:34 PMaloof-angle-91616
04/26/2018, 5:35 PMaloof-angle-91616
04/26/2018, 5:35 PMaloof-angle-91616
04/26/2018, 5:48 PMaloof-angle-91616
04/26/2018, 5:48 PM./pants list src::
we would have been done herealoof-angle-91616
04/26/2018, 5:48 PMaloof-angle-91616
04/26/2018, 5:59 PMrelease.sh
(thanks to stu's comment just above), my editor converted some tabs in indentation of the body of a case statement starting on line 555 into spaces. the modified region which was not part of the intended edits to the file (the region where tabs were converted to space) is 10 lines and is easy to audit -- would that be acceptable to put in this pr (#5747), or is it pretty much always better to leave that sort of thing out (which is very easy for me to do, i can add a dir-local variable to stop all whitespace edits automatically)?aloof-angle-91616
04/26/2018, 6:00 PMaloof-angle-91616
04/26/2018, 6:02 PMaloof-angle-91616
04/27/2018, 6:47 AMaverage-vr-56795
04/27/2018, 9:24 AMgrep -rIl "\t" | grep -v '\.go$'
check to build-support/bin/pre-commit.sh, gets rid of all existing tabs, and then being happy that this will never be a problem again 🙂aloof-angle-91616
04/27/2018, 9:26 AMaverage-vr-56795
04/27/2018, 9:34 AMaloof-angle-91616
04/27/2018, 1:00 PMaloof-angle-91616
04/27/2018, 1:01 PMfancy-queen-20734
04/27/2018, 10:37 PMaloof-angle-91616
04/27/2018, 11:36 PMaloof-angle-91616
04/27/2018, 11:36 PMaloof-angle-91616
04/30/2018, 7:51 AMsources
and bundles
globs don't match any of the target's files, will add an exception tomorrow but just wanted to get it out now https://github.com/pantsbuild/pants/pull/5769aloof-angle-91616
05/01/2018, 2:50 AMaverage-vr-56795
05/01/2018, 4:20 PMaverage-vr-56795
05/01/2018, 4:21 PMaverage-vr-56795
05/01/2018, 4:22 PMaloof-angle-91616
05/01/2018, 8:21 PMaloof-angle-91616
05/01/2018, 8:32 PMaloof-angle-91616
05/01/2018, 8:32 PMaloof-angle-91616
05/01/2018, 10:19 PM__new__()
constructor for `datatype`s literally has the exact same mechanics and syntax as in R S4 classes, down to the variadic args: R uses ...
for positional and keyword args (you can split them up easily too) but python introduces the separation, but otherwise this is literally the exact same code as an S4 constructor override in R.aloof-angle-91616
05/01/2018, 10:20 PMdef __new__(cls, *args, **kwargs):
this_object = super(GlobMatchErrorBehavior, cls).__new__(cls, *args, **kwargs)
# do stuff with the constructed object...
aloof-angle-91616
05/01/2018, 10:31 PMsetMethod('initialize', 'Type', function(.Object, name, ...) {
.Object <- callNextMethod(.Object, ...)
.Object@name <- validateTypeNameString(name)
.Object
})
aloof-angle-91616
05/01/2018, 10:32 PM'initialize'
is the method to override for the constructor (objects are created with new(...)
, however)