aloof-angle-91616
10/21/2019, 3:45 PMcuddly-window-48195
10/21/2019, 3:46 PMcuddly-window-48195
10/21/2019, 3:47 PMfast-author-5112
10/22/2019, 9:21 PMtest.pytest
tests and looking at the coverage generated i see that several files are referenced through .pants.d/pyrep/sources/
cache locations instead of their actual paths in our codebase. does anyone know why this happens? when combining coverage results for viewing in sonarqube all of those files are ignored with logs saying they no longer exist. any input would be appreciatedhundreds-father-404
10/26/2019, 7:55 PMaloof-angle-91616
10/26/2019, 8:24 PMaloof-angle-91616
10/26/2019, 8:25 PMElm has a rule that any definition must be defined on a fresh line. It cannot have any spaces in front of it. One benefit of this rule is that the compiler can always pinpoint the particular definition that contains a syntax error. No more errors at the end of the file!
aloof-angle-91616
10/26/2019, 8:26 PMaloof-angle-91616
10/26/2019, 8:27 PMaloof-angle-91616
10/26/2019, 8:29 PMElm uses capitalization to differentiate certain kinds of names. Module names start with an upper-case letter, like List and Http, whereas function and argument names start with a lower-case letter, like length and request. These rules make it easier to scan through new code, but they can be surprising in the learning phase, especially if you are used to JavaScript or English.this is interesting and i actually like this idea in general, but i’ve had people go on about how using capitalization for specific identifiers is really confusing and a waste of a way for users to define their own meaning for caps
aloof-angle-91616
10/26/2019, 8:34 PMenough-analyst-54434
10/26/2019, 11:58 PMhappy-kitchen-89482
10/28/2019, 11:16 PMhappy-kitchen-89482
10/28/2019, 11:30 PMsalmon-barista-63163
10/30/2019, 7:11 PM[cache.test.pytest]
cache_test_pytest_read: False
cache_test_pytest_write: False
to my pants.ini config but I am getting errors like this:
19:10:16 [ERROR] Invalid option 'cache_test_pytest_write' under [cache.test.pytest] in /Users/briandesimone/workspace/talos/pants.ini
19:10:16 [ERROR] Invalid option 'no_cache_test_pytest_read' under [cache.test.pytest] in /Users/briandesimone/workspace/talos/pants.ini
timestamp: 2019-10-30T14:10:16.866302
Exception caught: (pants.option.config.ConfigValidationError) (backtrace omitted)
Exception message: Invalid config entries detected. See log for details on which entries to update or remove.
salmon-barista-63163
10/30/2019, 7:12 PMwitty-crayon-22786
10/30/2019, 7:13 PMwitty-crayon-22786
10/30/2019, 7:15 PM[cache.test.pytest]
read: False
write: False
salmon-barista-63163
10/30/2019, 7:15 PMwitty-crayon-22786
10/30/2019, 7:15 PMcalm-artist-46894
10/31/2019, 9:11 AM/usr/local/lib/python2.7/dist-packages/
and my application requires 2.10.
Funny thing is before any of my code is executed, the python runtime already loaded a bunch modules, noticeably all jinja2
sub-modules but not jinaj2
itself. Then when my code is importing jinja2
it would try to load some submodules and eventually fails with module not found error because the new version of jinja2
was looking for some new functions in its sub-modules.calm-artist-46894
10/31/2019, 9:20 AMrepl
xxx@yyy:~/zzz$ ./pants repl zirak/src/python/example:hello2
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
Type "copyright", "credits" or "license" for more information.
IPython 1.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import sys
In [2]: [k for k in sys.modules.keys() if "jinja2" in k]
Out[2]:
['jinja2.collections',
'jinja2.cPickle',
'jinja2.errno',
'jinja2.lexer',
'jinja2.threading',
'jinja2.compiler',
...
Question is how does these modules get populated?calm-artist-46894
10/31/2019, 8:00 PMpex
related issue?happy-kitchen-89482
10/31/2019, 8:13 PMwide-energy-11069
11/01/2019, 6:02 PMwitty-crayon-22786
11/01/2019, 6:06 PMwitty-crayon-22786
11/01/2019, 6:07 PMwitty-crayon-22786
11/01/2019, 6:07 PMdamp-easter-17791
11/02/2019, 6:00 PM./pants compile --transitive-only src::
This would compile everything except the targets that match src::
damp-easter-17791
11/02/2019, 6:04 PM./pants compile $TRANSITIVE_TARGETS
then the argument is too long