text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>yes</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.2.0</td> </tr> </tbody> </table> <p dir="auto">I am implementing LDAP authentication using <code class="notranslate">form_ldap_bind</code> which supports the <code class="notranslate">search_dn</code> configuration option to dynamically generate the DN to use for the <code class="notranslate">ldap_bind()</code> check.</p> <p dir="auto">However in my case the DN's differentiate on more than the username for different users:<br> <code class="notranslate">uid=foo,ou=External,ou=Employees,dc=example,dc=com</code> vs. <code class="notranslate">uid=bar,ou=Internal,ou=Employees,dc=example,dc=com</code></p> <p dir="auto">The <code class="notranslate">LdapUserProvider</code> in turn supports searching for users but then requires a password attribute to validate the authentication which isn't available in my case. <code class="notranslate">LdapBindAuthenticationProvider</code> also does not support a filter parameter (which might be useful here, but I am not an LDAP expert).</p> <p dir="auto">I wonder if we need another auth provider which is more flexible to find the relevant DN from the LDAP server before attempting to validate the password via <code class="notranslate">ldap_bind()</code> along the lines of:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ldapsearch -d 1 -w 'XXX' -H ldaps://example.com:636 -D &quot;uid=sys,ou=Accounts,dc=example,dc=com&quot; -b 'dc=example,dc=com' '(uid=foo)' dn"><pre class="notranslate"><code class="notranslate">ldapsearch -d 1 -w 'XXX' -H ldaps://example.com:636 -D "uid=sys,ou=Accounts,dc=example,dc=com" -b 'dc=example,dc=com' '(uid=foo)' dn </code></pre></div>
<p dir="auto">In implementing LDAP authentication in 2.8, we have found that authentication is limited to only users whose DNs fit the configured dn_string pattern. Let us consider this configuration:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="security: providers: in_memory: memory: ~ app_users: ldap: service: app.ldap base_dn: %ldap.base_dn% search_dn: null search_password: null filter: (uid={username}) default_roles: ROLE_USER firewalls: secure: provider: app_users stateless: true pattern: ^/secure http_basic_ldap: service: app.ldap dn_string: &quot;uid={username},ou=people,dc=example,dc=com&quot; dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: anonymous: ~"><pre class="notranslate"><span class="pl-ent">security</span>: <span class="pl-ent">providers</span>: <span class="pl-ent">in_memory</span>: <span class="pl-ent">memory</span>: <span class="pl-c1">~</span> <span class="pl-ent">app_users</span>: <span class="pl-ent">ldap</span>: <span class="pl-ent">service</span>: <span class="pl-s">app.ldap</span> <span class="pl-ent">base_dn</span>: <span class="pl-s">%ldap.base_dn%</span> <span class="pl-ent">search_dn</span>: <span class="pl-c1">null</span> <span class="pl-ent">search_password</span>: <span class="pl-c1">null</span> <span class="pl-ent">filter</span>: <span class="pl-s">(uid={username})</span> <span class="pl-ent">default_roles</span>: <span class="pl-s">ROLE_USER</span> <span class="pl-ent">firewalls</span>: <span class="pl-ent">secure</span>: <span class="pl-ent">provider</span>: <span class="pl-s">app_users</span> <span class="pl-ent">stateless</span>: <span class="pl-c1">true</span> <span class="pl-ent">pattern</span>: <span class="pl-s">^/secure</span> <span class="pl-ent">http_basic_ldap</span>: <span class="pl-ent">service</span>: <span class="pl-s">app.ldap</span> <span class="pl-ent">dn_string</span>: <span class="pl-s"><span class="pl-pds">"</span>uid={username},ou=people,dc=example,dc=com<span class="pl-pds">"</span></span> <span class="pl-ent">dev</span>: <span class="pl-ent">pattern</span>: <span class="pl-s">^/(_(profiler|wdt)|css|images|js)/</span> <span class="pl-ent">security</span>: <span class="pl-c1">false</span> <span class="pl-ent">main</span>: <span class="pl-ent">anonymous</span>: <span class="pl-c1">~</span></pre></div> <p dir="auto">In this case, a user with DN "uid=foo,ou=people,dc=example,dc=com" can authenticate but one with DN "uid=foo,ou=something,ou=people,dc=example,dc=com" cannot, even though both accounts are in the configured search base.</p> <p dir="auto">The immediate reason is that after discovering information from LDAP with a call to -&gt;find() in the LdapUserProvider::loadUserByUsername() method, the DN is discarded when LdapUserProvider::loadUser() creates the User instance.</p> <p dir="auto">Because the DN is discarded, later LdapBindAuthenticationProvider::checkAuthentication() recombines the basic username with what is configured in dn_string:</p> <p dir="auto">$dn = str_replace('{username}', $username, $this-&gt;dnString);</p> <p dir="auto">It would seem if User were extended to store the DN (perhaps by creating LdapUser with a setDn() method), it would not be necessary to set dn_string, and users in various OU's could authenticate.</p>
1
<p dir="auto">I would expect this syntax to work without problems</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd d = [{'a':'1','b':'2'},{'a':'3','b':'4'}] pd.DataFrame.from_dict(d, orient='columns', dtype={'a':int,'b':int})"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> [{<span class="pl-s">'a'</span>:<span class="pl-s">'1'</span>,<span class="pl-s">'b'</span>:<span class="pl-s">'2'</span>},{<span class="pl-s">'a'</span>:<span class="pl-s">'3'</span>,<span class="pl-s">'b'</span>:<span class="pl-s">'4'</span>}] <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>.<span class="pl-en">from_dict</span>(<span class="pl-s1">d</span>, <span class="pl-s1">orient</span><span class="pl-c1">=</span><span class="pl-s">'columns'</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span>{<span class="pl-s">'a'</span>:<span class="pl-s1">int</span>,<span class="pl-s">'b'</span>:<span class="pl-s1">int</span>})</pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">Expected DataFrame:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" a b 0 1 2 1 3 4"><pre class="notranslate"><code class="notranslate"> a b 0 1 2 1 3 4 </code></pre></div> <p dir="auto">with dtypes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" a int64 b int64 dtype: object"><pre class="notranslate"><code class="notranslate"> a int64 b int64 dtype: object </code></pre></div> <p dir="auto">Instead, the output is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/lib/python2.7/dist-packages/numpy/core/_internal.pyc in _makenames_list(adict, align) 24 for fname in fnames: 25 obj = adict[fname] ---&gt; 26 n = len(obj) 27 if not isinstance(obj, tuple) or n not in [2, 3]: 28 raise ValueError(&quot;entry not a 2- or 3- tuple&quot;) TypeError: object of type 'type' has no len()"><pre class="notranslate"><code class="notranslate">/usr/lib/python2.7/dist-packages/numpy/core/_internal.pyc in _makenames_list(adict, align) 24 for fname in fnames: 25 obj = adict[fname] ---&gt; 26 n = len(obj) 27 if not isinstance(obj, tuple) or n not in [2, 3]: 28 raise ValueError("entry not a 2- or 3- tuple") TypeError: object of type 'type' has no len() </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> # Paste the output here pd.show_versions() here INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Linux OS-release: 3.19.0-68-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 <p dir="auto">pandas: 0.18.1<br> nose: 1.3.4<br> pip: None<br> setuptools: 26.1.1<br> Cython: 0.24.1<br> numpy: 1.8.2<br> scipy: 0.14.1<br> statsmodels: None<br> xarray: None<br> IPython: 5.1.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.2<br> pytz: 2015.7<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.4.2<br> openpyxl: 2.3.5<br> xlrd: 1.0.0<br> xlwt: None<br> xlsxwriter: None<br> lxml: 3.4.2<br> bs4: 4.3.2<br> html5lib: 0.999<br> httplib2: 0.9.2<br> apiclient: 1.5.3<br> sqlalchemy: 0.9.8<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: 2.34.0<br> pandas_datareader: None</p> </details>
<p dir="auto">Similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18969186" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/4746" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/4746/hovercard" href="https://github.com/pandas-dev/pandas/issues/4746">#4746</a>, trying to <code class="notranslate">resample</code> with an index containing <code class="notranslate">NaT</code> produces rather ambiguous error messages of the form:</p> <blockquote> <p dir="auto">ValueError: Shape of passed values is (2, 5), indices imply (2, 4)</p> </blockquote> <p dir="auto">Something like <code class="notranslate">cannot resample from index containing Not-a-Time (NaT)</code> would be more helpful to users.</p> <h4 dir="auto">MWE</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd import numpy as np times = pd.DatetimeIndex(['20160428T110000', '20160428T110001', '20160428T110002', '20160428T110003', '20160428T110004', pd.NaT, '20160428T110001', '20160428T110002', '20160428T110003', '20160428T110004']) df = pd.DataFrame(np.random.randn(10,2), index=times, columns=['A', 'B']) df.resample('3s')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">times</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DatetimeIndex</span>([<span class="pl-s">'20160428T110000'</span>, <span class="pl-s">'20160428T110001'</span>, <span class="pl-s">'20160428T110002'</span>, <span class="pl-s">'20160428T110003'</span>, <span class="pl-s">'20160428T110004'</span>, <span class="pl-s1">pd</span>.<span class="pl-v">NaT</span>, <span class="pl-s">'20160428T110001'</span>, <span class="pl-s">'20160428T110002'</span>, <span class="pl-s">'20160428T110003'</span>, <span class="pl-s">'20160428T110004'</span>]) <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">10</span>,<span class="pl-c1">2</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">times</span>, <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'A'</span>, <span class="pl-s">'B'</span>]) <span class="pl-s1">df</span>.<span class="pl-en">resample</span>(<span class="pl-s">'3s'</span>)</pre></div> <p dir="auto"><em>This example index contains duplicate values, but results are the same w/ or w/o them.</em></p> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 23 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.15.2 nose: 1.3.4 Cython: 0.21.1 numpy: 1.8.2 scipy: 0.14.0 statsmodels: 0.6.1 IPython: 2.3.1 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.3 pytz: 2014.10 bottleneck: None tables: 3.1.1 numexpr: 2.4 matplotlib: 1.4.2 openpyxl: None xlrd: 0.9.3 xlwt: None xlsxwriter: 0.6.4 lxml: 3.4.1 bs4: 4.3.2 html5lib: None httplib2: None apiclient: None rpy2: 2.5.2 sqlalchemy: 0.9.8 pymysql: None psycopg2: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 23 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.15.2 nose: 1.3.4 Cython: 0.21.1 numpy: 1.8.2 scipy: 0.14.0 statsmodels: 0.6.1 IPython: 2.3.1 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.3 pytz: 2014.10 bottleneck: None tables: 3.1.1 numexpr: 2.4 matplotlib: 1.4.2 openpyxl: None xlrd: 0.9.3 xlwt: None xlsxwriter: 0.6.4 lxml: 3.4.1 bs4: 4.3.2 html5lib: None httplib2: None apiclient: None rpy2: 2.5.2 sqlalchemy: 0.9.8 pymysql: None psycopg2: None </code></pre></div>
0
<p dir="auto">This proposal is based on <code class="notranslate">C#</code> spec for preprocessor directives. <a href="https://msdn.microsoft.com/en-us/library/aa691099(v=vs.71).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/aa691099(v=vs.71).aspx</a></p> <h3 dir="auto">Problem</h3> <p dir="auto">Some JS applications are used in multiple platforms. I.e. Cordova/Phonegap for mobile platforms, isomorphic applications for server-side and client-side rendered applications. And those platforms are hosting different set of API:s. We use import statements to import and use a host's API. A developer must guard one platform's API from an another.</p> <p dir="auto">Before ES6 modules one could guard an import using if statements:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (IOS_PLATFORM) { var http = require('./http-ios'); }"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">IOS_PLATFORM</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">http</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./http-ios'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">ES6 modules prohibits conditional imports, because the import statements must be a file-level statement. So we can't do:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (IOS_PLATFORM) { import {something} from './something'; }"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">IOS_PLATFORM</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">something</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./something'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Solution</h3> <p dir="auto">We can solve the above problem with preprocessor directives. And here is one example of the problem above solved with a preprocessor directives:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#if IOS_PLATFORM import {http} from './http'; #endif "><pre class="notranslate">#<span class="pl-k">if</span> <span class="pl-c1">IOS_PLATFORM</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">http</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./http'</span><span class="pl-kos">;</span> #<span class="pl-s1">endif</span></pre></div> <p dir="auto">Proposed directives:</p> <h4 dir="auto">define directive</h4> <div class="highlight highlight-source-cs notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#define {VARIABLE} [{VALUE}]"><pre class="notranslate">#define <span class="pl-kos">{</span>VARIABLE<span class="pl-kos">}</span> <span class="pl-kos">[</span><span class="pl-kos">{</span>VALUE<span class="pl-kos">}</span><span class="pl-kos">]</span></pre></div> <p dir="auto">The define directive defines a global flag or global variable. When a value is specified it is regarded as a preprocessor variable.</p> <h4 dir="auto">flow directives</h4> <div class="highlight highlight-source-cs notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#if #elif #else #endif"><pre class="notranslate">#<span class="pl-k">if</span> #elif #<span class="pl-k">else</span> #endif</pre></div> <p dir="auto">It must exist at least one #if and at maximum one #else directive per control-flow statement. A directive must be closed with an #endif directive. You can also nest preprocessor control-flow statements in each other. In addition to hosting TS code, a control-flow statement's body can also host #define and #error directive that defines additional behaviour for the preprocessor.</p> <p dir="auto">Each control-flow branch is scoped from other sibling branches. So the below example will yield an access undefined error:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#if branch1 var test = &quot;string&quot;; #elif branch2 test.length; // error #endif test.length; // no error"><pre class="notranslate">#<span class="pl-k">if</span> <span class="pl-s1">branch1</span> <span class="pl-k">var</span> <span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-s">"string"</span><span class="pl-kos">;</span> #<span class="pl-s1">elif</span> <span class="pl-s1">branch2</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-c">// error</span> #<span class="pl-s1">endif</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-c">// no error</span></pre></div> <h4 dir="auto">preprocessor operators:</h4> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="== != &amp;&amp; ||"><pre class="notranslate"><span class="pl-c1">=</span><span class="pl-c1">=</span> <span class="pl-c1">!=</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-c1">||</span></pre></div> <p dir="auto">These should work as comparison operators in TS and JS along with parens <code class="notranslate">()</code>.</p> <h4 dir="auto">error directive</h4> <div class="highlight highlight-source-cs notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#error {MESSAGE}"><pre class="notranslate">#error {MESSAGE}</pre></div> <p dir="auto">The error directive is to help guiding developers to set right set of flags and values. In some cases two disjoint branches aren't supposed to be joined. An example is given below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#if IOS_PLATFORM &amp;&amp; ANDROID_PLATFORM #error &quot;Cannot set two platform flags&quot; #endif"><pre class="notranslate"><code class="notranslate">#if IOS_PLATFORM &amp;&amp; ANDROID_PLATFORM #error "Cannot set two platform flags" #endif </code></pre></div> <p dir="auto">Or when a preprocessor variable is set to an invalid value:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#if PLATFORM == windows #error &quot;Cannot set platform preprocessor variable to windows.&quot; #endif"><pre class="notranslate"><code class="notranslate">#if PLATFORM == windows #error "Cannot set platform preprocessor variable to windows." #endif </code></pre></div>
<p dir="auto">On codeplex this was a popular feature request:</p> <p dir="auto"><a href="https://typescript.codeplex.com/workitem/111" rel="nofollow">https://typescript.codeplex.com/workitem/111</a><br> <a href="https://typescript.codeplex.com/workitem/1926" rel="nofollow">https://typescript.codeplex.com/workitem/1926</a></p> <p dir="auto">Personally I think preprocessor directives like #if, #elif, #else #endif with possibility to specify symbol to compiler would be very useful.<br> And a way to mark function (or ambient function declaration) as Conditional (something like <a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.conditionalattribute%28v=vs.110%29.aspx" rel="nofollow">ConditionalAattribute</a> in C#) would be great improvement too.<br> I have lot's of <code class="notranslate">console.log</code> like function calls that decrease performance of my application and ability to easily remove all calls to this function would be great.</p>
1
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">I was running into a case where I wanted to support a polymorphic one to many relation, where the different related tables have primary keys of different types. The mapper was not allowing that. I provide a patch and a bit of example code which expresses a possible fix.</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/1348/test_multi_poly.py">test_multi_poly.py</a> | <a href="../wiki/imported_issue_attachments/1348/orm_properties.diff">orm_properties.diff</a> | <a href="../wiki/imported_issue_attachments/1348/sql_util.py.diff">sql_util.py.diff</a> | <a href="../wiki/imported_issue_attachments/1348/ticket_610_1348_unified.diff">ticket_610_1348_unified.diff</a></p>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">Using a bound parameter more than once in a select fails when using a paramstyle of 'qmark'.<br> Attached is a test case. Also attached is a hack to the get_params method to retain the full list of parameters.</p> <p dir="auto">The real problem is sql.ClauseParameters doesn't allow duplicated keys. Maybe it should have an append method that<br> get_params() would use instead of set_parameter().</p> <p dir="auto">--Bill</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/280/get_params.diff">get_params.diff</a> | <a href="../wiki/imported_issue_attachments/280/test_bindparam.py">test_bindparam.py</a></p>
0
<p dir="auto">Hi,</p> <p dir="auto">Is there a way to know in onResourceReady if the drawable was loaded from disk/cache/network ? just like picasso does.<br> This is very practical to only animate new drawable when coming from network (in listview).</p> <p dir="auto">Thanks</p>
<p dir="auto">There should be an optionally available way of displaying an indicator on the target which tells you any feasible combination of these:</p> <ul dir="auto"> <li>it was downloaded from the network</li> <li>it was loaded from disk cache</li> <li>it was loaded from memory cache</li> <li>it was just put into disk cache</li> <li>it was just put into memory cache</li> <li>it's a thumbnail</li> <li>it's a placeholder</li> </ul>
1
<p dir="auto">Using latest release of kube-apiserver and kubectl, with etcd 2.2.1 and a fresh data directory</p> <p dir="auto"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"3+", GitVersion:"v1.3.0-alpha.4", GitCommit:"9990f843cd62caa90445cf76b07d63ba7b5c86fd", GitTreeState:"clean", BuildDate:"2016-05-17T21:58:54Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"3+", GitVersion:"v1.3.0-alpha.4", GitCommit:"9990f843cd62caa90445cf76b07d63ba7b5c86fd", GitTreeState:"clean", BuildDate:"2016-05-17T21:51:30Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"} </code></p> <p dir="auto">I can create a ThirdPartyResource type okay with lets say a name of student.stable.acme.com via ./kubectl create -f student-type-setup.yaml, this returns a sucess message. I then can get and list via curl at /apis/stable.acme.com/v1/students no problem.</p> <p dir="auto">However if I add another third party resource type say course.stable.acme.com, I can't list from this, server returns a 404, even though it was added successfully.</p> <p dir="auto">More strangely, if at this point I restart the api server, 'courses' now lists okay, but voila 'student's no longer list. Guessing as my etcd knowledge is very very limited - it's almost as if they are keyed to the same key. At this stage I'm guessing this is related to storage.</p>
<p dir="auto">I am trying to install the following thirdparty resources:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="metadata: name: compute-node.tess.io apiVersion: extensions/v1beta1 kind: ThirdPartyResource description: &quot;A compute node object is used by the mastercontroller to track computes in cloud&quot; versions: - name: v1"><pre class="notranslate"><span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s">compute-node.tess.io</span> <span class="pl-ent">apiVersion</span>: <span class="pl-s">extensions/v1beta1</span> <span class="pl-ent">kind</span>: <span class="pl-s">ThirdPartyResource</span> <span class="pl-ent">description</span>: <span class="pl-s"><span class="pl-pds">"</span>A compute node object is used by the mastercontroller to track computes in cloud<span class="pl-pds">"</span></span> <span class="pl-ent">versions</span>: - <span class="pl-ent">name</span>: <span class="pl-c1">v1</span></pre></div> <p dir="auto">And</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="metadata: name: node-pool.tess.io apiVersion: extensions/v1beta1 kind: ThirdPartyResource description: &quot;A node pool object to nodes is analogous to what a replicationcontroller is to pods&quot; versions: - name: v1"><pre class="notranslate"><span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s">node-pool.tess.io</span> <span class="pl-ent">apiVersion</span>: <span class="pl-s">extensions/v1beta1</span> <span class="pl-ent">kind</span>: <span class="pl-s">ThirdPartyResource</span> <span class="pl-ent">description</span>: <span class="pl-s"><span class="pl-pds">"</span>A node pool object to nodes is analogous to what a replicationcontroller is to pods<span class="pl-pds">"</span></span> <span class="pl-ent">versions</span>: - <span class="pl-ent">name</span>: <span class="pl-c1">v1</span></pre></div> <p dir="auto">The first one gets successfully registered when I try to create it. But the second on never gets registered and kubectl does not throw an error out either. I digged a little deep into the kube-apiserver logs and I see the following error:</p> <p dir="auto"><code class="notranslate">Recovered from panic: "http: multiple registrations for /apis/tess.io/v1" (http: multiple registrations for /apis/tess.io/v1)</code></p> <p dir="auto">When I digged deep into the thirdparty controller and master.go, here: <a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/master/master.go#L611">https://github.com/kubernetes/kubernetes/blob/master/pkg/master/master.go#L611</a>, I see that we have not covered the case where there can be 2 API objects defined on the same resource path prefix, like <code class="notranslate">/apis/tess.io/v1/nodepools</code> and <code class="notranslate">/apis/tess.io/v1/computenodes</code></p> <p dir="auto">Is there something I am missing, or is this a genuine issue you think ?</p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="use std::io; fn make_proc() -&gt; proc() { let s = ~&quot;foo&quot;; proc() { drop(s); io::stderr().write_str(s).unwrap(); } } fn main() { let p = make_proc(); p(); }"><pre lang=".rs" class="notranslate"><code class="notranslate">use std::io; fn make_proc() -&gt; proc() { let s = ~"foo"; proc() { drop(s); io::stderr().write_str(s).unwrap(); } } fn main() { let p = make_proc(); p(); } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc -v rustc 0.10-pre (68a4f7d 2014-02-24 12:42:02 -0800) host: x86_64-unknown-linux-gnu $ rustc foo.rs $ ./foo Segmentation fault"><pre class="notranslate"><code class="notranslate">$ rustc -v rustc 0.10-pre (68a4f7d 2014-02-24 12:42:02 -0800) host: x86_64-unknown-linux-gnu $ rustc foo.rs $ ./foo Segmentation fault </code></pre></div> <p dir="auto">(Apologies if this has already been fixed; I'm using Servo's <code class="notranslate">rustc</code>.)</p>
<h1 dir="auto">Updated bug</h1> <p dir="auto">The compiler allows this code when it shouldn't</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { let a = ~&quot;&quot;; let b: ~[&amp;str] = a.lines().collect(); drop(a); for s in b.iter() { println!(&quot;{}&quot;, *s); } }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> a = ~""<span class="pl-kos">;</span> <span class="pl-k">let</span> b<span class="pl-kos">:</span> ~<span class="pl-kos">[</span><span class="pl-c1">&amp;</span><span class="pl-smi">str</span><span class="pl-kos">]</span> = a<span class="pl-kos">.</span><span class="pl-en">lines</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">collect</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">drop</span><span class="pl-kos">(</span>a<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">for</span> s <span class="pl-k">in</span> b<span class="pl-kos">.</span><span class="pl-en">iter</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, *s<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h1 dir="auto">Original description</h1> <p dir="auto">The following code is buggy:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let foo = ~&quot;hello&quot;; let foo: ~[&amp;str] = foo.words().collect(); let invalid_string = foo[0];"><pre class="notranslate"><span class="pl-k">let</span> foo = ~"hello"<span class="pl-kos">;</span> <span class="pl-k">let</span> foo<span class="pl-kos">:</span> ~<span class="pl-kos">[</span><span class="pl-c1">&amp;</span><span class="pl-smi">str</span><span class="pl-kos">]</span> = foo<span class="pl-kos">.</span><span class="pl-en">words</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">collect</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> invalid_string = foo<span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Invalid string contains, as the name suggests, an invalid string; sometimes I get a string filled with <code class="notranslate">\x00</code>, sometimes just garbage, and usually it will eventually assert that the string contains invalid characters.</p> <p dir="auto">It appears that the first <code class="notranslate">foo</code> gets dropped when the second one is assigned?<br> Either the first <code class="notranslate">foo</code> is supposed to be dropped as happens now, and the borrow checker should forbid this code (since the old <code class="notranslate">foo</code> no longer exists, <code class="notranslate">&amp;str</code> cannot have a lifetime), or it should let the first <code class="notranslate">foo</code> live until the end of the current scope, and make the above work.</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [10.0.18362.387] PowerToys version: 0.12.0.0 PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: [10.0.18362.387] PowerToys version: 0.12.0.0 PowerToy module for which you are reporting the bug (if applicable): FancyZones </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Install GreenShot from <a href="https://getgreenshot.org/downloads/" rel="nofollow">https://getgreenshot.org/downloads/</a></li> <li>Set GreenShot to capture a region (draw a box) for capture</li> <li>Apply a custom Fanzyzones layout. Mine is 3 columns, with the left column split into 3 rows.</li> <li>Press [Print Screen]</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">I should be able to capture the screen from any monitor. Draw a box around what I want captured. Open GreenShot to edit/annotate.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The zones are duplicating into other zones, and the mouse is locked into the center zone. The information I wanted to capture is no longer on the screen, overwritten by the left panel information. The program completely malfunctions and I have to press [ESC] to stop the screen capture.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5576809/67909489-a1a40000-fb3c-11e9-98dd-7007f885cf90.png"><img src="https://user-images.githubusercontent.com/5576809/67909489-a1a40000-fb3c-11e9-98dd-7007f885cf90.png" alt="Annotation 2019-10-30 173816" style="max-width: 100%;"></a></p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">I mainly want to use PowerToys Run to switch between running apps, and occasionally start new apps through it. Currently it works in a way, that it shows in the results the installed apps first, and only then the running apps.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">It would be great if there would be an option where I could choose if I want PowerToys to show me the installed apps or the running apps first.</p>
0
<h4 dir="auto">Code Sample</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd import io text = &quot;&quot;&quot; A B C 1 1 1 1 2 2 2 1 3 2 2 4 &quot;&quot;&quot; df = pd.read_csv(io.StringIO(text), delimiter = ' ') # Note the output of get_level_values is the list of all values [1, 1, 2, 2] print(df.index.get_level_values('A').tolist()) df.set_index(['A','B'], inplace = True) df.index.set_levels(df.index.get_level_values('A').map(lambda x: x * 2), level='A', inplace=True) print(df.index.get_level_values('A').tolist()) # outputs [2, 2, 2, 2]"><pre class="notranslate"><code class="notranslate">import pandas as pd import io text = """ A B C 1 1 1 1 2 2 2 1 3 2 2 4 """ df = pd.read_csv(io.StringIO(text), delimiter = ' ') # Note the output of get_level_values is the list of all values [1, 1, 2, 2] print(df.index.get_level_values('A').tolist()) df.set_index(['A','B'], inplace = True) df.index.set_levels(df.index.get_level_values('A').map(lambda x: x * 2), level='A', inplace=True) print(df.index.get_level_values('A').tolist()) # outputs [2, 2, 2, 2] </code></pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto"><code class="notranslate">[2, 2, 4, 4]</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# If I re-order the input as: text = &quot;&quot;&quot; A B C 1 1 1 2 1 2 1 2 3 2 2 4 &quot;&quot;&quot; # it works as I expected giving [2, 4, 2, 4]"><pre class="notranslate"><code class="notranslate"># If I re-order the input as: text = """ A B C 1 1 1 2 1 2 1 2 3 2 2 4 """ # it works as I expected giving [2, 4, 2, 4] </code></pre></div> <p dir="auto">Is this a bug or expected behaviour?</p> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.5.1.final.0<br> python-bits: 64<br> OS: Windows<br> OS-release: 7<br> machine: AMD64<br> processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: None</p> <p dir="auto">pandas: 0.18.1<br> nose: 1.3.7<br> pip: 8.1.1<br> setuptools: 20.3<br> Cython: 0.23.4<br> numpy: 1.10.4<br> scipy: 0.17.0<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 4.1.2<br> sphinx: 1.3.1<br> patsy: 0.4.0<br> dateutil: 2.5.1<br> pytz: 2016.2<br> blosc: None<br> bottleneck: 1.0.0<br> tables: 3.2.2<br> numexpr: 2.5<br> matplotlib: 1.5.1<br> openpyxl: 2.3.2<br> xlrd: 0.9.4<br> xlwt: 1.0.0<br> xlsxwriter: 0.8.4<br> lxml: 3.6.0<br> bs4: 4.4.1<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.0.12<br> pymysql: 0.7.5.None<br> psycopg2: None<br> jinja2: 2.8<br> boto: 2.39.0<br> pandas_datareader: None</p>
<p dir="auto">Small example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [87]: df = pd.DataFrame(columns=pd.MultiIndex.from_product([['A','B'],['a','b']]))"><pre class="notranslate"><code class="notranslate">In [87]: df = pd.DataFrame(columns=pd.MultiIndex.from_product([['A','B'],['a','b']])) </code></pre></div> <p dir="auto">Setting the levels with an incorrect levels (too short), fails (correctly of course):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [92]: df.columns.set_levels(['c'], level=1) ... ValueError: On level 1, label max (1) &gt;= length of level (1). NOTE: this index is in an inconsistent state"><pre class="notranslate"><code class="notranslate">In [92]: df.columns.set_levels(['c'], level=1) ... ValueError: On level 1, label max (1) &gt;= length of level (1). NOTE: this index is in an inconsistent state </code></pre></div> <p dir="auto">When using <code class="notranslate">inplace=True</code>, this also gives the same error message, but the index <em>is</em> actually changed to this inconsistent state:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [93]: df.columns.set_levels(['c'], level=1, inplace=True) ... ValueError: On level 1, label max (1) &gt;= length of level (1). NOTE: this index is in an inconsistent state In [94]: df.columns Out[94]: MultiIndex(levels=[[u'A', u'B'], [u'c']], labels=[[0, 0, 1, 1], [0, 1, 0, 1]])"><pre class="notranslate"><code class="notranslate">In [93]: df.columns.set_levels(['c'], level=1, inplace=True) ... ValueError: On level 1, label max (1) &gt;= length of level (1). NOTE: this index is in an inconsistent state In [94]: df.columns Out[94]: MultiIndex(levels=[[u'A', u'B'], [u'c']], labels=[[0, 0, 1, 1], [0, 1, 0, 1]]) </code></pre></div> <p dir="auto">Just showing this <code class="notranslate">df</code> in the console did crash my session in the case above, in the example from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="166796174" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/13741" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/13741/hovercard" href="https://github.com/pandas-dev/pandas/issues/13741">#13741</a>, it gave the error "IndexError: index 1 is out of bounds for axis 0 with size 1"</p>
1
<p dir="auto">Which lifecycle methods can I define on a modern ES6-class-style React component? The same as for a classic component spec? I checked the docs but I can't find much yet on the ES6 classes. Am I missing something?</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> bug (though the React code is working as intended)</p> <p dir="auto"><strong>What is the current behavior?</strong><br> When hydrating from server-rendered DOM, if <a href="https://github.com/facebook/react/blob/v16.2.0/packages/react-reconciler/src/ReactFiberHydrationContext.js#L229">react-reconciler encounters an unexpected node</a> it will peek ahead to the next DOM node and test if it is the expected node. If so, react-reconciler will delete the unexpected node and continue on by using the second node to hydrate. If the second node does not match the instance then the reconciler gives up and begins inserting DOM nodes without trying to reconcile.</p> <p dir="auto">In our case, we are server-side rendering the entire #document server-side and re-hydrating at that level. Some 3rd party analytics scripts are injected at the top of before the hydrate call happens, causing the entire application to be injected into the body instead of reconciled with the existing nodes.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template for React 16: <a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>, template for React 15: <a href="https://jsfiddle.net/hmbg7e9w/" rel="nofollow">https://jsfiddle.net/hmbg7e9w/</a>).</strong><br> I can force this to happen in our app by injecting two (or more) empty <code class="notranslate">script</code> tags at the top of . I've not been able to reproduce via jsfiddle; unsure what the exact combination of flags are to force this specific code path.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="document.body.insertBefore(document.createElement('script'), document.body.children[0]); document.body.insertBefore(document.createElement('script'), document.body.children[0]);"><pre class="notranslate"><code class="notranslate">document.body.insertBefore(document.createElement('script'), document.body.children[0]); document.body.insertBefore(document.createElement('script'), document.body.children[0]); </code></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong><br> Ideally the reconciler would look at all of the sibling nodes to find the matching element.</p> <p dir="auto">A comment in the code at the relevant location says</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// If we can't hydrate this instance let's try the next one. // We use this as a heuristic. It's based on intuition and not data so it // might be flawed or unnecessary."><pre class="notranslate"><code class="notranslate">// If we can't hydrate this instance let's try the next one. // We use this as a heuristic. It's based on intuition and not data so it // might be flawed or unnecessary. </code></pre></div> <p dir="auto">I hacked together a change to prove out inspecting all sibling elements and that seems to be working with no unintended consequences. I modified</p> <p dir="auto"><code class="notranslate">nextInstance = getNextHydratableSibling(nextInstance);</code><br> to be<br> <code class="notranslate">while (nextInstance = getNextHydratableSibling(nextInstance), nextInstance &amp;&amp; !canHydrate(fiber, nextInstance)) {};</code></p> <p dir="auto">So nextInstance will either be the hydratable sibling or it will be null.</p> <p dir="auto">Using <code class="notranslate">performance.now()</code> on my Mac Book Pro, I do not observe this O(1) -&gt; O(n) change to be measurable in my situation.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="with matching DOM: 118-144ms with mismatched DOM: 116-172ms mismatchedDOM &amp; updated function: 116-163ms"><pre class="notranslate"><code class="notranslate">with matching DOM: 118-144ms with mismatched DOM: 116-172ms mismatchedDOM &amp; updated function: 116-163ms </code></pre></div> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br> This was introduced with React 16s new hydration approach. (I'll take this over the Invariant 42 full-stop error; thanks for building the new approach!).</p>
0
<h3 dir="auto">Expected Behavior</h3> <p dir="auto">App should run as expected on 127.0.0.1 with debugger mode enabled</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Paste a minimal example that causes the problem. # .. E:/web/public/myblog.in/hello.py from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!'"><pre class="notranslate"><span class="pl-c"># Paste a minimal example that causes the problem.</span> <span class="pl-c"># .. E:/web/public/myblog.in/hello.py</span> <span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s1">__name__</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">'/'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">hello_world</span>(): <span class="pl-k">return</span> <span class="pl-s">'Hello, World!'</span></pre></div> <p dir="auto">all configs and venv enabled as <a href="https://flask.palletsprojects.com/en/1.1.x/quickstart/" rel="nofollow">https://flask.palletsprojects.com/en/1.1.x/quickstart/</a></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export FLASK_APP=hello.py "><pre class="notranslate"><span class="pl-k">export</span> FLASK_APP=hello.py </pre></div> <h3 dir="auto">Actual Behavior</h3> <p dir="auto"><code class="notranslate">flask run</code> works as expected. I can see the "Hello world" without issues, <strong>unless</strong> I enabled debug mode as <code class="notranslate">export FLASK_ENV=development</code> in which case if I run <code class="notranslate">flask run</code> I get</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ flask run * Serving Flask app &quot;hello.py&quot; (lazy loading) * Environment: development * Debug mode: on * Restarting with stat e:\web\public\myblog.in\venv\scripts\python.exe: Error while finding module specification for 'E:\\web\\public\\myblog.in\\venv\\Scripts\\flask' (ModuleNotFoundError: No module named 'E:\\web\\public\\myblog') "><pre class="notranslate">$ flask run <span class="pl-k">*</span> Serving Flask app <span class="pl-s"><span class="pl-pds">"</span>hello.py<span class="pl-pds">"</span></span> (lazy loading) <span class="pl-k">*</span> Environment: development <span class="pl-k">*</span> Debug mode: on <span class="pl-k">*</span> Restarting with stat e:<span class="pl-cce">\w</span>eb<span class="pl-cce">\p</span>ublic<span class="pl-cce">\m</span>yblog.in<span class="pl-cce">\v</span>env<span class="pl-cce">\s</span>cripts<span class="pl-cce">\p</span>ython.exe: Error <span class="pl-k">while</span> finding module specification <span class="pl-k">for</span> <span class="pl-s"><span class="pl-pds">'</span>E:\\web\\public\\myblog.in\\venv\\Scripts\\flask<span class="pl-pds">'</span></span> (ModuleNotFoundError: No module named <span class="pl-s"><span class="pl-pds">'</span>E:\\web\\public\\myblog<span class="pl-pds">'</span></span>) </pre></div> <p dir="auto">You can see in the last error it says <code class="notranslate">No module named 'E:\\web\\public\\myblog</code> (it should be ..<code class="notranslate">\\myblog.in</code> <strong>(.in)</strong> is missing, maybe that is the issue (bug)</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Python version: 3.7.1</li> <li>Flask version: 1.1.x</li> <li>Werkzeug version: 0.15.5</li> </ul>
<p dir="auto">When <code class="notranslate">jsonify</code> is called on an object with a 'date' it throws:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: datetime.date(2012, 3, 30) is not JSON serializable"><pre class="notranslate"><code class="notranslate">TypeError: datetime.date(2012, 3, 30) is not JSON serializable </code></pre></div> <p dir="auto">There is an innocuous fix - see <a href="http://stackoverflow.com/questions/455580" rel="nofollow">http://stackoverflow.com/questions/455580</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def date_handler(obj): if hasattr(obj, 'isoformat'): return obj.isoformat() else: raise TypeError, 'Object of type %s with value of %s is not JSON serializable' % (type(obj), repr(obj))"><pre class="notranslate"><code class="notranslate">def date_handler(obj): if hasattr(obj, 'isoformat'): return obj.isoformat() else: raise TypeError, 'Object of type %s with value of %s is not JSON serializable' % (type(obj), repr(obj)) </code></pre></div> <p dir="auto">And <a href="https://github.com/mitsuhiko/flask/blob/master/flask/helpers.py#L142">https://github.com/mitsuhiko/flask/blob/master/flask/helpers.py#L142</a> becomes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="json_str = json.dumps(dict(*args, **kwargs), indent=None, default=date_handler)"><pre class="notranslate"><code class="notranslate">json_str = json.dumps(dict(*args, **kwargs), indent=None, default=date_handler) </code></pre></div> <p dir="auto">This strikes me as preferable to TypeError.</p> <p dir="auto">Alternatively, <code class="notranslate">jsonify</code> could accept a <code class="notranslate">default</code> argument that is passed to <code class="notranslate">json.dumps</code>.</p>
0
<p dir="auto">When bundling multiple files with -m system, the module names should include the file extension. Otherwise, they are loaded but not executed by systemjs.</p> <p dir="auto">Before:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" System.register(&quot;app/boot&quot;, [...], ..."><pre class="notranslate"> <span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-c1">register</span><span class="pl-kos">(</span><span class="pl-s">"app/boot"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span>...<span class="pl-kos">]</span><span class="pl-kos">,</span> ...</pre></div> <p dir="auto">After:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" System.register(&quot;app/boot.js&quot;, [...], ..."><pre class="notranslate"> <span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-c1">register</span><span class="pl-kos">(</span><span class="pl-s">"app/boot.js"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span>...<span class="pl-kos">]</span><span class="pl-kos">,</span> ...</pre></div> <p dir="auto">See here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="129972277" data-permission-text="Title is private" data-url="https://github.com/systemjs/systemjs/issues/1065" data-hovercard-type="issue" data-hovercard-url="/systemjs/systemjs/issues/1065/hovercard" href="https://github.com/systemjs/systemjs/issues/1065">systemjs/systemjs#1065</a></p>
<p dir="auto">Currently, TS can't find modules when you use a file extension in the import name (<code class="notranslate">import {Foo} from './foo.ts';</code>) - <a href="https://github.com/systemjs/systemjs/releases/tag/0.17.0">SystemJS updated</a> and file extensions are now <a href="https://github.com/whatwg/loader/issues/52" data-hovercard-type="issue" data-hovercard-url="/whatwg/loader/issues/52/hovercard"><em>required</em></a> (though the spec issue is still under discussion) on imports (without setting some legacy settings in <code class="notranslate">System.config</code>). So when compiling with <code class="notranslate">--module</code>, you can either have a functioning typechecker (no extensions on your imports) or a functioning runtime (<code class="notranslate">.js</code> on your imports, since your result files have <code class="notranslate">.js</code> extensions). This is complicated further by systemjs's <a href="https://github.com/systemjs/builder">bundler</a>, which looks for dependent files <em>before</em> TS transpiles them, so you have to use <code class="notranslate">.ts</code> extensions on your imports so the <em>bundler</em> can resolve the paths to real ones.</p> <p dir="auto">This extension madness is all incredibly awkward to work with, and I'm not sure if this needs module resolution logic updating on our part, arguing for old behavior on the loader spec, or talking to <code class="notranslate">systemjs</code> and having them change how they're finding modules ignoring the spec.</p>
1
<p dir="auto">Unable to require dependencies on the constructor of a service.</p> <p dir="auto">Angular <code class="notranslate">@angular/core : 2.0.0</code><br> <code class="notranslate">"angular-cli": "1.0.0-beta.16"</code><br> <code class="notranslate">"typescript": "2.0.2"</code></p> <p dir="auto"><strong>Note :</strong> If I just clear the constructor dependencies defined in the <code class="notranslate">CustomerService class</code> then it works like a charm.</p> <p dir="auto"><code class="notranslate">@Injectable() export class CustomerService constructor(private authService: AuthService, private siteService: SiteService) { }</code></p> <p dir="auto"><code class="notranslate">AuthService and Site Service Class</code> and It's dependencies are loaded with no problem. Just some sudo facade of AuthService and SiteService Class</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Injectable() export class AuthService constructor(private http: Http, private storageService: StorageService, private siteService: SiteService, private router: Router) {} @Injectable() export class SiteService { constructor(private http: Http, private storageService: StorageService) {} And also App Module @ngModule decorator."><pre class="notranslate"><code class="notranslate">@Injectable() export class AuthService constructor(private http: Http, private storageService: StorageService, private siteService: SiteService, private router: Router) {} @Injectable() export class SiteService { constructor(private http: Http, private storageService: StorageService) {} And also App Module @ngModule decorator. </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@NgModule({ declarations: [ AppComponent, AuthComponent, LoginComponent, HeaderComponent, SignupComponent, CompanyComponent, Step2Component ], imports: [ BrowserModule, FormsModule, HttpModule, AngularAppRoutingModule ], providers: [ AuthGuard, AuthService, StorageService, StepsNavigatorGuard, SiteService, CustomerService], bootstrap: [AppComponent] })"><pre class="notranslate"><code class="notranslate">@NgModule({ declarations: [ AppComponent, AuthComponent, LoginComponent, HeaderComponent, SignupComponent, CompanyComponent, Step2Component ], imports: [ BrowserModule, FormsModule, HttpModule, AngularAppRoutingModule ], providers: [ AuthGuard, AuthService, StorageService, StepsNavigatorGuard, SiteService, CustomerService], bootstrap: [AppComponent] }) </code></pre></div>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">Services that implement the <code class="notranslate">OnDestroy</code> interface that are included in the root <code class="notranslate">NgModule</code> providers are automatically instantiated. If the service injects the <code class="notranslate">Router</code>, it throws an error.</p> <p dir="auto"><code class="notranslate">Error: Bootstrap at least one component before injecting Router</code></p> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">Services injecting the router that implement the <code class="notranslate">OnDestroy</code> interface are instantiated without error.</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://plnkr.co" rel="nofollow">https://plnkr.co</a> or similar (you can use this template as a starting point: <a href="http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5" rel="nofollow">http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5</a>).</p> <p dir="auto"><a href="http://plnkr.co/edit/JQVPXQt62G2W56S84R5R?p=preview" rel="nofollow">http://plnkr.co/edit/JQVPXQt62G2W56S84R5R?p=preview</a></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.5</li> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> <li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]</li> </ul> <p dir="auto">@MikeRyan52 <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/meenie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/meenie">@meenie</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vsavkin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vsavkin">@vsavkin</a></p>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Documentation Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ansible/lib/ansible/modules/cloud/amazon/*</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] </code></pre></div> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Working with three modules from the cloud/amazon library</p> <ul dir="auto"> <li>iam</li> <li>iam_policy</li> <li>s3_bucket</li> </ul> <p dir="auto">I had to experiment with the ansible user I created on amazon to get the user privileges correct for each module. This was because I want to allow the anisble user the MINIMUM required to perform the actions in my role and no more. Finally I created the following two policies:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//Create a user { &quot;Version&quot;: &quot;2012-10-17&quot;, &quot;Statement&quot;: [ { &quot;Sid&quot;: &quot;AllowUsersToPerformUserActions&quot;, &quot;Effect&quot;: &quot;Allow&quot;, &quot;Action&quot;: [ &quot;iam:GetUser&quot;, &quot;iam:UpdateUser&quot;, &quot;iam:CreateUser&quot;, &quot;iam:CreateAccessKey&quot;, &quot;iam:PutUserPolicy&quot;, &quot;iam:ListUsers&quot;, &quot;iam:ListAccessKeys&quot;, &quot;iam:ListGroups&quot;, &quot;iam:ListRoles&quot;, &quot;iam:ListInstanceProfiles&quot;, &quot;iam:ListGroupsForUser&quot;, &quot;iam:ListUserPolicies&quot;, &quot;iam:ListAttachedUserPolicies&quot; ], &quot;Resource&quot;: &quot;*&quot; } ] } //Create a bucket { &quot;Version&quot;: &quot;2012-10-17&quot;, &quot;Statement&quot;: [ { &quot;Sid&quot;: &quot;DBCreateVersionedBucketWithTags&quot;, &quot;Effect&quot;: &quot;Allow&quot;, &quot;Action&quot;: [ &quot;s3:CreateBucket&quot;, &quot;s3:ListBucket&quot;, &quot;s3:GetBucketPolicy&quot;, &quot;s3:GetBucketVersioning&quot;, &quot;s3:GetBucketRequestPayment&quot;, &quot;s3:GetBucketTagging&quot;, &quot;s3:PutBucketPolicy&quot;, &quot;s3:PutBucketTagging&quot;, &quot;s3:PutBucketVersioning&quot; ], &quot;Resource&quot;: [ &quot;*&quot; ] } ] }"><pre class="notranslate"><span class="pl-c">//Create a user</span> <span class="pl-kos">{</span> <span class="pl-s">"Version"</span>: <span class="pl-s">"2012-10-17"</span><span class="pl-kos">,</span> <span class="pl-s">"Statement"</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-s">"Sid"</span>: <span class="pl-s">"AllowUsersToPerformUserActions"</span><span class="pl-kos">,</span> <span class="pl-s">"Effect"</span>: <span class="pl-s">"Allow"</span><span class="pl-kos">,</span> <span class="pl-s">"Action"</span>: <span class="pl-kos">[</span> <span class="pl-s">"iam:GetUser"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:UpdateUser"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:CreateUser"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:CreateAccessKey"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:PutUserPolicy"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:ListUsers"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:ListAccessKeys"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:ListGroups"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:ListRoles"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:ListInstanceProfiles"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:ListGroupsForUser"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:ListUserPolicies"</span><span class="pl-kos">,</span> <span class="pl-s">"iam:ListAttachedUserPolicies"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"Resource"</span>: <span class="pl-s">"*"</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-c">//Create a bucket</span> <span class="pl-kos">{</span> <span class="pl-s">"Version"</span>: <span class="pl-s">"2012-10-17"</span><span class="pl-kos">,</span> <span class="pl-s">"Statement"</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-s">"Sid"</span>: <span class="pl-s">"DBCreateVersionedBucketWithTags"</span><span class="pl-kos">,</span> <span class="pl-s">"Effect"</span>: <span class="pl-s">"Allow"</span><span class="pl-kos">,</span> <span class="pl-s">"Action"</span>: <span class="pl-kos">[</span> <span class="pl-s">"s3:CreateBucket"</span><span class="pl-kos">,</span> <span class="pl-s">"s3:ListBucket"</span><span class="pl-kos">,</span> <span class="pl-s">"s3:GetBucketPolicy"</span><span class="pl-kos">,</span> <span class="pl-s">"s3:GetBucketVersioning"</span><span class="pl-kos">,</span> <span class="pl-s">"s3:GetBucketRequestPayment"</span><span class="pl-kos">,</span> <span class="pl-s">"s3:GetBucketTagging"</span><span class="pl-kos">,</span> <span class="pl-s">"s3:PutBucketPolicy"</span><span class="pl-kos">,</span> <span class="pl-s">"s3:PutBucketTagging"</span><span class="pl-kos">,</span> <span class="pl-s">"s3:PutBucketVersioning"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"Resource"</span>: <span class="pl-kos">[</span> <span class="pl-s">"*"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">However, I am still not completely sure these are the MINIMUM required by the modules.</p> <p dir="auto">Can I request that the module documentation include a set of minimal permissions for performing each module operation? Or is that beyond the scope of the docs?</p> <p dir="auto">Many thanks</p>
<ul dir="auto"> <li>Documentation Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">aws modules (various)</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">2.2.1.0</p> <p dir="auto">Documentation for AWS specific modules (ec2_vol etc), should outline which IAM permissions are required for the module to work.</p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">There should be a note on the AWS specific module outlining the list of IAM permissions that module uses to do it's job. Otherwise the end user is left with the prospect of pouring through ansible source code, and trying to guess what has been called. At the very least, the sts coded errors should be displayed to the user in the output together with the existing 'permission denied' error.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Currently the error message of 'permission denied' is pretty useless, as you don't know WHICH permission was denied, or which was being attempted, either.</p>
1
<ul dir="auto"> <li>What version of Go are you using (go version)?</li> </ul> <p dir="auto">The same problem exists on</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="go version go1.4.2 linux/amd64 go version devel +5ee5528 Thu May 28 12:04:35 2015 +0000 linux/amd64"><pre class="notranslate"><code class="notranslate">go version go1.4.2 linux/amd64 go version devel +5ee5528 Thu May 28 12:04:35 2015 +0000 linux/amd64 </code></pre></div> <ul dir="auto"> <li>What operating system and processor architecture are you using?</li> </ul> <p dir="auto">Linux amd64, ubuntu 14.04</p> <ul dir="auto"> <li>What did you do?</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://gist.github.com/883d01d0274dda5e32d1.git bug cd bug go build"><pre class="notranslate"><code class="notranslate">git clone https://gist.github.com/883d01d0274dda5e32d1.git bug cd bug go build </code></pre></div> <ul dir="auto"> <li>What did you expect to see?</li> </ul> <p dir="auto">No error</p> <ul dir="auto"> <li>What did you see instead?</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./e.go:4: TypeType.New undefined (type *Type has no field or method New)"><pre class="notranslate"><code class="notranslate">./e.go:4: TypeType.New undefined (type *Type has no field or method New) </code></pre></div> <p dir="auto">If you look in <a href="https://gist.github.com/ncw/883d01d0274dda5e32d1#file-t-go">t.go</a> you can see that method is defined.</p> <p dir="auto">If you concatenate <a href="https://gist.github.com/ncw/883d01d0274dda5e32d1#file-e-go">e.go</a> and <code class="notranslate">t.go</code> and compile (remove duplicate package line) then it compiles fine.</p> <p dir="auto"><a href="https://gist.github.com/ncw/883d01d0274dda5e32d1">Here is the Gist</a></p> <h2 dir="auto">e.go</h2> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package foo var ( Base = TypeType.New() // To trigger the problem // * Need Base as argument - it is fine if you substitute with nil // * Need the x, _ = form of call Something, _ = NewSomething(Base) ) func NewSomething(t *Type) (*Type, error) { return nil, nil }"><pre class="notranslate"><span class="pl-k">package</span> foo <span class="pl-k">var</span> ( <span class="pl-s1">Base</span> <span class="pl-c1">=</span> <span class="pl-s1">TypeType</span>.<span class="pl-en">New</span>() <span class="pl-c">// To trigger the problem</span> <span class="pl-c">// * Need Base as argument - it is fine if you substitute with nil</span> <span class="pl-c">// * Need the x, _ = form of call</span> <span class="pl-s1">Something</span>, <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-en">NewSomething</span>(<span class="pl-s1">Base</span>) ) <span class="pl-k">func</span> <span class="pl-en">NewSomething</span>(<span class="pl-s1">t</span> <span class="pl-c1">*</span><span class="pl-smi">Type</span>) (<span class="pl-c1">*</span><span class="pl-smi">Type</span>, <span class="pl-smi">error</span>) { <span class="pl-k">return</span> <span class="pl-c1">nil</span>, <span class="pl-c1">nil</span> }</pre></div> <h2 dir="auto">t.go</h2> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package foo type Type struct{} var TypeType *Type = &amp;Type{} func (t *Type) New() *Type { return &amp;Type{} }"><pre class="notranslate"><span class="pl-k">package</span> foo <span class="pl-k">type</span> <span class="pl-smi">Type</span> <span class="pl-k">struct</span>{} <span class="pl-k">var</span> <span class="pl-s1">TypeType</span> <span class="pl-c1">*</span><span class="pl-smi">Type</span> <span class="pl-c1">=</span> <span class="pl-c1">&amp;</span><span class="pl-smi">Type</span>{} <span class="pl-k">func</span> (<span class="pl-s1">t</span> <span class="pl-c1">*</span><span class="pl-smi">Type</span>) <span class="pl-en">New</span>() <span class="pl-c1">*</span><span class="pl-smi">Type</span> { <span class="pl-k">return</span> <span class="pl-c1">&amp;</span><span class="pl-smi">Type</span>{} }</pre></div>
<h1 dir="auto">The Proposal</h1> <p dir="auto">Deadlock's make programs fail. Partial deadlocks (where a subset of the goroutines in a system are deadlocked) are difficult to find and debug. While predicting the occurrences of these deadlocks is not computable, detecting them when they occur is. Adding in a partial deadlock detector would be a powerful tool in debugging our concurrent programs.</p> <p dir="auto">Like the race detector, a flag-able deadlock detector would use environment variables to log, or exit on detected deadlocks. The deadlock detector would <em>not</em> detect all deadlocks, or potential deadlocks, only a subset of those that are occurring.</p> <p dir="auto">The goal of this proposal is to see if such a feature is desirable, and present a plausible implementation. If it is desirable a detailed design doc will follow.</p> <h2 dir="auto">Is this the Halting Problem?</h2> <p dir="auto">No. If the <a href="https://en.wikipedia.org/wiki/Deadlock#Necessary_conditions" rel="nofollow">necessary conditions are met</a> the program will not continue.</p> <h1 dir="auto">Proposed Implementation</h1> <h2 dir="auto">High Level</h2> <p dir="auto">In short the proposed implementation is to "hook" into the garbage collector, and use it's mark phase to build a <a href="https://en.wikipedia.org/wiki/Wait-for_graph" rel="nofollow">wait-for graph</a>. Then use <a href="https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm" rel="nofollow">Tarjan's algorithm</a> to find deadlock cycles. That is the strongly connect components with no edges to non deadlocked components.</p> <h2 dir="auto">More Detailed</h2> <p dir="auto">As go uses a <em>mark-sweep</em> garbage collector most of the computationally expensive work necessary for dead lock detection is <em>already being done</em>. Here is how the proposed detector would work (in very high level terms):</p> <ol dir="auto"> <li>At the beginning of the mark phase all goroutines in a wait state are examined, along with the object they are waiting on.</li> <li>As objects are marked (colored black or gray) from the various roots, if the object is one one of the "waited on" resources, it can be added as an edge in our wait for graph.</li> <li>Any resource which is not referenced from another root will be added as an edge to a "nothing" node.</li> <li>At the end of the mark phase (e.g. post stop the world) run Tarjan's (or similar) to determine the strongly connected components.</li> <li>If we have a strongly connected component with no edges to a non deadlocked component, the involved goroutines are deadlocked.</li> </ol> <h2 dir="auto">Notes</h2> <p dir="auto">I have intentionally glossed over:</p> <ul dir="auto"> <li>Dealing with timers (interruptible waits) and globally referenced resources</li> <li>That an object referenced by multiple roots may contain a reference to a waited on object in another root (paths to the waited on object would have to be stored and examined when previously colored nodes are addressed)</li> <li>Send and receive mechanics on channels<br> for simplicity's sake.</li> </ul>
0
<p dir="auto">This seems to be specific to Pandas as opposed to matplotlib. Worked as desired as of a few months ago when I last updated from master.</p> <p dir="auto">This is the desired behavior in matplotlib:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="plt.barh([0,1], [.3, .5], xerr=[[.1,.2], [.3,.4]], color = ['red','green'], ecolor='black')"><pre class="notranslate"><span class="pl-s1">plt</span>.<span class="pl-en">barh</span>([<span class="pl-c1">0</span>,<span class="pl-c1">1</span>], [<span class="pl-c1">.3</span>, <span class="pl-c1">.5</span>], <span class="pl-s1">xerr</span><span class="pl-c1">=</span>[[<span class="pl-c1">.1</span>,<span class="pl-c1">.2</span>], [<span class="pl-c1">.3</span>,<span class="pl-c1">.4</span>]], <span class="pl-s1">color</span> <span class="pl-c1">=</span> [<span class="pl-s">'red'</span>,<span class="pl-s">'green'</span>], <span class="pl-s1">ecolor</span><span class="pl-c1">=</span><span class="pl-s">'black'</span>)</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1308430/3450982/6507afc8-0189-11e4-9ea6-2cb3b417a9c0.png"><img src="https://cloud.githubusercontent.com/assets/1308430/3450982/6507afc8-0189-11e4-9ea6-2cb3b417a9c0.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">In the Pandas call, it seems to ignore the second error bar argument, both the upper and lower bounds of the error bar are the same:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="s = pd.Series([.3,.5]) s.plot(kind='barh', xerr=[[.1,.2], [.3,.4]], color = ['red','green'], ecolor='black')"><pre class="notranslate"><span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">.3</span>,<span class="pl-c1">.5</span>]) <span class="pl-s1">s</span>.<span class="pl-en">plot</span>(<span class="pl-s1">kind</span><span class="pl-c1">=</span><span class="pl-s">'barh'</span>, <span class="pl-s1">xerr</span><span class="pl-c1">=</span>[[<span class="pl-c1">.1</span>,<span class="pl-c1">.2</span>], [<span class="pl-c1">.3</span>,<span class="pl-c1">.4</span>]], <span class="pl-s1">color</span> <span class="pl-c1">=</span> [<span class="pl-s">'red'</span>,<span class="pl-s">'green'</span>], <span class="pl-s1">ecolor</span><span class="pl-c1">=</span><span class="pl-s">'black'</span>)</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1308430/3450991/928769fc-0189-11e4-9b16-670a6c98ce66.png"><img src="https://cloud.githubusercontent.com/assets/1308430/3450991/928769fc-0189-11e4-9b16-670a6c98ce66.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">According to <a href="http://pandas-docs.github.io/pandas-docs-travis/visualization.html#plotting-with-error-bars" rel="nofollow">the documentation</a>, asymmetric error bars should be able to be passed in to <code class="notranslate">plot</code> as an Mx2 array for a <code class="notranslate">Series</code> object or a Mx2xN array for a <code class="notranslate">DataFrame</code> object.</p> <p dir="auto">However, the code only seems to parse this correctly for a <code class="notranslate">DataFrame</code>: <a href="https://github.com/pydata/pandas/blob/master/pandas/tools/plotting.py#L1338">https://github.com/pydata/pandas/blob/master/pandas/tools/plotting.py#L1338</a></p> <p dir="auto">When passing raw error values as <code class="notranslate">yerr</code>, it seems that the first values are used as two-sided error differences, instead of being plotted as raw upper and lower values. Note the symmetric error bars below:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2080084/6335609/b0ad6f62-bb6a-11e4-941e-71154ca48eca.png"><img src="https://cloud.githubusercontent.com/assets/2080084/6335609/b0ad6f62-bb6a-11e4-941e-71154ca48eca.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Using the underlying matplotlib function directly yields the expected results, but without the pandas-generated decorations:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2080084/6335591/8a3bd170-bb6a-11e4-8e36-400f86cf6e91.png"><img src="https://cloud.githubusercontent.com/assets/2080084/6335591/8a3bd170-bb6a-11e4-8e36-400f86cf6e91.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">This was originally noted in <a href="http://stackoverflow.com/q/26793758/586086" rel="nofollow">this StackOverflow question</a> and I corroborated the other user's experience.</p>
1
<p dir="auto">My issue is about building wheels from source using the default compilers on Mac OS.</p> <h4 dir="auto">Reproducing code example:</h4> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ pip3.9 --version pip 20.2.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9) $ gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.0 (clang-1200.0.32.2) Target: x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin $ pip3.9 install -U &quot;scipy==1.5.3&quot;"><pre class="notranslate">$ pip3.9 --version pip 20.2.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9) $ gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.0 (clang-1200.0.32.2) Target: x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin $ pip3.9 install -U <span class="pl-s"><span class="pl-pds">"</span>scipy==1.5.3<span class="pl-pds">"</span></span></pre></div> <h4 dir="auto">Error message:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" clang: scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c clang: scipy/sparse/linalg/dsolve/SuperLU/SRC/csp_blas3.c scipy/sparse/linalg/dsolve/SuperLU/SRC/cgsitrf.c:251:11: warning: unused variable 'one' [-Wunused-variable] float one = 1.0; ^ clang: scipy/sparse/linalg/dsolve/SuperLU/SRC/dgssv.c scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c:175:5: error: implicit declaration of function 'ccopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ccopy_(n, x, &amp;c__1, v, &amp;c__1); ^ scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c:181:1: warning: unused label 'L90' [-Wunused-label] L90: ^~~~ 1 warning and 1 error generated. 2 warnings generated. ... # unrelated source files, asynchronous compilation error: Command &quot;clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DUSE_VENDOR_BLAS=1 -Iscipy/sparse/linalg/dsolve/SuperLU/SRC -I/private/var/folders/xg/1clp6x614c722qd1qvmwc72h0000gn/T/pip-build-env-b7rlgn9p/overlay/lib/python3.9/site-packages/numpy/core/include -c scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c -o build/temp.macosx-10.15-x86_64-3.9/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o -MMD -MF build/temp.macosx-10.15-x86_64-3.9/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o.d&quot; failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for scipy Failed to build scipy ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly ----------------------------------------"><pre class="notranslate"><code class="notranslate"> clang: scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c clang: scipy/sparse/linalg/dsolve/SuperLU/SRC/csp_blas3.c scipy/sparse/linalg/dsolve/SuperLU/SRC/cgsitrf.c:251:11: warning: unused variable 'one' [-Wunused-variable] float one = 1.0; ^ clang: scipy/sparse/linalg/dsolve/SuperLU/SRC/dgssv.c scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c:175:5: error: implicit declaration of function 'ccopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ccopy_(n, x, &amp;c__1, v, &amp;c__1); ^ scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c:181:1: warning: unused label 'L90' [-Wunused-label] L90: ^~~~ 1 warning and 1 error generated. 2 warnings generated. ... # unrelated source files, asynchronous compilation error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DUSE_VENDOR_BLAS=1 -Iscipy/sparse/linalg/dsolve/SuperLU/SRC -I/private/var/folders/xg/1clp6x614c722qd1qvmwc72h0000gn/T/pip-build-env-b7rlgn9p/overlay/lib/python3.9/site-packages/numpy/core/include -c scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c -o build/temp.macosx-10.15-x86_64-3.9/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o -MMD -MF build/temp.macosx-10.15-x86_64-3.9/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o.d" failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for scipy Failed to build scipy ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly ---------------------------------------- </code></pre></div> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <p dir="auto">Python 3.9.0<br> numpy version 1.19.3<br> scipy version 1.5.3</p> <h4 dir="auto">Additional notes</h4> <p dir="auto">Error does not occur when using the GNU compilers from Homebrew</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ gcc-10 --version gcc-10 (Homebrew GCC 10.2.0) 10.2.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ CC=gcc-10 CXX=g++-10 pip3.9 install -U scipy # normal success messages"><pre class="notranslate">$ gcc-10 --version gcc-10 (Homebrew GCC 10.2.0) 10.2.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software<span class="pl-k">;</span> see the <span class="pl-c1">source</span> <span class="pl-k">for</span> copying conditions. There is NO warranty<span class="pl-k">;</span> not even <span class="pl-k">for</span> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ CC=gcc-10 CXX=g++-10 pip3.9 install -U scipy <span class="pl-c"><span class="pl-c">#</span> normal success messages</span></pre></div>
<p dir="auto">Xcode 12 for OS X was just released, and I can't build scipy with it. The command <code class="notranslate">pip3 install . -v --user</code> fails, ending with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" error: Command &quot;clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DUSE_VENDOR_BLAS=1 -Iscipy/sparse/linalg/dsolve/SuperLU/SRC -I/private/var/folders/cp/n8wtqs490tq5psknff1hv9qr0000gn/T/pip-build-env-k4q2ai5g/overlay/lib/python3.8/site-packages/numpy/core/include -c scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c -o build/temp.macosx-10.15-x86_64-3.8/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o -MMD -MF build/temp.macosx-10.15-x86_64-3.8/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o.d&quot; failed with exit status 1 Building wheel for scipy (PEP 517): finished with status 'error' ERROR: Failed building wheel for scipy Failed to build scipy ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly"><pre class="notranslate"><code class="notranslate"> error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DUSE_VENDOR_BLAS=1 -Iscipy/sparse/linalg/dsolve/SuperLU/SRC -I/private/var/folders/cp/n8wtqs490tq5psknff1hv9qr0000gn/T/pip-build-env-k4q2ai5g/overlay/lib/python3.8/site-packages/numpy/core/include -c scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c -o build/temp.macosx-10.15-x86_64-3.8/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o -MMD -MF build/temp.macosx-10.15-x86_64-3.8/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o.d" failed with exit status 1 Building wheel for scipy (PEP 517): finished with status 'error' ERROR: Failed building wheel for scipy Failed to build scipy ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly </code></pre></div> <p dir="auto">This may be the same issue as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="671564581" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/12656" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/12656/hovercard" href="https://github.com/scipy/scipy/issues/12656">#12656</a> — at least the error at the end is the same — but that issue was closed while only providing the suggestion to use a different compiler.</p> <p dir="auto">I am using Xcode 12, plus homebrew's Python 3.8, pip3, and gfortran. Unfortunately, I am really trying to figure out how to get this to build in Sage (sagemath.org), and using a gcc toolchain instead of clang would be, at the least, very inconvenient.</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 19042 PowerToys version: v0.19.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: 19042 PowerToys version: v0.19.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Keep a browser windows or PowerToys setting page in focus (active) and use the shortcut for PowerToys Run search box to open.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The search window should open.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The shortcut (Alt+Space) opens the window settings option<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/51435948/86536870-baa15400-bf08-11ea-9e4e-3d167f7d1cb9.png"><img src="https://user-images.githubusercontent.com/51435948/86536870-baa15400-bf08-11ea-9e4e-3d167f7d1cb9.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">#Additional comments<br> I haven't tested it with all apps. It works properly with my PDF reader (Foxit Reader).</p>
<p dir="auto">Have integration/ability to save Virtual desktop sessions after power off</p> <p dir="auto">Virtual desktop would be the best feature of windows productivity if only you could actually save the desktops and have the option to either have them start up on boot or the option to click on a saved session once booted and for all the windows/apps to start up again where you left off.</p>
0
<p dir="auto">Here's the example:<br> <a href="http://imgur.com/j53FLmE" rel="nofollow">http://imgur.com/j53FLmE</a></p> <p dir="auto">So I applied (e.g.):</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="transform: scale(0.5);"><pre class="notranslate"><span class="pl-c1">transform</span><span class="pl-kos">:</span> <span class="pl-en">scale</span>(<span class="pl-c1">0.5</span>);</pre></div> <p dir="auto">The element scales propertly, but its content inside as you can see the body is the dotted outline of the document inside that webview.</p> <p dir="auto">The project:<br> <a href="https://github.com/rokyed/cocoChanelJS">https://github.com/rokyed/cocoChanelJS</a></p> <p dir="auto">If more information needed, I will provide anything I will be asked concerning this project.</p> <p dir="auto">Thanks for the answers.</p> <ul dir="auto"> <li>Electron version: 0.36.10</li> <li>Operating system: Linux Mint</li> </ul>
<ul dir="auto"> <li>Electron version: 0.36.8</li> <li>Operating system: OS X 10.11.2</li> </ul> <p dir="auto">Origin webview:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8194131/13200044/b512c94a-d873-11e5-9e77-bd9891b629a0.png"><img src="https://cloud.githubusercontent.com/assets/8194131/13200044/b512c94a-d873-11e5-9e77-bd9891b629a0.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Add transform: scale(0.3) to it:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8194131/13200054/e1c16c9e-d873-11e5-9a99-12c0da85b0db.png"><img src="https://cloud.githubusercontent.com/assets/8194131/13200054/e1c16c9e-d873-11e5-9a99-12c0da85b0db.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The content of webview is scaled to 0.3*0.3 = 0.09 of the origin size.</p> <p dir="auto">Add transform: scale(0.5) to it:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8194131/13200068/fd4d5a86-d873-11e5-8ab2-4007b22371a3.png"><img src="https://cloud.githubusercontent.com/assets/8194131/13200068/fd4d5a86-d873-11e5-8ab2-4007b22371a3.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The content of webview is scaled to 0.5*0.5 = 0.25 of the origin size.</p>
1
<p dir="auto">Hi,<br> I tried searching in github but nothing helped</p> <p dir="auto">I am trying to run Angular 2 on New Visual Studio 2015 with basic setup<br> installed latest libraries<br> npm:3.10.7,<br> typescript: 2.0.3,<br> node js: v6.6.0,<br> rxjs: 5.0.0-beta.12,<br> angular2: 2.0.0-beta.17<br> when I run in chrome getting error like "Failed to load resource: the server responded with a status of 404 (Not Found)"<br> Can anybody help me on this?<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5327318/18780209/0bcb6402-819a-11e6-80c6-9673121799ee.jpg"><img src="https://cloud.githubusercontent.com/assets/5327318/18780209/0bcb6402-819a-11e6-80c6-9673121799ee.jpg" alt="err" style="max-width: 100%;"></a></p>
<p dir="auto">Hi All,<br> I am trying to run Angular 2 on New Visual Studio 2015 with basic setup<br> installed latest libraries<br> npm:3.10.7,<br> typescript: 2.0.3,<br> node js: v6.6.0,<br> rxjs: 5.0.0-beta.12,<br> angular2: 2.0.0-beta.17<br> when I run in chrome getting error like "Failed to load resource: the server responded with a status of 404 (Not Found)"<br> Can anybody help me on this?<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5327318/18780209/0bcb6402-819a-11e6-80c6-9673121799ee.jpg"><img src="https://cloud.githubusercontent.com/assets/5327318/18780209/0bcb6402-819a-11e6-80c6-9673121799ee.jpg" alt="err" style="max-width: 100%;"></a></p>
1
<ul dir="auto"> <li>Electron version: 1.4.15</li> <li>Operating system: macOS Sierra, Windows 10</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Top level menu items should be hidden when the <code class="notranslate">visible</code> property is false and not be clickable when <code class="notranslate">enabled</code> property is false.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">The <code class="notranslate">visible</code> and <code class="notranslate">enabled</code> properties do not behave correctly on top level menu items. It seems to work correctly for submenu items.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Create a menu with this code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { Menu } = require('electron').remote; const template = [ { label: 'Should not be visible', visible: false, submenu: [ { label: 'Should not be visible either', visible: false } ] }, { label: 'Should not be enabled', enabled: false, submenu: [ { label: 'Should not be enabled either', enabled: false } ] }, ]; const menu = Menu.buildFromTemplate(template); Menu.setApplicationMenu(menu);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> Menu <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">remote</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">template</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">label</span>: <span class="pl-s">'Should not be visible'</span><span class="pl-kos">,</span> <span class="pl-c1">visible</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">submenu</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">label</span>: <span class="pl-s">'Should not be visible either'</span><span class="pl-kos">,</span> <span class="pl-c1">visible</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">label</span>: <span class="pl-s">'Should not be enabled'</span><span class="pl-kos">,</span> <span class="pl-c1">enabled</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">submenu</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">label</span>: <span class="pl-s">'Should not be enabled either'</span><span class="pl-kos">,</span> <span class="pl-c1">enabled</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">menu</span> <span class="pl-c1">=</span> <span class="pl-v">Menu</span><span class="pl-kos">.</span><span class="pl-en">buildFromTemplate</span><span class="pl-kos">(</span><span class="pl-s1">template</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">Menu</span><span class="pl-kos">.</span><span class="pl-en">setApplicationMenu</span><span class="pl-kos">(</span><span class="pl-s1">menu</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Both menu items will still be visible and clickable.</p>
<p dir="auto">It looks like there are plenty of options like <code class="notranslate">visible</code>, <code class="notranslate">enable</code>, etc in the <a href="https://github.com/atom/electron/blob/master/docs/api/menu-item.md">menu-item</a> but I couldn't find any way to do something with the menu after creating it. One of many failed attemps..</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var menu = Menu.buildFromTemplate(template); menu.items[3].visible = false; menu.items[3].enable = false;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">menu</span> <span class="pl-c1">=</span> <span class="pl-v">Menu</span><span class="pl-kos">.</span><span class="pl-en">buildFromTemplate</span><span class="pl-kos">(</span><span class="pl-s1">template</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">menu</span><span class="pl-kos">.</span><span class="pl-c1">items</span><span class="pl-kos">[</span><span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">visible</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-s1">menu</span><span class="pl-kos">.</span><span class="pl-c1">items</span><span class="pl-kos">[</span><span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">enable</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span></pre></div>
1
<p dir="auto">I have been having this issue since last night, i did some research but couldn't find any solution</p> <p dir="auto">I'm not using Material ui or Styled components</p> <p dir="auto"><strong>CustomLink</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { withRouter } from &quot;next/router&quot;; import Link from &quot;next/link&quot;; import React, { Children } from &quot;react&quot;; import cx from &quot;classnames&quot;; const ActiveLink = ({ router, children, ...props }) =&gt; { const child = Children.only(children); const className = cx(child.props.className, { [props.activeClassName]: router.asPath === props.as &amp;&amp; props.activeClassName }); delete props.activeClassName; return &lt;Link {...props}&gt;{React.cloneElement(child, { className })}&lt;/Link&gt;; }; export default withRouter(ActiveLink);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">withRouter</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"next/router"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-v">Link</span> <span class="pl-k">from</span> <span class="pl-s">"next/link"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-v">React</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-v">Children</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"react"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">cx</span> <span class="pl-k">from</span> <span class="pl-s">"classnames"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-v">ActiveLink</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> router<span class="pl-kos">,</span> children<span class="pl-kos">,</span> ...<span class="pl-s1">props</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">child</span> <span class="pl-c1">=</span> <span class="pl-v">Children</span><span class="pl-kos">.</span><span class="pl-en">only</span><span class="pl-kos">(</span><span class="pl-s1">children</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">className</span> <span class="pl-c1">=</span> <span class="pl-en">cx</span><span class="pl-kos">(</span><span class="pl-s1">child</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">className</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">activeClassName</span><span class="pl-kos">]</span>: <span class="pl-s1">router</span><span class="pl-kos">.</span><span class="pl-c1">asPath</span> <span class="pl-c1">===</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">as</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">activeClassName</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">delete</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">activeClassName</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">cloneElement</span><span class="pl-kos">(</span><span class="pl-s1">child</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> className <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Link</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">withRouter</span><span class="pl-kos">(</span><span class="pl-v">ActiveLink</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Nav.js</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import &quot;../../static/styles/Nav.scss&quot;; const Nav = () =&gt; { return ( &lt;nav className=&quot;navbar&quot;&gt; &lt;Link href=&quot;/player?name=xXSARKURDZz&amp;platform=psn&quot; as=&quot;/player/psn/xXSARKURDZz&quot; activeClassName=&quot;navbar__item-active&quot; &gt; &lt;a className=&quot;navbar__item&quot;&gt;Profile&lt;/a&gt; &lt;/Link&gt; &lt;Link href=&quot;/gambit?name=xXSARKURDZz&amp;platform=psn&quot; as=&quot;/player/psn/xXSARKURDZz/gambit&quot; activeClassName=&quot;navbar__item-active&quot; &gt; &lt;a className=&quot;navbar__item&quot;&gt;Gambit&lt;/a&gt; &lt;/Link&gt; &lt;/nav&gt; ); }; export default Nav; "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">"../../static/styles/Nav.scss"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-v">Nav</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">nav</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"navbar"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"/player?name=xXSARKURDZz&amp;platform=psn"</span> <span class="pl-c1">as</span><span class="pl-c1">=</span><span class="pl-s">"/player/psn/xXSARKURDZz"</span> <span class="pl-c1">activeClassName</span><span class="pl-c1">=</span><span class="pl-s">"navbar__item-active"</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"navbar__item"</span><span class="pl-c1">&gt;</span>Profile<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Link</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"/gambit?name=xXSARKURDZz&amp;platform=psn"</span> <span class="pl-c1">as</span><span class="pl-c1">=</span><span class="pl-s">"/player/psn/xXSARKURDZz/gambit"</span> <span class="pl-c1">activeClassName</span><span class="pl-c1">=</span><span class="pl-s">"navbar__item-active"</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"navbar__item"</span><span class="pl-c1">&gt;</span>Gambit<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Link</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">nav</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">Nav</span><span class="pl-kos">;</span></pre></div>
<h1 dir="auto">Examples bug report</h1> <h2 dir="auto">Example name</h2> <p dir="auto"><a href="https://github.com/zeit/next.js/tree/canary/examples/with-styled-components">with-styled-components</a></p> <h2 dir="auto">Describe the bug</h2> <p dir="auto">Also posted here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="242255124" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/2538" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/2538/hovercard" href="https://github.com/vercel/next.js/issues/2538">#2538</a></p> <p dir="auto">Using <code class="notranslate">css</code> prop introduced with styled-components v4 causes <code class="notranslate">Warning: Prop className did not match.</code>.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Add any HTML element with <code class="notranslate">css</code> prop.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Correctly styled rendering on the server side without any warnings.</p> <h2 dir="auto">Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/698079/57632876-37f26280-75ab-11e9-91a2-a270d92f122d.png"><img src="https://user-images.githubusercontent.com/698079/57632876-37f26280-75ab-11e9-91a2-a270d92f122d.png" alt="57497472-7b657c00-72e0-11e9-84c5-e7e5fa0d351c" style="max-width: 100%;"></a></p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: Windows</li> <li>Chrome</li> <li>Version of Next.js: 8.1.0</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Here is an example I created to demonstrate the issue: <a href="https://codesandbox.io/embed/jlwvwyy0ow" rel="nofollow">https://codesandbox.io/embed/jlwvwyy0ow</a></p> <p dir="auto">Open this and refresh once the building is done: <a href="https://jlwvwyy0ow.sse.codesandbox.io/" rel="nofollow">https://jlwvwyy0ow.sse.codesandbox.io/</a></p>
1
<p dir="auto">Checkboxes generated by a with the displayRowCheckbox field set to <code class="notranslate">true</code> (default option) inherit their <code class="notranslate">disabled</code> prop from the 's <code class="notranslate">this.prop.selectable</code>, rather than from the generated 's <code class="notranslate">selectable</code> property. Below is the relevant code from the <code class="notranslate">master</code> branch:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="//line 209: createRowCheckboxColumn(rowProps) { if (!this.props.displayRowCheckbox) { return null; } const name = `${rowProps.rowNumber}-cb`; const disabled = !this.props.selectable; /////////////// should be something like !rowProps.selectable, this.props inherits from the &lt;TableBody&gt; instead of being set row-by-row return ( &lt;TableRowColumn key={name} columnNumber={0} style={{ width: 24, cursor: disabled ? 'default' : 'inherit', }} &gt; &lt;Checkbox name={name} value=&quot;selected&quot; disabled={disabled} checked={rowProps.selected} /&gt; &lt;/TableRowColumn&gt; ); }"><pre lang="{js}" class="notranslate"><code class="notranslate">//line 209: createRowCheckboxColumn(rowProps) { if (!this.props.displayRowCheckbox) { return null; } const name = `${rowProps.rowNumber}-cb`; const disabled = !this.props.selectable; /////////////// should be something like !rowProps.selectable, this.props inherits from the &lt;TableBody&gt; instead of being set row-by-row return ( &lt;TableRowColumn key={name} columnNumber={0} style={{ width: 24, cursor: disabled ? 'default' : 'inherit', }} &gt; &lt;Checkbox name={name} value="selected" disabled={disabled} checked={rowProps.selected} /&gt; &lt;/TableRowColumn&gt; ); } </code></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">When making a with the selectable property set to false, the <code class="notranslate">disabled</code> property of the generated checkbox should be true.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">This successfully makes only rows without the text "None" select-able, and rows that display "None" can't be checked. We want checkboxes that are not selectable to be disabled as well, row-by-row, but right now all checkboxes are enabled.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">I tried my best:</p> <p dir="auto"><a href="https://codesandbox.io/s/y3x71n11j1" rel="nofollow">https://codesandbox.io/s/y3x71n11j1</a></p> <p dir="auto">I have <em>no</em> idea why this codepen sample isn't working.</p> <ol dir="auto"> <li>Make a Table with a TableBody</li> <li>Its children will be mapped from an array into objects</li> <li>Set the <code class="notranslate">selectable</code> property of the objects to false</li> <li>The checkboxes generated won't be selectable, but they won't have the <code class="notranslate">disabled</code> property.</li> <li>Using dev tools, set the same to be <code class="notranslate">selectable=false</code>, and it sets <code class="notranslate">disabled=true</code> for every checkbox</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">We're trying to make a checklist where each row can only be checked if a boolean value is <code class="notranslate">true</code>. So, we're making something like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;TableBody displayRowCheckbox={true}&gt; {ourData.map((ourRowData) =&gt; (&lt;TableRow selectable={ourRowData.text !== &quot;None&quot;}&gt; &lt;TableRowColumn&gt;{ourRowData.text}&lt;/TableRowColumn&gt; &lt;/TableRow&gt;))} &lt;/TableBody&gt; "><pre lang="{js}" class="notranslate"><code class="notranslate">&lt;TableBody displayRowCheckbox={true}&gt; {ourData.map((ourRowData) =&gt; (&lt;TableRow selectable={ourRowData.text !== "None"}&gt; &lt;TableRowColumn&gt;{ourRowData.text}&lt;/TableRowColumn&gt; &lt;/TableRow&gt;))} &lt;/TableBody&gt; </code></pre></div> <p dir="auto">This successfully makes only rows without the text "None" select-able, and rows that display "None" can't be checked. We want checkboxes that are not selectable to be disabled as well, row-by-row, but right now all checkboxes are enabled.</p> <p dir="auto">However, if we set selectable={false} in the using developer tools, the whole table's checkboxes become disabled.</p> <p dir="auto">I think the best way to go would be with</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>0.2</td> </tr> <tr> <td>React</td> <td>15.6.1</td> </tr> <tr> <td>browser</td> <td>Chrome 63.0</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">When building apps that use the date picker for choosing an old date like "birthday", I often hear complaints about it taking forever to go so far back in time. These people obviously don't realize they can select the year by clicking on the year in the title area. An option for just <strong>starting on the year picker</strong> though would make this component much more useful for such historic dates, especially for the less tech-savvy.</p> <p dir="auto">If not that, then perhaps it can be made a little more obvious that clicking on the year takes you to the year picker? An edit icon or something?</p> <p dir="auto">I'd be happy to make a pull request if others agree this would be a useful addition. Thanks!</p>
0
<p dir="auto">When customizing bootstrap by changing the colors in less/variables.less one might also want to change the :focus border and glow because if you change your primary color it doesn't look very nice if you still have to stick with the hardcoded blue. Please make the colors in less/forms.css from lines 126 to 131 somehow dependent from variables.</p>
<p dir="auto">I would like to reopen the issue 517. Thx</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2102106" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/517" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/517/hovercard" href="https://github.com/twbs/bootstrap/issues/517">#517</a></p>
1
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Modify any ext.flutter. service extension to throw an exception<br> For example modify the debugPaint service extension as follows:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" registerBoolServiceExtension( name: 'debugPaint', getter: () async =&gt; debugPaintSizeEnabled, setter: (bool value) { throw Exception(&quot;Throwing an exception here shouldn't crash&quot;); // new line. if (debugPaintSizeEnabled == value) return new Future&lt;Null&gt;.value(); debugPaintSizeEnabled = value; return _forceRepaint(); } ); "><pre class="notranslate"> <span class="pl-en">registerBoolServiceExtension</span>( name<span class="pl-k">:</span> <span class="pl-s">'debugPaint'</span>, getter<span class="pl-k">:</span> () <span class="pl-k">async</span> <span class="pl-k">=&gt;</span> debugPaintSizeEnabled, setter<span class="pl-k">:</span> (<span class="pl-c1">bool</span> value) { <span class="pl-k">throw</span> <span class="pl-c1">Exception</span>(<span class="pl-s">"Throwing an exception here shouldn't crash"</span>); <span class="pl-c">// new line.</span> <span class="pl-k">if</span> (debugPaintSizeEnabled <span class="pl-k">==</span> value) <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Future</span>&lt;<span class="pl-c1">Null</span>&gt;.<span class="pl-en">value</span>(); debugPaintSizeEnabled <span class="pl-k">=</span> value; <span class="pl-k">return</span> <span class="pl-en">_forceRepaint</span>(); } ); </pre></div> <p dir="auto">Trigger the service extension either from flutter tool or from intellij.<br> From flutter tool, press 'p' to trigger this extension.</p> <p dir="auto">From intellij you just get a crash in C++ code. With flutter tool you get a bit more information.<br> Example</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter (20275): service extension method received: ext.flutter.debugPaint({isolateId: isolates/113087773}) I/flutter (20275): Action &quot;Wait for outer event loop&quot; took 0:00:00.003126 I/flutter (20275): service extension method received: ext.flutter.debugPaint({enabled: true, isolateId: isolates/113087773}) I/flutter (20275): Action &quot;Wait for outer event loop&quot; took 0:00:00.000373 I/flutter (20275): ══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════ I/flutter (20275): The following _Exception was thrown during a service extension callback for I/flutter (20275): &quot;ext.flutter.debugPaint&quot;: I/flutter (20275): Exception: Throwing an exception here shouldn't crash I/flutter (20275): I/flutter (20275): When the exception was thrown, this was the stack: I/flutter (20275): #0 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding.initServiceExtensions.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (package:flutter/src/rendering/binding.dart:63:11) I/flutter (20275): #1 BindingBase.registerBoolServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:283:23) I/flutter (20275): &lt;asynchronous suspension&gt; I/flutter (20275): #2 BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:392:32) I/flutter (20275): &lt;asynchronous suspension&gt; I/flutter (20275): #3 _runExtension (dart:developer/runtime/libdeveloper.dart:85:23) I/flutter (20275): ════════════════════════════════════════════════════════════════════════════════════════════════════ Error -32000 received from application: Server error JSON-RPC error -32000: Server error package:json_rpc_2/src/client.dart 110:64 Client.sendRequest package:json_rpc_2/src/peer.dart 68:15 Peer.sendRequest package:flutter_tools/src/vmservice.dart 293:13 VMService._sendRequest package:flutter_tools/src/vmservice.dart 842:12 VM.invokeRpcRaw ===== asynchronous gap =========================== package:flutter_tools/src/vmservice.dart 1111:15 Isolate.invokeRpcRaw package:flutter_tools/src/vmservice.dart 1240:20 Isolate.invokeFlutterExtensionRpcRaw ===== asynchronous gap =========================== package:flutter_tools/src/vmservice.dart 1274:21 Isolate._flutterToggle ===== asynchronous gap =========================== package:flutter_tools/src/vmservice.dart 1284:72 Isolate.flutterToggleDebugPaintSizeEnabled package:flutter_tools/src/resident_runner.dart 213:28 FlutterDevice.toggleDebugPaintSizeEnabled ===== asynchronous gap =========================== package:flutter_tools/src/resident_runner.dart 532:20 ResidentRunner._debugToggleDebugPaintSizeEnabled ===== asynchronous gap =========================== package:flutter_tools/src/resident_runner.dart 714:15 ResidentRunner._commonTerminalInputHandler ===== asynchronous gap =========================== package:flutter_tools/src/resident_runner.dart 758:34 ResidentRunner.processTerminalInput ===== asynchronous gap =========================== dart:async/zone.dart 1134:38 _rootRunUnary dart:async/zone.dart 1031:19 _CustomZone.runUnary dart:async/zone.dart 933:7 _CustomZone.runUnaryGuarded dart:async/stream_impl.dart 336:11 _BufferingStreamSubscription._sendData dart:async/stream_impl.dart 263:7 _BufferingStreamSubscription._add dart:async/broadcast_stream_controller.dart 379:20 _SyncBroadcastStreamController._sendData dart:async/broadcast_stream_controller.dart 254:5 _BroadcastStreamController.add dart:async/broadcast_stream_controller.dart 480:11 _AsBroadcastStreamController.add dart:async/zone.dart 1134:38 _rootRunUnary dart:async/zone.dart 1031:19 _CustomZone.runUnary dart:async/zone.dart 933:7 _CustomZone.runUnaryGuarded dart:async/stream_impl.dart 336:11 _BufferingStreamSubscription._sendData dart:async/stream_impl.dart 263:7 _BufferingStreamSubscription._add dart:async/stream_transformers.dart 68:11 _SinkTransformerStreamSubscription._add dart:async/stream_transformers.dart 15:11 _EventSinkWrapper.add dart:convert/string_conversion.dart 268:11 _StringAdapterSink.add dart:convert/string_conversion.dart 273:7 _StringAdapterSink.addSlice dart:convert/string_conversion.dart 348:20 _Utf8ConversionSink.addSlice dart:convert/ascii.dart 280:17 _ErrorHandlingAsciiDecoderSink.addSlice dart:convert/ascii.dart 266:5 _ErrorHandlingAsciiDecoderSink.add dart:convert/chunked_conversion.dart 86:18 _ConverterStreamEventSink.add dart:async/stream_transformers.dart 120:24 _SinkTransformerStreamSubscription._handleData dart:async/zone.dart 1134:38 _rootRunUnary dart:async/zone.dart 1031:19 _CustomZone.runUnary dart:async/zone.dart 933:7 _CustomZone.runUnaryGuarded dart:async/stream_impl.dart 336:11 _BufferingStreamSubscription._sendData dart:async/stream_impl.dart 263:7 _BufferingStreamSubscription._add dart:async/stream_controller.dart 763:19 _SyncStreamController._sendData dart:async/stream_controller.dart 639:7 _StreamController._add dart:async/stream_controller.dart 585:5 _StreamController.add dart:io/runtime/binsocket_patch.dart 1714:41 _Socket._onData dart:async/zone.dart 1138:13 _rootRunUnary dart:async/zone.dart 1031:19 _CustomZone.runUnary dart:async/zone.dart 933:7 _CustomZone.runUnaryGuarded dart:async/stream_impl.dart 336:11 _BufferingStreamSubscription._sendData dart:async/stream_impl.dart 263:7 _BufferingStreamSubscription._add dart:async/stream_controller.dart 763:19 _SyncStreamController._sendData dart:async/stream_controller.dart 639:7 _StreamController._add dart:async/stream_controller.dart 585:5 _StreamController.add dart:io/runtime/binsocket_patch.dart 1276:33 new _RawSocket.&lt;fn&gt; dart:io/runtime/binsocket_patch.dart 819:14 _NativeSocket.issueReadEvent.issue dart:async/schedule_microtask.dart 41:21 _microtaskLoop dart:async/schedule_microtask.dart 50:5 _startMicrotaskLoop dart:isolate/runtime/libisolate_patch.dart 113:13 _runPendingImmediateCallback dart:isolate/runtime/libisolate_patch.dart 166:5 _RawReceivePortImpl._handleMessage Lost connection to device. "><pre class="notranslate"><code class="notranslate">flutter (20275): service extension method received: ext.flutter.debugPaint({isolateId: isolates/113087773}) I/flutter (20275): Action "Wait for outer event loop" took 0:00:00.003126 I/flutter (20275): service extension method received: ext.flutter.debugPaint({enabled: true, isolateId: isolates/113087773}) I/flutter (20275): Action "Wait for outer event loop" took 0:00:00.000373 I/flutter (20275): ══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════ I/flutter (20275): The following _Exception was thrown during a service extension callback for I/flutter (20275): "ext.flutter.debugPaint": I/flutter (20275): Exception: Throwing an exception here shouldn't crash I/flutter (20275): I/flutter (20275): When the exception was thrown, this was the stack: I/flutter (20275): #0 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding.initServiceExtensions.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (package:flutter/src/rendering/binding.dart:63:11) I/flutter (20275): #1 BindingBase.registerBoolServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:283:23) I/flutter (20275): &lt;asynchronous suspension&gt; I/flutter (20275): #2 BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:392:32) I/flutter (20275): &lt;asynchronous suspension&gt; I/flutter (20275): #3 _runExtension (dart:developer/runtime/libdeveloper.dart:85:23) I/flutter (20275): ════════════════════════════════════════════════════════════════════════════════════════════════════ Error -32000 received from application: Server error JSON-RPC error -32000: Server error package:json_rpc_2/src/client.dart 110:64 Client.sendRequest package:json_rpc_2/src/peer.dart 68:15 Peer.sendRequest package:flutter_tools/src/vmservice.dart 293:13 VMService._sendRequest package:flutter_tools/src/vmservice.dart 842:12 VM.invokeRpcRaw ===== asynchronous gap =========================== package:flutter_tools/src/vmservice.dart 1111:15 Isolate.invokeRpcRaw package:flutter_tools/src/vmservice.dart 1240:20 Isolate.invokeFlutterExtensionRpcRaw ===== asynchronous gap =========================== package:flutter_tools/src/vmservice.dart 1274:21 Isolate._flutterToggle ===== asynchronous gap =========================== package:flutter_tools/src/vmservice.dart 1284:72 Isolate.flutterToggleDebugPaintSizeEnabled package:flutter_tools/src/resident_runner.dart 213:28 FlutterDevice.toggleDebugPaintSizeEnabled ===== asynchronous gap =========================== package:flutter_tools/src/resident_runner.dart 532:20 ResidentRunner._debugToggleDebugPaintSizeEnabled ===== asynchronous gap =========================== package:flutter_tools/src/resident_runner.dart 714:15 ResidentRunner._commonTerminalInputHandler ===== asynchronous gap =========================== package:flutter_tools/src/resident_runner.dart 758:34 ResidentRunner.processTerminalInput ===== asynchronous gap =========================== dart:async/zone.dart 1134:38 _rootRunUnary dart:async/zone.dart 1031:19 _CustomZone.runUnary dart:async/zone.dart 933:7 _CustomZone.runUnaryGuarded dart:async/stream_impl.dart 336:11 _BufferingStreamSubscription._sendData dart:async/stream_impl.dart 263:7 _BufferingStreamSubscription._add dart:async/broadcast_stream_controller.dart 379:20 _SyncBroadcastStreamController._sendData dart:async/broadcast_stream_controller.dart 254:5 _BroadcastStreamController.add dart:async/broadcast_stream_controller.dart 480:11 _AsBroadcastStreamController.add dart:async/zone.dart 1134:38 _rootRunUnary dart:async/zone.dart 1031:19 _CustomZone.runUnary dart:async/zone.dart 933:7 _CustomZone.runUnaryGuarded dart:async/stream_impl.dart 336:11 _BufferingStreamSubscription._sendData dart:async/stream_impl.dart 263:7 _BufferingStreamSubscription._add dart:async/stream_transformers.dart 68:11 _SinkTransformerStreamSubscription._add dart:async/stream_transformers.dart 15:11 _EventSinkWrapper.add dart:convert/string_conversion.dart 268:11 _StringAdapterSink.add dart:convert/string_conversion.dart 273:7 _StringAdapterSink.addSlice dart:convert/string_conversion.dart 348:20 _Utf8ConversionSink.addSlice dart:convert/ascii.dart 280:17 _ErrorHandlingAsciiDecoderSink.addSlice dart:convert/ascii.dart 266:5 _ErrorHandlingAsciiDecoderSink.add dart:convert/chunked_conversion.dart 86:18 _ConverterStreamEventSink.add dart:async/stream_transformers.dart 120:24 _SinkTransformerStreamSubscription._handleData dart:async/zone.dart 1134:38 _rootRunUnary dart:async/zone.dart 1031:19 _CustomZone.runUnary dart:async/zone.dart 933:7 _CustomZone.runUnaryGuarded dart:async/stream_impl.dart 336:11 _BufferingStreamSubscription._sendData dart:async/stream_impl.dart 263:7 _BufferingStreamSubscription._add dart:async/stream_controller.dart 763:19 _SyncStreamController._sendData dart:async/stream_controller.dart 639:7 _StreamController._add dart:async/stream_controller.dart 585:5 _StreamController.add dart:io/runtime/binsocket_patch.dart 1714:41 _Socket._onData dart:async/zone.dart 1138:13 _rootRunUnary dart:async/zone.dart 1031:19 _CustomZone.runUnary dart:async/zone.dart 933:7 _CustomZone.runUnaryGuarded dart:async/stream_impl.dart 336:11 _BufferingStreamSubscription._sendData dart:async/stream_impl.dart 263:7 _BufferingStreamSubscription._add dart:async/stream_controller.dart 763:19 _SyncStreamController._sendData dart:async/stream_controller.dart 639:7 _StreamController._add dart:async/stream_controller.dart 585:5 _StreamController.add dart:io/runtime/binsocket_patch.dart 1276:33 new _RawSocket.&lt;fn&gt; dart:io/runtime/binsocket_patch.dart 819:14 _NativeSocket.issueReadEvent.issue dart:async/schedule_microtask.dart 41:21 _microtaskLoop dart:async/schedule_microtask.dart 50:5 _startMicrotaskLoop dart:isolate/runtime/libisolate_patch.dart 113:13 _runPendingImmediateCallback dart:isolate/runtime/libisolate_patch.dart 166:5 _RawReceivePortImpl._handleMessage Lost connection to device. </code></pre></div>
<p dir="auto"><strong>Problem:</strong> nesting 2 or more widgets in the hierarchy that both use <code class="notranslate">PageStorage</code> without identifiers -- e.g. an <code class="notranslate">ExpansionTile</code>, and a <code class="notranslate">Scrollable</code> -- results in widgets reading/writing into/from the same location; this in turn results in an exception, since the value types used by these widgets are different: the <code class="notranslate">ExpansionTile</code> reads/writes a <code class="notranslate">boolean</code> (isExpanded), the <code class="notranslate">ScrollController</code> a <code class="notranslate">double</code> (scrollPosition). If the types were the same, the problem would be even worse, since the code would run with unexpected behavior.</p> <p dir="auto"><strong>Cause:</strong> <code class="notranslate">PageStorage.{read,write}State()</code> has an optional parameter -- the "identifier" -- under which state info that needs to outlive a widget can be stored. If state is written/read without specifying an identifier, the <code class="notranslate">PageStorage</code> uses the <code class="notranslate">PageStorageKey</code> to compute an identifier as a fallback. This results in the same identifier being computed for widgets with a common <code class="notranslate">PageStorageKey</code> ancestor.</p> <p dir="auto"><strong>Workaround (or intended use?!):</strong> a separate <code class="notranslate">PageStorageKey</code> for each of these widgets.</p> <p dir="auto"><strong>Suggested fix:</strong> start using the identifier in <code class="notranslate">PageStorage.{read,write}State()</code>?<br> Also, in the current implementation, for the state to be properly restored, we are forced to specify a <code class="notranslate">PageStorageKey</code> for these widgets. Shouldn't all this stashing of state be handled transparently inside the widgets (without the need to explicitly give them <code class="notranslate">PageStorageKeys</code>), so that we are free to specify our own keys (e.g. a <code class="notranslate">GlobalKey</code>) when needed?</p>
0
<p dir="auto">The error message caused by the query at the top does not give any sane hint as to what is actually wrong:</p> <p dir="auto"><a href="https://gist.github.com/0dc816b64318e5898b62">https://gist.github.com/0dc816b64318e5898b62</a></p> <p dir="auto">Error messages should be a bit more helpful and actually try to tell the user what was expected.</p>
<p dir="auto">In 2.1.1 (and, I think, all 2.X versions), there's no support for loading plugins to a client-only node.</p> <p dir="auto">For example, there's no (obvious) way to load plugins when doing something like:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Node node = NodeBuilder.nodeBuilder() .clusterName(&quot;my-cluster&quot;) .settings(settings) .client(true) .build();"><pre class="notranslate"><span class="pl-smi">Node</span> <span class="pl-s1">node</span> = <span class="pl-smi">NodeBuilder</span>.<span class="pl-en">nodeBuilder</span>() .<span class="pl-en">clusterName</span>(<span class="pl-s">"my-cluster"</span>) .<span class="pl-en">settings</span>(<span class="pl-s1">settings</span>) .<span class="pl-en">client</span>(<span class="pl-c1">true</span>) .<span class="pl-en">build</span>();</pre></div> <p dir="auto">An <code class="notranslate">addPlugin</code> method on NodeBuilder along the lines of <code class="notranslate">TransportClient.addPlugin</code> would be helpful.</p> <p dir="auto">The work-around is to override Node, duplicate the environment/version constructor logic, and provide your custom list of plugins to load:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="private static class PluginEnabledNode extends Node { public PluginEnabledNode(Settings settings, Collection&lt;Class&lt;? extends Plugin&gt;&gt; plugins) { super(InternalSettingsPreparer.prepareEnvironment(settings, null), Version.CURRENT, plugins); } }"><pre class="notranslate"><span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-k">class</span> <span class="pl-smi">PluginEnabledNode</span> <span class="pl-k">extends</span> <span class="pl-smi">Node</span> { <span class="pl-k">public</span> <span class="pl-smi">PluginEnabledNode</span>(<span class="pl-smi">Settings</span> <span class="pl-s1">settings</span>, <span class="pl-smi">Collection</span>&lt;<span class="pl-smi">Class</span>&lt;? <span class="pl-k">extends</span> <span class="pl-smi">Plugin</span>&gt;&gt; <span class="pl-s1">plugins</span>) { <span class="pl-en">super</span>(<span class="pl-smi">InternalSettingsPreparer</span>.<span class="pl-en">prepareEnvironment</span>(<span class="pl-s1">settings</span>, <span class="pl-c1">null</span>), <span class="pl-smi">Version</span>.<span class="pl-c1">CURRENT</span>, <span class="pl-s1">plugins</span>); } }</pre></div> <p dir="auto">And then you can directly instantiate a <code class="notranslate">PluginEnabledNode</code> (being careful to set "node.client" and "cluster.name" in your settings)</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Node node = new PluginEnabledNode(settings, ImmutableList.&lt;Class&lt;? extends Plugin&gt;&gt;of(CloudAwsPlugin.class)).start()"><pre class="notranslate"><span class="pl-smi">Node</span> <span class="pl-s1">node</span> = <span class="pl-k">new</span> <span class="pl-smi">PluginEnabledNode</span>(<span class="pl-s1">settings</span>, <span class="pl-smi">ImmutableList</span>.&lt;<span class="pl-smi">Class</span>&lt;? <span class="pl-k">extends</span> <span class="pl-smi">Plugin</span>&gt;&gt;<span class="pl-en">of</span>(<span class="pl-smi">CloudAwsPlugin</span>.<span class="pl-k">class</span>)).<span class="pl-en">start</span>()</pre></div> <p dir="auto">Note to anyone attempting this work-around -- my initial attempt resulted in a very large number of Guice related injection errors when the Node was initializing. These were due to a library version conflict between what was used by my project and what was used by the plugin I was adding. In my case, I had an older version of Jackson and the plugin was using a new version that relied on methods that didn't exist in the older version.</p>
0
<p dir="auto">it says</p> <p dir="auto">cb() never called</p>
<h3 dir="auto">*Updated* as of 01/15/2021</h3> <p dir="auto"><strong>Note: Please read <a href="https://github.com/npm/cli/wiki/%22cb()-never-called%3F-Exit-handler-never-called%3F-I'm-having-the-same-problem!%22">this doc</a> before filing a new issue.</strong></p>
1
<p dir="auto">This is my specs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="General configuration for OpenCV 4.2.0 ===================================== Version control: 4.2.0 Extra modules: Location (extra): /home/longlp/opencv/opencv_contrib_repo/modules Version control (extra): 4.2.0 Platform: Timestamp: 2019-12-22T05:39:36Z Host: Linux 5.3.0-24-generic x86_64 CMake: 3.16.2 CMake generator: Ninja CMake build tool: /usr/bin/ninja Configuration: Release CPU/HW features: Baseline: SSE SSE2 SSE3 requested: SSE3 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX SSE4_1 (16 files): + SSSE3 SSE4_1 SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX AVX2 (29 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX512_SKX (6 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX C/C++: Built as dynamic libs?: YES C++ Compiler: /usr/bin/c++ (ver 8.3.0) C++ flags (Release): -w -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -w -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG C Compiler: /usr/bin/cc C flags (Release): -w -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG C flags (Debug): -w -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG Linker flags (Release): -Wl,--gc-sections Linker flags (Debug): -Wl,--gc-sections ccache: NO Precompiled headers: NO Extra dependencies: m pthread /usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libGLU.so cudart_static dl rt nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cudnn cufft -L/usr/local/cuda/lib64 -L/usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libClpSolver.so /usr/lib/x86_64-linux-gnu/libClp.so /usr/lib/x86_64-linux-gnu/libCoinUtils.so /usr/lib/x86_64-linux-gnu/libbz2.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/liblapack.so /usr/lib/x86_64-linux-gnu/libblas.so /usr/lib/x86_64-linux-gnu/libm.so /home/longlp/halide/lib/libHalide.a 3rdparty dependencies: OpenCV modules: To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv datasets dnn dnn_objdetect dnn_superres dpm face features2d flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot quality reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto Disabled: java_bindings_generator python_bindings_generator python_tests world Disabled by dependency: - Unavailable: cnn_3dobj java js matlab ovis python2 python3 viz Applications: tests examples apps Documentation: doxygen Non-free algorithms: YES GUI: QT: YES (ver 5.14.0) QT OpenGL support: YES (Qt5::OpenGL 5.14.0) OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libGLU.so) Media I/O: ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11) JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80) WEBP: build (ver encoder: 0x020e) PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.37) TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.0.10) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 2.3.0) HDR: YES SUNRASTER: YES PXM: YES PFM: YES Video I/O: DC1394: YES (2.2.5) FFMPEG: YES avcodec: YES (58.35.100) avformat: YES (58.20.100) avutil: YES (56.22.100) swscale: YES (5.3.100) avresample: YES (4.0.0) GStreamer: YES (1.16.1) v4l/v4l2: YES (linux/videodev2.h) gPhoto2: YES Parallel framework: TBB (ver 2019.0 interface 11008) Trace: YES (with Intel ITT) Other third-party libraries: Intel IPP: 2019.0.0 Gold [2019.0.0] at: /home/longlp/opencv/repo/build/3rdparty/ippicv/ippicv_lnx/icv Intel IPP IW: sources (2019.0.0) at: /home/longlp/opencv/repo/build/3rdparty/ippicv/ippicv_lnx/iw VA: YES Lapack: YES (/usr/lib/x86_64-linux-gnu/liblapack.so /usr/lib/x86_64-linux-gnu/libcblas.so /usr/lib/x86_64-linux-gnu/libatlas.so) Halide: YES (/home/longlp/halide/lib/libHalide.a /home/longlp/halide/include) Eigen: YES (ver 3.3.7) Custom HAL: NO Protobuf: build (3.5.1) NVIDIA CUDA: YES (ver 10.2, CUFFT CUBLAS) NVIDIA GPU arch: 60 61 70 75 NVIDIA PTX archs: cuDNN: YES (ver 7.6.5) OpenCL: YES (SVM) Include path: /home/longlp/opencv/repo/3rdparty/include/opencl/1.2 Link libraries: Dynamic load Python (for build): /usr/bin/python2.7 Install to: /home/longlp/opencv/install"><pre class="notranslate"><code class="notranslate">General configuration for OpenCV 4.2.0 ===================================== Version control: 4.2.0 Extra modules: Location (extra): /home/longlp/opencv/opencv_contrib_repo/modules Version control (extra): 4.2.0 Platform: Timestamp: 2019-12-22T05:39:36Z Host: Linux 5.3.0-24-generic x86_64 CMake: 3.16.2 CMake generator: Ninja CMake build tool: /usr/bin/ninja Configuration: Release CPU/HW features: Baseline: SSE SSE2 SSE3 requested: SSE3 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX SSE4_1 (16 files): + SSSE3 SSE4_1 SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX AVX2 (29 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX512_SKX (6 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX C/C++: Built as dynamic libs?: YES C++ Compiler: /usr/bin/c++ (ver 8.3.0) C++ flags (Release): -w -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -w -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG C Compiler: /usr/bin/cc C flags (Release): -w -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG C flags (Debug): -w -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG Linker flags (Release): -Wl,--gc-sections Linker flags (Debug): -Wl,--gc-sections ccache: NO Precompiled headers: NO Extra dependencies: m pthread /usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libGLU.so cudart_static dl rt nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cudnn cufft -L/usr/local/cuda/lib64 -L/usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libClpSolver.so /usr/lib/x86_64-linux-gnu/libClp.so /usr/lib/x86_64-linux-gnu/libCoinUtils.so /usr/lib/x86_64-linux-gnu/libbz2.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/liblapack.so /usr/lib/x86_64-linux-gnu/libblas.so /usr/lib/x86_64-linux-gnu/libm.so /home/longlp/halide/lib/libHalide.a 3rdparty dependencies: OpenCV modules: To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv datasets dnn dnn_objdetect dnn_superres dpm face features2d flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot quality reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto Disabled: java_bindings_generator python_bindings_generator python_tests world Disabled by dependency: - Unavailable: cnn_3dobj java js matlab ovis python2 python3 viz Applications: tests examples apps Documentation: doxygen Non-free algorithms: YES GUI: QT: YES (ver 5.14.0) QT OpenGL support: YES (Qt5::OpenGL 5.14.0) OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libGLU.so) Media I/O: ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11) JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80) WEBP: build (ver encoder: 0x020e) PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.37) TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.0.10) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 2.3.0) HDR: YES SUNRASTER: YES PXM: YES PFM: YES Video I/O: DC1394: YES (2.2.5) FFMPEG: YES avcodec: YES (58.35.100) avformat: YES (58.20.100) avutil: YES (56.22.100) swscale: YES (5.3.100) avresample: YES (4.0.0) GStreamer: YES (1.16.1) v4l/v4l2: YES (linux/videodev2.h) gPhoto2: YES Parallel framework: TBB (ver 2019.0 interface 11008) Trace: YES (with Intel ITT) Other third-party libraries: Intel IPP: 2019.0.0 Gold [2019.0.0] at: /home/longlp/opencv/repo/build/3rdparty/ippicv/ippicv_lnx/icv Intel IPP IW: sources (2019.0.0) at: /home/longlp/opencv/repo/build/3rdparty/ippicv/ippicv_lnx/iw VA: YES Lapack: YES (/usr/lib/x86_64-linux-gnu/liblapack.so /usr/lib/x86_64-linux-gnu/libcblas.so /usr/lib/x86_64-linux-gnu/libatlas.so) Halide: YES (/home/longlp/halide/lib/libHalide.a /home/longlp/halide/include) Eigen: YES (ver 3.3.7) Custom HAL: NO Protobuf: build (3.5.1) NVIDIA CUDA: YES (ver 10.2, CUFFT CUBLAS) NVIDIA GPU arch: 60 61 70 75 NVIDIA PTX archs: cuDNN: YES (ver 7.6.5) OpenCL: YES (SVM) Include path: /home/longlp/opencv/repo/3rdparty/include/opencl/1.2 Link libraries: Dynamic load Python (for build): /usr/bin/python2.7 Install to: /home/longlp/opencv/install </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FAILED: bin/example_rgbd_odometry_evaluation : &amp;&amp; /usr/bin/c++ -w -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG -Wl,--gc-sections modules/rgbd/CMakeFiles/example_rgbd_odometry_evaluation.dir/samples/odometry_evaluation.cpp.o -o bin/example_rgbd_odometry_evaluation -L/usr/local/cuda/lib64 -Wl,-rpath,/usr/local/cuda/lib64:/home/longlp/opencv/repo/build/lib:/home/longlp/qt/5.14.0/gcc_64/lib lib/libopencv_rgbd.so.4.2.0 lib/libopencv_calib3d.so.4.2.0 lib/libopencv_highgui.so.4.2.0 lib/libopencv_features2d.so.4.2.0 lib/libopencv_flann.so.4.2.0 lib/libopencv_videoio.so.4.2.0 lib/libopencv_imgcodecs.so.4.2.0 lib/libopencv_imgproc.so.4.2.0 lib/libopencv_core.so.4.2.0 lib/libopencv_cudev.so.4.2.0 -Wl,-rpath-link,/home/longlp/qt/5.14.0/gcc_64/lib &amp;&amp; : /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glRenderbufferStorageEXT' /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glGenFramebuffersEXT' /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glBindRenderbufferEXT' /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glGenRenderbuffersEXT' /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glFramebufferRenderbufferEXT' /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glBindFramebufferEXT'"><pre class="notranslate"><code class="notranslate">FAILED: bin/example_rgbd_odometry_evaluation : &amp;&amp; /usr/bin/c++ -w -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG -Wl,--gc-sections modules/rgbd/CMakeFiles/example_rgbd_odometry_evaluation.dir/samples/odometry_evaluation.cpp.o -o bin/example_rgbd_odometry_evaluation -L/usr/local/cuda/lib64 -Wl,-rpath,/usr/local/cuda/lib64:/home/longlp/opencv/repo/build/lib:/home/longlp/qt/5.14.0/gcc_64/lib lib/libopencv_rgbd.so.4.2.0 lib/libopencv_calib3d.so.4.2.0 lib/libopencv_highgui.so.4.2.0 lib/libopencv_features2d.so.4.2.0 lib/libopencv_flann.so.4.2.0 lib/libopencv_videoio.so.4.2.0 lib/libopencv_imgcodecs.so.4.2.0 lib/libopencv_imgproc.so.4.2.0 lib/libopencv_core.so.4.2.0 lib/libopencv_cudev.so.4.2.0 -Wl,-rpath-link,/home/longlp/qt/5.14.0/gcc_64/lib &amp;&amp; : /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glRenderbufferStorageEXT' /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glGenFramebuffersEXT' /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glBindRenderbufferEXT' /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glGenRenderbuffersEXT' /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glFramebufferRenderbufferEXT' /usr/bin/ld: lib/libopencv_rgbd.so.4.2.0: undefined reference to `glBindFramebufferEXT' </code></pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; Latest master</li> <li>Operating System / Platform =&gt; Windows 10 x64</li> <li>Compiler =&gt; Visual Studio 2017 x64</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">With OpenGL enabled and RGBD, it does not compile due to an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(234): error C2131: expression did not evaluate to a constant OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(234): note: failure was caused by a read of a variable outside its lifetime OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(234): note: see usage of 'this' OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(206): note: while compiling class template member function 'void cv::dynafu::DynaFuImpl&lt;cv::Mat&gt;::drawScene(cv::OutputArray,cv::OutputArray)' OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(526): note: see reference to function template instantiation 'void cv::dynafu::DynaFuImpl&lt;cv::Mat&gt;::drawScene(cv::OutputArray,cv::OutputArray)' being compiled OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(275): note: while compiling class template member function 'cv::dynafu::DynaFuImpl&lt;cv::Mat&gt;::~DynaFuImpl(void)' OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(291): note: see reference to class template instantiation 'cv::dynafu::DynaFuImpl&lt;cv::Mat&gt;' being compiled OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(235): error C2131: expression did not evaluate to a constant OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(235): note: failure was caused by a read of a variable outside its lifetime OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(235): note: see usage of 'this'"><pre class="notranslate"><code class="notranslate">OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(234): error C2131: expression did not evaluate to a constant OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(234): note: failure was caused by a read of a variable outside its lifetime OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(234): note: see usage of 'this' OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(206): note: while compiling class template member function 'void cv::dynafu::DynaFuImpl&lt;cv::Mat&gt;::drawScene(cv::OutputArray,cv::OutputArray)' OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(526): note: see reference to function template instantiation 'void cv::dynafu::DynaFuImpl&lt;cv::Mat&gt;::drawScene(cv::OutputArray,cv::OutputArray)' being compiled OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(275): note: while compiling class template member function 'cv::dynafu::DynaFuImpl&lt;cv::Mat&gt;::~DynaFuImpl(void)' OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(291): note: see reference to class template instantiation 'cv::dynafu::DynaFuImpl&lt;cv::Mat&gt;' being compiled OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(235): error C2131: expression did not evaluate to a constant OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(235): note: failure was caused by a read of a variable outside its lifetime OpenCV-Contrib\modules\rgbd\src\dynafu.cpp(235): note: see usage of 'this' </code></pre></div> <p dir="auto">The exact code that is failing is here:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="float f[params.frameSize.width*params.frameSize.height];"><pre class="notranslate"><code class="notranslate">float f[params.frameSize.width*params.frameSize.height]; </code></pre></div> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Compile with OpenGL and RGBD enabled.</p>
1
<p dir="auto">I meet a problem . When I index an value , for example <code class="notranslate">{"id": -8848340816900692111}</code>,<br> then i search it ,it shows that <code class="notranslate">"id": -8848340816900692000</code>.<br> Anyone can help? I want know why does elasticsearch do this and how can i deal with.<br> Thanks.</p>
<p dir="auto">Insert a document :</p> <pre class="notranslate">PUT test/Test/1 { "value" : 1201169796353347552 } </pre> <p dir="auto">Get it :</p> <pre class="notranslate">GET test/Test/1 </pre> <p dir="auto">The received value for the field is : 1201169796353347600.<br> When searching, only '1201169796353347552' - the original value must be used in order to get the document.</p>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">feature</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto"><a href="https://codesandbox.io/s/zn7p0168vp" rel="nofollow">https://codesandbox.io/s/zn7p0168vp</a></p> <p dir="auto">Wrapping in <code class="notranslate">act</code> doesn't help because <code class="notranslate">setState</code> is called later, on another tick, so warning is printed in a console.</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Some way to test code like this without getting warning in a console about wrapping inside <code class="notranslate">act</code>.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">16.8.0</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">bug</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">If a component performs a second (non user triggered) update, <code class="notranslate">act</code> cannot detect it and warns about the update.</p> <p dir="auto">For example, a button is clicked and updates its text. After a second, the button resets and its text reverts to its original state.</p> <p dir="auto"><a href="https://codesandbox.io/s/6xkyl37x7k?previewwindow=tests" rel="nofollow">https://codesandbox.io/s/6xkyl37x7k?previewwindow=tests</a></p> <p dir="auto">(The reproduction is a bit contrived, but demonstrates the issue.)</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">The test runs without warning about being wrapped in <code class="notranslate">act</code>.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">React &amp; React DOM @ <code class="notranslate">16.8.0</code></p>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.32.3]</li> <li>Operating System: [Ubuntu 22.4, macOS Big Sur 11.7]</li> <li>Browser: [Firefox]</li> <li>Other info: with args <code class="notranslate">'--disable-blink-features=AutomationControlled',</code></li> </ul> <h3 dir="auto">Code Snippet</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const playwright = require(&quot;playwright&quot;) const run = async (url) =&gt; { let browserContext = await playwright.firefox.launchPersistentContext(&quot;&quot;, { headless: false, javaScriptEnabled: true, ignoreHTTPSErrors: true, args:[ '--disable-blink-features=AutomationControlled', ], }); //get hang on the second launchPersistentContext call and finally crash let browserContext2 = await playwright.firefox.launchPersistentContext(&quot;&quot;, { headless: false, javaScriptEnabled: true, ignoreHTTPSErrors: true, args:[ '--disable-blink-features=AutomationControlled', ], }); const page = await browserContext.newPage() await page.goto(url) } let url ='https://www.sample.com' run(url)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">playwright</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"playwright"</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-en">run</span> <span class="pl-c1">=</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">browserContext</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">playwright</span><span class="pl-kos">.</span><span class="pl-c1">firefox</span><span class="pl-kos">.</span><span class="pl-en">launchPersistentContext</span><span class="pl-kos">(</span><span class="pl-s">""</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">headless</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">javaScriptEnabled</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">ignoreHTTPSErrors</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">args</span>:<span class="pl-kos">[</span> <span class="pl-s">'--disable-blink-features=AutomationControlled'</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//get hang on the second launchPersistentContext call and finally crash</span> <span class="pl-k">let</span> <span class="pl-s1">browserContext2</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">playwright</span><span class="pl-kos">.</span><span class="pl-c1">firefox</span><span class="pl-kos">.</span><span class="pl-en">launchPersistentContext</span><span class="pl-kos">(</span><span class="pl-s">""</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">headless</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">javaScriptEnabled</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">ignoreHTTPSErrors</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">args</span>:<span class="pl-kos">[</span> <span class="pl-s">'--disable-blink-features=AutomationControlled'</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browserContext</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">let</span> <span class="pl-s1">url</span> <span class="pl-c1">=</span><span class="pl-s">'https://www.sample.com'</span> <span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>[Run above code]</li> <li>[It will hang on the second <code class="notranslate">launchPersistentContext</code> call and finally crash with following info , sometimes even just one <code class="notranslate">launchPersistentContext</code> call, the issue still happens, it seems OK if not using <code class="notranslate">'--disable-blink-features=AutomationControlled',</code> ]</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node:internal/process/promises:246 triggerUncaughtException(err, true /* fromPromise */); ^ browserType.launchPersistentContext: Timeout 180000ms exceeded. =========================== logs =========================== &lt;launching&gt; xx/Library/Caches/ms-playwright/firefox-1391/firefox/Nightly.app/Contents/MacOS/firefox -no-remote -wait-for-browser -foreground -profile /var/folders/q4/pmzpltlj1kx7w9jp15r5mx28395l8m/T/playwright_firefoxdev_profile-YO14HW -juggler-pipe --disable-blink-features=AutomationControlled about:blank &lt;launched&gt; pid=46488 [pid=46488][out] console.warn: services.settings: Ignoring preference override of remote settings server [pid=46488][out] console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment [pid=46488][out] console.error: ({}) [pid=46488][out] [pid=46488][out] Juggler listening to the pipe [pid=46488][out] console.error: &quot;Warning: unrecognized command line flag -wait-for-browser\n&quot; [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.warn: SearchSettings: &quot;get: No settings file exists, new profile?&quot; (new NotFoundError(&quot;Could not open the file at /var/folders/q4/pmzpltlj1kx7w9jp15r5mx28395l8m/T/playwright_firefoxdev_profile-YO14HW/search.json.mozlz4&quot;, (void 0))) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] WARNING: removeEventListener throws SecurityError: Permission denied to access property &quot;removeEventListener&quot; on cross-origin object at addEventListener/&lt;@chrome://juggler/content/Helper.js:49:61 [pid=46488][out] removeListeners@chrome://juggler/content/Helper.js:78:16 [pid=46488][out] _dispose@chrome://juggler/content/content/JugglerFrameChild.jsm:47:12 [pid=46488][out] didDestroy@chrome://juggler/content/content/JugglerFrameChild.jsm:59:10 [pid=46488][out] [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError(&quot;The URI is malformed.&quot;, (void 0), 133)) ============================================================ at async run (.../xx.js:28:27) { name: 'TimeoutError' } ```"><pre class="notranslate"><code class="notranslate">node:internal/process/promises:246 triggerUncaughtException(err, true /* fromPromise */); ^ browserType.launchPersistentContext: Timeout 180000ms exceeded. =========================== logs =========================== &lt;launching&gt; xx/Library/Caches/ms-playwright/firefox-1391/firefox/Nightly.app/Contents/MacOS/firefox -no-remote -wait-for-browser -foreground -profile /var/folders/q4/pmzpltlj1kx7w9jp15r5mx28395l8m/T/playwright_firefoxdev_profile-YO14HW -juggler-pipe --disable-blink-features=AutomationControlled about:blank &lt;launched&gt; pid=46488 [pid=46488][out] console.warn: services.settings: Ignoring preference override of remote settings server [pid=46488][out] console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment [pid=46488][out] console.error: ({}) [pid=46488][out] [pid=46488][out] Juggler listening to the pipe [pid=46488][out] console.error: "Warning: unrecognized command line flag -wait-for-browser\n" [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /var/folders/q4/pmzpltlj1kx7w9jp15r5mx28395l8m/T/playwright_firefoxdev_profile-YO14HW/search.json.mozlz4", (void 0))) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] WARNING: removeEventListener throws SecurityError: Permission denied to access property "removeEventListener" on cross-origin object at addEventListener/&lt;@chrome://juggler/content/Helper.js:49:61 [pid=46488][out] removeListeners@chrome://juggler/content/Helper.js:78:16 [pid=46488][out] _dispose@chrome://juggler/content/content/JugglerFrameChild.jsm:47:12 [pid=46488][out] didDestroy@chrome://juggler/content/content/JugglerFrameChild.jsm:59:10 [pid=46488][out] [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) [pid=46488][out] console.error: (new SyntaxError("The URI is malformed.", (void 0), 133)) ============================================================ at async run (.../xx.js:28:27) { name: 'TimeoutError' } ``` </code></pre></div>
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.25.2</li> <li>Operating System: Linux</li> <li>Node.js version: 16.17.0</li> <li>Browser: Chromium</li> <li>Extra: [any specific details about your environment]</li> </ul> <p dir="auto"><strong>Code Snippet</strong></p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div data-test=&quot;work-package&quot;&gt; &lt;div data-test=&quot;input-work-package-name&quot;&gt; &lt;input type=&quot;text&quot; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-test=&quot;work-package&quot;&gt; &lt;div data-test=&quot;input-work-package-name&quot;&gt; &lt;input type=&quot;text&quot; /&gt; &lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">data-test</span>="<span class="pl-s">work-package</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">data-test</span>="<span class="pl-s">input-work-package-name</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" /&gt; <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">data-test</span>="<span class="pl-s">work-package</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">data-test</span>="<span class="pl-s">input-work-package-name</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" /&gt; <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">I am trying to assign a locator of some div (somehow like some rows) and from that the first element to a variable. To then use DRY code to access elements in that specific row. But those are not detected somehow:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// not working code const workPackageLocator = page.locator('[data-test=work-package]').nth(1); const d = await workPackageLocator.locator('[data-test=input-work-package-name] input[type=text]').count(); // d = 0"><pre class="notranslate"><span class="pl-c">// not working code</span> <span class="pl-k">const</span> <span class="pl-s1">workPackageLocator</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'[data-test=work-package]'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">nth</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">workPackageLocator</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'[data-test=input-work-package-name] input[type=text]'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">count</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// d = 0</span></pre></div> <p dir="auto">When I do the same thing, but with only a single locator and without <code class="notranslate">nth(1)</code> its working as expected, but this would create quite some duplicate code.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// work around const d = page.locator('[data-test=work-package] [data-test=input-work-package-name] input[type=text]').count(); // d = 1"><pre class="notranslate"><span class="pl-c">// work around</span> <span class="pl-k">const</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'[data-test=work-package] [data-test=input-work-package-name] input[type=text]'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">count</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// d = 1</span></pre></div> <p dir="auto">Only other idea would be to use a string concatenation like:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const workPackageLocator = '[data-test=work-package]'; const d = page.locator(`${workPackageLocator} [data-test=input-work-package-name] input[type=text]').count();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">workPackageLocator</span> <span class="pl-c1">=</span> <span class="pl-s">'[data-test=work-package]'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">workPackageLocator</span><span class="pl-kos">}</span></span></span> <span class="pl-kos">[</span><span class="pl-s1">data</span><span class="pl-c1">-</span><span class="pl-s1">test</span><span class="pl-c1">=</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-s1">work</span><span class="pl-c1">-</span><span class="pl-s1">package</span><span class="pl-c1">-</span><span class="pl-s1">name</span><span class="pl-kos">]</span> <span class="pl-s1">input</span><span class="pl-kos">[</span><span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s1">text</span><span class="pl-kos">]</span>'<span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">count</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
0
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import struct &gt;&gt;&gt; struct.pack('qq', 1, 2) '\x01\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00' &gt;&gt;&gt; buf = struct.pack('qq', 1, 2) &gt;&gt;&gt; import numpy &gt;&gt;&gt; ar = numpy.frombuffer(buf, dtype=numpy.int64) &gt;&gt;&gt; ar array([1, 2]) &gt;&gt;&gt; import pandas &gt;&gt;&gt; pandas.MultiIndex.from_arrays([ar, numpy.array([10, 20])]) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;.../.local/lib/python2.7/site-packages/pandas/indexes/multi.py&quot;, line 935, in from_arrays labels, levels = _factorize_from_iterables(arrays) File &quot;.../.local/lib/python2.7/site-packages/pandas/core/categorical.py&quot;, line 2068, in _factorize_from_iterables return map(list, lzip(*[_factorize_from_iterable(it) for it in iterables])) File &quot;.../.local/lib/python2.7/site-packages/pandas/core/categorical.py&quot;, line 2040, in _factorize_from_iterable cat = Categorical(values, ordered=True) File &quot;.../.local/lib/python2.7/site-packages/pandas/core/categorical.py&quot;, line 300, in __init__ raise NotImplementedError(&quot;&gt; 1 ndim Categorical are not &quot; NotImplementedError: &gt; 1 ndim Categorical are not supported at this time"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">struct</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">struct</span>.<span class="pl-en">pack</span>(<span class="pl-s">'qq'</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>) <span class="pl-s">'<span class="pl-cce">\x01</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span><span class="pl-cce">\x02</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span><span class="pl-cce">\x00</span>'</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">buf</span> <span class="pl-c1">=</span> <span class="pl-s1">struct</span>.<span class="pl-en">pack</span>(<span class="pl-s">'qq'</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">ar</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-en">frombuffer</span>(<span class="pl-s1">buf</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">numpy</span>.<span class="pl-s1">int64</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">ar</span> <span class="pl-en">array</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>]) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pandas</span>.<span class="pl-v">MultiIndex</span>.<span class="pl-en">from_arrays</span>([<span class="pl-s1">ar</span>, <span class="pl-s1">numpy</span>.<span class="pl-en">array</span>([<span class="pl-c1">10</span>, <span class="pl-c1">20</span>])]) <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"&lt;stdin&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-v">File</span> <span class="pl-s">".../.local/lib/python2.7/site-packages/pandas/indexes/multi.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">935</span>, <span class="pl-s1">in</span> <span class="pl-s1">from_arrays</span> <span class="pl-s1">labels</span>, <span class="pl-s1">levels</span> <span class="pl-c1">=</span> <span class="pl-en">_factorize_from_iterables</span>(<span class="pl-s1">arrays</span>) <span class="pl-v">File</span> <span class="pl-s">".../.local/lib/python2.7/site-packages/pandas/core/categorical.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2068</span>, <span class="pl-s1">in</span> <span class="pl-s1">_factorize_from_iterables</span> <span class="pl-k">return</span> <span class="pl-en">map</span>(<span class="pl-s1">list</span>, <span class="pl-en">lzip</span>(<span class="pl-c1">*</span>[<span class="pl-en">_factorize_from_iterable</span>(<span class="pl-s1">it</span>) <span class="pl-k">for</span> <span class="pl-s1">it</span> <span class="pl-c1">in</span> <span class="pl-s1">iterables</span>])) <span class="pl-v">File</span> <span class="pl-s">".../.local/lib/python2.7/site-packages/pandas/core/categorical.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2040</span>, <span class="pl-s1">in</span> <span class="pl-s1">_factorize_from_iterable</span> <span class="pl-s1">cat</span> <span class="pl-c1">=</span> <span class="pl-v">Categorical</span>(<span class="pl-s1">values</span>, <span class="pl-s1">ordered</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-v">File</span> <span class="pl-s">".../.local/lib/python2.7/site-packages/pandas/core/categorical.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">300</span>, <span class="pl-s1">in</span> <span class="pl-s1">__init__</span> <span class="pl-k">raise</span> <span class="pl-v">NotImplementedError</span>(<span class="pl-s">"&gt; 1 ndim Categorical are not "</span> <span class="pl-v">NotImplementedError</span>: <span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">ndim</span> <span class="pl-v">Categorical</span> <span class="pl-s1">are</span> <span class="pl-c1">not</span> <span class="pl-s1">supported</span> <span class="pl-s1">at</span> <span class="pl-s1">this</span> <span class="pl-s1">time</span></pre></div> <p dir="auto">In-depth look:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pandas.core.categorical.factorize(ar, sort = True) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;.../.local/lib/python2.7/site-packages/pandas/core/algorithms.py&quot;, line 313, in factorize labels = table.get_labels(vals, uniques, 0, na_sentinel, True) File &quot;pandas/src/hashtable_class_helper.pxi&quot;, line 485, in pandas.hashtable.Int64HashTable.get_labels (pandas/hashtable.c:9966) File &quot;stringsource&quot;, line 644, in View.MemoryView.memoryview_cwrapper (pandas/hashtable.c:32223) File &quot;stringsource&quot;, line 345, in View.MemoryView.memoryview.__cinit__ (pandas/hashtable.c:28458) ValueError: buffer source array is read-only"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">core</span>.<span class="pl-s1">categorical</span>.<span class="pl-en">factorize</span>(<span class="pl-s1">ar</span>, <span class="pl-s1">sort</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>) <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"&lt;stdin&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-v">File</span> <span class="pl-s">".../.local/lib/python2.7/site-packages/pandas/core/algorithms.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">313</span>, <span class="pl-s1">in</span> <span class="pl-s1">factorize</span> <span class="pl-s1">labels</span> <span class="pl-c1">=</span> <span class="pl-s1">table</span>.<span class="pl-en">get_labels</span>(<span class="pl-s1">vals</span>, <span class="pl-s1">uniques</span>, <span class="pl-c1">0</span>, <span class="pl-s1">na_sentinel</span>, <span class="pl-c1">True</span>) <span class="pl-v">File</span> <span class="pl-s">"pandas/src/hashtable_class_helper.pxi"</span>, <span class="pl-s1">line</span> <span class="pl-c1">485</span>, <span class="pl-s1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">hashtable</span>.<span class="pl-v">Int64HashTable</span>.<span class="pl-en">get_labels</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">hashtable</span>.<span class="pl-s1">c</span>:<span class="pl-c1">9966</span>) <span class="pl-v">File</span> <span class="pl-s">"stringsource"</span>, <span class="pl-s1">line</span> <span class="pl-c1">644</span>, <span class="pl-s1">in</span> <span class="pl-v">View</span>.<span class="pl-v">MemoryView</span>.<span class="pl-en">memoryview_cwrapper</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">hashtable</span>.<span class="pl-s1">c</span>:<span class="pl-c1">32223</span>) <span class="pl-v">File</span> <span class="pl-s">"stringsource"</span>, <span class="pl-s1">line</span> <span class="pl-c1">345</span>, <span class="pl-s1">in</span> <span class="pl-v">View</span>.<span class="pl-v">MemoryView</span>.<span class="pl-s1">memoryview</span>.<span class="pl-en">__cinit__</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">hashtable</span>.<span class="pl-s1">c</span>:<span class="pl-c1">28458</span>) <span class="pl-v">ValueError</span>: <span class="pl-s1">buffer</span> <span class="pl-s1">source</span> <span class="pl-s1">array</span> <span class="pl-c1">is</span> <span class="pl-s1">read</span><span class="pl-c1">-</span><span class="pl-s1">only</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">If a <code class="notranslate">NumPy</code> array backed by a read-only buffer is used in <code class="notranslate">MultiInted.from_arrays</code> a confuzsing <code class="notranslate">NotImplementedError: &gt; 1 ndim Categorical are not supported at this time</code> exception is raised.</p> <p dir="auto">A more in-depth look at the code shows that, when using a <code class="notranslate">NumPy</code> array backed by a read-only buffer, the <code class="notranslate">Categorical</code> constructor (which raises the <code class="notranslate">NotImplementedError</code> exception) calls <code class="notranslate">factorize</code> which raises <code class="notranslate">ValueError: buffer source array is read-only</code>.</p> <p dir="auto">Maybe the read-only aspect raised by <code class="notranslate">factorize</code> should propagate to the user so the real cause of the exception is known. As currently implemented, the <code class="notranslate">Categorical</code> constructor reinterprets the exception and throws a confusing <code class="notranslate">NotImplementedError: &gt; 1 ndim Categorical are not supported at this time</code></p> <h4 dir="auto">Expected Output</h4> <p dir="auto"><code class="notranslate">ValueError: buffer source array is read-only</code></p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> # Paste the output here pd.show_versions() here &gt;&gt;&gt; pandas.show_versions() <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.13.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 4.9.6-100.fc24.x86_64<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.utf8<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.19.2<br> nose: 1.3.7<br> pip: 9.0.1<br> setuptools: 20.1.1<br> Cython: 0.25.2<br> numpy: 1.11.0<br> scipy: 0.16.1<br> statsmodels: None<br> xarray: None<br> IPython: 5.3.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.6.0<br> pytz: 2016.10<br> blosc: None<br> bottleneck: 0.6.0<br> tables: 3.2.2<br> numexpr: 2.6.1<br> matplotlib: 1.5.2rc2<br> openpyxl: None<br> xlrd: 0.9.4<br> xlwt: 1.0.0<br> xlsxwriter: None<br> lxml: None<br> bs4: 4.4.0<br> html5lib: 1.0b7<br> httplib2: None<br> apiclient: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8.1<br> boto: 2.45.0<br> pandas_datareader: 0.3.0.post</p> </details>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np import pandas as pd a = np.array(range(3)) b = ['a', 'b'] # Succeeds, as expected pd.MultiIndex.from_product([a, b]) a.setflags(write=False) # Raises a ValueError with &quot;buffer source array is read-only&quot; pd.MultiIndex.from_product([a, b]) "><pre lang="python" class="notranslate"><code class="notranslate">import numpy as np import pandas as pd a = np.array(range(3)) b = ['a', 'b'] # Succeeds, as expected pd.MultiIndex.from_product([a, b]) a.setflags(write=False) # Raises a ValueError with "buffer source array is read-only" pd.MultiIndex.from_product([a, b]) </code></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Nothing in the MultiIndex.from_product documentation suggests the inputs need to be mutable. Moreover, it is surprising that the arguments are being mutated.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">Not raising.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.1.17-pv-ts1 machine: x86_64 processor: byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 <p dir="auto">pandas: 0.19.2-ts2<br> nose: 1.3.7<br> pip: 9.0.1<br> setuptools: 27.2.0<br> Cython: None<br> numpy: 1.11.3<br> scipy: 0.18.1<br> statsmodels: None<br> xarray: None<br> IPython: 5.1.0<br> sphinx: 1.5.1<br> patsy: None<br> dateutil: 2.6.0<br> pytz: 2016.10<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.5.3<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.4<br> boto: None<br> pandas_datareader: None</p> </details>
1
<ul dir="auto"> <li>Electron version: 1.6.6</li> <li>Operating system: Ubuntu 16.04</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto"><code class="notranslate">Tray.setTitle("Something...")</code> should work on Linux (at least on Unity/appindicator) because text can be displayed alongside the icon.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7735145/26071420/58f4ac04-39a8-11e7-994e-c7dbb9586e00.png"><img src="https://cloud.githubusercontent.com/assets/7735145/26071420/58f4ac04-39a8-11e7-994e-c7dbb9586e00.png" alt="indicator-weather running on ubuntu with unity" style="max-width: 100%;"></a></p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">It only works on macOS</p> <h3 dir="auto">How to reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const {app, Menu, Tray} = require('electron') let appIcon = null app.on('ready', () =&gt; { appIcon = new Tray('/path/to/my/icon') appIcon.setTitle(&quot;Something&quot;) })"><pre class="notranslate"><code class="notranslate">const {app, Menu, Tray} = require('electron') let appIcon = null app.on('ready', () =&gt; { appIcon = new Tray('/path/to/my/icon') appIcon.setTitle("Something") }) </code></pre></div>
<ul dir="auto"> <li>Electron version: 0.36.10 (latest stable)</li> <li>Operating system: Ubuntu 15.10</li> </ul> <p dir="auto">I already asked this on stackoverflow: <a href="http://stackoverflow.com/questions/35755240/how-to-add-text-to-ubuntu-app-indicator-with-with-nw-js-or-electron" rel="nofollow">http://stackoverflow.com/questions/35755240/how-to-add-text-to-ubuntu-app-indicator-with-with-nw-js-or-electron</a></p> <p dir="auto">I would like to add text to the ubuntu (unity) app indicator. That's possible via the python package libindicator but not via electron so far.</p>
1
<h4 dir="auto">Description</h4> <p dir="auto">If I create a OneHotEncoder instance defining the categories manually and then try to transform data directly (skipping the fitting step), I get a NotFittedError.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np from sklearn.preprocessing import OneHotEncoder categories = ['a', 'b', 'c'] ohe = OneHotEncoder(categories=categories) new = ohe.transform(['a', 'c', 'b', 'b'])"><pre class="notranslate"><code class="notranslate">import numpy as np from sklearn.preprocessing import OneHotEncoder categories = ['a', 'b', 'c'] ohe = OneHotEncoder(categories=categories) new = ohe.transform(['a', 'c', 'b', 'b']) </code></pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">No error, since the categories were defined manually. This is the behaviour that I expected from the documentation:</p> <blockquote> <p dir="auto">By default, the encoder derives the categories based on the unique values in each feature. Alternatively, you can also specify the categories manually.</p> </blockquote> <h4 dir="auto">Actual Results</h4> <blockquote> <hr> <p dir="auto">NotFittedError Traceback (most recent call last)<br> in <br> 3 categories = ['a', 'b', 'c']<br> 4 ohe = OneHotEncoder(categories=categories)<br> ----&gt; 5 new = ohe.transform(['a', 'c', 'b', 'b'])</p> <p dir="auto">~\AppData\Local\Continuum\anaconda3\lib\site-packages\sklearn\preprocessing_encoders.py in transform(self, X)<br> 724 Transformed input.<br> 725 """<br> --&gt; 726 check_is_fitted(self, 'categories_')<br> 727 if self._legacy_mode:<br> 728 return _transform_selected(X, self._legacy_transform, self.dtype,</p> <p dir="auto">~\AppData\Local\Continuum\anaconda3\lib\site-packages\sklearn\utils\validation.py in check_is_fitted(estimator, attributes, msg, all_or_any)<br> 912<br> 913 if not all_or_any([hasattr(estimator, attr) for attr in attributes]):<br> --&gt; 914 raise NotFittedError(msg % {'name': type(estimator).<strong>name</strong>})<br> 915<br> 916</p> <p dir="auto">NotFittedError: This OneHotEncoder instance is not fitted yet. Call 'fit' with appropriate arguments before using this method.</p> </blockquote> <h4 dir="auto">Versions</h4> <p dir="auto">Windows-10-10.0.17134-SP0<br> Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]<br> NumPy 1.16.4<br> SciPy 1.2.1<br> Scikit-Learn 0.21.2</p>
<p dir="auto">Right now there's some estimators that don't require calling "fit", two that I'm aware of: <code class="notranslate">Normalizer</code> and <code class="notranslate">FunctionTransformer</code>. They do input validation if <code class="notranslate">fit</code> is called.<br> There's one estimator that is stateless but requires calling <code class="notranslate">fit</code> for no real reason I can see, <code class="notranslate">AdditiveChi2Sampler</code>.</p> <p dir="auto">My questions are:</p> <ul dir="auto"> <li> <p dir="auto">Should we remove the requirement to calling <code class="notranslate">fit</code> if it can be avoided?</p> </li> <li> <p dir="auto">If <code class="notranslate">fit</code> is called, should we ensure that the number of features is the same in <code class="notranslate">fit</code> and <code class="notranslate">transform</code>, even though that's not required by the algorithm to avoid user errors?</p> </li> </ul>
1
<p dir="auto">Have a look at this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo (a, b) { if (b) { return foo(b); } else { return a; } }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span> <span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">One would expect <code class="notranslate">foo("Michael", "Jackson")</code> to evaluate to "Jackson", yes? Yes. Except it doesn't. Rather, the function never returns and your computer probably heats up a little.</p> <p dir="auto">A quick look at the compiled code shows what the problem is:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo(_x, _x2) { var _again = true; _function: while (_again) { var a = _x, b = _x2; // (1) _again = false; if (b) { // (2) _x = b; // (3) _again = true; continue _function; } else { return a; } } }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">_x</span><span class="pl-kos">,</span> <span class="pl-s1">_x2</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">_again</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> _function: <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-s1">_again</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">_x</span><span class="pl-kos">,</span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">_x2</span><span class="pl-kos">;</span> <span class="pl-c">// (1)</span> <span class="pl-s1">_again</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// (2)</span> <span class="pl-s1">_x</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span><span class="pl-kos">;</span> <span class="pl-c">// (3)</span> <span class="pl-s1">_again</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-k">continue</span> _function<span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">At <code class="notranslate">(3)</code> we simulate the tail call <code class="notranslate">foo(b)</code> by setting <code class="notranslate">_x</code> to <code class="notranslate">b</code> and jumping back to the start of the loop. Only problem is, <code class="notranslate">_x2</code> is still the same value as <code class="notranslate">b</code> so <code class="notranslate">(1)</code> is a noop on the second go round. Obviously this means that <code class="notranslate">(2)</code> evaluates true and we just keep spinning like that.</p> <p dir="auto">Solution: Reset all parameters, not just the ones passed to the tail call. Unless, perhaps, you can be certain they (the unpassed parameters) won't be dereferenced again, but that seems like difficult logic to implement for very little performance gain.</p> <p dir="auto">But wait! There's more!</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo (a, b) { if (arguments.length == 2) { return foo(() =&gt; console.log(a, b)); } else { return a; } } foo(&quot;Michael&quot;, &quot;Jackson&quot;)();"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span> <span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-smi">arguments</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">==</span> <span class="pl-c1">2</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s">"Michael"</span><span class="pl-kos">,</span> <span class="pl-s">"Jackson"</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Can you guess what this prints? No cheating now...</p> <p dir="auto">Yes that's right! It prints something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function () { return console.log(a, b); } Jackson"><pre class="notranslate"><code class="notranslate">function () { return console.log(a, b); } Jackson </code></pre></div> <p dir="auto">This is because the lambda closes over <code class="notranslate">a</code>, but <code class="notranslate">a</code> is promptly reset by the TCE loop from "Michael" to the lambda itself.</p> <p dir="auto">Solution?: check for parameters being closed over with the resulting closure escaping the scope of the current TCE loop iteration. Surround them with an extra closure or <code class="notranslate">with</code> or something? Not sure what would be performant.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/0fb29840a4f13c89fbc5d2a8d64cfe3ec2cc37f15d9bad7210eba6309b4e30ca/687474703a2f2f692e696d6775722e636f6d2f775a51484d755a2e6a7067"><img src="https://camo.githubusercontent.com/0fb29840a4f13c89fbc5d2a8d64cfe3ec2cc37f15d9bad7210eba6309b4e30ca/687474703a2f2f692e696d6775722e636f6d2f775a51484d755a2e6a7067" alt="" data-canonical-src="http://i.imgur.com/wZQHMuZ.jpg" style="max-width: 100%;"></a></p> <p dir="auto">Sorry I couldn't resist.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function callbackPerInt(count, cb){ if (count &lt; 0) return; cb(function(){ return count; }); return callbackPerInt(count - 1, cb); }"><pre class="notranslate"><code class="notranslate">function callbackPerInt(count, cb){ if (count &lt; 0) return; cb(function(){ return count; }); return callbackPerInt(count - 1, cb); } </code></pre></div> <p dir="auto">Currently, TCO makes this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function callbackPerInt(_x, _x2) { var _again = true; _function: while (_again) { _again = false; var count = _x, cb = _x2; if (count &lt; 0) return; cb(function () { return count; }); _x = count - 1; _x2 = cb; _again = true; continue _function; } }"><pre class="notranslate"><code class="notranslate">function callbackPerInt(_x, _x2) { var _again = true; _function: while (_again) { _again = false; var count = _x, cb = _x2; if (count &lt; 0) return; cb(function () { return count; }); _x = count - 1; _x2 = cb; _again = true; continue _function; } } </code></pre></div> <p dir="auto">which means that the value returned by the final callback depends on when the function passed to the callback is called. If it's called synchronously inside <code class="notranslate">cb</code> then it will return the correct value, but otherwise it'll a later version of <code class="notranslate">count</code>.</p> <p dir="auto">I don't know the spec, but I'd guess we either need to skip optimizing, or the while loop body needs to be treated like all function-scoped variables are block-scoped inside the while loop like a normal while loop.</p>
1
<p dir="auto">Hi</p> <p dir="auto">soon with Android Q the night mode will be very important in my opinion and it would be nice if you can fix this little problem. Glide does not find pictures in the following directories:</p> <p dir="auto">drawable-night<br> drawable-night-hdpi (also mdpi, xhdpi, xxhdpi and xxxhdpi)</p> <p dir="auto">Greets</p> <p dir="auto">Frank</p>
<p dir="auto">Enhancement Request:</p> <p dir="auto"><strong>Problem:</strong><br> Glide makes duplicate network calls when loading (or prefetching) the same image URL into multiple ImageViews if the below is true:</p> <ul dir="auto"> <li>The requests were made before Glide saved them to DISK cache.</li> <li>The ImageViews differ in size or there are other minor differences in the GlideRequest.</li> </ul> <p dir="auto"><strong>Solution:</strong><br> Ideally, Glide should wait for an ongoing network call to complete so it can reuse the response, rather than making another call because there are slight differences in the GlideRequest.</p> <p dir="auto">If Glide could be smarter about this it would make prefetching significantly easier because it would become less important to determine the exact GlideRequest params ahead of time, such as ImageView dimensions.</p>
0
<p dir="auto">Will scikit-learn accept pull requests for low-level code with static type hints? Does it ever plan to?</p> <p dir="auto">I don't know where the core team stands on static type hints in Python, but I think they make it 10x easier to grok code and convert users to contributors.</p> <p dir="auto">2018 seems like a great time to make this change, in light of Numpy dropping support for new features in Python 2.7. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="325075164" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/11115" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/11115/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/11115">#11115</a></p> <p dir="auto">Supported version would need to change from <code class="notranslate">Python (&gt;= 2.7 or &gt;= 3.4)</code> to <code class="notranslate">Python (&gt;= 3.5)</code> to support static type hints.</p>
<h4 dir="auto">Describe the workflow you want to enable</h4> <p dir="auto">Support Python typing, which is available in Python 3.5+, compatible with scikit-learn. This can enable tools to automatically get the estimator arg types (e.g., linters), for example. And it's a Python standard now.</p> <h4 dir="auto">Describe your proposed solution</h4> <p dir="auto">For example, <code class="notranslate">SVC</code> could be like this:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def __init__( self, C: float = 1.0, kernel: Union[Callable[[np.ndarray, np.ndarray], np.ndarray], Literal[&quot;linear&quot;, &quot;poly&quot;, &quot;rbf&quot;, &quot;sigmoid&quot;, &quot;precomputed&quot;]] = &quot;rbf&quot;, degree: int = 3, gamma: Union[float, Literal[&quot;scale&quot;, &quot;auto&quot;]] = &quot;scale&quot;, coef0: float = 0.0, shrinking: bool = True, probability: bool = False, tol: float = 1e-3, cache_size: int = 200, class_weight: Optional[Union[Mapping[int, float], Literal[&quot;balanced&quot;]]] = None, verbose: bool = False, max_iter: int = -1, decision_function_shape: Literal[&quot;ovo&quot;, &quot;ovr&quot;] = &quot;ovr&quot;, break_ties: bool = False, random_state: Optional[Union[int, RandomState]] = None, ) -&gt; None:"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">__init__</span>( <span class="pl-s1">self</span>, <span class="pl-v">C</span>: <span class="pl-s1">float</span> <span class="pl-c1">=</span> <span class="pl-c1">1.0</span>, <span class="pl-s1">kernel</span>: <span class="pl-v">Union</span>[<span class="pl-v">Callable</span>[[<span class="pl-s1">np</span>.<span class="pl-s1">ndarray</span>, <span class="pl-s1">np</span>.<span class="pl-s1">ndarray</span>], <span class="pl-s1">np</span>.<span class="pl-s1">ndarray</span>], <span class="pl-v">Literal</span>[<span class="pl-s">"linear"</span>, <span class="pl-s">"poly"</span>, <span class="pl-s">"rbf"</span>, <span class="pl-s">"sigmoid"</span>, <span class="pl-s">"precomputed"</span>]] <span class="pl-c1">=</span> <span class="pl-s">"rbf"</span>, <span class="pl-s1">degree</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-c1">3</span>, <span class="pl-s1">gamma</span>: <span class="pl-v">Union</span>[<span class="pl-s1">float</span>, <span class="pl-v">Literal</span>[<span class="pl-s">"scale"</span>, <span class="pl-s">"auto"</span>]] <span class="pl-c1">=</span> <span class="pl-s">"scale"</span>, <span class="pl-s1">coef0</span>: <span class="pl-s1">float</span> <span class="pl-c1">=</span> <span class="pl-c1">0.0</span>, <span class="pl-s1">shrinking</span>: <span class="pl-s1">bool</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>, <span class="pl-s1">probability</span>: <span class="pl-s1">bool</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span>, <span class="pl-s1">tol</span>: <span class="pl-s1">float</span> <span class="pl-c1">=</span> <span class="pl-c1">1e-3</span>, <span class="pl-s1">cache_size</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-c1">200</span>, <span class="pl-s1">class_weight</span>: <span class="pl-v">Optional</span>[<span class="pl-v">Union</span>[<span class="pl-v">Mapping</span>[<span class="pl-s1">int</span>, <span class="pl-s1">float</span>], <span class="pl-v">Literal</span>[<span class="pl-s">"balanced"</span>]]] <span class="pl-c1">=</span> <span class="pl-c1">None</span>, <span class="pl-s1">verbose</span>: <span class="pl-s1">bool</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span>, <span class="pl-s1">max_iter</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-s1">decision_function_shape</span>: <span class="pl-v">Literal</span>[<span class="pl-s">"ovo"</span>, <span class="pl-s">"ovr"</span>] <span class="pl-c1">=</span> <span class="pl-s">"ovr"</span>, <span class="pl-s1">break_ties</span>: <span class="pl-s1">bool</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span>, <span class="pl-s1">random_state</span>: <span class="pl-v">Optional</span>[<span class="pl-v">Union</span>[<span class="pl-s1">int</span>, <span class="pl-v">RandomState</span>]] <span class="pl-c1">=</span> <span class="pl-c1">None</span>, ) <span class="pl-c1">-&gt;</span> <span class="pl-c1">None</span>:</pre></div> <h4 dir="auto">Describe alternatives you've considered, if relevant</h4> <p dir="auto">An alternative is to keep the types just in the docstrings. However, is hard for tools to parse the arg types.</p>
1
<p dir="auto">Fork from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53797072" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/3329" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/3329/hovercard" href="https://github.com/kubernetes/kubernetes/issues/3329">#3329</a> ...</p> <p dir="auto">When something goes bad, the system generates tons of events which are identical except the timestamps. For example, pulling a non existing image, Kubelet will generate a lot of image_not_existing events and container_is_waiting events until upstream components corrects the image. When such things happen, the entire event mechanism becomes useless. This also causes memory pressure for etcd <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="55698218" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/3853" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/3853/hovercard" href="https://github.com/kubernetes/kubernetes/issues/3853">#3853</a></p>
<p dir="auto">Provide DNS resolution for pod addresses.</p>
0
<p dir="auto">Hello,</p> <p dir="auto">currently, I'm trying to integrate a custom third-party input field (source code editor) written in JavaScript which is not based on Angular. Thus I need to wrap it to a component, use <code class="notranslate">EventEmitter</code> to report changes outside and use <code class="notranslate">ngOnChanges</code> to apply changes coming from outside.</p> <p dir="auto">The <code class="notranslate">Input</code> of the component is named <code class="notranslate">model</code> and the <code class="notranslate">Output</code> is named <code class="notranslate">modelChange</code> so that the other components <em>can</em> take advantage of a two-way data binding.</p> <p dir="auto">I've noticed that if the parent component applies the two-way data binding and if the child emits an event, the change of the parent's data emits another event which is sent back to the child. If you imagine that the <code class="notranslate">ngOnChanges</code> calls an expensive method that handles the change, you probably agree with me that this effect is something I would like to avoid. Can you please provide a mechanism to achieve this?</p> <p dir="auto">Or am I doing something wrong? Can it be done better?</p> <p dir="auto">Here is a Plunk demonstrating the echo effect: <a href="http://plnkr.co/edit/drRlJRCsvnzcTqlR4UlX" rel="nofollow">http://plnkr.co/edit/drRlJRCsvnzcTqlR4UlX</a></p> <p dir="auto">PS - I am not sure if this is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="110318123" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/4593" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/4593/hovercard" href="https://github.com/angular/angular/issues/4593">#4593</a><br> PS - Feel free to make the title more understandable.</p>
<p dir="auto">E.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export class Checkbox { @Output() change: EventEmitter = new EventEmitter(); @HostListener('change', [ '$event.target.value' ]) onChange(event) { ... } }"><pre class="notranslate"><code class="notranslate">export class Checkbox { @Output() change: EventEmitter = new EventEmitter(); @HostListener('change', [ '$event.target.value' ]) onChange(event) { ... } } </code></pre></div>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">For the sake of security, invoking dubbo service by telnet should only be allowed when application is deployed in dev or test environment.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.6</li> <li>Operating System version: win&amp;linux</li> <li>Java version: 14</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>在项目中引用spirng-cloud-config</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;dependency&gt; &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt; &lt;artifactId&gt;spring-cloud-starter-config&lt;/artifactId&gt; &lt;/dependency&gt;"><pre class="notranslate"><code class="notranslate"> &lt;dependency&gt; &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt; &lt;artifactId&gt;spring-cloud-starter-config&lt;/artifactId&gt; &lt;/dependency&gt; </code></pre></div> <ol start="2" dir="auto"> <li>添加配置文件<br> bootstrap.yml</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="spring: cloud: config: fail-fast: true"><pre class="notranslate"><code class="notranslate">spring: cloud: config: fail-fast: true </code></pre></div> <h3 dir="auto">Expected Result</h3> <p dir="auto">正常情况程序会因为无法连接spring-config-serivce而终止</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">如果项目中引用了dubbo的话,会阻止程序终止,<br> 导致程序即无法终止,也无法继续运行.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2020-08-20 09:53:56.204 INFO 15508 --- [ main] d.s.b.c.e.WelcomeLogoApplicationListener : :: Dubbo Spring Boot (v2.7.6) : https://github.com/apache/dubbo-spring-boot-project :: Dubbo (v2.7.6) : https://github.com/apache/dubbo :: Discuss group : [email protected] 2020-08-20 09:53:56.210 INFO 15508 --- [ main] e.OverrideDubboConfigApplicationListener : Dubbo Config was overridden by externalized configuration {dubbo.application.qos-enable=false, dubbo.config.multiple=true} 2020-08-20 09:53:56.277 INFO 15508 --- [ main] com.alibaba.spring.util.BeanRegistrar : The Infrastructure bean definition [Root bean: class [org.apache.dubbo.spring.boot.beans.factory.config.DubboConfigBeanCustomizer]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [namePropertyDefaultValueDubboConfigBeanCustomizer] has been registered. 2020-08-20 09:53:56.406 INFO 15508 --- [pool-1-thread-1] .b.c.e.AwaitingNonWebApplicationListener : [Dubbo] Current Spring Boot Application is await... 2020-08-20 09:53:56.610 INFO 15508 --- [ main] e.OverrideDubboConfigApplicationListener : Dubbo Config was overridden by externalized configuration {dubbo.application.qos-enable=false, dubbo.config.multiple=true} . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.3.3.RELEASE) 2020-08-20 09:53:56.628 INFO 15508 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888 2020-08-20 09:53:58.693 INFO 15508 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available 2020-08-20 09:53:58.700 ERROR 15508 --- [ main] o.s.boot.SpringApplication : Application run failed java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:148) ~[spring-cloud-config-client-2.2.4.RELEASE.jar:2.2.4.RELEASE] at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:52) ~[spring-cloud-context-2.2.4.RELEASE.jar:2.2.4.RELEASE] at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locateCollection(ConfigServicePropertySourceLocator.java:163) ~[spring-cloud-config-client-2.2.4.RELEASE.jar:2.2.4.RELEASE] at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:98) ~[spring-cloud-context-2.2.4.RELEASE.jar:2.2.4.RELEASE] at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:626) ~[spring-boot-2.3.3.RELEASE.jar:2.3.3.RELEASE] at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:370) ~[spring-boot-2.3.3.RELEASE.jar:2.3.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) ~[spring-boot-2.3.3.RELEASE.jar:2.3.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) ~[spring-boot-2.3.3.RELEASE.jar:2.3.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.3.3.RELEASE.jar:2.3.3.RELEASE] at com.example.demo.DemoApplication.main(DemoApplication.java:10) ~[classes/:na] Caused by: org.springframework.web.client.ResourceAccessException: I/O error on GET request for &quot;http://localhost:8888/application/default&quot;: Connection refused: no further information; nested exception is java.net.ConnectException: Connection refused: no further information at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:748) ~[spring-web-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:674) ~[spring-web-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:583) ~[spring-web-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.getRemoteEnvironment(ConfigServicePropertySourceLocator.java:264) ~[spring-cloud-config-client-2.2.4.RELEASE.jar:2.2.4.RELEASE] at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:107) ~[spring-cloud-config-client-2.2.4.RELEASE.jar:2.2.4.RELEASE] ... 9 common frames omitted```"><pre class="notranslate"><code class="notranslate">2020-08-20 09:53:56.204 INFO 15508 --- [ main] d.s.b.c.e.WelcomeLogoApplicationListener : :: Dubbo Spring Boot (v2.7.6) : https://github.com/apache/dubbo-spring-boot-project :: Dubbo (v2.7.6) : https://github.com/apache/dubbo :: Discuss group : [email protected] 2020-08-20 09:53:56.210 INFO 15508 --- [ main] e.OverrideDubboConfigApplicationListener : Dubbo Config was overridden by externalized configuration {dubbo.application.qos-enable=false, dubbo.config.multiple=true} 2020-08-20 09:53:56.277 INFO 15508 --- [ main] com.alibaba.spring.util.BeanRegistrar : The Infrastructure bean definition [Root bean: class [org.apache.dubbo.spring.boot.beans.factory.config.DubboConfigBeanCustomizer]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [namePropertyDefaultValueDubboConfigBeanCustomizer] has been registered. 2020-08-20 09:53:56.406 INFO 15508 --- [pool-1-thread-1] .b.c.e.AwaitingNonWebApplicationListener : [Dubbo] Current Spring Boot Application is await... 2020-08-20 09:53:56.610 INFO 15508 --- [ main] e.OverrideDubboConfigApplicationListener : Dubbo Config was overridden by externalized configuration {dubbo.application.qos-enable=false, dubbo.config.multiple=true} . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.3.3.RELEASE) 2020-08-20 09:53:56.628 INFO 15508 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888 2020-08-20 09:53:58.693 INFO 15508 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available 2020-08-20 09:53:58.700 ERROR 15508 --- [ main] o.s.boot.SpringApplication : Application run failed java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:148) ~[spring-cloud-config-client-2.2.4.RELEASE.jar:2.2.4.RELEASE] at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:52) ~[spring-cloud-context-2.2.4.RELEASE.jar:2.2.4.RELEASE] at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locateCollection(ConfigServicePropertySourceLocator.java:163) ~[spring-cloud-config-client-2.2.4.RELEASE.jar:2.2.4.RELEASE] at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:98) ~[spring-cloud-context-2.2.4.RELEASE.jar:2.2.4.RELEASE] at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:626) ~[spring-boot-2.3.3.RELEASE.jar:2.3.3.RELEASE] at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:370) ~[spring-boot-2.3.3.RELEASE.jar:2.3.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) ~[spring-boot-2.3.3.RELEASE.jar:2.3.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) ~[spring-boot-2.3.3.RELEASE.jar:2.3.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.3.3.RELEASE.jar:2.3.3.RELEASE] at com.example.demo.DemoApplication.main(DemoApplication.java:10) ~[classes/:na] Caused by: org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:8888/application/default": Connection refused: no further information; nested exception is java.net.ConnectException: Connection refused: no further information at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:748) ~[spring-web-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:674) ~[spring-web-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:583) ~[spring-web-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.getRemoteEnvironment(ConfigServicePropertySourceLocator.java:264) ~[spring-cloud-config-client-2.2.4.RELEASE.jar:2.2.4.RELEASE] at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:107) ~[spring-cloud-config-client-2.2.4.RELEASE.jar:2.2.4.RELEASE] ... 9 common frames omitted``` </code></pre></div>
0
<p dir="auto">I'm stuck on an odd error during build, where a certain source file is unable to be transpiled. The file in question just exports a named class: <code class="notranslate">export class ..</code>.</p> <p dir="auto">The issue seems to be caused by <code class="notranslate">styled-jsx</code> and its moduleExportsVisitor. The file where the error occurs does not use React or styled-jsx.</p> <p dir="auto">Any advice/help would be appreciated. For now, I'm working around it by creating a separate build for that module without going through the Next build pipeline. Here's the stack trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Module build failed: TypeError: ~/dev/mooz/vex/src/accidental.js: Cannot read property 'file' of undefined at NodePath.getSource (~/dev/node_modules/babel-traverse/lib/path/introspection.js:193:20) at moduleExportsVisitor (~/dev/node_modules/styled-jsx/dist/babel-external.js:171:24) at callExternalVisitor (~/dev/node_modules/styled-jsx/dist/babel.js:346:3) at PluginPass.AssignmentExpression (~/dev/node_modules/styled-jsx/dist/babel.js:308:9) at newFn (~/dev/node_modules/babel-traverse/lib/visitors.js:276:21) at NodePath._call (~/dev/node_modules/babel-traverse/lib/path/context.js:76:18) at NodePath.call (~/dev/node_modules/babel-traverse/lib/path/context.js:48:17) at NodePath.visit (~/dev/node_modules/babel-traverse/lib/path/context.js:105:12) at TraversalContext.visitQueue (~/dev/node_modules/babel-traverse/lib/context.js:150:16) at TraversalContext.visitSingle (~/dev/node_modules/babel-traverse/lib/context.js:108:19) at TraversalContext.visit (~/dev/node_modules/babel-traverse/lib/context.js:192:19) at Function.traverse.node (~/dev/node_modules/babel-traverse/lib/index.js:114:17)"><pre class="notranslate"><code class="notranslate">Module build failed: TypeError: ~/dev/mooz/vex/src/accidental.js: Cannot read property 'file' of undefined at NodePath.getSource (~/dev/node_modules/babel-traverse/lib/path/introspection.js:193:20) at moduleExportsVisitor (~/dev/node_modules/styled-jsx/dist/babel-external.js:171:24) at callExternalVisitor (~/dev/node_modules/styled-jsx/dist/babel.js:346:3) at PluginPass.AssignmentExpression (~/dev/node_modules/styled-jsx/dist/babel.js:308:9) at newFn (~/dev/node_modules/babel-traverse/lib/visitors.js:276:21) at NodePath._call (~/dev/node_modules/babel-traverse/lib/path/context.js:76:18) at NodePath.call (~/dev/node_modules/babel-traverse/lib/path/context.js:48:17) at NodePath.visit (~/dev/node_modules/babel-traverse/lib/path/context.js:105:12) at TraversalContext.visitQueue (~/dev/node_modules/babel-traverse/lib/context.js:150:16) at TraversalContext.visitSingle (~/dev/node_modules/babel-traverse/lib/context.js:108:19) at TraversalContext.visit (~/dev/node_modules/babel-traverse/lib/context.js:192:19) at Function.traverse.node (~/dev/node_modules/babel-traverse/lib/index.js:114:17) </code></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">The build task completes successfully.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The build task fails with an error mentioned in summary.</p> <h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Unknown</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/beta/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/beta">@beta</a></td> </tr> </tbody> </table>
<h1 dir="auto">Feature request</h1> <h2 dir="auto">Is your feature request related to a problem? Please describe.</h2> <p dir="auto">All the components of the current app I am working on will be loaded as npm modules. This means that about 30 components will be worked on at the same time. Therefore it is critical for me to be able to link them locally while I am developing on them. I have not been able to get the packages to load with next without using a custom next.config.js.</p> <h3 dir="auto">This is the error I get:</h3> <p dir="auto">Module parse failed: Unexpected token (15:12) You may need an appropriate loader to handle this file type.</p> <h2 dir="auto">Describe the solution you'd like</h2> <p dir="auto">I have managed to get it to work by using require.resolve() on all loaders in the webpack config.</p> <h3 dir="auto">This is the next.config.js I am using (running on: 6.0.4-canary.8):</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const withTypescript = require('@zeit/next-typescript'); function resolveLoader(loader) { try { loader = require.resolve(__dirname + '/node_modules/next/dist/server/build/loaders/' + loader); } catch(error) { try { loader = require.resolve(loader); } catch(error) { //Ignore error } } return loader; } module.exports = withTypescript({ webpack(config, options) { for (const rule of config.module.rules) { rule.exclude = /node_modules\/(?!(@my-scope)\/).*/; delete rule.include; rule.loader = resolveLoader(rule.loader); if(Array.isArray(rule.use)) { rule.use[0] = resolveLoader(rule.use[0]); } else if(typeof rule.use === 'object' &amp;&amp; rule.use.loader) { rule.use.loader = resolveLoader(rule.use.loader); } } return config; } });"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">withTypescript</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@zeit/next-typescript'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">resolveLoader</span><span class="pl-kos">(</span><span class="pl-s1">loader</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-s1">loader</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span> <span class="pl-c1">+</span> <span class="pl-s">'/node_modules/next/dist/server/build/loaders/'</span> <span class="pl-c1">+</span> <span class="pl-s1">loader</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span><span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-s1">loader</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">loader</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span><span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">//Ignore error</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">loader</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-s1">withTypescript</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">webpack</span><span class="pl-kos">(</span><span class="pl-s1">config</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">rule</span> <span class="pl-k">of</span> <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">module</span><span class="pl-kos">.</span><span class="pl-c1">rules</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">rule</span><span class="pl-kos">.</span><span class="pl-c1">exclude</span> <span class="pl-c1">=</span> <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-cce">\/</span><span class="pl-kos">(?</span><span class="pl-c1">!</span><span class="pl-kos">(</span>@my-scope<span class="pl-kos">)</span><span class="pl-cce">\/</span><span class="pl-kos">)</span>.<span class="pl-c1">*</span><span class="pl-c1">/</span></span><span class="pl-kos">;</span> <span class="pl-k">delete</span> <span class="pl-s1">rule</span><span class="pl-kos">.</span><span class="pl-c1">include</span><span class="pl-kos">;</span> <span class="pl-s1">rule</span><span class="pl-kos">.</span><span class="pl-c1">loader</span> <span class="pl-c1">=</span> <span class="pl-en">resolveLoader</span><span class="pl-kos">(</span><span class="pl-s1">rule</span><span class="pl-kos">.</span><span class="pl-c1">loader</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-en">isArray</span><span class="pl-kos">(</span><span class="pl-s1">rule</span><span class="pl-kos">.</span><span class="pl-c1">use</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">rule</span><span class="pl-kos">.</span><span class="pl-c1">use</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">resolveLoader</span><span class="pl-kos">(</span><span class="pl-s1">rule</span><span class="pl-kos">.</span><span class="pl-c1">use</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">rule</span><span class="pl-kos">.</span><span class="pl-c1">use</span> <span class="pl-c1">===</span> <span class="pl-s">'object'</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">rule</span><span class="pl-kos">.</span><span class="pl-c1">use</span><span class="pl-kos">.</span><span class="pl-c1">loader</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">rule</span><span class="pl-kos">.</span><span class="pl-c1">use</span><span class="pl-kos">.</span><span class="pl-c1">loader</span> <span class="pl-c1">=</span> <span class="pl-en">resolveLoader</span><span class="pl-kos">(</span><span class="pl-s1">rule</span><span class="pl-kos">.</span><span class="pl-c1">use</span><span class="pl-kos">.</span><span class="pl-c1">loader</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">config</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h2 dir="auto">Describe alternatives you've considered</h2> <ol dir="auto"> <li>Make resolvement of loaders an option. Perhaps by providing a function like: withResolvedLoaders()</li> <li>Make it permanent if this doesn't cause issues with other functionality like .babelrc</li> <li>Inform people about the issue and provide with a solution for it in the documentation</li> </ol> <p dir="auto">I believe that option 1 would be the easiest alternative and least error prone.</p> <h2 dir="auto">Additional context</h2>
0
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="torch.nn.Hardshrink()(torch.rand(10).to('cuda:0'))"><pre class="notranslate"><span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">Hardshrink</span>()(<span class="pl-s1">torch</span>.<span class="pl-en">rand</span>(<span class="pl-c1">10</span>).<span class="pl-en">to</span>(<span class="pl-s">'cuda:0'</span>))</pre></div>
<p dir="auto">Request from <a href="https://discuss.pytorch.org/t/hardshrink-doesnt-support-cuda-floattensor/11088" rel="nofollow">https://discuss.pytorch.org/t/hardshrink-doesnt-support-cuda-floattensor/11088</a>.</p>
1
<p dir="auto">error: TS2345 [ERROR]: Argument of type '{ depth: number; sorted: boolean; trailingComma: boolean; compact: boolean; iterableLimit: number; }' is not assignable to parameter of type 'InspectOptions'.<br> Object literal may only specify known properties, and 'sorted' does not exist in type 'InspectOptions'.<br> sorted: true,<br> ~~~~~~~~~~~~<br> at <a href="https://deno.land/[email protected]/testing/asserts.ts:26:9" rel="nofollow">https://deno.land/[email protected]/testing/asserts.ts:26:9</a></p>
<p dir="auto">I have a very simple oak server running both locally and on an external server. It is hosting static content, nothing else.</p> <p dir="auto">I ran <code class="notranslate">deno cache --reload server.ts</code> yesterday, and got the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: TS2345 [ERROR]: Argument of type '{ depth: number; sorted: boolean; trailingComma: boolean; compact: boolean; iterableLimit: number; }' is not assignable to parameter of type 'InspectOptions'. Object literal may only specify known properties, and 'sorted' does not exist in type 'InspectOptions'. sorted: true, ~~~~~~~~~~~~ at https://deno.land/[email protected]/testing/asserts.ts:26:9"><pre class="notranslate"><code class="notranslate">error: TS2345 [ERROR]: Argument of type '{ depth: number; sorted: boolean; trailingComma: boolean; compact: boolean; iterableLimit: number; }' is not assignable to parameter of type 'InspectOptions'. Object literal may only specify known properties, and 'sorted' does not exist in type 'InspectOptions'. sorted: true, ~~~~~~~~~~~~ at https://deno.land/[email protected]/testing/asserts.ts:26:9 </code></pre></div> <p dir="auto">I ran <code class="notranslate">deno cache --reload server.ts</code> again today with the same result, so I figured I should probably post the issue here.</p>
1
<p dir="auto">I'm pretty sure this is a bug. When you set itRtl in your theme and create a <code class="notranslate">TimePicker</code> instance, clock digits are started from left which is wrong.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13661520/18238106/972b9936-734e-11e6-8131-57e2911b4489.png"><img src="https://cloud.githubusercontent.com/assets/13661520/18238106/972b9936-734e-11e6-8131-57e2911b4489.png" alt="screencapture-localhost-3000-admin-panel-collections-new-1473052978457" style="max-width: 100%;"></a></p> <p dir="auto">react: 15.3.1<br> material-ui: "^0.15.4"</p>
<h3 dir="auto">Problem description</h3> <p dir="auto">TimePicker displays incorrect with RTL direction</p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 0.15.4</li> <li>React: 15.2.0</li> <li>Browser: any browser</li> </ul> <h3 dir="auto">Images &amp; references</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6669339/17780534/18fe04d0-6585-11e6-8582-85936d805815.png"><img src="https://cloud.githubusercontent.com/assets/6669339/17780534/18fe04d0-6585-11e6-8582-85936d805815.png" alt="time-picker" style="max-width: 100%;"></a></p> <p dir="auto">--&gt;</p>
1
<p dir="auto">Seems that 1.8.2 has a breaking change related to delegate_to. In earlier releases, it was possible to use an expression as the value of delegate_to. Now an error is thrown by certain modules including fetch.</p> <p dir="auto">I notice that a few changes were made in runner/<strong>init</strong>.py that may be the cause of the regression.</p> <p dir="auto">Here is a sample to reproduce the error:</p> <p dir="auto">playbook:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - hosts: group1 gather_facts: no tasks: - name: pass delegate_to: &quot;{{ groups.group2 | first }}&quot; shell: whoami - name: fail delegate_to: &quot;{{ groups.group2 | first }}&quot; fetch: &gt; fail_on_missing=no src=somefile dest=somefile"><pre class="notranslate"><code class="notranslate"> --- - hosts: group1 gather_facts: no tasks: - name: pass delegate_to: "{{ groups.group2 | first }}" shell: whoami - name: fail delegate_to: "{{ groups.group2 | first }}" fetch: &gt; fail_on_missing=no src=somefile dest=somefile </code></pre></div> <p dir="auto">inventory:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[group1] 127.0.0.1 ansible_connection=local [group2] 127.0.0.1 ansible_connection=local"><pre class="notranslate"><code class="notranslate">[group1] 127.0.0.1 ansible_connection=local [group2] 127.0.0.1 ansible_connection=local </code></pre></div> <p dir="auto">error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [127.0.0.1 -&gt; 127.0.0.1] =&gt; Traceback (most recent call last): File &quot;/usr/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 590, in _executor exec_rc = self._executor_internal(host, new_stdin) File &quot;/usr/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 792, in _executor_internal return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args) File &quot;/usr/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 1025, in _executor_internal_inner result = handler.run(conn, tmp, module_name, module_args, inject, complex_args) File &quot;/usr/lib/python2.7/site-packages/ansible/runner/action_plugins/fetch.py&quot;, line 77, in run remote_checksum = self.runner._remote_checksum(conn, tmp, source, inject) File &quot;/usr/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 1231, in _remote_checksum python_interp = inject['hostvars'][inject['delegate_to']].get('ansible_python_interpreter', 'python') File &quot;/usr/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 103, in __getitem__ result = self.inventory.get_variables(host, vault_password=self.vault_password).copy() File &quot;/usr/lib/python2.7/site-packages/ansible/inventory/__init__.py&quot;, line 442, in get_variables raise Exception(&quot;host not found: %s&quot; % hostname) Exception: host not found: {{ groups.group2 | first }}"><pre class="notranslate"><code class="notranslate">fatal: [127.0.0.1 -&gt; 127.0.0.1] =&gt; Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 590, in _executor exec_rc = self._executor_internal(host, new_stdin) File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 792, in _executor_internal return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args) File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 1025, in _executor_internal_inner result = handler.run(conn, tmp, module_name, module_args, inject, complex_args) File "/usr/lib/python2.7/site-packages/ansible/runner/action_plugins/fetch.py", line 77, in run remote_checksum = self.runner._remote_checksum(conn, tmp, source, inject) File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 1231, in _remote_checksum python_interp = inject['hostvars'][inject['delegate_to']].get('ansible_python_interpreter', 'python') File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 103, in __getitem__ result = self.inventory.get_variables(host, vault_password=self.vault_password).copy() File "/usr/lib/python2.7/site-packages/ansible/inventory/__init__.py", line 442, in get_variables raise Exception("host not found: %s" % hostname) Exception: host not found: {{ groups.group2 | first }} </code></pre></div>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">"Bug Report"</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">1.8.2</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Ubuntu 12.04</p> <h5 dir="auto">Summary:</h5> <p dir="auto">Modules using <code class="notranslate">Runner._remote_checksum</code> (like template, copy, etc) are broken when used with delegate_to containing var in it</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Take following playbook and save as <em>delegat_test.yml</em>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: all gather_facts: no vars: d: 127.0.0.1 tasks: - copy: dest: /tmp/tmpl content: lalalala delegate_to: &quot;{{ d }}&quot;"><pre class="notranslate"><code class="notranslate">- hosts: all gather_facts: no vars: d: 127.0.0.1 tasks: - copy: dest: /tmp/tmpl content: lalalala delegate_to: "{{ d }}" </code></pre></div> <p dir="auto">Then run as following (note that "-c local" doesn't make any difference for the purpose of this ticket):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -c local -i '127.0.0.1,' delegate_test.yml"><pre class="notranslate"><code class="notranslate">ansible-playbook -c local -i '127.0.0.1,' delegate_test.yml </code></pre></div> <h5 dir="auto">Expected Results:</h5> <p dir="auto">Results from 1.7.2</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] ******************************************************************** TASK: [copy ] ***************************************************************** changed: [127.0.0.1 -&gt; 127.0.0.1] PLAY RECAP ******************************************************************** 127.0.0.1 : ok=1 changed=1 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">PLAY [all] ******************************************************************** TASK: [copy ] ***************************************************************** changed: [127.0.0.1 -&gt; 127.0.0.1] PLAY RECAP ******************************************************************** 127.0.0.1 : ok=1 changed=1 unreachable=0 failed=0 </code></pre></div> <h5 dir="auto">Actual Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] ******************************************************************** TASK: [copy ] ***************************************************************** fatal: [127.0.0.1 -&gt; 127.0.0.1] =&gt; Traceback (most recent call last): File &quot;/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 590, in _executor exec_rc = self._executor_internal(host, new_stdin) File &quot;/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 792, in _executor_internal return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args) File &quot;/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 1025, in _executor_internal_inner result = handler.run(conn, tmp, module_name, module_args, inject, complex_args) File &quot;/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/action_plugins/copy.py&quot;, line 181, in run remote_checksum = self.runner._remote_checksum(conn, tmp_path, dest_file, inject) File &quot;/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 1231, in _remote_checksum python_interp = inject['hostvars'][inject['delegate_to']].get('ansible_python_interpreter', 'python') File &quot;/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 103, in __getitem__ result = self.inventory.get_variables(host, vault_password=self.vault_password).copy() File &quot;/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/inventory/__init__.py&quot;, line 442, in get_variables raise Exception(&quot;host not found: %s&quot; % hostname) Exception: host not found: {{ d }} FATAL: all hosts have already failed -- aborting"><pre class="notranslate"><code class="notranslate">PLAY [all] ******************************************************************** TASK: [copy ] ***************************************************************** fatal: [127.0.0.1 -&gt; 127.0.0.1] =&gt; Traceback (most recent call last): File "/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/__init__.py", line 590, in _executor exec_rc = self._executor_internal(host, new_stdin) File "/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/__init__.py", line 792, in _executor_internal return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args) File "/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/__init__.py", line 1025, in _executor_internal_inner result = handler.run(conn, tmp, module_name, module_args, inject, complex_args) File "/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/action_plugins/copy.py", line 181, in run remote_checksum = self.runner._remote_checksum(conn, tmp_path, dest_file, inject) File "/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/__init__.py", line 1231, in _remote_checksum python_interp = inject['hostvars'][inject['delegate_to']].get('ansible_python_interpreter', 'python') File "/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/runner/__init__.py", line 103, in __getitem__ result = self.inventory.get_variables(host, vault_password=self.vault_password).copy() File "/home/rossmohax/repos/vdna/ansible/.pyenv/lib/python2.7/site-packages/ansible/inventory/__init__.py", line 442, in get_variables raise Exception("host not found: %s" % hostname) Exception: host not found: {{ d }} FATAL: all hosts have already failed -- aborting </code></pre></div>
1
<p dir="auto">It would be great to have another possibility of template representation besides string. Inspired by React JSX/TSX, if there exists <code class="notranslate">AngularJSX</code> custom JSX factory (which creates JavaScript object tree, consumed by Angular as an alternative to string template) we can use JavaScript x Typescript template (see below). Both for inline and HTML templates. In the second case there could be e.g. <code class="notranslate">templateJsxUrl='./teplates/myTemplate.jsx'</code> component attribute:</p> <h2 dir="auto">Pure JavaScript example:</h2> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var AppComponent = function () { this.templateJsx = React.createElement(&quot;div&quot;, null, React.createElement(&quot;h3&quot;, null, title), this.items.map(function (it) { return this.displayItem(it); }), this.okButton(this.doClick) ); this.items = [1, 2, 3]; } AppComponent.prototype.okButton = function (doClick) { return [ AngularJSX.createElement(&quot;hr&quot;, null), AngularJSX.createElement(&quot;div&quot;, {onClick: doClick}, &quot; OK&quot;)]; }; AppComponent.prototype.displayItem = function (it) { AngularJSX.createElement(&quot;span&quot;, null, it); };"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">AppComponent</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">templateJsx</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"div"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"h3"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s1">title</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">items</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">it</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">displayItem</span><span class="pl-kos">(</span><span class="pl-s1">it</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">okButton</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">doClick</span><span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">items</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">AppComponent</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">okButton</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">doClick</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">[</span> <span class="pl-v">AngularJSX</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"hr"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">AngularJSX</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"div"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">onClick</span>: <span class="pl-s1">doClick</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">" OK"</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-v">AppComponent</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">displayItem</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">it</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-v">AngularJSX</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"span"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s1">it</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <h2 dir="auto">Strictly typed Typescript example</h2> <p dir="auto">if Angular accepts AngularJSX-like template representation, the rest is almost completely covered by Typescript 1.8., with all IDE benefits as refactoring, intellisence, syntax highlighting, auto-indent etc.</p> <p dir="auto">Developer writes:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({selector: 'my-app'} class AppComponent { templateJsx = &lt;div&gt; &lt;h3&gt;{ title } &lt;/h3&gt; { items.map(it =&gt; displayItem(it)) } { okButton(doClick) } &lt;/div&gt;; okButton(doClick: React.MouseEventHandler) { return [&lt;hr/&gt;, &lt;div onClick = { doClick }&gt; OK&lt;/div &gt;] } displayItem(it: any) { &lt;span&gt;{ it }&lt;/span&gt; } items = [1,2,3]; doClick () { alert('onClick'); } } ..."><pre class="notranslate">@<span class="pl-v">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">selector</span>: <span class="pl-s">'my-app'</span><span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-v">AppComponent</span> <span class="pl-kos">{</span> <span class="pl-c1">templateJsx</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h3</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span> <span class="pl-s1">title</span> <span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h3</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">items</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">it</span> <span class="pl-c1">=&gt;</span> <span class="pl-en">displayItem</span><span class="pl-kos">(</span><span class="pl-s1">it</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">{</span> <span class="pl-en">okButton</span><span class="pl-kos">(</span><span class="pl-s1">doClick</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span> <span class="pl-en">okButton</span><span class="pl-kos">(</span><span class="pl-s1">doClick</span>: <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-v">MouseEventHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">[</span><span class="pl-c1">&lt;</span><span class="pl-ent">hr</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">onClick</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-s1">doClick</span> <span class="pl-kos">}</span><span class="pl-c1">&gt;</span> OK<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span> <span class="pl-c1">&gt;</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-en">displayItem</span><span class="pl-kos">(</span><span class="pl-s1">it</span>: <span class="pl-s1">any</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c1">&lt;</span><span class="pl-ent">span</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span> <span class="pl-s1">it</span> <span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">span</span><span class="pl-c1">&gt;</span> <span class="pl-kos">}</span> <span class="pl-c1">items</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-en">doClick</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">alert</span><span class="pl-kos">(</span><span class="pl-s">'onClick'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">.</span><span class="pl-kos">.</span><span class="pl-kos">.</span></pre></div> <p dir="auto">Typescript 1.8 transpiler generates:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="... this.templateJsx = AngularJSX.createElement(&quot;div&quot;, null, AngularJSX.createElement(&quot;h3&quot;, null, title, this.items.map(function (it) { return this.displayItem(it); }), this.okButton(this.doClick) ); ..."><pre class="notranslate">... <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">templateJsx</span> <span class="pl-c1">=</span> <span class="pl-v">AngularJSX</span><span class="pl-kos">.</span><span class="pl-c1">createElement</span><span class="pl-kos">(</span><span class="pl-s">"div"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-v">AngularJSX</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"h3"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s1">title</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">items</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">it</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">displayItem</span><span class="pl-kos">(</span><span class="pl-s1">it</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">okButton</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">doClick</span><span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> ...</pre></div> <p dir="auto">For external template:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({selector: 'my-app'} class AppComponent { templateJsxUrl = './teplates/myTemplate.jsx' ..."><pre class="notranslate">@<span class="pl-v">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">selector</span>: <span class="pl-s">'my-app'</span><span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-v">AppComponent</span> <span class="pl-kos">{</span> <span class="pl-c1">templateJsxUrl</span> <span class="pl-c1">=</span> <span class="pl-s">'./teplates/myTemplate.jsx'</span> <span class="pl-kos">.</span><span class="pl-kos">.</span><span class="pl-kos">.</span></pre></div> <p dir="auto"><code class="notranslate">AngularJSX.createElement</code> encodes template to JavaScript object tree consumed by Angular as an string alternative.</p>
<p dir="auto">It would be cool to support JSX like templates in angular 2. JSX can hold all required information required to generate the DOM at run time. Following are some benefits come with JSX to angular:</p> <ol dir="auto"> <li>Type safety to catch errors at compile time</li> <li>Better run time performance. No need to parse template string at run time. DOM info and may be AST can be serialized at compile time</li> <li>Typescript already supports JSX and understands the syntax</li> <li>More intelligence and easier refactoring support for IDEs when dealing with templates</li> <li>Possibility to share component templates with React</li> </ol>
1
<p dir="auto">I've set an alias to some location outside of the project</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &quot;alias&quot;: { &quot;infamous&quot;: &quot;/home/trusktr/src/infamous+infamous&quot; }"><pre class="notranslate"> <span class="pl-s">"alias"</span>: <span class="pl-kos">{</span> <span class="pl-s">"infamous"</span>: <span class="pl-s">"/home/trusktr/src/infamous+infamous"</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">(it so happens to be an NPM package) which causes errors similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125595301" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/1866" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/1866/hovercard" href="https://github.com/webpack/webpack/issues/1866">#1866</a>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Module build failed: ReferenceError: Unknown plugin &quot;transform-es2015-arrow-functions&quot; specified in &quot;base&quot; at 0, attempted to resolve relative to &quot;/home/trusktr/src/infamous+infamous&quot; at /home/trusktr/src/trusktr+portfolio/.meteor/local/rocket-module/platform-builds/web.browser/node_modules/babel-core/lib/transformation/file/options/option-manager.js:193:17"><pre class="notranslate"><code class="notranslate"> Module build failed: ReferenceError: Unknown plugin "transform-es2015-arrow-functions" specified in "base" at 0, attempted to resolve relative to "/home/trusktr/src/infamous+infamous" at /home/trusktr/src/trusktr+portfolio/.meteor/local/rocket-module/platform-builds/web.browser/node_modules/babel-core/lib/transformation/file/options/option-manager.js:193:17 </code></pre></div> <p dir="auto">This time I've included the whole output (don't know why I didn't last time). Is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="babel-core/lib/transformation/file/options/option-manager.js:193:17"><pre class="notranslate"><code class="notranslate">babel-core/lib/transformation/file/options/option-manager.js:193:17 </code></pre></div> <p dir="auto">provide any clue?</p> <p dir="auto">This might be a dupe of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125595301" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/1866" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/1866/hovercard" href="https://github.com/webpack/webpack/issues/1866">#1866</a>.</p>
<p dir="auto">I've linked a package that is outside of the project by first running <code class="notranslate">npm link</code> in the outside package, then <code class="notranslate">npm link name-of-package</code> inside the project.</p> <p dir="auto">I am now getting this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Module build failed: ReferenceError: Unknown plugin &quot;transform-es2015-arrow-functions&quot; specified in &quot;base&quot; at 0, attempted to resolve relative to &quot;/path/to/location/far/away/from/project/name-of-package&quot;"><pre class="notranslate"><code class="notranslate">Module build failed: ReferenceError: Unknown plugin "transform-es2015-arrow-functions" specified in "base" at 0, attempted to resolve relative to "/path/to/location/far/away/from/project/name-of-package" </code></pre></div> <p dir="auto">Of course there's no babel plugin there.</p>
1
<p dir="auto">The problem is, of course, as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import names::{Alice, Bob}; ... match name { Alice =&gt; ..., Bob =&gt; ..., Carol =&gt; ..., // &lt;- treated as a variable because of forgotten import _ =&gt; ..., //~ WARNING unreachable pattern }"><pre class="notranslate"><code class="notranslate">import names::{Alice, Bob}; ... match name { Alice =&gt; ..., Bob =&gt; ..., Carol =&gt; ..., // &lt;- treated as a variable because of forgotten import _ =&gt; ..., //~ WARNING unreachable pattern } </code></pre></div> <p dir="auto">or:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="match name { Alice =&gt; ..., Bob | Carol =&gt; ..., //~ ERROR variable Carol not bound in all patterns }"><pre class="notranslate"><code class="notranslate">match name { Alice =&gt; ..., Bob | Carol =&gt; ..., //~ ERROR variable Carol not bound in all patterns } </code></pre></div> <p dir="auto">We should be able to emit a hint that says something like <code class="notranslate">Maybe you forgot to import </code>Carol<code class="notranslate">?</code>.</p>
<p dir="auto">Right now the compiler has one lookup path, defined by <code class="notranslate">-L</code> and <code class="notranslate">RUST_PATH</code>. This one lookup path is used for many different purposes, leading to a number of conflicts. In the compiler today there are a number of distinct concepts of lookup paths, including:</p> <ul dir="auto"> <li>A lookup path to find native libraries for inclusion in rlibs</li> <li>A lookup path to find <code class="notranslate">extern crate</code> dependencies</li> <li>A lookup path to find transitive dependencies of <code class="notranslate">extern crate</code> directives.</li> </ul> <p dir="auto">Conflating all of these concepts into one lookup path leads to bugs such as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51755200" data-permission-text="Title is private" data-url="https://github.com/rust-lang/cargo/issues/1037" data-hovercard-type="issue" data-hovercard-url="/rust-lang/cargo/issues/1037/hovercard" href="https://github.com/rust-lang/cargo/issues/1037">rust-lang/cargo#1037</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="39910179" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16402" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16402/hovercard" href="https://github.com/rust-lang/rust/issues/16402">#16402</a> which would benefit greatly from distinct sets of lookup paths.</p> <p dir="auto">I would initially propose something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -L [KIND=]PATH Add a directory to the compiler's search paths. The KIND provided may be omitted or one of `crate`, `native`, or `dependency`. Each value adds the lookup path to a separate lookup path in the compiler, and if omitted the path is added to all lookup paths."><pre class="notranslate"><code class="notranslate"> -L [KIND=]PATH Add a directory to the compiler's search paths. The KIND provided may be omitted or one of `crate`, `native`, or `dependency`. Each value adds the lookup path to a separate lookup path in the compiler, and if omitted the path is added to all lookup paths. </code></pre></div> <p dir="auto">Using this, cargo itself would only pass <code class="notranslate">-L dependency=...</code>, build scripts would pass <code class="notranslate">-L native=...</code>, and normal uses of the compiler would continue just using <code class="notranslate">-L</code>. This behavior is also backwards compatible with today's semantics.</p> <p dir="auto">I'd like to nominate this issue, however, as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51755200" data-permission-text="Title is private" data-url="https://github.com/rust-lang/cargo/issues/1037" data-hovercard-type="issue" data-hovercard-url="/rust-lang/cargo/issues/1037/hovercard" href="https://github.com/rust-lang/cargo/issues/1037">rust-lang/cargo#1037</a> is quite a worrying issue which needs to be solved as part of Cargo's stability story.</p>
0
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Ubuntu 16.04 Flutter Beta 2.0.0-dev27</p> <p dir="auto">The following unit test:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'dart:collection'; import 'package:flutter_test/flutter_test.dart'; class MyList1 extends Object with ListMixin&lt;Map&lt;String, dynamic&gt;&gt; { final List _list; MyList1.from(this._list); @override Map&lt;String, dynamic&gt; operator [](int index) { Map value = _list[index]; return value.cast&lt;String, dynamic&gt;(); } @override void operator []=(int index, Map&lt;String, dynamic&gt; value) { throw &quot;read-only&quot;; } @override set length(int newLength) { throw &quot;read-only&quot;; } @override int get length =&gt; _list.length; } class MyList2 extends ListBase&lt;Map&lt;String, dynamic&gt;&gt; { final List _list; MyList2.from(this._list); @override Map&lt;String, dynamic&gt; operator [](int index) { Map value = _list[index]; return value.cast&lt;String, dynamic&gt;(); } @override void operator []=(int index, Map&lt;String, dynamic&gt; value) { throw &quot;read-only&quot;; } @override set length(int newLength) { throw &quot;read-only&quot;; } @override int get length =&gt; _list.length; } main() { group(&quot;mixin&quot;, () { // This currently fails... test('ListMixin', () { var raw = [ {'col': 1} ]; var rows = new MyList1.from(raw); expect(rows, raw); }); //, skip: true); test('ListBase', () { var raw = [ {'col': 1} ]; var rows = new MyList2.from(raw); expect(rows, raw); }); }); }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'dart:collection'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:flutter_test/flutter_test.dart'</span>; <span class="pl-k">class</span> <span class="pl-c1">MyList1</span> <span class="pl-k">extends</span> <span class="pl-c1">Object</span> <span class="pl-k">with</span> <span class="pl-c1">ListMixin</span>&lt;<span class="pl-c1">Map</span>&lt;<span class="pl-c1">String</span>, <span class="pl-c1">dynamic</span>&gt;&gt; { <span class="pl-k">final</span> <span class="pl-c1">List</span> _list; <span class="pl-c1">MyList1</span>.<span class="pl-en">from</span>(<span class="pl-c1">this</span>._list); <span class="pl-k">@override</span> <span class="pl-c1">Map</span>&lt;<span class="pl-c1">String</span>, <span class="pl-c1">dynamic</span>&gt; <span class="pl-k">operator</span> [](<span class="pl-c1">int</span> index) { <span class="pl-c1">Map</span> value <span class="pl-k">=</span> _list[index]; <span class="pl-k">return</span> value.<span class="pl-en">cast</span>&lt;<span class="pl-c1">String</span>, <span class="pl-c1">dynamic</span>&gt;(); } <span class="pl-k">@override</span> <span class="pl-k">void</span> <span class="pl-k">operator</span> []<span class="pl-k">=</span>(<span class="pl-c1">int</span> index, <span class="pl-c1">Map</span>&lt;<span class="pl-c1">String</span>, <span class="pl-c1">dynamic</span>&gt; value) { <span class="pl-k">throw</span> <span class="pl-s">"read-only"</span>; } <span class="pl-k">@override</span> <span class="pl-k">set</span> <span class="pl-en">length</span>(<span class="pl-c1">int</span> newLength) { <span class="pl-k">throw</span> <span class="pl-s">"read-only"</span>; } <span class="pl-k">@override</span> <span class="pl-c1">int</span> <span class="pl-k">get</span> length <span class="pl-k">=&gt;</span> _list.length; } <span class="pl-k">class</span> <span class="pl-c1">MyList2</span> <span class="pl-k">extends</span> <span class="pl-c1">ListBase</span>&lt;<span class="pl-c1">Map</span>&lt;<span class="pl-c1">String</span>, <span class="pl-c1">dynamic</span>&gt;&gt; { <span class="pl-k">final</span> <span class="pl-c1">List</span> _list; <span class="pl-c1">MyList2</span>.<span class="pl-en">from</span>(<span class="pl-c1">this</span>._list); <span class="pl-k">@override</span> <span class="pl-c1">Map</span>&lt;<span class="pl-c1">String</span>, <span class="pl-c1">dynamic</span>&gt; <span class="pl-k">operator</span> [](<span class="pl-c1">int</span> index) { <span class="pl-c1">Map</span> value <span class="pl-k">=</span> _list[index]; <span class="pl-k">return</span> value.<span class="pl-en">cast</span>&lt;<span class="pl-c1">String</span>, <span class="pl-c1">dynamic</span>&gt;(); } <span class="pl-k">@override</span> <span class="pl-k">void</span> <span class="pl-k">operator</span> []<span class="pl-k">=</span>(<span class="pl-c1">int</span> index, <span class="pl-c1">Map</span>&lt;<span class="pl-c1">String</span>, <span class="pl-c1">dynamic</span>&gt; value) { <span class="pl-k">throw</span> <span class="pl-s">"read-only"</span>; } <span class="pl-k">@override</span> <span class="pl-k">set</span> <span class="pl-en">length</span>(<span class="pl-c1">int</span> newLength) { <span class="pl-k">throw</span> <span class="pl-s">"read-only"</span>; } <span class="pl-k">@override</span> <span class="pl-c1">int</span> <span class="pl-k">get</span> length <span class="pl-k">=&gt;</span> _list.length; } <span class="pl-en">main</span>() { <span class="pl-en">group</span>(<span class="pl-s">"mixin"</span>, () { <span class="pl-c">// This currently fails...</span> <span class="pl-en">test</span>(<span class="pl-s">'ListMixin'</span>, () { <span class="pl-k">var</span> raw <span class="pl-k">=</span> [ {<span class="pl-s">'col'</span><span class="pl-k">:</span> <span class="pl-c1">1</span>} ]; <span class="pl-k">var</span> rows <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">MyList1</span>.<span class="pl-en">from</span>(raw); <span class="pl-en">expect</span>(rows, raw); }); <span class="pl-c">//, skip: true);</span> <span class="pl-en">test</span>(<span class="pl-s">'ListBase'</span>, () { <span class="pl-k">var</span> raw <span class="pl-k">=</span> [ {<span class="pl-s">'col'</span><span class="pl-k">:</span> <span class="pl-c1">1</span>} ]; <span class="pl-k">var</span> rows <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">MyList2</span>.<span class="pl-en">from</span>(raw); <span class="pl-en">expect</span>(rows, raw); }); }); }</pre></div> <p dir="auto">works when using</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter test"><pre class="notranslate"><code class="notranslate">flutter test </code></pre></div> <p dir="auto">but fails for ListMixin (not ListBase) using</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter test --preview-dart-2 00:04 +0 -1: mixin ListMixin [E] NoSuchMethodError: The method 'toList' was called on null. Receiver: null Tried calling: toList() dart:core Object.noSuchMethod package:matcher/src/pretty_print.dart 37:36 prettyPrint._prettyPrint package:matcher/src/pretty_print.dart 116:22 prettyPrint package:matcher/src/description.dart 44:11 StringDescription.addDescriptionOf package:test expect package:flutter_test/src/widget_tester.dart 141:16 expect test/list_mixin_test.dart 63:7 main.&lt;fn&gt;.&lt;fn&gt;"><pre class="notranslate"><code class="notranslate">flutter test --preview-dart-2 00:04 +0 -1: mixin ListMixin [E] NoSuchMethodError: The method 'toList' was called on null. Receiver: null Tried calling: toList() dart:core Object.noSuchMethod package:matcher/src/pretty_print.dart 37:36 prettyPrint._prettyPrint package:matcher/src/pretty_print.dart 116:22 prettyPrint package:matcher/src/description.dart 44:11 StringDescription.addDescriptionOf package:test expect package:flutter_test/src/widget_tester.dart 141:16 expect test/list_mixin_test.dart 63:7 main.&lt;fn&gt;.&lt;fn&gt; </code></pre></div> <p dir="auto">Basically using <code class="notranslate">extends ListBase</code> and <code class="notranslate">extends Object with ListMixin</code> has a different behavior (on dart2 only) and I cannot figure out why...</p> <h2 dir="auto">Flutter Doctor</h2> <p dir="auto">Paste the output of running <code class="notranslate">flutter doctor -v</code> here.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Linux, locale en_US.UTF-8, channel beta) • Flutter version 0.1.4 at /media/ssd/dev_tool/flutter • Framework revision f914e701c5 (9 days ago), 2018-02-19 21:12:17 +0000 • Engine revision 13cf22c284 • Dart version 2.0.0-dev.27.0-flutter-0d5cf900b0 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.2) • Android SDK at /opt/apps/android-sdk-linux • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.2 • ANDROID_HOME = /opt/apps/android-sdk-linux • Java binary at: /opt/app/android-studio-3/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [✓] Android Studio (version 3.0) • Android Studio at /opt/app/android-studio-3 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [✓] Android Studio (version 2.3) • Android Studio at /opt/apps2/android-studio • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Community Edition (version 2017.2) • Flutter plugin version 19.1 • Dart plugin version 172.4343.25 [!] IntelliJ IDEA Ultimate Edition (version 2016.2) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins ✗ This install is older than the minimum recommended version of 2017.1.0. [✓] IntelliJ IDEA Community Edition (version 2017.3) • Flutter plugin version 22.1.2 • Dart plugin version 173.4548.30 [!] IntelliJ IDEA Community Edition (version 2016.3) ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 163.13137 • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins ✗ This install is older than the minimum recommended version of 2017.1.0. [!] IntelliJ IDEA Community Edition (version 2016.2) ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 162.2485 • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins ✗ This install is older than the minimum recommended version of 2017.1.0. [!] VS Code (version 1.20.1) • VS Code at /usr/share/code • Dart Code extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code [✓] Connected devices"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Linux, locale en_US.UTF-8, channel beta) • Flutter version 0.1.4 at /media/ssd/dev_tool/flutter • Framework revision f914e701c5 (9 days ago), 2018-02-19 21:12:17 +0000 • Engine revision 13cf22c284 • Dart version 2.0.0-dev.27.0-flutter-0d5cf900b0 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.2) • Android SDK at /opt/apps/android-sdk-linux • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.2 • ANDROID_HOME = /opt/apps/android-sdk-linux • Java binary at: /opt/app/android-studio-3/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [✓] Android Studio (version 3.0) • Android Studio at /opt/app/android-studio-3 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [✓] Android Studio (version 2.3) • Android Studio at /opt/apps2/android-studio • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Community Edition (version 2017.2) • Flutter plugin version 19.1 • Dart plugin version 172.4343.25 [!] IntelliJ IDEA Ultimate Edition (version 2016.2) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins ✗ This install is older than the minimum recommended version of 2017.1.0. [✓] IntelliJ IDEA Community Edition (version 2017.3) • Flutter plugin version 22.1.2 • Dart plugin version 173.4548.30 [!] IntelliJ IDEA Community Edition (version 2016.3) ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 163.13137 • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins ✗ This install is older than the minimum recommended version of 2017.1.0. [!] IntelliJ IDEA Community Edition (version 2016.2) ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 162.2485 • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins ✗ This install is older than the minimum recommended version of 2017.1.0. [!] VS Code (version 1.20.1) • VS Code at /usr/share/code • Dart Code extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code [✓] Connected devices </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <ul dir="auto"> <li>Checkout <code class="notranslate">flutter/plugins</code></li> <li><code class="notranslate">cd flutter/plugins/packages/path_provider</code></li> <li><code class="notranslate">flutter test --preview-dart-2</code></li> </ul> <p dir="auto">There is just one test file with four short tests, but it doesn't seem to finish loading them.<br> Runs fine without <code class="notranslate">--preview-dart-2</code>.</p> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter test -v --preview-dart-2 [ +26 ms] [/Users/mravn/github/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +30 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] upstream/master [ ] [/Users/mravn/github/flutter/] git rev-parse --abbrev-ref HEAD [ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ ] [/Users/mravn/github/flutter/] git ls-remote --get-url upstream [ +6 ms] Exit code 0 from: git ls-remote --get-url upstream [ ] [email protected]:flutter/flutter.git [ ] [/Users/mravn/github/flutter/] git log -n 1 --pretty=format:%H [ +9 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 29d59e3cb7dcd74a8e6ecb57c5c2b11fa106cba0 [ ] [/Users/mravn/github/flutter/] git log -n 1 --pretty=format:%ar [ +7 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 59 minutes ago [ ] [/Users/mravn/github/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +18 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.1.7-2-g29d59e3cb [ +140 ms] switching to directory LocalDirectory: 'test' to run tests [ +1 ms] running test package with arguments: [--, /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart] 00:00 +0: loading /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart [ +160 ms] test 0: starting test /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart [ +14 ms] test 0: starting shell process in preview-dart-2 mode [ +2 ms] /Users/mravn/github/flutter/bin/cache/dart-sdk/bin/dart /Users/mravn/github/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/mravn/github/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --strong --no-link-platform --incremental --packages /Users/mravn/github/plugins/packages/path_provider/.packages /var/folders/d7/wjkm2mlx10j1389dljf91sg400cjvd/T/dart_test_listenerN7qzTN/listener.dart 00:03 +0: loading /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart [+3513 ms] /Users/mravn/github/flutter/bin/cache/artifacts/engine/darwin-x64/flutter_tester --disable-observatory --flutter-assets-dir=/var/folders/d7/wjkm2mlx10j1389dljf91sg400cjvd/T/flutter_bundle_directoryFKjvPb --enable-checked-mode --enable-dart-profiling --non-interactive --use-test-fonts --packages=/Users/mravn/github/plugins/packages/path_provider/.packages /var/folders/d7/wjkm2mlx10j1389dljf91sg400cjvd/T/dart_test_listenerN7qzTN/listener.dart.dill [ +10 ms] test 0: awaiting initial result for pid 14958 00:04 +0: loading /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart [ +656 ms] test 0: process with pid 14958 connected to test harness [ ] test 0: awaiting test result for pid 14958 02:09 +0: loading /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart "><pre class="notranslate"><code class="notranslate">$ flutter test -v --preview-dart-2 [ +26 ms] [/Users/mravn/github/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +30 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] upstream/master [ ] [/Users/mravn/github/flutter/] git rev-parse --abbrev-ref HEAD [ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ ] [/Users/mravn/github/flutter/] git ls-remote --get-url upstream [ +6 ms] Exit code 0 from: git ls-remote --get-url upstream [ ] [email protected]:flutter/flutter.git [ ] [/Users/mravn/github/flutter/] git log -n 1 --pretty=format:%H [ +9 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 29d59e3cb7dcd74a8e6ecb57c5c2b11fa106cba0 [ ] [/Users/mravn/github/flutter/] git log -n 1 --pretty=format:%ar [ +7 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 59 minutes ago [ ] [/Users/mravn/github/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +18 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.1.7-2-g29d59e3cb [ +140 ms] switching to directory LocalDirectory: 'test' to run tests [ +1 ms] running test package with arguments: [--, /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart] 00:00 +0: loading /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart [ +160 ms] test 0: starting test /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart [ +14 ms] test 0: starting shell process in preview-dart-2 mode [ +2 ms] /Users/mravn/github/flutter/bin/cache/dart-sdk/bin/dart /Users/mravn/github/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/mravn/github/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --strong --no-link-platform --incremental --packages /Users/mravn/github/plugins/packages/path_provider/.packages /var/folders/d7/wjkm2mlx10j1389dljf91sg400cjvd/T/dart_test_listenerN7qzTN/listener.dart 00:03 +0: loading /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart [+3513 ms] /Users/mravn/github/flutter/bin/cache/artifacts/engine/darwin-x64/flutter_tester --disable-observatory --flutter-assets-dir=/var/folders/d7/wjkm2mlx10j1389dljf91sg400cjvd/T/flutter_bundle_directoryFKjvPb --enable-checked-mode --enable-dart-profiling --non-interactive --use-test-fonts --packages=/Users/mravn/github/plugins/packages/path_provider/.packages /var/folders/d7/wjkm2mlx10j1389dljf91sg400cjvd/T/dart_test_listenerN7qzTN/listener.dart.dill [ +10 ms] test 0: awaiting initial result for pid 14958 00:04 +0: loading /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart [ +656 ms] test 0: process with pid 14958 connected to test harness [ ] test 0: awaiting test result for pid 14958 02:09 +0: loading /Users/mravn/github/plugins/packages/path_provider/test/path_provider_test.dart </code></pre></div> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel master, v0.1.8-pre.2, on Mac OS X 10.13.3 17D102, locale en-US) • Flutter version 0.1.8-pre.2 at /Users/mravn/github/flutter • Framework revision 29d59e3cb7 (61 minutes ago), 2018-02-27 13:15:32 -0800 • Engine revision ead227f118 • Dart version 2.0.0-dev.28.0.flutter-0b4f01f759 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/mravn/Library/Android/sdk • Android NDK at /Users/mravn/Library/Android/sdk/ndk-bundle • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b • ios-deploy 1.9.2 • CocoaPods version 1.2.1 [✓] Android Studio (version 3.0) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] IntelliJ IDEA Community Edition (version 2017.3.4) • Flutter plugin version 21.2.3 • Dart plugin version 173.4548.30 [✓] Connected devices (1 available) • Nexus 5X • 00bff34682e4b2ab • android-arm64 • Android 8.1.0 (API 27) • No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel master, v0.1.8-pre.2, on Mac OS X 10.13.3 17D102, locale en-US) • Flutter version 0.1.8-pre.2 at /Users/mravn/github/flutter • Framework revision 29d59e3cb7 (61 minutes ago), 2018-02-27 13:15:32 -0800 • Engine revision ead227f118 • Dart version 2.0.0-dev.28.0.flutter-0b4f01f759 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/mravn/Library/Android/sdk • Android NDK at /Users/mravn/Library/Android/sdk/ndk-bundle • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b • ios-deploy 1.9.2 • CocoaPods version 1.2.1 [✓] Android Studio (version 3.0) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] IntelliJ IDEA Community Edition (version 2017.3.4) • Flutter plugin version 21.2.3 • Dart plugin version 173.4548.30 [✓] Connected devices (1 available) • Nexus 5X • 00bff34682e4b2ab • android-arm64 • Android 8.1.0 (API 27) • No issues found! </code></pre></div>
1
<p dir="auto">At the moment, the dataSource is a string, ie the url, and we cannot pass headers (from what I understood by reading the source code). This means the plugin only works for public video urls.</p> <p dir="auto">Please consider adding the option to add headers (eg in Android code, use <code class="notranslate">setDataSource (Context context, Uri uri, Map&lt;String, String&gt; headers)</code> ). This would allow us to use the plugin to show videos hosted on our servers (for which we need Authorization header).</p>
<p dir="auto">hi i want to create my app to use ARCore in Flutter like this project : <a href="https://www.youtube.com/watch?v=EP-s2ayECsI" rel="nofollow">https://www.youtube.com/watch?v=EP-s2ayECsI</a><br> my project is Google Reverse Image Search<br> please guide me<br> thanks</p>
0
<h3 dir="auto">Describe the bug</h3> <p dir="auto">I am trying to migrate some ORM classes with mixins and multiple inheritances across the classes to a PostgreSQL DB using the alembic migration tool and I keep getting an error that a "Table" is already defined for a Metadata instance.</p> <h3 dir="auto">To Reproduce</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import datetime as dt from dateutil import tz import logging from enum import Enum, IntFlag from typing import Sequence from typing import Union, Optional, List, Any, Mapping, Dict from pydantic import EmailStr, BaseModel as PydanticModel from sqlalchemy import select, or_, Column, String, Integer, DateTime, Boolean, ForeignKey, MetaData from sqlalchemy.orm import relationship, registry from db.db import Base, get_session from db.adapter import parse_to_schema from shoppersbag_loyalty import settings from utils import current_timezone, generate_token, generate_slug mapper_registry = registry() logger = logging.getLogger(__name__) public_models = settings.PUBLIC_MODELS class Gender(Enum): MALE = ('M', 'Male') FEMALE = ('F', 'Female') UNSAID = ('U', 'Unsaid') class Actions(IntFlag): CAN_CREATE = 1 CAN_UPDATE = 2 CAN_LIST = 3 CAN_DESTROY = 5 CAN_RETRIEVE = 7 CAN_READ = 11 CAN_WRITE = 13 def __str__(self): if self in Actions.__members__: return str(self.name).lower() else: return super(Actions, self).__str__() class PermissionAction(IntFlag): DENY_ALL = 0 ALLOW_ANY = 1 ALLOW_ALL = 9 ALLOW_SELECTED_USER = 3 ALLOW_OWNER = 5 def __str__(self): return self.value def __eq__(self, other): if isinstance(other, int): return self.value == other else: return super(PermissionAction, self).__eq__(other) def as_int(self) -&gt; int: return self._value_ class UserBase: __abstract__ = True metadata = MetaData() @mapper_registry.mapped class User(UserBase): __tablename__ = 'user' id: int = Column(Integer, primary_key=True) token: str = Column(String(256), index=True) slug: str = Column(String, index=True) email: EmailStr = Column(String, index=True) mobile: str = Column(String(15)) password: Union[str, bytes] = Column(String(256)) gender: Union[Gender, str] = Column(String(1)) first_name: str = Column(String(30), nullable=False) last_name: str = Column(String(150), nullable=False) middle_name: Optional[str] = Column(String(50)) is_business_admin: bool = Column(Boolean, default=False) username: str = Column(String(150), index=True) is_staff: bool = Column(Boolean, default=False) is_admin: bool = Column(Boolean, default=False) is_active: bool = Column(Boolean, default=True) date_joined: dt.datetime = Column(DateTime, default=current_timezone) # relationship fields groups: List['Group'] = relationship('Group', back_populates='users', secondary='UserGroup') permissions: List['Permission'] = relationship('Permission', back_populates='users', secondary='UserPermission') preferences: List['UserPreferences'] = relationship('UserPreferences', back_populates='user') __table_args__ = {'extend_existing': True} # @classmethod # def from_dict(cls, data: Dict): # try: # instance = cls(**data) # return instance # except Exception: # raise Exception('Unable to create schema using provided data') # @classmethod # def from_schema(cls, data: Any): # if isinstance(data, PydanticModel): # return cls.from_dict(data.schema()) # @classmethod # def from_queryset(cls, queryset: Any) -&gt; Union[Sequence[PydanticModel], None]: # if isinstance(queryset, Sequence): # return [parse_to_schema(cls, x) for x in queryset if isinstance(x, (PydanticModel, Dict, Mapping))] class Permission(Base): &quot;&quot;&quot; Model a permission system that defines access control to a model (via model field) or an instance of a model (via model_id) field. A given action that can be taken by a user or group of users are specified by Actions enum. &quot;&quot;&quot; __tablename__ = 'permission' id: int = Column(Integer, primary_key=True) token: str = Column(String(256), index=True) slug: str = Column(String, index=True) name: str = Column(String, nullable=False) action: Actions = Column(Integer, nullable=False) model_id: Optional[int] = Column(Integer) model: Optional[str] = Column(String(256)) # model name in form db.&lt;package&gt;.ClassName users: List[User] = relationship(User, back_populates='permissions', secondary='UserPermission') groups: List['Group'] = relationship('Group', back_populates='', secondary='GroupPermission') __table_args__ = {'extend_existing': True} class Group(Base): __tablename__ = 'group' id: int = Column(Integer, primary_key=True) token: str = Column(String(256), index=True) slug: str = Column(String, index=True) name: str = Column(String, nullable=False) permissions: List[Permission] = relationship(Permission, back_populates='groups', secondary='GroupPermission') users: List[User] = relationship(User, back_populates='groups', secondary='UserGroup') class GroupPermission(Base): __tablename__ = 'group_permission' group_id: Optional[int] = Column(ForeignKey(&quot;group.id&quot;), primary_key=True) permission_id: Optional[int] = Column(ForeignKey(&quot;permission.id&quot;), primary_key=True) class UserPermission(Base): __tablename__ = 'user_permission' user_id: Optional[int] = Column(ForeignKey(&quot;user.id&quot;), primary_key=True) permission_id: Optional[int] = Column(ForeignKey(&quot;permission.id&quot;), primary_key=True) class UserGroup(Base): __tablename__ = 'user_group' user_id: Optional[int] = Column(ForeignKey(&quot;user.id&quot;), primary_key=True) group_id: Optional[int] = Column(ForeignKey(&quot;group.id&quot;), primary_key=True) class ModelPermissionMixin: __abstract__ = True __READ__ = (Actions.CAN_CREATE, Actions.CAN_UPDATE, Actions.CAN_DESTROY, Actions.CAN_WRITE, Actions.CAN_READ, Actions.CAN_RETRIEVE) __WRITE__ = (Actions.CAN_WRITE, Actions.CAN_DESTROY, Actions.CAN_UPDATE) __DESTROY__ = (Actions.CAN_DESTROY,) id = Column(Integer, primary_key=True) token = Column(String(256), index=True, default=generate_token) slug = Column(String, default=generate_slug) metadata = MetaData() @property def pk(self): return self.id def _process_object_permission(self, user, checks): session_local = get_session() with session_local.begin() as session: ps = session.execute(select(Permission)).all() acts = any([bool(x) for x in ps if user in x.users and x.model_id == self.pk and x.action in checks]) return acts or any([x for x in public_models if x == self.__name__]) @classmethod def _process_class_permission(cls, user, checks): session_local = get_session() with session_local.begin() as session: ps = session.execute(select(Permission)).all() acts = any([bool(x) for x in ps if user in x.users and x.model == cls.__name__ and x.action in checks]) return acts or any([x for x in public_models if x == cls.__name__]) def has_object_read_permission(self, user): # Fetch model owner from Permission table and validate if user matched parameter return self._process_object_permission(user, self.__READ__) @classmethod def has_read_permission(cls, user): return cls._process_class_permission(user, cls.__READ__) def has_object_write_permission(self, user): return self._process_object_permission(user, self.__WRITE__) @classmethod def has_write_permission(cls, user): return cls._process_class_permission(user, cls.__WRITE__) class UserPreferences(Base): __tablename__ = 'user_preferences' id: int = Column(Integer, primary_key=True) token: str = Column(String(256), index=True) slug: str = Column(String, index=True) key: str = Column(String) value: str = Column(String) user: Optional[User] = relationship(User, back_populates='preferences') user_id: Optional[int] = Column(Integer, ForeignKey('user.id')) def get_user_by_identity(identity: Any) -&gt; Any: session_local = get_session() with session_local.begin() as session: return session.execute(select(User).where( or_(User.slug == identity, User.token == identity, User.id == identity))).first() class UserAccess(Base): __tablename__ = 'user_access' id = Column(Integer, primary_key=True) token = Column(String(256), index=True) slug = Column(String) user_id = Column(Integer, ForeignKey('user.id'), default=None) user = relationship(User) start = Column(DateTime) end = Column(DateTime) expired = Column(Boolean, default=False) def __init__(self, start: dt.datetime, end: dt.datetime = None): # if the current time exceeds duration of token set end time to current local_timezone = tz.tzlocal() self.start = start.astimezone(tz=local_timezone) if end: self.end = end.astimezone(tz=local_timezone) else: self.end = self.start + dt.timedelta(minutes=settings.ACCESS_TOKEN_EXPIRE_MINUTES) now = dt.datetime.now(tz=local_timezone) self.expired = (self.end - self.start &lt; dt.timedelta(minutes=settings.ACCESS_TOKEN_EXPIRE_MINUTES)) or \ (now - self.start &lt; dt.timedelta(minutes=settings.ACCESS_TOKEN_EXPIRE_MINUTES)) super(UserAccess, self).__init__() @property def current_user(self): return self.user if self.end - self.start &lt; dt.timedelta(minutes=settings.ACCESS_TOKEN_EXPIRE_MINUTES) else None class UserVerification(Base): __tablename__ = 'user_verification' id = Column(Integer, primary_key=True) token = Column(String(256), index=True) slug = Column(String) verified_on = Column(DateTime) verified_by = Column(String) verification_document = Column(String) is_approved = Column(Boolean, default=False) user_id = Column(Integer, ForeignKey('user.id'), default=None) user = relationship(User)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">datetime</span> <span class="pl-k">as</span> <span class="pl-s1">dt</span> <span class="pl-k">from</span> <span class="pl-s1">dateutil</span> <span class="pl-k">import</span> <span class="pl-s1">tz</span> <span class="pl-k">import</span> <span class="pl-s1">logging</span> <span class="pl-k">from</span> <span class="pl-s1">enum</span> <span class="pl-k">import</span> <span class="pl-v">Enum</span>, <span class="pl-v">IntFlag</span> <span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">Sequence</span> <span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">Union</span>, <span class="pl-v">Optional</span>, <span class="pl-v">List</span>, <span class="pl-v">Any</span>, <span class="pl-v">Mapping</span>, <span class="pl-v">Dict</span> <span class="pl-k">from</span> <span class="pl-s1">pydantic</span> <span class="pl-k">import</span> <span class="pl-v">EmailStr</span>, <span class="pl-v">BaseModel</span> <span class="pl-k">as</span> <span class="pl-v">PydanticModel</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">select</span>, <span class="pl-s1">or_</span>, <span class="pl-v">Column</span>, <span class="pl-v">String</span>, <span class="pl-v">Integer</span>, <span class="pl-v">DateTime</span>, <span class="pl-v">Boolean</span>, <span class="pl-v">ForeignKey</span>, <span class="pl-v">MetaData</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">relationship</span>, <span class="pl-s1">registry</span> <span class="pl-k">from</span> <span class="pl-s1">db</span>.<span class="pl-s1">db</span> <span class="pl-k">import</span> <span class="pl-v">Base</span>, <span class="pl-s1">get_session</span> <span class="pl-k">from</span> <span class="pl-s1">db</span>.<span class="pl-s1">adapter</span> <span class="pl-k">import</span> <span class="pl-s1">parse_to_schema</span> <span class="pl-k">from</span> <span class="pl-s1">shoppersbag_loyalty</span> <span class="pl-k">import</span> <span class="pl-s1">settings</span> <span class="pl-k">from</span> <span class="pl-s1">utils</span> <span class="pl-k">import</span> <span class="pl-s1">current_timezone</span>, <span class="pl-s1">generate_token</span>, <span class="pl-s1">generate_slug</span> <span class="pl-s1">mapper_registry</span> <span class="pl-c1">=</span> <span class="pl-en">registry</span>() <span class="pl-s1">logger</span> <span class="pl-c1">=</span> <span class="pl-s1">logging</span>.<span class="pl-en">getLogger</span>(<span class="pl-s1">__name__</span>) <span class="pl-s1">public_models</span> <span class="pl-c1">=</span> <span class="pl-s1">settings</span>.<span class="pl-v">PUBLIC_MODELS</span> <span class="pl-k">class</span> <span class="pl-v">Gender</span>(<span class="pl-v">Enum</span>): <span class="pl-v">MALE</span> <span class="pl-c1">=</span> (<span class="pl-s">'M'</span>, <span class="pl-s">'Male'</span>) <span class="pl-v">FEMALE</span> <span class="pl-c1">=</span> (<span class="pl-s">'F'</span>, <span class="pl-s">'Female'</span>) <span class="pl-v">UNSAID</span> <span class="pl-c1">=</span> (<span class="pl-s">'U'</span>, <span class="pl-s">'Unsaid'</span>) <span class="pl-k">class</span> <span class="pl-v">Actions</span>(<span class="pl-v">IntFlag</span>): <span class="pl-v">CAN_CREATE</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-v">CAN_UPDATE</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span> <span class="pl-v">CAN_LIST</span> <span class="pl-c1">=</span> <span class="pl-c1">3</span> <span class="pl-v">CAN_DESTROY</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span> <span class="pl-v">CAN_RETRIEVE</span> <span class="pl-c1">=</span> <span class="pl-c1">7</span> <span class="pl-v">CAN_READ</span> <span class="pl-c1">=</span> <span class="pl-c1">11</span> <span class="pl-v">CAN_WRITE</span> <span class="pl-c1">=</span> <span class="pl-c1">13</span> <span class="pl-k">def</span> <span class="pl-en">__str__</span>(<span class="pl-s1">self</span>): <span class="pl-k">if</span> <span class="pl-s1">self</span> <span class="pl-c1">in</span> <span class="pl-v">Actions</span>.<span class="pl-s1">__members__</span>: <span class="pl-k">return</span> <span class="pl-en">str</span>(<span class="pl-s1">self</span>.<span class="pl-s1">name</span>).<span class="pl-en">lower</span>() <span class="pl-k">else</span>: <span class="pl-k">return</span> <span class="pl-en">super</span>(<span class="pl-v">Actions</span>, <span class="pl-s1">self</span>).<span class="pl-en">__str__</span>() <span class="pl-k">class</span> <span class="pl-v">PermissionAction</span>(<span class="pl-v">IntFlag</span>): <span class="pl-v">DENY_ALL</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-v">ALLOW_ANY</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-v">ALLOW_ALL</span> <span class="pl-c1">=</span> <span class="pl-c1">9</span> <span class="pl-v">ALLOW_SELECTED_USER</span> <span class="pl-c1">=</span> <span class="pl-c1">3</span> <span class="pl-v">ALLOW_OWNER</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span> <span class="pl-k">def</span> <span class="pl-en">__str__</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">value</span> <span class="pl-k">def</span> <span class="pl-en">__eq__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">other</span>): <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">other</span>, <span class="pl-s1">int</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">value</span> <span class="pl-c1">==</span> <span class="pl-s1">other</span> <span class="pl-k">else</span>: <span class="pl-k">return</span> <span class="pl-en">super</span>(<span class="pl-v">PermissionAction</span>, <span class="pl-s1">self</span>).<span class="pl-en">__eq__</span>(<span class="pl-s1">other</span>) <span class="pl-k">def</span> <span class="pl-en">as_int</span>(<span class="pl-s1">self</span>) <span class="pl-c1">-&gt;</span> <span class="pl-s1">int</span>: <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">_value_</span> <span class="pl-k">class</span> <span class="pl-v">UserBase</span>: <span class="pl-s1">__abstract__</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-s1">metadata</span> <span class="pl-c1">=</span> <span class="pl-v">MetaData</span>() <span class="pl-en">@<span class="pl-s1">mapper_registry</span>.<span class="pl-s1">mapped</span></span> <span class="pl-k">class</span> <span class="pl-v">User</span>(<span class="pl-v">UserBase</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'user'</span> <span class="pl-s1">id</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">token</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">256</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">slug</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">email</span>: <span class="pl-v">EmailStr</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">mobile</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">15</span>)) <span class="pl-s1">password</span>: <span class="pl-v">Union</span>[<span class="pl-s1">str</span>, <span class="pl-s1">bytes</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">256</span>)) <span class="pl-s1">gender</span>: <span class="pl-v">Union</span>[<span class="pl-v">Gender</span>, <span class="pl-s1">str</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">1</span>)) <span class="pl-s1">first_name</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">30</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">last_name</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">150</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">middle_name</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">str</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">50</span>)) <span class="pl-s1">is_business_admin</span>: <span class="pl-s1">bool</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Boolean</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">username</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">150</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">is_staff</span>: <span class="pl-s1">bool</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Boolean</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">is_admin</span>: <span class="pl-s1">bool</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Boolean</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">is_active</span>: <span class="pl-s1">bool</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Boolean</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">date_joined</span>: <span class="pl-s1">dt</span>.<span class="pl-s1">datetime</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">DateTime</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-s1">current_timezone</span>) <span class="pl-c"># relationship fields</span> <span class="pl-s1">groups</span>: <span class="pl-v">List</span>[<span class="pl-s">'Group'</span>] <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">'Group'</span>, <span class="pl-s1">back_populates</span><span class="pl-c1">=</span><span class="pl-s">'users'</span>, <span class="pl-s1">secondary</span><span class="pl-c1">=</span><span class="pl-s">'UserGroup'</span>) <span class="pl-s1">permissions</span>: <span class="pl-v">List</span>[<span class="pl-s">'Permission'</span>] <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">'Permission'</span>, <span class="pl-s1">back_populates</span><span class="pl-c1">=</span><span class="pl-s">'users'</span>, <span class="pl-s1">secondary</span><span class="pl-c1">=</span><span class="pl-s">'UserPermission'</span>) <span class="pl-s1">preferences</span>: <span class="pl-v">List</span>[<span class="pl-s">'UserPreferences'</span>] <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">'UserPreferences'</span>, <span class="pl-s1">back_populates</span><span class="pl-c1">=</span><span class="pl-s">'user'</span>) <span class="pl-s1">__table_args__</span> <span class="pl-c1">=</span> {<span class="pl-s">'extend_existing'</span>: <span class="pl-c1">True</span>} <span class="pl-c"># @classmethod</span> <span class="pl-c"># def from_dict(cls, data: Dict):</span> <span class="pl-c"># try:</span> <span class="pl-c"># instance = cls(**data)</span> <span class="pl-c"># return instance</span> <span class="pl-c"># except Exception:</span> <span class="pl-c"># raise Exception('Unable to create schema using provided data')</span> <span class="pl-c"># @classmethod</span> <span class="pl-c"># def from_schema(cls, data: Any):</span> <span class="pl-c"># if isinstance(data, PydanticModel):</span> <span class="pl-c"># return cls.from_dict(data.schema())</span> <span class="pl-c"># @classmethod</span> <span class="pl-c"># def from_queryset(cls, queryset: Any) -&gt; Union[Sequence[PydanticModel], None]:</span> <span class="pl-c"># if isinstance(queryset, Sequence):</span> <span class="pl-c"># return [parse_to_schema(cls, x) for x in queryset if isinstance(x, (PydanticModel, Dict, Mapping))]</span> <span class="pl-k">class</span> <span class="pl-v">Permission</span>(<span class="pl-v">Base</span>): <span class="pl-s">"""</span> <span class="pl-s"> Model a permission system that defines access control to a model (via model field) or</span> <span class="pl-s"> an instance of a model (via model_id) field.</span> <span class="pl-s"> A given action that can be taken by a user or group of users are specified by Actions enum.</span> <span class="pl-s"> """</span> <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'permission'</span> <span class="pl-s1">id</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">token</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">256</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">slug</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">name</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">action</span>: <span class="pl-v">Actions</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">model_id</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>) <span class="pl-s1">model</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">str</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">256</span>)) <span class="pl-c"># model name in form db.&lt;package&gt;.ClassName</span> <span class="pl-s1">users</span>: <span class="pl-v">List</span>[<span class="pl-v">User</span>] <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-v">User</span>, <span class="pl-s1">back_populates</span><span class="pl-c1">=</span><span class="pl-s">'permissions'</span>, <span class="pl-s1">secondary</span><span class="pl-c1">=</span><span class="pl-s">'UserPermission'</span>) <span class="pl-s1">groups</span>: <span class="pl-v">List</span>[<span class="pl-s">'Group'</span>] <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">'Group'</span>, <span class="pl-s1">back_populates</span><span class="pl-c1">=</span><span class="pl-s">''</span>, <span class="pl-s1">secondary</span><span class="pl-c1">=</span><span class="pl-s">'GroupPermission'</span>) <span class="pl-s1">__table_args__</span> <span class="pl-c1">=</span> {<span class="pl-s">'extend_existing'</span>: <span class="pl-c1">True</span>} <span class="pl-k">class</span> <span class="pl-v">Group</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'group'</span> <span class="pl-s1">id</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">token</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">256</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">slug</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">name</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">permissions</span>: <span class="pl-v">List</span>[<span class="pl-v">Permission</span>] <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-v">Permission</span>, <span class="pl-s1">back_populates</span><span class="pl-c1">=</span><span class="pl-s">'groups'</span>, <span class="pl-s1">secondary</span><span class="pl-c1">=</span><span class="pl-s">'GroupPermission'</span>) <span class="pl-s1">users</span>: <span class="pl-v">List</span>[<span class="pl-v">User</span>] <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-v">User</span>, <span class="pl-s1">back_populates</span><span class="pl-c1">=</span><span class="pl-s">'groups'</span>, <span class="pl-s1">secondary</span><span class="pl-c1">=</span><span class="pl-s">'UserGroup'</span>) <span class="pl-k">class</span> <span class="pl-v">GroupPermission</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'group_permission'</span> <span class="pl-s1">group_id</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">ForeignKey</span>(<span class="pl-s">"group.id"</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">permission_id</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">ForeignKey</span>(<span class="pl-s">"permission.id"</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-k">class</span> <span class="pl-v">UserPermission</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'user_permission'</span> <span class="pl-s1">user_id</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">ForeignKey</span>(<span class="pl-s">"user.id"</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">permission_id</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">ForeignKey</span>(<span class="pl-s">"permission.id"</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-k">class</span> <span class="pl-v">UserGroup</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'user_group'</span> <span class="pl-s1">user_id</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">ForeignKey</span>(<span class="pl-s">"user.id"</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">group_id</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">ForeignKey</span>(<span class="pl-s">"group.id"</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-k">class</span> <span class="pl-v">ModelPermissionMixin</span>: <span class="pl-s1">__abstract__</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-s1">__READ__</span> <span class="pl-c1">=</span> (<span class="pl-v">Actions</span>.<span class="pl-v">CAN_CREATE</span>, <span class="pl-v">Actions</span>.<span class="pl-v">CAN_UPDATE</span>, <span class="pl-v">Actions</span>.<span class="pl-v">CAN_DESTROY</span>, <span class="pl-v">Actions</span>.<span class="pl-v">CAN_WRITE</span>, <span class="pl-v">Actions</span>.<span class="pl-v">CAN_READ</span>, <span class="pl-v">Actions</span>.<span class="pl-v">CAN_RETRIEVE</span>) <span class="pl-s1">__WRITE__</span> <span class="pl-c1">=</span> (<span class="pl-v">Actions</span>.<span class="pl-v">CAN_WRITE</span>, <span class="pl-v">Actions</span>.<span class="pl-v">CAN_DESTROY</span>, <span class="pl-v">Actions</span>.<span class="pl-v">CAN_UPDATE</span>) <span class="pl-s1">__DESTROY__</span> <span class="pl-c1">=</span> (<span class="pl-v">Actions</span>.<span class="pl-v">CAN_DESTROY</span>,) <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">token</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">256</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-s1">generate_token</span>) <span class="pl-s1">slug</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-s1">generate_slug</span>) <span class="pl-s1">metadata</span> <span class="pl-c1">=</span> <span class="pl-v">MetaData</span>() <span class="pl-en">@<span class="pl-s1">property</span></span> <span class="pl-k">def</span> <span class="pl-en">pk</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">id</span> <span class="pl-k">def</span> <span class="pl-en">_process_object_permission</span>(<span class="pl-s1">self</span>, <span class="pl-s1">user</span>, <span class="pl-s1">checks</span>): <span class="pl-s1">session_local</span> <span class="pl-c1">=</span> <span class="pl-en">get_session</span>() <span class="pl-k">with</span> <span class="pl-s1">session_local</span>.<span class="pl-en">begin</span>() <span class="pl-k">as</span> <span class="pl-s1">session</span>: <span class="pl-s1">ps</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">execute</span>(<span class="pl-en">select</span>(<span class="pl-v">Permission</span>)).<span class="pl-en">all</span>() <span class="pl-s1">acts</span> <span class="pl-c1">=</span> <span class="pl-en">any</span>([<span class="pl-en">bool</span>(<span class="pl-s1">x</span>) <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-s1">ps</span> <span class="pl-k">if</span> <span class="pl-s1">user</span> <span class="pl-c1">in</span> <span class="pl-s1">x</span>.<span class="pl-s1">users</span> <span class="pl-c1">and</span> <span class="pl-s1">x</span>.<span class="pl-s1">model_id</span> <span class="pl-c1">==</span> <span class="pl-s1">self</span>.<span class="pl-s1">pk</span> <span class="pl-c1">and</span> <span class="pl-s1">x</span>.<span class="pl-s1">action</span> <span class="pl-c1">in</span> <span class="pl-s1">checks</span>]) <span class="pl-k">return</span> <span class="pl-s1">acts</span> <span class="pl-c1">or</span> <span class="pl-en">any</span>([<span class="pl-s1">x</span> <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-s1">public_models</span> <span class="pl-k">if</span> <span class="pl-s1">x</span> <span class="pl-c1">==</span> <span class="pl-s1">self</span>.<span class="pl-s1">__name__</span>]) <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">_process_class_permission</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">user</span>, <span class="pl-s1">checks</span>): <span class="pl-s1">session_local</span> <span class="pl-c1">=</span> <span class="pl-en">get_session</span>() <span class="pl-k">with</span> <span class="pl-s1">session_local</span>.<span class="pl-en">begin</span>() <span class="pl-k">as</span> <span class="pl-s1">session</span>: <span class="pl-s1">ps</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">execute</span>(<span class="pl-en">select</span>(<span class="pl-v">Permission</span>)).<span class="pl-en">all</span>() <span class="pl-s1">acts</span> <span class="pl-c1">=</span> <span class="pl-en">any</span>([<span class="pl-en">bool</span>(<span class="pl-s1">x</span>) <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-s1">ps</span> <span class="pl-k">if</span> <span class="pl-s1">user</span> <span class="pl-c1">in</span> <span class="pl-s1">x</span>.<span class="pl-s1">users</span> <span class="pl-c1">and</span> <span class="pl-s1">x</span>.<span class="pl-s1">model</span> <span class="pl-c1">==</span> <span class="pl-s1">cls</span>.<span class="pl-s1">__name__</span> <span class="pl-c1">and</span> <span class="pl-s1">x</span>.<span class="pl-s1">action</span> <span class="pl-c1">in</span> <span class="pl-s1">checks</span>]) <span class="pl-k">return</span> <span class="pl-s1">acts</span> <span class="pl-c1">or</span> <span class="pl-en">any</span>([<span class="pl-s1">x</span> <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-s1">public_models</span> <span class="pl-k">if</span> <span class="pl-s1">x</span> <span class="pl-c1">==</span> <span class="pl-s1">cls</span>.<span class="pl-s1">__name__</span>]) <span class="pl-k">def</span> <span class="pl-en">has_object_read_permission</span>(<span class="pl-s1">self</span>, <span class="pl-s1">user</span>): <span class="pl-c"># Fetch model owner from Permission table and validate if user matched parameter</span> <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">_process_object_permission</span>(<span class="pl-s1">user</span>, <span class="pl-s1">self</span>.<span class="pl-s1">__READ__</span>) <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">has_read_permission</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">user</span>): <span class="pl-k">return</span> <span class="pl-s1">cls</span>.<span class="pl-en">_process_class_permission</span>(<span class="pl-s1">user</span>, <span class="pl-s1">cls</span>.<span class="pl-s1">__READ__</span>) <span class="pl-k">def</span> <span class="pl-en">has_object_write_permission</span>(<span class="pl-s1">self</span>, <span class="pl-s1">user</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">_process_object_permission</span>(<span class="pl-s1">user</span>, <span class="pl-s1">self</span>.<span class="pl-s1">__WRITE__</span>) <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">has_write_permission</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">user</span>): <span class="pl-k">return</span> <span class="pl-s1">cls</span>.<span class="pl-en">_process_class_permission</span>(<span class="pl-s1">user</span>, <span class="pl-s1">cls</span>.<span class="pl-s1">__WRITE__</span>) <span class="pl-k">class</span> <span class="pl-v">UserPreferences</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'user_preferences'</span> <span class="pl-s1">id</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">token</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">256</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">slug</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">key</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>) <span class="pl-s1">value</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>) <span class="pl-s1">user</span>: <span class="pl-v">Optional</span>[<span class="pl-v">User</span>] <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-v">User</span>, <span class="pl-s1">back_populates</span><span class="pl-c1">=</span><span class="pl-s">'preferences'</span>) <span class="pl-s1">user_id</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-v">ForeignKey</span>(<span class="pl-s">'user.id'</span>)) <span class="pl-k">def</span> <span class="pl-en">get_user_by_identity</span>(<span class="pl-s1">identity</span>: <span class="pl-v">Any</span>) <span class="pl-c1">-&gt;</span> <span class="pl-v">Any</span>: <span class="pl-s1">session_local</span> <span class="pl-c1">=</span> <span class="pl-en">get_session</span>() <span class="pl-k">with</span> <span class="pl-s1">session_local</span>.<span class="pl-en">begin</span>() <span class="pl-k">as</span> <span class="pl-s1">session</span>: <span class="pl-k">return</span> <span class="pl-s1">session</span>.<span class="pl-en">execute</span>(<span class="pl-en">select</span>(<span class="pl-v">User</span>).<span class="pl-en">where</span>( <span class="pl-en">or_</span>(<span class="pl-v">User</span>.<span class="pl-s1">slug</span> <span class="pl-c1">==</span> <span class="pl-s1">identity</span>, <span class="pl-v">User</span>.<span class="pl-s1">token</span> <span class="pl-c1">==</span> <span class="pl-s1">identity</span>, <span class="pl-v">User</span>.<span class="pl-s1">id</span> <span class="pl-c1">==</span> <span class="pl-s1">identity</span>))).<span class="pl-en">first</span>() <span class="pl-k">class</span> <span class="pl-v">UserAccess</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'user_access'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">token</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">256</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">slug</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>) <span class="pl-s1">user_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-v">ForeignKey</span>(<span class="pl-s">'user.id'</span>), <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">None</span>) <span class="pl-s1">user</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-v">User</span>) <span class="pl-s1">start</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">DateTime</span>) <span class="pl-s1">end</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">DateTime</span>) <span class="pl-s1">expired</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Boolean</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">start</span>: <span class="pl-s1">dt</span>.<span class="pl-s1">datetime</span>, <span class="pl-s1">end</span>: <span class="pl-s1">dt</span>.<span class="pl-s1">datetime</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span>): <span class="pl-c"># if the current time exceeds duration of token set end time to current</span> <span class="pl-s1">local_timezone</span> <span class="pl-c1">=</span> <span class="pl-s1">tz</span>.<span class="pl-en">tzlocal</span>() <span class="pl-s1">self</span>.<span class="pl-s1">start</span> <span class="pl-c1">=</span> <span class="pl-s1">start</span>.<span class="pl-en">astimezone</span>(<span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s1">local_timezone</span>) <span class="pl-k">if</span> <span class="pl-s1">end</span>: <span class="pl-s1">self</span>.<span class="pl-s1">end</span> <span class="pl-c1">=</span> <span class="pl-s1">end</span>.<span class="pl-en">astimezone</span>(<span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s1">local_timezone</span>) <span class="pl-k">else</span>: <span class="pl-s1">self</span>.<span class="pl-s1">end</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">start</span> <span class="pl-c1">+</span> <span class="pl-s1">dt</span>.<span class="pl-en">timedelta</span>(<span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-s1">settings</span>.<span class="pl-v">ACCESS_TOKEN_EXPIRE_MINUTES</span>) <span class="pl-s1">now</span> <span class="pl-c1">=</span> <span class="pl-s1">dt</span>.<span class="pl-s1">datetime</span>.<span class="pl-en">now</span>(<span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s1">local_timezone</span>) <span class="pl-s1">self</span>.<span class="pl-s1">expired</span> <span class="pl-c1">=</span> (<span class="pl-s1">self</span>.<span class="pl-s1">end</span> <span class="pl-c1">-</span> <span class="pl-s1">self</span>.<span class="pl-s1">start</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">dt</span>.<span class="pl-en">timedelta</span>(<span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-s1">settings</span>.<span class="pl-v">ACCESS_TOKEN_EXPIRE_MINUTES</span>)) <span class="pl-c1">or</span> \ (<span class="pl-s1">now</span> <span class="pl-c1">-</span> <span class="pl-s1">self</span>.<span class="pl-s1">start</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">dt</span>.<span class="pl-en">timedelta</span>(<span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-s1">settings</span>.<span class="pl-v">ACCESS_TOKEN_EXPIRE_MINUTES</span>)) <span class="pl-en">super</span>(<span class="pl-v">UserAccess</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>() <span class="pl-en">@<span class="pl-s1">property</span></span> <span class="pl-k">def</span> <span class="pl-en">current_user</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">user</span> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">end</span> <span class="pl-c1">-</span> <span class="pl-s1">self</span>.<span class="pl-s1">start</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">dt</span>.<span class="pl-en">timedelta</span>(<span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-s1">settings</span>.<span class="pl-v">ACCESS_TOKEN_EXPIRE_MINUTES</span>) <span class="pl-k">else</span> <span class="pl-c1">None</span> <span class="pl-k">class</span> <span class="pl-v">UserVerification</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'user_verification'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">token</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">256</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">slug</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>) <span class="pl-s1">verified_on</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">DateTime</span>) <span class="pl-s1">verified_by</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>) <span class="pl-s1">verification_document</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>) <span class="pl-s1">is_approved</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Boolean</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">user_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-v">ForeignKey</span>(<span class="pl-s">'user.id'</span>), <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">None</span>) <span class="pl-s1">user</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-v">User</span>)</pre></div> <h3 dir="auto">Error</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Copy complete stack trace and error message here, including SQL log output if applicable. ``` File &quot;C:\Users\User\AppData\Local\Programs\Python\Python310\lib\runpy.py&quot;, line 196, in _run_module_as_main return _run_code(code, main_globals, None, File &quot;C:\Users\User\AppData\Local\Programs\Python\Python310\lib\runpy.py&quot;, line 86, in _run_code exec(code, run_globals) File &quot;C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\Scripts\alembic.exe\__main__.py&quot;, line 7, in &lt;module&gt; File &quot;C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\config.py&quot;, line 588, in main CommandLine(prog=prog).main(argv=argv) File &quot;C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\config.py&quot;, line 582, in main self.run_cmd(cfg, options) File &quot;C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\config.py&quot;, line 559, in run_cmd fn( File &quot;C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\command.py&quot;, line 227, in revision script_directory.run_env() File &quot;C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\script\base.py&quot;, line 563, in run_env util.load_python_file(self.dir, &quot;env.py&quot;) File &quot;C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\util\pyfiles.py&quot;, line 92, in load_python_file module = load_module_py(module_id, path) File &quot;C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\util\pyfiles.py&quot;, line 108, in load_module_py spec.loader.exec_module(module) # type: ignore File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 883, in exec_module table_cls( File &quot;&lt;string&gt;&quot;, line 2, in __new__ File &quot;C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\sqlalchemy\util\deprecations.py&quot;, line 309, in warned return fn(*args, **kwargs) File &quot;C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\sqlalchemy\sql\schema.py&quot;, line 593, in __new__ raise exc.InvalidRequestError( sqlalchemy.exc.InvalidRequestError: Table 'permission' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object. ### Versions - OS: - Python: - SQLAlchemy: - Database: - DBAPI (eg: psycopg, cx_oracle, mysqlclient): ### Additional context _No response_"><pre class="notranslate"><code class="notranslate"># Copy complete stack trace and error message here, including SQL log output if applicable. ``` File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\Scripts\alembic.exe\__main__.py", line 7, in &lt;module&gt; File "C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\config.py", line 588, in main CommandLine(prog=prog).main(argv=argv) File "C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\config.py", line 582, in main self.run_cmd(cfg, options) File "C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\config.py", line 559, in run_cmd fn( File "C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\command.py", line 227, in revision script_directory.run_env() File "C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\script\base.py", line 563, in run_env util.load_python_file(self.dir, "env.py") File "C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\util\pyfiles.py", line 92, in load_python_file module = load_module_py(module_id, path) File "C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\alembic\util\pyfiles.py", line 108, in load_module_py spec.loader.exec_module(module) # type: ignore File "&lt;frozen importlib._bootstrap_external&gt;", line 883, in exec_module table_cls( File "&lt;string&gt;", line 2, in __new__ File "C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\sqlalchemy\util\deprecations.py", line 309, in warned return fn(*args, **kwargs) File "C:\Users\User\Desktop\Coding\Shoppers_Bag\SHOPERS_BAG_FASTAPI\venv\lib\site-packages\sqlalchemy\sql\schema.py", line 593, in __new__ raise exc.InvalidRequestError( sqlalchemy.exc.InvalidRequestError: Table 'permission' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object. ### Versions - OS: - Python: - SQLAlchemy: - Database: - DBAPI (eg: psycopg, cx_oracle, mysqlclient): ### Additional context _No response_ </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <p dir="auto">have the polymorphic_on check during loading continue to check on the type returned so that polymorphic loads can cascade. Other complexities here regard getting the multiple discriminators assigned during <strong>init</strong>, as well as considering if polymorphic_map can be local to each sub-hierarchy.</p> <p dir="auto">"workaround" example below.</p> <p dir="auto">This is only tentatively on the 0.8 milestone. can move to 0.9.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;&quot;&quot; mixed single and joined table inheritance. &quot;&quot;&quot; from sqlalchemy import * from sqlalchemy import types from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base, declared_attr from sqlalchemy import event Base = declarative_base() class Product(Base): __tablename__ = 'products' id = Column(types.Integer, primary_key=True) discriminator = Column('product_type', types.String(50), nullable=False) _discriminator = &quot;discriminator&quot; def price_history(self): return [PhysicalProduct(Product): p_discr = Column(types.String(50)) _discriminator = &quot;p_discr&quot; @declared_attr def __mapper_args__(cls): return {'polymorphic_identity': 'physical_product'} def inventory(self): return &quot;computed inventory&quot; class NonPhysicalProduct(Product): np_discr = Column(types.String(50)) _discriminator = &quot;np_discr&quot; @declared_attr def __mapper_args__(cls): return {'polymorphic_identity': 'nonphysical_product'} def somefunc(self): return &quot;someval&quot; # set polymorphic on as a coalesce of those three # columns. It's after the fact beacuse p_discr and np_discr # are defined after Product, but if you move them up then # this can be inline inside of Product.__mapper_args__. # this would improve loads too as it appears the p_discr/np_discr columns # aren't loaded directly when you query for Product for mp in Product.__mapper__.self_and_descendants: mp._set_polymorphic_on( func.coalesce( Product.__table__.c.p_discr, Product.__table__.c.np_discr, Product.__table__.c.product_type )) # build our own system of assigning polymorphic identities # to instances; use the 'init' event. # Add a &quot;print&quot; for the &quot;identity&quot; dict to see what it's doing. @event.listens_for(Product, &quot;init&quot;, propagate=True) def init(target, args, kwargs): identity = {} for cls, supercls in zip(type(target).__mro__, type(target).__mro__[1:](] class)): if not hasattr(supercls, '_discriminator'): break discriminator_attr = supercls._discriminator poly_identity = cls.__mapper__.polymorphic_identity identity.setdefault(discriminator_attr, poly_identity) for key in identity: setattr(target, key, identity[key](key)) class Newspaper(PhysicalProduct): __tablename__ = 'newspapers' __mapper_args__ = {'polymorphic_identity': 'newspaper'} id = Column(types.Integer, ForeignKey('products.id'), primary_key=True ) title = Column(types.String(50)) def __init__(self, title): self.title = title class NewspaperDelivery(NonPhysicalProduct): __tablename__ = 'deliveries' __mapper_args__ = {'polymorphic_identity': 'delivery'} id = Column(types.Integer, ForeignKey('products.id'), primary_key=True ) destination = Column(types.String(50)) def __init__(self, destination): self.destination = destination # note here how the polymorphic map works out: print Product.__mapper__.polymorphic_map # {'newspaper': &lt;Mapper at 0x1014d8890; Newspaper&gt;, # 'delivery': &lt;Mapper at 0x1014dec90; NewspaperDelivery&gt;, # 'nonphysical_product': &lt;Mapper at 0x1014d2350; NonPhysicalProduct&gt;, # 'physical_product': &lt;Mapper at 0x1014d00d0; PhysicalProduct&gt;} e = create_engine('sqlite:///:memory:', echo='debug') Base.metadata.drop_all(e) Base.metadata.create_all(e) session = Session(e, autoflush=True, autocommit=False) session.add_all([ Newspaper(title=&quot;Financial Times&quot;), NewspaperDelivery(destination=&quot;__somewhere__&quot;), PhysicalProduct(), NonPhysicalProduct() ]( )) session.commit() # the important part - that a row only known as Product can # interpret as a specific subclass assert [ type(c) for c in session.query(Product).order_by(Product.id) ]( ) == [NewspaperDelivery, PhysicalProduct, NonPhysicalProduct](Newspaper,) # test sub-table load. The load for &quot;title&quot; apparently emits a JOIN still because # in order to refresh the subclass of &quot;Product&quot; it also wants to get # at p_discr. np = session.query(Product).filter_by(id=1).first() assert np.title == &quot;Financial Times&quot; session.close() # in this version, it emits two separate, single table SELECT statements, # since the first query loads the full set of columns for PhysicalProduct. np = session.query(PhysicalProduct).filter_by(id=1).first() assert np.title == &quot;Financial Times&quot;"><pre class="notranslate"><code class="notranslate">""" mixed single and joined table inheritance. """ from sqlalchemy import * from sqlalchemy import types from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base, declared_attr from sqlalchemy import event Base = declarative_base() class Product(Base): __tablename__ = 'products' id = Column(types.Integer, primary_key=True) discriminator = Column('product_type', types.String(50), nullable=False) _discriminator = "discriminator" def price_history(self): return [PhysicalProduct(Product): p_discr = Column(types.String(50)) _discriminator = "p_discr" @declared_attr def __mapper_args__(cls): return {'polymorphic_identity': 'physical_product'} def inventory(self): return "computed inventory" class NonPhysicalProduct(Product): np_discr = Column(types.String(50)) _discriminator = "np_discr" @declared_attr def __mapper_args__(cls): return {'polymorphic_identity': 'nonphysical_product'} def somefunc(self): return "someval" # set polymorphic on as a coalesce of those three # columns. It's after the fact beacuse p_discr and np_discr # are defined after Product, but if you move them up then # this can be inline inside of Product.__mapper_args__. # this would improve loads too as it appears the p_discr/np_discr columns # aren't loaded directly when you query for Product for mp in Product.__mapper__.self_and_descendants: mp._set_polymorphic_on( func.coalesce( Product.__table__.c.p_discr, Product.__table__.c.np_discr, Product.__table__.c.product_type )) # build our own system of assigning polymorphic identities # to instances; use the 'init' event. # Add a "print" for the "identity" dict to see what it's doing. @event.listens_for(Product, "init", propagate=True) def init(target, args, kwargs): identity = {} for cls, supercls in zip(type(target).__mro__, type(target).__mro__[1:](] class)): if not hasattr(supercls, '_discriminator'): break discriminator_attr = supercls._discriminator poly_identity = cls.__mapper__.polymorphic_identity identity.setdefault(discriminator_attr, poly_identity) for key in identity: setattr(target, key, identity[key](key)) class Newspaper(PhysicalProduct): __tablename__ = 'newspapers' __mapper_args__ = {'polymorphic_identity': 'newspaper'} id = Column(types.Integer, ForeignKey('products.id'), primary_key=True ) title = Column(types.String(50)) def __init__(self, title): self.title = title class NewspaperDelivery(NonPhysicalProduct): __tablename__ = 'deliveries' __mapper_args__ = {'polymorphic_identity': 'delivery'} id = Column(types.Integer, ForeignKey('products.id'), primary_key=True ) destination = Column(types.String(50)) def __init__(self, destination): self.destination = destination # note here how the polymorphic map works out: print Product.__mapper__.polymorphic_map # {'newspaper': &lt;Mapper at 0x1014d8890; Newspaper&gt;, # 'delivery': &lt;Mapper at 0x1014dec90; NewspaperDelivery&gt;, # 'nonphysical_product': &lt;Mapper at 0x1014d2350; NonPhysicalProduct&gt;, # 'physical_product': &lt;Mapper at 0x1014d00d0; PhysicalProduct&gt;} e = create_engine('sqlite:///:memory:', echo='debug') Base.metadata.drop_all(e) Base.metadata.create_all(e) session = Session(e, autoflush=True, autocommit=False) session.add_all([ Newspaper(title="Financial Times"), NewspaperDelivery(destination="__somewhere__"), PhysicalProduct(), NonPhysicalProduct() ]( )) session.commit() # the important part - that a row only known as Product can # interpret as a specific subclass assert [ type(c) for c in session.query(Product).order_by(Product.id) ]( ) == [NewspaperDelivery, PhysicalProduct, NonPhysicalProduct](Newspaper,) # test sub-table load. The load for "title" apparently emits a JOIN still because # in order to refresh the subclass of "Product" it also wants to get # at p_discr. np = session.query(Product).filter_by(id=1).first() assert np.title == "Financial Times" session.close() # in this version, it emits two separate, single table SELECT statements, # since the first query loads the full set of columns for PhysicalProduct. np = session.query(PhysicalProduct).filter_by(id=1).first() assert np.title == "Financial Times" </code></pre></div>
0
<p dir="auto">We're using Celery with MongoDB both as broker and results backend in production with quite a success. However recently we found that Mongo database used for Celery queues grown up to 50+ GBs. After short investigation I found that 99.9% of all documents in "messages" collection are belonging to "celeryev" queue.</p> <p dir="auto">Our workers have events enabled in order for Celery Flower frontend to work. I always assumed that event got wiped after consuming, but looks like I was wrong.</p> <p dir="auto">Celery report is as follows:</p> <p dir="auto">[root@app1 nimble]# bin/celery report</p> <p dir="auto">software -&gt; celery:3.0.9nimble (Chiastic Slide) kombu:2.4.7nimble py:2.7.3<br> billiard:2.7.3.12 pymongo:2.1.1<br> platform -&gt; system:Linux arch:64bit, ELF imp:CPython<br> loader -&gt; celery.loaders.default.Loader<br> settings -&gt; transport:mongodb results:mongodb</p> <p dir="auto">I believe that we see exactly the same behavior as in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1251771" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/436" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/436/hovercard" href="https://github.com/celery/celery/issues/436">#436</a>. I see three different celeryev queues, but we only have one single listener active (Flower):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SECONDARY&gt; db.messages.distinct(&quot;queue&quot;, {queue: /^celeryev/}) [ &quot;celeryev.2a304cc3-78b8-451c-9728-99d0c09ccde1&quot;, &quot;celeryev.3cbbd9b5-b967-4297-8a50-f3313dae0650&quot;, &quot;celeryev.d94fb4c0-8ab4-4d12-9469-f93e090a7631&quot; ]"><pre class="notranslate"><code class="notranslate">SECONDARY&gt; db.messages.distinct("queue", {queue: /^celeryev/}) [ "celeryev.2a304cc3-78b8-451c-9728-99d0c09ccde1", "celeryev.3cbbd9b5-b967-4297-8a50-f3313dae0650", "celeryev.d94fb4c0-8ab4-4d12-9469-f93e090a7631" ] </code></pre></div> <p dir="auto">I also see a lot of "worker.heartbeat" routing keys in documents in these queues. Probably that's the majority of all events.</p> <p dir="auto">Distribution between these three queues is quite uniform:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SECONDARY&gt; db.messages.group({key: {queue: true}, cond: {queue: /^celeryev/}, reduce: function(obj,prev) { prev.csum += 1; }, initial: { csum: 0 }}) [ { &quot;queue&quot; : &quot;celeryev.2a304cc3-78b8-451c-9728-99d0c09ccde1&quot;, &quot;csum&quot; : 21619432 }, { &quot;queue&quot; : &quot;celeryev.3cbbd9b5-b967-4297-8a50-f3313dae0650&quot;, &quot;csum&quot; : 14117210 }, { &quot;queue&quot; : &quot;celeryev.d94fb4c0-8ab4-4d12-9469-f93e090a7631&quot;, &quot;csum&quot; : 18428199 } ]"><pre class="notranslate"><code class="notranslate">SECONDARY&gt; db.messages.group({key: {queue: true}, cond: {queue: /^celeryev/}, reduce: function(obj,prev) { prev.csum += 1; }, initial: { csum: 0 }}) [ { "queue" : "celeryev.2a304cc3-78b8-451c-9728-99d0c09ccde1", "csum" : 21619432 }, { "queue" : "celeryev.3cbbd9b5-b967-4297-8a50-f3313dae0650", "csum" : 14117210 }, { "queue" : "celeryev.d94fb4c0-8ab4-4d12-9469-f93e090a7631", "csum" : 18428199 } ] </code></pre></div> <p dir="auto">I'm wondering, is it possible to use same fix for MongoDB as was used for Redis in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1251771" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/436" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/436/hovercard" href="https://github.com/celery/celery/issues/436">#436</a>?</p>
<p dir="auto">I am using Django-celery and Redis backend to push the tasks in celery queue. I am pushing tasks with same custom task_id in the queue. The documentation says that task_id is UUID which should be unique. But I am able to add more than one task with the same task_id in the queue. It is expected that it should raise an exception if a task with the same task_id is already there in the queue.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@task def register_task(a, b): print a + b @task def deregister_task(a, b, c): print a + b + c taskid=str(UUID(md5('test').hexdigest())) register_task.apply_async(args=('hello', 'world'), task_id=taskid, countdown=60) deregister_task.apply_async(args=('sample', 'hello', 'world'), task_id=taskid, countdown=60) i = inspect() i.scheduled() {u'[email protected]': [{u'eta': u'2017-06-05T17:15:33.947002', u'priority': 6, u'request': {u'acknowledged': False, u'args': u&quot;('sample', 'hello', 'world')&quot;, u'delivery_info': {u'exchange': u'celery', u'priority': 0, u'redelivered': None, u'routing_key': u'celery'}, u'hostname': u'[email protected]', u'id': u'098f6bcd-4621-d373-cade-4e832627b4f6', u'kwargs': u'{}', u'name': u'flight.tasks.deregister_task', u'time_start': None, u'worker_pid': None}}, {u'eta': u'2017-06-05T17:15:44.234537', u'priority': 6, u'request': {u'acknowledged': False, u'args': u&quot;('hello', 'world')&quot;, u'delivery_info': {u'exchange': u'celery', u'priority': 0, u'redelivered': None, u'routing_key': u'celery'}, u'hostname': u'[email protected]', u'id': u'098f6bcd-4621-d373-cade-4e832627b4f6', u'kwargs': u'{}', u'name': u'flight.tasks.register_task', u'time_start': None, u'worker_pid': None}}]} "><pre class="notranslate"><code class="notranslate">@task def register_task(a, b): print a + b @task def deregister_task(a, b, c): print a + b + c taskid=str(UUID(md5('test').hexdigest())) register_task.apply_async(args=('hello', 'world'), task_id=taskid, countdown=60) deregister_task.apply_async(args=('sample', 'hello', 'world'), task_id=taskid, countdown=60) i = inspect() i.scheduled() {u'[email protected]': [{u'eta': u'2017-06-05T17:15:33.947002', u'priority': 6, u'request': {u'acknowledged': False, u'args': u"('sample', 'hello', 'world')", u'delivery_info': {u'exchange': u'celery', u'priority': 0, u'redelivered': None, u'routing_key': u'celery'}, u'hostname': u'[email protected]', u'id': u'098f6bcd-4621-d373-cade-4e832627b4f6', u'kwargs': u'{}', u'name': u'flight.tasks.deregister_task', u'time_start': None, u'worker_pid': None}}, {u'eta': u'2017-06-05T17:15:44.234537', u'priority': 6, u'request': {u'acknowledged': False, u'args': u"('hello', 'world')", u'delivery_info': {u'exchange': u'celery', u'priority': 0, u'redelivered': None, u'routing_key': u'celery'}, u'hostname': u'[email protected]', u'id': u'098f6bcd-4621-d373-cade-4e832627b4f6', u'kwargs': u'{}', u'name': u'flight.tasks.register_task', u'time_start': None, u'worker_pid': None}}]} </code></pre></div>
0
<p dir="auto">The conponents works fine when compiling but there is a warning displayed in the console</p> <p dir="auto">WARNING in ./~/@angular/core/@angular/core.es5.js<br> 6857:19-40 Critical dependency: the request of a dependency is an expression</p> <p dir="auto">WARNING in ./~/@angular/core/@angular/core.es5.js<br> 6883:19-106 Critical dependency: the request of a dependency is an expression</p> <p dir="auto">This only comes when i am running angular4 RC .</p>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1321938/18496190/4b29bc28-7a67-11e6-9e32-e1a7dd4fcf96.png"><img src="https://cloud.githubusercontent.com/assets/1321938/18496190/4b29bc28-7a67-11e6-9e32-e1a7dd4fcf96.png" alt="webpack_warning" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Current behavior</strong><br> When compiling using webpack, in angular rc7 core libraries there are a couple of warnings.</p> <p dir="auto"><strong>Expected behavior</strong><br> I guess no warnings... :-)</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> Install a bare project, the simplest you like using webpack with the Angular2 rc7 revision and you will get the warnings.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> All the last versions of Angular2 rc7, typings, ts and webpack related dependencies. All of them on the latest versions npm has.</p> <ul dir="auto"> <li><strong>Angular version:</strong><br> 2.0.0-rc.7</li> </ul>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0-SNAPSHOT</li> <li>Operating System version: mac os</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Step to reproduce this issue</h3> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What is actually happen?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li>[ -] I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> </ul> <h3 dir="auto">ExtensionLoader.getActivateExtension</h3> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" if (isMatchGroup(group, activateGroup)) { // 这个应该放到 if 里面,会更合适 T ext = getExtension(name); if (!names.contains(name) &amp;&amp; !names.contains(Constants.REMOVE_VALUE_PREFIX + name) &amp;&amp; isActive(activateValue, url)) { exts.add(ext); } "><pre class="notranslate"> <span class="pl-k">if</span> (<span class="pl-en">isMatchGroup</span>(<span class="pl-s1">group</span>, <span class="pl-s1">activateGroup</span>)) { <span class="pl-c">// 这个应该放到 if 里面,会更合适</span> <span class="pl-smi">T</span> <span class="pl-s1">ext</span> = <span class="pl-en">getExtension</span>(<span class="pl-s1">name</span>); <span class="pl-k">if</span> (!<span class="pl-s1">names</span>.<span class="pl-en">contains</span>(<span class="pl-s1">name</span>) &amp;&amp; !<span class="pl-s1">names</span>.<span class="pl-en">contains</span>(<span class="pl-smi">Constants</span>.<span class="pl-c1">REMOVE_VALUE_PREFIX</span> + <span class="pl-s1">name</span>) &amp;&amp; <span class="pl-en">isActive</span>(<span class="pl-s1">activateValue</span>, <span class="pl-s1">url</span>)) { <span class="pl-s1">exts</span>.<span class="pl-en">add</span>(<span class="pl-s1">ext</span>); } </pre></div>
0
<p dir="auto">Currently, the only Rust guide that talks about concurrency is the task guide, which talks about <code class="notranslate">spawn</code>, channels, Futures and Arcs and how to use them.</p> <p dir="auto">However, Rusts concurrency story is not based on those library types, its based on its ownership and borrowing semantic and the two build-in traits <code class="notranslate">Send</code> and <code class="notranslate">Sync</code>.</p> <p dir="auto">A rewritten concurrency guide could start by talking around the two core problems with concurrent/parallel code:</p> <ol dir="auto"> <li>Making sure that objects created on one thread can be safely moved into another thread and then used there. (Examples: global allocator vs thread-local allocator, FFI bindings that need to stay on one thread)</li> <li>Making sure that objects can be safely accessed from different threads in parallel. (Examples: worker threads with shared memory, global variables)</li> </ol> <p dir="auto">And then talk about how those two cases are, per definition, covered with the two build-in traits:</p> <ol dir="auto"> <li><code class="notranslate">Send</code> expresses whether a type can be safely ownership-transferred across thread boundaries</li> <li><code class="notranslate">Sync</code> expresses whether a type can be safely accessed through shared references from different threads.</li> </ol> <p dir="auto">After each of these those two traits got explained, the guide could go into details about language semantics and std library APIs that make use of them, eg task spawning works with <code class="notranslate">Send</code>, <code class="notranslate">Arc</code>s are <code class="notranslate">Send</code> and require <code class="notranslate">Sync</code> on the inner type, while channels are sendable endpoints that can only transfer sendable types, <code class="notranslate">static</code> variables that contain <code class="notranslate">Sync</code> types are safe to access, etc.</p>
<p dir="auto">At the introduction of <code class="notranslate">spawn</code>:</p> <blockquote> <p dir="auto">The spawn function has a very simple type signature: fn spawn(f: proc(): Send). Because it accepts only procs, and procs contain only owned data, spawn can safely move the entire proc and all its associated state into an entirely different task for execution. Like any closure, the function passed to spawn may capture an environment that it carries across tasks.</p> </blockquote> <p dir="auto">This doesn't explain what <code class="notranslate">Send</code> means, and instead talks about a simplified concept of owning the state. Something like this would be more correct (with the old <code class="notranslate">proc</code> closures):</p> <blockquote> <p dir="auto">The spawn function has a very simple type signature: fn spawn(f: proc():Send). A <code class="notranslate">proc</code> is a closure that captures its environment by value, and the <code class="notranslate">Send</code> bound restricts it to only allow the capture of sendable types, that is data that is safe to transfer across threads. Because all captured state is sendable, the closure is as well, and spawn can safely move the entire proc and all its associated state into an entirely different task for execution.</p> </blockquote> <p dir="auto">Then later in the <code class="notranslate">Arc</code> section, <code class="notranslate">Sync</code> is not mentioned at all. A possible introduction could look like this:</p> <blockquote> <p dir="auto">To tackle this issue, one can use an Atomically Reference Counted wrapper (Arc) as implemented in the sync library of Rust. With an Arc, the data will no longer be copied for each task. Instead, a single copy of the data exists that can be accessed through an Arc handle (Arc). This handle is send- and clonable, which means you can make as many of them as necessary and then send them to different tasks.</p> <p dir="auto">However, for a given type <code class="notranslate">T</code> you are only allowed to construct an <code class="notranslate">Arc&lt;T&gt;</code> if <code class="notranslate">T</code> fulfills the <code class="notranslate">Sync</code> bound. <code class="notranslate">Sync</code>is a build-in trait the expresses that a type is thread safe to access through an shared reference, that is a <code class="notranslate">T</code> should only implement <code class="notranslate">Sync</code> if having two <code class="notranslate">&amp;T</code> in different threads that point to the same memory is safe. For the vast majority of types that are <code class="notranslate">Sync</code>, thread safety is given by simply not allowing any mutation through an shared reference, eg <code class="notranslate">u32</code> is <code class="notranslate">Share</code> because you can't mutate it through an <code class="notranslate">&amp;u32</code>.</p> <p dir="auto">(Remaining examples of read-only Arc usage)</p> <p dir="auto">Rust also enable safe mutation of data that is shared between threads, by providing library types that implement <code class="notranslate">Sync</code> and do some kind of runtime checking to safely pass out mutable reference one thread at a time. One example of this is the <code class="notranslate">Mutex&lt;T&gt;</code> type, which can be used to make any type <code class="notranslate">T</code> thread safe to access by using locks. For example you could construct an <code class="notranslate">Arc&lt;Mutex&lt;u32&gt;&gt;</code> to have an integer that can be shared and mutated across threads.</p> </blockquote>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li>[ x] I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li>[ x] I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li>[x ] I have included all related issues and possible duplicate issues in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Description</h1> <p dir="auto">Following the First Steps tutorial all goes well<br> Until I execute the command</p> <p dir="auto">$ celery -A tasks worker --loglevel=info<br> I get the following traceback I go to the trouble shooting section and no mention of how to deal with this error is mentioned. Could the documentation please be updated to include such information, Note that a cursory attempt at debugging revealed that executing the command<br> $ celery resulted in the same traceback error.</p> <p dir="auto">Traceback (most recent call last):<br> File "/home/chuck/.local/bin/celery", line 8, in <br> sys.exit(main())<br> File "/home/chuck/.local/lib/python2.7/site-packages/celery/<strong>main</strong>.py", line 15, in main<br> from celery.bin.celery import main as _main<br> File "/home/chuck/.local/lib/python2.7/site-packages/celery/bin/<strong>init</strong>.py", line 2, in <br> from .base import Option<br> File "/home/chuck/.local/lib/python2.7/site-packages/celery/bin/base.py", line 16, in <br> from celery import VERSION_BANNER, Celery, maybe_patch_concurrency, signals<br> File "/home/chuck/.local/lib/python2.7/site-packages/celery/signals.py", line 16, in <br> from .utils.dispatch import Signal<br> File "/home/chuck/.local/lib/python2.7/site-packages/celery/utils/<strong>init</strong>.py", line 8, in <br> from .functional import memoize # noqa<br> File "/home/chuck/.local/lib/python2.7/site-packages/celery/utils/functional.py", line 10, in <br> from kombu.utils.functional import (LRUCache, dictfilter, is_list, lazy,<br> File "/home/chuck/.local/lib/python2.7/site-packages/kombu/utils/<strong>init</strong>.py", line 5, in <br> from .compat import fileno, maybe_fileno, nested, register_after_fork<br> File "/home/chuck/.local/lib/python2.7/site-packages/kombu/utils/compat.py", line 10, in <br> import importlib_metadata<br> File "/home/chuck/.local/lib/python2.7/site-packages/importlib_metadata/<strong>init</strong>.py", line 9, in <br> import zipp<br> File "/home/chuck/.local/lib/python2.7/site-packages/zipp.py", line 12, in <br> import more_itertools<br> File "/home/chuck/.local/lib/python2.7/site-packages/more_itertools/<strong>init</strong>.py", line 1, in <br> from more_itertools.more import * # noqa<br> File "/home/chuck/.local/lib/python2.7/site-packages/more_itertools/more.py", line 340<br> def _collate(*iterables, key=lambda a: a, reverse=False):<br> ^<br> SyntaxError: invalid syntax<br> )</p> <h1 dir="auto">Suggestions</h1> <p dir="auto">Please include the appropriate troubleshooting guidelines.</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues in this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one message broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue with retries, ETA/Countdown &amp; rate limits disabled.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 4.2.1 (windowlicker)</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.2.1 (windowlicker) kombu:4.2.1 py:3.6.4 billiard:3.5.0.4 redis:2.10.6 platform -&gt; system:Darwin arch:64bit imp:CPython settings -&gt; transport:redis results:redis://localhost/ BROKER_URL: 'redis://localhost:6379//' CELERY_RESULT_BACKEND: 'redis://localhost/' BROKER_TRANSPORT_OPTIONS: { 'visibility_timeout': 11700}"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.2.1 (windowlicker) kombu:4.2.1 py:3.6.4 billiard:3.5.0.4 redis:2.10.6 platform -&gt; system:Darwin arch:64bit imp:CPython settings -&gt; transport:redis results:redis://localhost/ BROKER_URL: 'redis://localhost:6379//' CELERY_RESULT_BACKEND: 'redis://localhost/' BROKER_TRANSPORT_OPTIONS: { 'visibility_timeout': 11700} </code></pre></div> <p dir="auto">Tried this with RabitMQ also. Same issue exists.</p> </details> <h1 dir="auto">Steps to Reproduce</h1> <p dir="auto">If I create a celery canvas with a <code class="notranslate">task - grouptask - task - task - grouptask - task</code>, it fails.<br> If I change it to <code class="notranslate">task - grouptask - task - grouptask - task</code>, it works</p> <h2 dir="auto">Minimally Reproducible Test Case</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" @celery_app.task def print_task(val): print(&quot;Running print_task. val is: {}&quot;.format(val)) final_task = celery.chain( print_task.si(val=&quot;Starter task&quot;), celery.group([ print_task.si(val='group1, task1'), print_task.si(val='group1, task2'), ]), print_task.si(val=&quot;group1, after-task&quot;), print_task.si(val=&quot;group1, after-task2&quot;), # &lt;---- commenting this makes it work celery.group([ print_task.si(val='group2, task1'), print_task.si(val='group2, task2'), ]), print_task.si(val=&quot;FINAL task&quot;), ) r = final_task() print(r.get())"><pre class="notranslate"> <span class="pl-en">@<span class="pl-s1">celery_app</span>.<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">print_task</span>(<span class="pl-s1">val</span>): <span class="pl-en">print</span>(<span class="pl-s">"Running print_task. val is: {}"</span>.<span class="pl-en">format</span>(<span class="pl-s1">val</span>)) <span class="pl-s1">final_task</span> <span class="pl-c1">=</span> <span class="pl-s1">celery</span>.<span class="pl-en">chain</span>( <span class="pl-s1">print_task</span>.<span class="pl-en">si</span>(<span class="pl-s1">val</span><span class="pl-c1">=</span><span class="pl-s">"Starter task"</span>), <span class="pl-s1">celery</span>.<span class="pl-en">group</span>([ <span class="pl-s1">print_task</span>.<span class="pl-en">si</span>(<span class="pl-s1">val</span><span class="pl-c1">=</span><span class="pl-s">'group1, task1'</span>), <span class="pl-s1">print_task</span>.<span class="pl-en">si</span>(<span class="pl-s1">val</span><span class="pl-c1">=</span><span class="pl-s">'group1, task2'</span>), ]), <span class="pl-s1">print_task</span>.<span class="pl-en">si</span>(<span class="pl-s1">val</span><span class="pl-c1">=</span><span class="pl-s">"group1, after-task"</span>), <span class="pl-s1">print_task</span>.<span class="pl-en">si</span>(<span class="pl-s1">val</span><span class="pl-c1">=</span><span class="pl-s">"group1, after-task2"</span>), <span class="pl-c"># &lt;---- commenting this makes it work</span> <span class="pl-s1">celery</span>.<span class="pl-en">group</span>([ <span class="pl-s1">print_task</span>.<span class="pl-en">si</span>(<span class="pl-s1">val</span><span class="pl-c1">=</span><span class="pl-s">'group2, task1'</span>), <span class="pl-s1">print_task</span>.<span class="pl-en">si</span>(<span class="pl-s1">val</span><span class="pl-c1">=</span><span class="pl-s">'group2, task2'</span>), ]), <span class="pl-s1">print_task</span>.<span class="pl-en">si</span>(<span class="pl-s1">val</span><span class="pl-c1">=</span><span class="pl-s">"FINAL task"</span>), ) <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-en">final_task</span>() <span class="pl-en">print</span>(<span class="pl-s1">r</span>.<span class="pl-en">get</span>())</pre></div> <p dir="auto">Also, when we do a <code class="notranslate">print(final_task)</code>, it shows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print_task(val='Starter task') | %(print_task([ print_task(val='group1, task1'), print_task(val='group1, task2') ], val='group1, after-task') | print_task(val='group1, after-task2') ) | %print_task([ print_task(val='group2, task1'), print_task(val='group2, task2') ], val='FINAL task')"><pre class="notranslate"><code class="notranslate">print_task(val='Starter task') | %(print_task([ print_task(val='group1, task1'), print_task(val='group1, task2') ], val='group1, after-task') | print_task(val='group1, after-task2') ) | %print_task([ print_task(val='group2, task1'), print_task(val='group2, task2') ], val='FINAL task') </code></pre></div> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: Python 3.6.4 :: Anaconda, Inc.</li> <li><strong>Minimal Broker Version</strong>: Redis 4.0.9</li> <li><strong>Minimal Result Backend Version</strong>: Redis 4.0.9</li> <li><strong>Minimal OS and/or Kernel Version</strong>: Mac OSX 10.13, Linux CentOS7</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <p dir="auto">I've also tried with latest git master versions of celery, kombu, amqp, redis-py, vine.</p> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">The output should have executed the entire canvas:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Running print_task. val is: Starter task Running print_task. val is: group1, task1 Running print_task. val is: group1, task2 Running print_task. val is: group1, after-task Running print_task. val is: group1, after-task2 Running print_task. val is: group2, task1 Running print_task. val is: group2, task2 Running print_task. val is: FINAL task"><pre class="notranslate"><code class="notranslate">Running print_task. val is: Starter task Running print_task. val is: group1, task1 Running print_task. val is: group1, task2 Running print_task. val is: group1, after-task Running print_task. val is: group1, after-task2 Running print_task. val is: group2, task1 Running print_task. val is: group2, task2 Running print_task. val is: FINAL task </code></pre></div> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">The tasks until <code class="notranslate">group1, after-task2</code> work fine. The <code class="notranslate">group1, after-task2</code> also completes execution according to celery logs.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Running print_task. val is: Starter task Running print_task. val is: group1, task1 Running print_task. val is: group1, task2 Running print_task. val is: group1, after-task Running print_task. val is: group1, after-task2 [2019-02-22 16:30:18,041: INFO/MainProcess] Task print_task[beaea403-5f2e-4b84-8f64-bcada7c07000] succeeded in 0.004693654947914183s: None"><pre class="notranslate"><code class="notranslate">Running print_task. val is: Starter task Running print_task. val is: group1, task1 Running print_task. val is: group1, task2 Running print_task. val is: group1, after-task Running print_task. val is: group1, after-task2 [2019-02-22 16:30:18,041: INFO/MainProcess] Task print_task[beaea403-5f2e-4b84-8f64-bcada7c07000] succeeded in 0.004693654947914183s: None </code></pre></div> <p dir="auto">The redis-cli shows that is completed too:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="127.0.0.1:6379&gt; get celery-task-meta-beaea403-5f2e-4b84-8f64-bcada7c07000 &quot;{\&quot;status\&quot;: \&quot;SUCCESS\&quot;, \&quot;result\&quot;: null, \&quot;traceback\&quot;: null, \&quot;children\&quot;: [], \&quot;task_id\&quot;: \&quot;beaea403-5f2e-4b84-8f64-bcada7c07000\&quot;}&quot;"><pre class="notranslate"><code class="notranslate">127.0.0.1:6379&gt; get celery-task-meta-beaea403-5f2e-4b84-8f64-bcada7c07000 "{\"status\": \"SUCCESS\", \"result\": null, \"traceback\": null, \"children\": [], \"task_id\": \"beaea403-5f2e-4b84-8f64-bcada7c07000\"}" </code></pre></div> <p dir="auto">But for some reason, the <code class="notranslate">children</code> is empty - even though there are children.</p>
0
<p dir="auto">It looks like <code class="notranslate">test_lib.d.ts</code> did not make it to DT yet, was this postponed until the next release or it hasn't even been considered?</p>
<p dir="auto">Currently we don't generate it during our build. This causes issues when using TestComponentBulider in tests with TS.</p>
1
<p dir="auto">It would be great to implement some simple mouse improvements for multi-monitor setups.</p> <p dir="auto">I have 2 monitors with different resolutions. When moving the mouse from one monitor to another, it can get "stuck" on corners where the monitors (which appear to the system as being of different "sizes") don't align. Adjusting for resolution to let the mouse travel from the upper-left corner of one monitor to the upper-right corner of the next (and lower-left to lower-right) would make my setup much easier to use.</p> <p dir="auto">The open source app LittleBigMouse does this pretty well, but the configuration is very slow and it is somewhat flaky on startup. It also appears to be abandoned. I don't know anything about the source, but at least you can see what it does and try it out to see if you think it improves the standard Windows mouse handling.</p> <p dir="auto">I think this type of functionality would fit in well with the PowerToys portfolio.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">For some shortcuts there is no way to natively deactivate them. Implementing the option to remap them to do nothing / deativate them would allow users to get rid of unwanted shortcuts.</p> <p dir="auto">This is especially useful for shortcuts that easily get triggered by accident. For example, I sometimes press Alt and Tab in close succession and it is always very annoying when the window switches because of this.</p>
0
<p dir="auto">React version: 16.12.0</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>Use <code class="notranslate">renderToString</code> to render <code class="notranslate">&lt;source&gt;</code> element with <code class="notranslate">srcset</code> attribute</li> </ol> <p dir="auto">Link to code example: <a href="https://codesandbox.io/s/react-dom-camelcase-bug-1rnxt" rel="nofollow">https://codesandbox.io/s/react-dom-camelcase-bug-1rnxt</a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto"><code class="notranslate">srcSet</code> isn't transformed to <code class="notranslate">srcset</code></p> <h2 dir="auto">The expected behavior</h2> <p dir="auto"><code class="notranslate">srcSet</code> becomes <code class="notranslate">srcset</code></p>
<p dir="auto">There seems to be a lot of misunderstanding in the react community about how <code class="notranslate">defaultValue</code> works. It is often expected that if the <code class="notranslate">defaultValue</code> of an element is changed then that should be reflected in the UI. This is not the case since <code class="notranslate">defaultValue</code> is only set when the component is first rendered.</p> <p dir="auto">When people complain about this (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="32854511" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/1484" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/1484/hovercard" href="https://github.com/facebook/react/issues/1484">#1484</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35240087" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/1663" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/1663/hovercard" href="https://github.com/facebook/react/issues/1663">#1663</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="52674317" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/2764" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/2764/hovercard" href="https://github.com/facebook/react/issues/2764">#2764</a>) it is usually suggested that they use <code class="notranslate">value</code> instead of <code class="notranslate">defaultValue</code> but this is often seen as unpractical in a form were there are many input fields since all fields now need an <code class="notranslate">onChange</code> listener to be editable. (This is not actually true, you can put an <code class="notranslate">onChange</code> listener on a wrapping element but this generates a lot of warnings <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="27759736" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/1118" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/1118/hovercard" href="https://github.com/facebook/react/issues/1118">#1118</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="56754472" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/3070" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/3070/hovercard" href="https://github.com/facebook/react/issues/3070">#3070</a>).</p> <p dir="auto">I feel that none of the above solutions are practical, but an easy solution is to set a <code class="notranslate">key</code> attribute on a wrapping element. If the form contains elements with <code class="notranslate">defaultValue</code> fields that are changed along with the key, the change will be reflected in the UI.</p> <p dir="auto">I think this is a good solution for a common UI case where you have a list of entities you want to be able to edit. If you click one of them a form shows up with the entity value populated and if you click on another element you want the form to be updated with that entity's data.</p> <p dir="auto">Perhaps it could be documented in order to avoid future confusion. Or is there an even better solution?</p>
0
<p dir="auto"><code class="notranslate">rustc</code> is not checking that all types that are put into a sized-context are in fact sized.</p> <p dir="auto">Consider for example:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub enum BsonValue { A([u8]), B([BsonValue]), } pub fn set_value(_v:&amp;BsonValue) { } fn main() { }"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">enum</span> <span class="pl-smi">BsonValue</span> <span class="pl-kos">{</span> <span class="pl-v">A</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">B</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-smi">BsonValue</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">set_value</span><span class="pl-kos">(</span><span class="pl-s1">_v</span><span class="pl-kos">:</span><span class="pl-c1">&amp;</span><span class="pl-smi">BsonValue</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">This yields an ICE:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' panicked at 'Unexpected type returned from struct_tail: BsonValue for ty=BsonValue', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/librustc_trans/trans/type_of.rs:366"><pre class="notranslate"><code class="notranslate">thread 'rustc' panicked at 'Unexpected type returned from struct_tail: BsonValue for ty=BsonValue', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/librustc_trans/trans/type_of.rs:366 </code></pre></div> <h2 dir="auto">Original bug report follows</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="erics-air-2:Elmo eric$ rustc --version rustc 1.0.0-beta.3 (5241bf9c3 2015-04-25) (built 2015-04-25)"><pre class="notranslate"><code class="notranslate">erics-air-2:Elmo eric$ rustc --version rustc 1.0.0-beta.3 (5241bf9c3 2015-04-25) (built 2015-04-25) </code></pre></div> <p dir="auto">I'm on MacOS X Mavericks.</p> <p dir="auto">Here's the source file that causes the problem (I'm a rust newbie):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="enum BsonValue { BDouble(f64), BString(String), BInt64(i64), BInt32(i32), BUndefined, BObjectID([u8]), BNull, BRegex(String,String), BJSCode(String), BJSCodeWithScope(String), BBinary(u8,[u8]), BMinKey, BMaxKey, BDateTime(i64), BTimeStamp(i64), BBoolean(bool), BArray([BsonValue]), BDocument([(String,BsonValue)]), } fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) { } fn main() { }"><pre class="notranslate"><code class="notranslate">enum BsonValue { BDouble(f64), BString(String), BInt64(i64), BInt32(i32), BUndefined, BObjectID([u8]), BNull, BRegex(String,String), BJSCode(String), BJSCodeWithScope(String), BBinary(u8,[u8]), BMinKey, BMaxKey, BDateTime(i64), BTimeStamp(i64), BBoolean(bool), BArray([BsonValue]), BDocument([(String,BsonValue)]), } fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) { } fn main() { } </code></pre></div> <p dir="auto">And here's the output of the compiler:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="erics-air-2:Elmo eric$ RUST_BACKTRACE=1 rustc b.rs b.rs:2:1: 21:2 warning: enum is never used: `BsonValue`, #[warn(dead_code)] on by default b.rs:2 enum BsonValue { b.rs:3 BDouble(f64), b.rs:4 BString(String), b.rs:5 BInt64(i64), b.rs:6 BInt32(i32), b.rs:7 BUndefined, ... b.rs:23:1: 25:2 warning: function is never used: `setValueForKey`, #[warn(dead_code)] on by default b.rs:23 fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) b.rs:24 { b.rs:25 } b.rs:23:20: 23:23 warning: unused variable: `doc`, #[warn(unused_variables)] on by default b.rs:23 fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) ^~~ b.rs:23:36: 23:37 warning: unused variable: `k`, #[warn(unused_variables)] on by default b.rs:23 fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) ^ b.rs:23:46: 23:47 warning: unused variable: `v`, #[warn(unused_variables)] on by default b.rs:23 fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) ^ b.rs:23:1: 25:2 warning: function `setValueForKey` should have a snake case name such as `set_value_for_key`, #[warn(non_snake_case)] on by default b.rs:23 fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) b.rs:24 { b.rs:25 } error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Unexpected type returned from struct_tail: BsonValue for ty=BsonValue', /Users/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-mac/build/src/librustc_trans/trans/type_of.rs:366 stack backtrace: 1: 0x1085cc33f - sys::backtrace::write::h0f2fc53eb11eb814gWr 2: 0x1085d4942 - panicking::on_panic::hd617a4042e8486fciUv 3: 0x108591375 - rt::unwind::begin_unwind_inner::hd84dfec22ac3667d1Bv 4: 0x108592206 - rt::unwind::begin_unwind_fmt::h5bb6fa95bd57b24bFAv 5: 0x10566046f - trans::type_of::in_memory_type_of::hb4e9c324c5b50f3epkL 6: 0x105732682 - trans::type_of::type_of_rust_fn::h693a4c7fdf6ff62b87K 7: 0x10566e00c - trans::declare::declare_rust_fn::hb0911ef870c7fe86SJz 8: 0x10569462f - trans::base::register_fn::ha9cdc6c185aa084bVmi 9: 0x10568f2d1 - trans::base::get_item_val::hfda21a63917f43e1Dzi 10: 0x10568b3c7 - trans::base::trans_item::h2033cab24c2319dbFbi 11: 0x10569a220 - trans::base::trans_crate::h3375b1d0f4de8d89F0i 12: 0x10511ed4e - driver::phase_4_translate_to_llvm::hc94112f0d91aac3chOa 13: 0x1050f72a4 - driver::compile_input::h4747d8bb1c595fdfQba 14: 0x1051be8f3 - run_compiler::hc8c95c5858347fdbz4b 15: 0x1051bc41a - boxed::F.FnBox&lt;A&gt;::call_box::h7872786064439979928 16: 0x1051bb8b7 - rt::unwind::try::try_fn::h10239991317224243769 17: 0x1086557c8 - rust_try_inner 18: 0x1086557b5 - rust_try 19: 0x1051bbb90 - boxed::F.FnBox&lt;A&gt;::call_box::h4543691575426869824 20: 0x1085d348d - sys::thread::create::thread_start::h499b3be451a7bbb8AZu 21: 0x7fff8aca1898 - _pthread_body 22: 0x7fff8aca1729 - _pthread_start"><pre class="notranslate"><code class="notranslate">erics-air-2:Elmo eric$ RUST_BACKTRACE=1 rustc b.rs b.rs:2:1: 21:2 warning: enum is never used: `BsonValue`, #[warn(dead_code)] on by default b.rs:2 enum BsonValue { b.rs:3 BDouble(f64), b.rs:4 BString(String), b.rs:5 BInt64(i64), b.rs:6 BInt32(i32), b.rs:7 BUndefined, ... b.rs:23:1: 25:2 warning: function is never used: `setValueForKey`, #[warn(dead_code)] on by default b.rs:23 fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) b.rs:24 { b.rs:25 } b.rs:23:20: 23:23 warning: unused variable: `doc`, #[warn(unused_variables)] on by default b.rs:23 fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) ^~~ b.rs:23:36: 23:37 warning: unused variable: `k`, #[warn(unused_variables)] on by default b.rs:23 fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) ^ b.rs:23:46: 23:47 warning: unused variable: `v`, #[warn(unused_variables)] on by default b.rs:23 fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) ^ b.rs:23:1: 25:2 warning: function `setValueForKey` should have a snake case name such as `set_value_for_key`, #[warn(non_snake_case)] on by default b.rs:23 fn setValueForKey (doc:&amp;BsonValue, k:String, v:&amp;BsonValue) b.rs:24 { b.rs:25 } error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Unexpected type returned from struct_tail: BsonValue for ty=BsonValue', /Users/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-mac/build/src/librustc_trans/trans/type_of.rs:366 stack backtrace: 1: 0x1085cc33f - sys::backtrace::write::h0f2fc53eb11eb814gWr 2: 0x1085d4942 - panicking::on_panic::hd617a4042e8486fciUv 3: 0x108591375 - rt::unwind::begin_unwind_inner::hd84dfec22ac3667d1Bv 4: 0x108592206 - rt::unwind::begin_unwind_fmt::h5bb6fa95bd57b24bFAv 5: 0x10566046f - trans::type_of::in_memory_type_of::hb4e9c324c5b50f3epkL 6: 0x105732682 - trans::type_of::type_of_rust_fn::h693a4c7fdf6ff62b87K 7: 0x10566e00c - trans::declare::declare_rust_fn::hb0911ef870c7fe86SJz 8: 0x10569462f - trans::base::register_fn::ha9cdc6c185aa084bVmi 9: 0x10568f2d1 - trans::base::get_item_val::hfda21a63917f43e1Dzi 10: 0x10568b3c7 - trans::base::trans_item::h2033cab24c2319dbFbi 11: 0x10569a220 - trans::base::trans_crate::h3375b1d0f4de8d89F0i 12: 0x10511ed4e - driver::phase_4_translate_to_llvm::hc94112f0d91aac3chOa 13: 0x1050f72a4 - driver::compile_input::h4747d8bb1c595fdfQba 14: 0x1051be8f3 - run_compiler::hc8c95c5858347fdbz4b 15: 0x1051bc41a - boxed::F.FnBox&lt;A&gt;::call_box::h7872786064439979928 16: 0x1051bb8b7 - rt::unwind::try::try_fn::h10239991317224243769 17: 0x1086557c8 - rust_try_inner 18: 0x1086557b5 - rust_try 19: 0x1051bbb90 - boxed::F.FnBox&lt;A&gt;::call_box::h4543691575426869824 20: 0x1085d348d - sys::thread::create::thread_start::h499b3be451a7bbb8AZu 21: 0x7fff8aca1898 - _pthread_body 22: 0x7fff8aca1729 - _pthread_start </code></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="enum Foo { Bar(int, [int]), } fn main() { // Either of these lines can cause the ICE let _x: &amp;(int, [int]); let _y: &amp;Foo; }"><pre class="notranslate"><span class="pl-k">enum</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-v">Bar</span><span class="pl-kos">(</span><span class="pl-smi">int</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-smi">int</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Either of these lines can cause the ICE</span> <span class="pl-k">let</span> _x<span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-kos">(</span><span class="pl-smi">int</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-smi">int</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> _y<span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">Foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Backtrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 1: 0x7f2a127e8580 - rt::backtrace::imp::write::h0180e7ded76a3ff2c0q 2: 0x7f2a127eb770 - failure::on_fail::h3f169393c89b5f90Tlr 3: 0x7f2a12fd24f0 - unwind::begin_unwind_inner::haeb9517b5061bc86Zie 4: 0x7f2a133ad670 - unwind::begin_unwind::h17017358962417336117 5: 0x7f2a13803a20 - middle::ty::unsized_part_of_type::h8eae6d239e9b7af3tnG 6: 0x7f2a138037c0 - middle::trans::type_of::type_of::type_of_unsize_info::h67819f63aa2acfb5Xh9 7: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 8: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 9: 0x7f2a137b0860 - middle::trans::base::alloc_ty::h5485998eeb61d023mTd 10: 0x7f2a13859870 - middle::trans::_match::mk_binding_alloca::h11628361498234501597 11: 0x7f2a1385bdf0 - middle::trans::_match::store_local::create_dummy_locals::closure.119283 12: 0x7f2a13681560 - middle::pat_util::pat_bindings::closure.112016 13: 0x7f2a0ea1ccb0 - ast_util::walk_pat::hc858153057fb5965oRB 14: 0x7f2a138205f0 - middle::trans::_match::store_local::h9195017fe21b4124A2h 15: 0x7f2a13772d10 - middle::trans::base::init_local::h5e8a493dc2ae05b1WFd 16: 0x7f2a13772220 - middle::trans::controlflow::trans_stmt::hf26d5cee55a6056blhY 17: 0x7f2a13773c40 - middle::trans::controlflow::trans_block::h004dea36138a75c8wmY 18: 0x7f2a13829560 - middle::trans::base::trans_closure::h655acfc433ac13fevye 19: 0x7f2a13764670 - middle::trans::base::trans_fn::hf0a444fa9ff43aebiKe 20: 0x7f2a1375f9b0 - middle::trans::base::trans_item::hda4d4160cb2b58dfi2e 21: 0x7f2a138341f0 - middle::trans::base::trans_crate::hff0f87c98e6356c8JWf 22: 0x7f2a13c058d0 - driver::driver::phase_4_translate_to_llvm::h8223ee9d7ab4951cpzy 23: 0x7f2a13bfd280 - driver::driver::compile_input::hfa4fd95c9e6a2ceeQby 24: 0x7f2a13c8f0a0 - driver::run_compiler::h32bdccca6ed9465cJIB 25: 0x7f2a13c8efb0 - driver::main_args::closure.138206 26: 0x7f2a13ca1240 - task::TaskBuilder&lt;S&gt;::try_future::closure.139324 27: 0x7f2a13ca1040 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.139301 28: 0x7f2a146dcf10 - task::spawn_opts::closure.8369 29: 0x7f2a1302af90 - rust_try_inner 30: 0x7f2a1302af80 - rust_try 31: 0x7f2a12fcfb20 - unwind::try::h03d8d1d4cb0de0c1f7d 32: 0x7f2a12fcf8e0 - task::Task::run::hafab6bcab45e61e5zdd 33: 0x7f2a146dcc70 - task::spawn_opts::closure.8315 34: 0x7f2a12fd16e0 - thread::thread_start::hba588af1f803bb5blCd 35: 0x7f2a1227f0c0 - start_thread 36: 0x7f2a12c99359 - __clone 37: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate"> 1: 0x7f2a127e8580 - rt::backtrace::imp::write::h0180e7ded76a3ff2c0q 2: 0x7f2a127eb770 - failure::on_fail::h3f169393c89b5f90Tlr 3: 0x7f2a12fd24f0 - unwind::begin_unwind_inner::haeb9517b5061bc86Zie 4: 0x7f2a133ad670 - unwind::begin_unwind::h17017358962417336117 5: 0x7f2a13803a20 - middle::ty::unsized_part_of_type::h8eae6d239e9b7af3tnG 6: 0x7f2a138037c0 - middle::trans::type_of::type_of::type_of_unsize_info::h67819f63aa2acfb5Xh9 7: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 8: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 9: 0x7f2a137b0860 - middle::trans::base::alloc_ty::h5485998eeb61d023mTd 10: 0x7f2a13859870 - middle::trans::_match::mk_binding_alloca::h11628361498234501597 11: 0x7f2a1385bdf0 - middle::trans::_match::store_local::create_dummy_locals::closure.119283 12: 0x7f2a13681560 - middle::pat_util::pat_bindings::closure.112016 13: 0x7f2a0ea1ccb0 - ast_util::walk_pat::hc858153057fb5965oRB 14: 0x7f2a138205f0 - middle::trans::_match::store_local::h9195017fe21b4124A2h 15: 0x7f2a13772d10 - middle::trans::base::init_local::h5e8a493dc2ae05b1WFd 16: 0x7f2a13772220 - middle::trans::controlflow::trans_stmt::hf26d5cee55a6056blhY 17: 0x7f2a13773c40 - middle::trans::controlflow::trans_block::h004dea36138a75c8wmY 18: 0x7f2a13829560 - middle::trans::base::trans_closure::h655acfc433ac13fevye 19: 0x7f2a13764670 - middle::trans::base::trans_fn::hf0a444fa9ff43aebiKe 20: 0x7f2a1375f9b0 - middle::trans::base::trans_item::hda4d4160cb2b58dfi2e 21: 0x7f2a138341f0 - middle::trans::base::trans_crate::hff0f87c98e6356c8JWf 22: 0x7f2a13c058d0 - driver::driver::phase_4_translate_to_llvm::h8223ee9d7ab4951cpzy 23: 0x7f2a13bfd280 - driver::driver::compile_input::hfa4fd95c9e6a2ceeQby 24: 0x7f2a13c8f0a0 - driver::run_compiler::h32bdccca6ed9465cJIB 25: 0x7f2a13c8efb0 - driver::main_args::closure.138206 26: 0x7f2a13ca1240 - task::TaskBuilder&lt;S&gt;::try_future::closure.139324 27: 0x7f2a13ca1040 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.139301 28: 0x7f2a146dcf10 - task::spawn_opts::closure.8369 29: 0x7f2a1302af90 - rust_try_inner 30: 0x7f2a1302af80 - rust_try 31: 0x7f2a12fcfb20 - unwind::try::h03d8d1d4cb0de0c1f7d 32: 0x7f2a12fcf8e0 - task::Task::run::hafab6bcab45e61e5zdd 33: 0x7f2a146dcc70 - task::spawn_opts::closure.8315 34: 0x7f2a12fd16e0 - thread::thread_start::hba588af1f803bb5blCd 35: 0x7f2a1227f0c0 - start_thread 36: 0x7f2a12c99359 - __clone 37: 0x0 - &lt;unknown&gt; </code></pre></div> <p dir="auto">This seems to occur when using a non-struct type that contains an unsized type. This is probably because <a href="https://github.com/rust-lang/rust/blob/7932b719ec2b65acfa8c3e74aad29346d47ee992/src/librustc/middle/ty.rs#L2938-L2956"><code class="notranslate">unsized_part_of_type</code></a> only handles <code class="notranslate">ty_struct</code> and the base unsized types. This should be extended to handle enums and tuples as well.</p>
1
<h1 dir="auto">Examples bug report</h1> <h2 dir="auto">Example name</h2> <p dir="auto">with-firebase-authentication</p> <h2 dir="auto">Describe the bug</h2> <p dir="auto">It is not really a bug but a request for serverless implementation of with-firebase-authentication example. Currently, this example uses a custom server which makes it ineligible for deploying to a serverless environment. It would be very helpful if a serverless target version of this example could be provided.</p> <h2 dir="auto">Additional context</h2> <p dir="auto">A serverless target example will make the deployment of firebase projects very easy and also help as a good model for developers to migrate their projects from custom server to serverless. A guide along these lines would also be very helpful.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I should have a way to copy files to root of <code class="notranslate">out</code> folder while doing <code class="notranslate">next export</code>. I thought about doing this in <code class="notranslate">exportPathMap</code> in <code class="notranslate">next.config.js</code> but I am not sure when <code class="notranslate">out</code> folder will be created for me to copy files.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I could not find how to do this in docs, so, I am not sure if it is possible. Is there a standard way of doing this?</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">NA</p> <h2 dir="auto">Context</h2> <p dir="auto">I was trying to setup <a href="https://www.netlify.com/docs/redirects/" rel="nofollow">netlify redirect</a> and that requires me to place a <code class="notranslate">_redirects</code> file in the <code class="notranslate">out</code> folder. I am not clear yet on how to achieve that in the build step.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>v4.2.3</td> </tr> <tr> <td>node</td> <td>v8.4.0</td> </tr> <tr> <td>OS</td> <td>MacOS high sierra 10.13.3</td> </tr> <tr> <td>browser</td> <td>63.0.3239.132</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">To check if all routes have been secured properly it would be really good to have the <code class="notranslate">router:debug</code> command accept a role as parameter to only show the routes available to that role.</p>
<p dir="auto">Hello,</p> <p dir="auto">Do you know if it's possible to check if a ROLE can access to a route depending on the configuration of the firewall.</p> <p dir="auto">I would like to create a controller to redirect to a route automatically but only if the user have a ROLE allowed to access the route.</p> <p dir="auto">for example, if I have the following configuration:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" access_control: - { path: ^/secured/activities, roles: ROLE_CLIENT } - { path: ^/secured/client/user, roles: ROLE_ADMINISTRATOR }"><pre class="notranslate"> <span class="pl-ent">access_control</span>: - <span class="pl-s">{ path: ^/secured/activities, roles: ROLE_CLIENT }</span> - <span class="pl-s">{ path: ^/secured/client/user, roles: ROLE_ADMINISTRATOR }</span></pre></div> <p dir="auto">From a controller I would like to be able to check like this:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$targetPath = $request-&gt;getSession()-&gt;get('_security.target_path'); if ($this-&gt;securityContext-&gt;isGrantedForRoute('ROLE_ADMINISTRATOR', $targetPath) { return new RedirectResponse($targetPath); }"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>targetPath</span> = <span class="pl-s1"><span class="pl-c1">$</span>request</span>-&gt;<span class="pl-en">getSession</span>()-&gt;<span class="pl-en">get</span>(<span class="pl-s">'_security.target_path'</span>); <span class="pl-k">if</span> (<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">securityContext</span>-&gt;<span class="pl-en">isGrantedForRoute</span>(<span class="pl-s">'ROLE_ADMINISTRATOR'</span>, <span class="pl-s1"><span class="pl-c1">$</span>targetPath</span>) { return <span class="pl-k">new</span> <span class="pl-v">RedirectResponse</span>(<span class="pl-s1"><span class="pl-c1">$</span>targetPath</span>); }</pre></div> <p dir="auto">isGrantedRoute doesn't exists, but it's just to show the thing I would like to do. I would like to be able to do that because, I have a login form and I would like to redirect on same the path the user was before he loose it's session, but depending on it's rights, we can't redirect on this path. I created an ExceptionListener like this: <a href="http://symfony.com/doc/master/cookbook/security/target_path.html" rel="nofollow">http://symfony.com/doc/master/cookbook/security/target_path.html</a> to set the last route in session.</p> <p dir="auto">For example if the user connects with ROLE_ADMINISTRATOR, and access to /secured/client/user, wait 30 min, loose the session and reconnect with ROLE_CLIENT, we must not redirect him on /secured/client/user.</p>
1
<p dir="auto">Runnin <code class="notranslate">cargo install deno --locked</code>, with rustc 1.62.0 on Fedora 36 causes the following failure:<br> (Set <code class="notranslate">$RUST_BACKTRACE</code> to <code class="notranslate">full</code>)</p> <details> <summary>error: failed to run custom build command for 'deno_snapshots v0.1.0</summary> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Caused by: process didn't exit successfully: `/tmp/cargo-installm0nvVB/release/build/deno_snapshots-5d2af0c0924ae010/build-script-build` (exit status: 101) --- stdout Snapshot size: 2148688 Snapshot compressed size: 548605 Snapshot written to: /tmp/cargo-installm0nvVB/release/build/deno_snapshots-5c8bb8085c9667c4/out/CLI_SNAPSHOT.bin cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_broadcast_channel-0.53.0/lib.deno_broadcast_channel.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_websocket-0.64.0/lib.deno_websocket.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno_webgpu.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_webstorage-0.54.0/lib.deno_webstorage.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_console-0.59.0/lib.deno_console.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_url-0.59.0/lib.deno_url.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_web-0.90.0/lib.deno_web.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_net-0.51.0/lib.deno_net.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_crypto-0.73.0/lib.deno_crypto.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_fetch-0.82.0/lib.deno_fetch.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno.window.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno.worker.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno.shared_globals.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno.ns.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno.unstable.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es5.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.collection.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.core.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.generator.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.iterable.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.promise.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.proxy.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.reflect.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.symbol.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.symbol.wellknown.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2016.array.include.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2016.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.intl.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.object.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.sharedmemory.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.string.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.typedarrays.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.asyncgenerator.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.asynciterable.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.intl.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.promise.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.regexp.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2019.array.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2019.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2019.object.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2019.string.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2019.symbol.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.bigint.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.date.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.intl.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.number.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.promise.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.sharedmemory.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.string.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.symbol.wellknown.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2021.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2021.intl.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2021.promise.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2021.string.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2021.weakref.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.array.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.error.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.intl.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.object.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.string.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.esnext.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.esnext.array.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.esnext.intl.d.ts --- stderr thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: &quot;No such file or directory&quot; }', /home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_snapshots-0.1.0/build_tsc.rs:316:6 stack backtrace: 0: 0x55a4a3fec06d - std::backtrace_rs::backtrace::libunwind::trace::hb729d9642bb971eb at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x55a4a3fec06d - std::backtrace_rs::backtrace::trace_unsynchronized::h373bb774579df5c7 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x55a4a3fec06d - std::sys_common::backtrace::_print_fmt::hfbd4e92d240c89bb at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/sys_common/backtrace.rs:66:5 3: 0x55a4a3fec06d - &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt::h8f618991fbf64972 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/sys_common/backtrace.rs:45:22 4: 0x55a4a400fd5c - core::fmt::write::hc69b5b640d88cce8 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/fmt/mod.rs:1196:17 5: 0x55a4a3fe5c01 - std::io::Write::write_fmt::h3403cef06a24a303 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/io/mod.rs:1654:15 6: 0x55a4a3fed885 - std::sys_common::backtrace::_print::h368f27cdedea0e52 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/sys_common/backtrace.rs:48:5 7: 0x55a4a3fed885 - std::sys_common::backtrace::print::ha105c9cf5a64cd17 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/sys_common/backtrace.rs:35:9 8: 0x55a4a3fed885 - std::panicking::default_hook::{{closure}}::h48ed2c3707d5e20e at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:295:22 9: 0x55a4a3fed4f9 - std::panicking::default_hook::h8744fc5cea5e3110 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:314:9 10: 0x55a4a3fede58 - std::panicking::rust_panic_with_hook::hc82286af2030e925 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:698:17 11: 0x55a4a3fedd07 - std::panicking::begin_panic_handler::{{closure}}::h1c15057c2f09081f at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:588:13 12: 0x55a4a3fec524 - std::sys_common::backtrace::__rust_end_short_backtrace::h65de906a5330f8da at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/sys_common/backtrace.rs:138:18 13: 0x55a4a3feda39 - rust_begin_unwind at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:584:5 14: 0x55a4a12d10f3 - core::panicking::panic_fmt::h741cfbfc95bc6112 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/panicking.rs:142:14 15: 0x55a4a12d11e3 - core::result::unwrap_failed::h995262f85f9c4e2c at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/result.rs:1785:5 16: 0x55a4a132dbfd - core::result::Result&lt;T,E&gt;::unwrap::h0bf6bf4dd3ba070c 17: 0x55a4a130d9d7 - build_script_build::build_tsc::get_js_files::h513898c86c19c27c 18: 0x55a4a130d061 - build_script_build::build_tsc::load_js_files::h46376643c9217b07 19: 0x55a4a130b47f - build_script_build::build_tsc::create_tsc_snapshot::h8d1d13491be3038d 20: 0x55a4a12fc1bf - build_script_build::main::hc4683bc0394cde9a 21: 0x55a4a1323683 - core::ops::function::FnOnce::call_once::h33861e106e61b3da 22: 0x55a4a12ff099 - std::sys_common::backtrace::__rust_begin_short_backtrace::hf05c6eb2073cff0b 23: 0x55a4a133c739 - std::rt::lang_start::{{closure}}::h8b1c9fe4f93cc364 24: 0x55a4a3fe0aae - core::ops::function::impls::&lt;impl core::ops::function::FnOnce&lt;A&gt; for &amp;F&gt;::call_once::hf833e7144973d4be at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/ops/function.rs:280:13 25: 0x55a4a3fe0aae - std::panicking::try::do_call::h79761d203bfb6b46 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:492:40 26: 0x55a4a3fe0aae - std::panicking::try::h0561cbbe1722251d at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:456:19 27: 0x55a4a3fe0aae - std::panic::catch_unwind::hbca347ddd031b141 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panic.rs:137:14 28: 0x55a4a3fe0aae - std::rt::lang_start_internal::{{closure}}::h0492050ad281ec32 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/rt.rs:128:48 29: 0x55a4a3fe0aae - std::panicking::try::do_call::h3ebce69871996bb3 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:492:40 30: 0x55a4a3fe0aae - std::panicking::try::hbed537d20e728475 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:456:19 31: 0x55a4a3fe0aae - std::panic::catch_unwind::h4185e2024c6a5d05 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panic.rs:137:14 32: 0x55a4a3fe0aae - std::rt::lang_start_internal::h1899cfd715ca6829 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/rt.rs:128:20 33: 0x55a4a133c721 - std::rt::lang_start::hb88813bebea56cc4 34: 0x55a4a12fc213 - main 35: 0x7fa404f1f550 - __libc_start_call_main 36: 0x7fa404f1f609 - __libc_start_main_alias_1 37: 0x55a4a12d19c5 - _start 38: 0x0 - &lt;unknown&gt; warning: build failed, waiting for other jobs to finish... error: failed to compile `deno v1.23.2`, intermediate artifacts can be found at `/tmp/cargo-installm0nvVB`"><pre class="notranslate"><code class="notranslate">Caused by: process didn't exit successfully: `/tmp/cargo-installm0nvVB/release/build/deno_snapshots-5d2af0c0924ae010/build-script-build` (exit status: 101) --- stdout Snapshot size: 2148688 Snapshot compressed size: 548605 Snapshot written to: /tmp/cargo-installm0nvVB/release/build/deno_snapshots-5c8bb8085c9667c4/out/CLI_SNAPSHOT.bin cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_broadcast_channel-0.53.0/lib.deno_broadcast_channel.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_websocket-0.64.0/lib.deno_websocket.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno_webgpu.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_webstorage-0.54.0/lib.deno_webstorage.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_console-0.59.0/lib.deno_console.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_url-0.59.0/lib.deno_url.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_web-0.90.0/lib.deno_web.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_net-0.51.0/lib.deno_net.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_crypto-0.73.0/lib.deno_crypto.d.ts cargo:rerun-if-changed=/home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_fetch-0.82.0/lib.deno_fetch.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno.window.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno.worker.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno.shared_globals.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno.ns.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.deno.unstable.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es5.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.collection.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.core.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.generator.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.iterable.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.promise.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.proxy.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.reflect.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.symbol.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2015.symbol.wellknown.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2016.array.include.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2016.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.intl.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.object.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.sharedmemory.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.string.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2017.typedarrays.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.asyncgenerator.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.asynciterable.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.intl.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.promise.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2018.regexp.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2019.array.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2019.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2019.object.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2019.string.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2019.symbol.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.bigint.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.date.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.intl.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.number.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.promise.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.sharedmemory.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.string.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2020.symbol.wellknown.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2021.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2021.intl.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2021.promise.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2021.string.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2021.weakref.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.array.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.error.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.intl.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.object.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.es2022.string.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.esnext.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.esnext.array.d.ts cargo:rerun-if-changed=V:\deno/cli/dts/lib.esnext.intl.d.ts --- stderr thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/siilwyn/.cache/cargo/registry/src/github.com-1ecc6299db9ec823/deno_snapshots-0.1.0/build_tsc.rs:316:6 stack backtrace: 0: 0x55a4a3fec06d - std::backtrace_rs::backtrace::libunwind::trace::hb729d9642bb971eb at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x55a4a3fec06d - std::backtrace_rs::backtrace::trace_unsynchronized::h373bb774579df5c7 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x55a4a3fec06d - std::sys_common::backtrace::_print_fmt::hfbd4e92d240c89bb at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/sys_common/backtrace.rs:66:5 3: 0x55a4a3fec06d - &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt::h8f618991fbf64972 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/sys_common/backtrace.rs:45:22 4: 0x55a4a400fd5c - core::fmt::write::hc69b5b640d88cce8 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/fmt/mod.rs:1196:17 5: 0x55a4a3fe5c01 - std::io::Write::write_fmt::h3403cef06a24a303 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/io/mod.rs:1654:15 6: 0x55a4a3fed885 - std::sys_common::backtrace::_print::h368f27cdedea0e52 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/sys_common/backtrace.rs:48:5 7: 0x55a4a3fed885 - std::sys_common::backtrace::print::ha105c9cf5a64cd17 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/sys_common/backtrace.rs:35:9 8: 0x55a4a3fed885 - std::panicking::default_hook::{{closure}}::h48ed2c3707d5e20e at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:295:22 9: 0x55a4a3fed4f9 - std::panicking::default_hook::h8744fc5cea5e3110 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:314:9 10: 0x55a4a3fede58 - std::panicking::rust_panic_with_hook::hc82286af2030e925 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:698:17 11: 0x55a4a3fedd07 - std::panicking::begin_panic_handler::{{closure}}::h1c15057c2f09081f at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:588:13 12: 0x55a4a3fec524 - std::sys_common::backtrace::__rust_end_short_backtrace::h65de906a5330f8da at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/sys_common/backtrace.rs:138:18 13: 0x55a4a3feda39 - rust_begin_unwind at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:584:5 14: 0x55a4a12d10f3 - core::panicking::panic_fmt::h741cfbfc95bc6112 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/panicking.rs:142:14 15: 0x55a4a12d11e3 - core::result::unwrap_failed::h995262f85f9c4e2c at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/result.rs:1785:5 16: 0x55a4a132dbfd - core::result::Result&lt;T,E&gt;::unwrap::h0bf6bf4dd3ba070c 17: 0x55a4a130d9d7 - build_script_build::build_tsc::get_js_files::h513898c86c19c27c 18: 0x55a4a130d061 - build_script_build::build_tsc::load_js_files::h46376643c9217b07 19: 0x55a4a130b47f - build_script_build::build_tsc::create_tsc_snapshot::h8d1d13491be3038d 20: 0x55a4a12fc1bf - build_script_build::main::hc4683bc0394cde9a 21: 0x55a4a1323683 - core::ops::function::FnOnce::call_once::h33861e106e61b3da 22: 0x55a4a12ff099 - std::sys_common::backtrace::__rust_begin_short_backtrace::hf05c6eb2073cff0b 23: 0x55a4a133c739 - std::rt::lang_start::{{closure}}::h8b1c9fe4f93cc364 24: 0x55a4a3fe0aae - core::ops::function::impls::&lt;impl core::ops::function::FnOnce&lt;A&gt; for &amp;F&gt;::call_once::hf833e7144973d4be at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/ops/function.rs:280:13 25: 0x55a4a3fe0aae - std::panicking::try::do_call::h79761d203bfb6b46 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:492:40 26: 0x55a4a3fe0aae - std::panicking::try::h0561cbbe1722251d at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:456:19 27: 0x55a4a3fe0aae - std::panic::catch_unwind::hbca347ddd031b141 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panic.rs:137:14 28: 0x55a4a3fe0aae - std::rt::lang_start_internal::{{closure}}::h0492050ad281ec32 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/rt.rs:128:48 29: 0x55a4a3fe0aae - std::panicking::try::do_call::h3ebce69871996bb3 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:492:40 30: 0x55a4a3fe0aae - std::panicking::try::hbed537d20e728475 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:456:19 31: 0x55a4a3fe0aae - std::panic::catch_unwind::h4185e2024c6a5d05 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panic.rs:137:14 32: 0x55a4a3fe0aae - std::rt::lang_start_internal::h1899cfd715ca6829 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/rt.rs:128:20 33: 0x55a4a133c721 - std::rt::lang_start::hb88813bebea56cc4 34: 0x55a4a12fc213 - main 35: 0x7fa404f1f550 - __libc_start_call_main 36: 0x7fa404f1f609 - __libc_start_main_alias_1 37: 0x55a4a12d19c5 - _start 38: 0x0 - &lt;unknown&gt; warning: build failed, waiting for other jobs to finish... error: failed to compile `deno v1.23.2`, intermediate artifacts can be found at `/tmp/cargo-installm0nvVB` </code></pre></div> </details>
<p dir="auto">Firstly, I clear the <code class="notranslate">~/.deno/cache</code> folder, and then run <code class="notranslate">deno --debug testdata/002_hello.ts &gt; deno.out</code>. I found the <code class="notranslate">resolveModule sourceCode length 28</code> appeared five times, and the <strong>28</strong> is the length of content in <code class="notranslate">002_hello.ts</code>.<br> What I confused is that why deno need fetch the file module 5 times firstly rather than cache the content in memory?</p>
0
<ul dir="auto"> <li>Electron version: tested on 1.6.2, but same on all versions</li> <li>Operating system: All</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">When you subclass <code class="notranslate">BrowserWindow</code>, you shoud be able to use instances of these subclasses as arguments for <code class="notranslate">dialog.showMessageBox</code>.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">When you subclass <code class="notranslate">BrowserWindow</code>, you cannot use instances of these subclasses as arguments for <code class="notranslate">dialog.showMessageBox</code> .</p> <h3 dir="auto">How to reproduce</h3> <ul dir="auto"> <li>Subclass <code class="notranslate">BrowserWindow</code> with a custom constructor.</li> <li>Try using an instance of that class as argument of <code class="notranslate">dialog.showMessageBox</code>.</li> <li>You get an empty message box.</li> </ul> <h3 dir="auto">What actually happens.</h3> <p dir="auto">The code at <code class="notranslate">lib/browser/api/dialog.js:24</code> checks for <code class="notranslate">window.constructor !== BrowserWindow</code>.<br> In that case, the first argument is interpreted as an options argument.<br> It should instead use the <code class="notranslate">instanceof</code> operator.<br> With a quick search on the repo, this happens at at least 3 places of electron's code :</p> <p dir="auto"><a href="https://github.com/electron/electron/blob/d4a8a64ba7be50906ed5116669b7c06d8da3574f/lib/browser/api/menu-item.js">https://github.com/electron/electron/blob/d4a8a64ba7be50906ed5116669b7c06d8da3574f/lib/browser/api/menu-item.js</a> line 15 which checks for <code class="notranslate">Menu</code> constructor<br> <a href="https://github.com/electron/electron/blob/d01250eceb6d567378df1de44b5631246c1a523b/lib/browser/api/menu.js">https://github.com/electron/electron/blob/d01250eceb6d567378df1de44b5631246c1a523b/lib/browser/api/menu.js</a> line 150 which checks for <code class="notranslate">BrowserWindow</code> constructor<br> <a href="https://github.com/electron/electron/blob/8c2cf03f378008baf2cb31050795ac9c929411b0/lib/browser/api/dialog.js">https://github.com/electron/electron/blob/8c2cf03f378008baf2cb31050795ac9c929411b0/lib/browser/api/dialog.js</a> line 24 which checks for <code class="notranslate">BrowserWindow</code> constructor</p>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <p dir="auto">Electron Version: 6.0.7<br> Operating System: macOS 10.13.6<br> (also verified on Windows 10)</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">I expect to be able to abort Bluetooth scanning (initiated by calling requestDevice()) even if there are no scan results.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Currently it is only possible to abort a scan by calling the callback provided by the webContents event 'select-bluetooth-device' (in the main process). However, if there are no scan results the callback is never called and there is no callback to use.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Start scanning by calling requestDevice() in an environment with no BLE devices (or with a filter that does not match any devices).</p> <h3 dir="auto">Additional Information</h3> <p dir="auto">One solution would be to trigger 'select-bluetooth-device' with an empty list immediately when requestDevice is called. This would be backwards compatible and have the least impact on the current API.</p> <p dir="auto">Personally, I would prefer if the callback was provided in some other way. It does not make sense of providing the callback repeatedly in the 'select-bluetooth-device' event as the callback usage is not related to an individual scan result but rather to the ongoing scanning process.</p>
0
<p dir="auto">Calculating a gradient of the SVD of a matrix where at least two of the singular values are equal lead to a gradient with only NaNs. Let me illustrate the problem by a sample code and result:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax import jax.numpy as jnp def f(arr): U, S, Vh = jnp.linalg.svd(arr, full_matrices=False) return jnp.linalg.norm((U * S) @ Vh) A = jnp.diag(jnp.asarray([1, 1, 2, 3], dtype=float)) f_g = jax.value_and_grad(f) print(f_g(A))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span> <span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span> <span class="pl-k">def</span> <span class="pl-en">f</span>(<span class="pl-s1">arr</span>): <span class="pl-v">U</span>, <span class="pl-v">S</span>, <span class="pl-v">Vh</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">svd</span>(<span class="pl-s1">arr</span>, <span class="pl-s1">full_matrices</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-k">return</span> <span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">norm</span>((<span class="pl-v">U</span> <span class="pl-c1">*</span> <span class="pl-v">S</span>) @ <span class="pl-v">Vh</span>) <span class="pl-v">A</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">diag</span>(<span class="pl-s1">jnp</span>.<span class="pl-en">asarray</span>([<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float</span>)) <span class="pl-s1">f_g</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">value_and_grad</span>(<span class="pl-s1">f</span>) <span class="pl-en">print</span>(<span class="pl-en">f_g</span>(<span class="pl-v">A</span>))</pre></div> <p dir="auto">Result:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(DeviceArray(3.8729835, dtype=float32), DeviceArray([[nan, nan, nan, nan], [nan, nan, nan, nan], [nan, nan, nan, nan], [nan, nan, nan, nan]], dtype=float32))"><pre class="notranslate">(<span class="pl-v">DeviceArray</span>(<span class="pl-c1">3.8729835</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>), <span class="pl-v">DeviceArray</span>([[<span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>], [<span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>], [<span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>], [<span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>]], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>))</pre></div> <p dir="auto">This sample is nothing but a very complicated expression of the norm of a matrix whose gradient is defined (easy to see if replacing the gradient call by <code class="notranslate">jax.value_and_grad(jnp.linalg.norm)</code> [2]).</p> <p dir="auto">After some discussion with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/frederikwilde/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/frederikwilde">@frederikwilde</a> (the author of the commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/google/jax/commit/f443e19141c3d04a6e2947a0dcde8d23039af786/hovercard" href="https://github.com/google/jax/commit/f443e19141c3d04a6e2947a0dcde8d23039af786"><tt>f443e19</tt></a>) we found that the problem is in the calculation of the derivative of the singular matrices <em>U</em> and <em>V<sup>†</sup></em>. The derivation of the derivative calculates in one step the matrix of the inverses <em>1/(S<sub>i</sub> - S<sub>j</sub>)</em> (with <em>S<sub>i</sub></em> the singular values). Obviously, this leads to the described problem.</p> <p dir="auto">In the source code <a href="https://github.com/google/jax/blob/main/jax/_src/lax/linalg.py#L1291">https://github.com/google/jax/blob/main/jax/_src/lax/linalg.py#L1291</a> there is already the commented out code part [1] which would implement a pseudo-inverse in this case. As far as I understand the reason why this code is not used at the moment is the general problem that there is a gauge-freedom of the singular subspace (which has n&gt;1 if there are two equal singular values) is not solved and therefore the derivative of only one of the two unitaries alone would make no sense in this case.</p> <p dir="auto">As far as I understand the problem, it should be ok to do the pseudo-inverse of the differences, if users are not interested in the derivative of a single unitary but of the complete product <em>U * S @ Vh</em> or variants of this one. To illustrate that enabling the code path [1] leads to correct results in some cases, one can replace the code line and rerun the example above. The resulting gradient is the same one as if one used the VJP-rule of the <code class="notranslate">jnp.linalg.norm</code> function. [3]</p> <p dir="auto">What is your opinion on this problem? Can the gauge-freedom somehow be fixed so it is no problem? Is the use case of using only the derivative of one unitary very unlikely so one could stick to the pseudo-inverse?</p> <p dir="auto">[1] <code class="notranslate">s_diffs_zeros = jnp.ones((), dtype=s.dtype) * (s_diffs == 0.)</code> (fixing the bug that it has to be <code class="notranslate">s.dtype</code> instead of <code class="notranslate">A.dtype</code>)</p> <p dir="auto">[2]</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax import jax.numpy as jnp A = jnp.diag(jnp.asarray([1, 1, 2, 3], dtype=float)) norm_g = jax.value_and_grad(jnp.linalg.norm) print(f_g(A))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span> <span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span> <span class="pl-v">A</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">diag</span>(<span class="pl-s1">jnp</span>.<span class="pl-en">asarray</span>([<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float</span>)) <span class="pl-s1">norm_g</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">value_and_grad</span>(<span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-s1">norm</span>) <span class="pl-en">print</span>(<span class="pl-en">f_g</span>(<span class="pl-v">A</span>))</pre></div> <p dir="auto">Result:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(DeviceArray(3.8729832, dtype=float32), DeviceArray([[0.2581989, 0. , 0. , 0. ], [0. , 0.2581989, 0. , 0. ], [0. , 0. , 0.5163978, 0. ], [0. , 0. , 0. , 0.7745967]], dtype=float32))"><pre class="notranslate">(<span class="pl-v">DeviceArray</span>(<span class="pl-c1">3.8729832</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>), <span class="pl-v">DeviceArray</span>([[<span class="pl-c1">0.2581989</span>, <span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> ], [<span class="pl-c1">0.</span> , <span class="pl-c1">0.2581989</span>, <span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> ], [<span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> , <span class="pl-c1">0.5163978</span>, <span class="pl-c1">0.</span> ], [<span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> , <span class="pl-c1">0.7745967</span>]], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>))</pre></div> <p dir="auto">[3] Result for example code with <a href="https://github.com/google/jax/blob/main/jax/_src/lax/linalg.py#L1291">https://github.com/google/jax/blob/main/jax/_src/lax/linalg.py#L1291</a> replaced by [1]:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(DeviceArray(3.8729835, dtype=float32), DeviceArray([[0.25819886, 0. , 0. , 0. ], [0. , 0.25819886, 0. , 0. ], [0. , 0. , 0.5163977 , 0. ], [0. , 0. , 0. , 0.7745966 ]], dtype=float32))"><pre class="notranslate">(<span class="pl-v">DeviceArray</span>(<span class="pl-c1">3.8729835</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>), <span class="pl-v">DeviceArray</span>([[<span class="pl-c1">0.25819886</span>, <span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> ], [<span class="pl-c1">0.</span> , <span class="pl-c1">0.25819886</span>, <span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> ], [<span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> , <span class="pl-c1">0.5163977</span> , <span class="pl-c1">0.</span> ], [<span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> , <span class="pl-c1">0.</span> , <span class="pl-c1">0.7745966</span> ]], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>))</pre></div>
<p dir="auto">If an SVD has degenerate singular values (multiple entries of S are exactly equal), the gradient pass will give <code class="notranslate">nan</code>.</p> <p dir="auto">This is because the <a href="https://arxiv.org/pdf/1909.02659.pdf" rel="nofollow">AD formula</a> contains something like<br> <code class="notranslate">1 / (s[i] ** 2 - s[j] ** 2) </code> which becomes <code class="notranslate">nan</code> if <code class="notranslate">s[i] == s[j]</code>. There are also terms with <code class="notranslate">1 / S</code> which become 'nan' if any of 'S' is zero.</p> <p dir="auto">In particular, this situation arises when multiple singular values are <code class="notranslate">0.0</code>. and it evaluates the entire gradient of a function to <code class="notranslate">nan</code>, even if the function does not depend on the rows of U and columns of V that correspond to the <code class="notranslate">0.0</code> singular values (See example below). Essentially in this case, even if the adjoint gradients of the corresponding slices of U and V are <code class="notranslate">0.</code>, they are multiplied by <code class="notranslate">nan</code> and thus give <code class="notranslate">nan</code>.</p> <p dir="auto">I don't have a clear vision, what the best case scenario is here.<br> I just wanted to share that this problem arises for me and how i will dirty-fix it.<br> Maybe fix "1." would be of interest to implement in jax? thoughts?</p> <h3 dir="auto">Example</h3> <p dir="auto">I contruct a matrix that has only a few non-zero singular values (actually, only the first in non-zero, but due two numerical error, the second is non-zero too)</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mat_degenerate = np.ones([5, 5]) U, S, V = np.linalg.svd(mat_degenerate) print(S) &gt;&gt;&gt; [4.9999995e+00 1.9792830e-07 0.0000000e+00 0.0000000e+00 0.0000000e+00]"><pre class="notranslate"><span class="pl-s1">mat_degenerate</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>([<span class="pl-c1">5</span>, <span class="pl-c1">5</span>]) <span class="pl-v">U</span>, <span class="pl-v">S</span>, <span class="pl-v">V</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">svd</span>(<span class="pl-s1">mat_degenerate</span>) <span class="pl-en">print</span>(<span class="pl-v">S</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> [<span class="pl-c1">4.9999995e+00</span> <span class="pl-c1">1.9792830e-07</span> <span class="pl-c1">0.0000000e+00</span> <span class="pl-c1">0.0000000e+00</span> <span class="pl-c1">0.0000000e+00</span>]</pre></div> <p dir="auto">I design a function that only depends on the first two singular values (which are clearly neither degenerate nor zero), and the corresponding rows (columns) of U (V)</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def truncated_svd(x, num): U, S, V = np.linalg.svd(x, full_matrices=False) return U[:, :num], S[:num], V[:num, :] def foo(x): U, S, V = truncated_svd(x, 2) return np.real(np.trace(np.dot(V, U))) + np.sum(S)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">truncated_svd</span>(<span class="pl-s1">x</span>, <span class="pl-s1">num</span>): <span class="pl-v">U</span>, <span class="pl-v">S</span>, <span class="pl-v">V</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">svd</span>(<span class="pl-s1">x</span>, <span class="pl-s1">full_matrices</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-k">return</span> <span class="pl-v">U</span>[:, :<span class="pl-s1">num</span>], <span class="pl-v">S</span>[:<span class="pl-s1">num</span>], <span class="pl-v">V</span>[:<span class="pl-s1">num</span>, :] <span class="pl-k">def</span> <span class="pl-en">foo</span>(<span class="pl-s1">x</span>): <span class="pl-v">U</span>, <span class="pl-v">S</span>, <span class="pl-v">V</span> <span class="pl-c1">=</span> <span class="pl-en">truncated_svd</span>(<span class="pl-s1">x</span>, <span class="pl-c1">2</span>) <span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">real</span>(<span class="pl-s1">np</span>.<span class="pl-en">trace</span>(<span class="pl-s1">np</span>.<span class="pl-en">dot</span>(<span class="pl-v">V</span>, <span class="pl-v">U</span>))) <span class="pl-c1">+</span> <span class="pl-s1">np</span>.<span class="pl-en">sum</span>(<span class="pl-v">S</span>)</pre></div> <p dir="auto">And see that the <em>entire</em> gradient becomes <code class="notranslate">nan</code></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="print(value_and_grad(foo)(mat_degenerate) &gt;&gt;&gt; (DeviceArray(6.9999995, dtype=float32), DeviceArray([[nan, nan, nan, nan, nan], [nan, nan, nan, nan, nan], [nan, nan, nan, nan, nan], [nan, nan, nan, nan, nan], [nan, nan, nan, nan, nan]], dtype=float32))"><pre class="notranslate"><span class="pl-en">print</span>(<span class="pl-en">value_and_grad</span>(<span class="pl-s1">foo</span>)(<span class="pl-s1">mat_degenerate</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> (<span class="pl-v">DeviceArray</span>(<span class="pl-c1">6.9999995</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>), <span class="pl-v">DeviceArray</span>([[<span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>], [<span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>], [<span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>], [<span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>], [<span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>, <span class="pl-s1">nan</span>]], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>))</pre></div> <h3 dir="auto">Dirty workaround</h3> <p dir="auto">I have seen people use <code class="notranslate">safe_inverse = lambda x, eps: x / (x**2 + eps)</code> and replace <code class="notranslate">1 / (s[i] ** 2 - s[j] ** 2) </code> by <code class="notranslate">safe_inverse(s[i] ** 2 - s[j] ** 2)</code> as well as <code class="notranslate">1/S</code> by <code class="notranslate">safe_inverse(S)</code> , usually with <code class="notranslate">eps == 1e-12</code>.<br> So i implemented that. Contact me if anyone is interested</p>
1
<p dir="auto">Please fill the following out:</p> <ul dir="auto"> <li>Name: آما ویرای کیان</li> <li>Homepage url: <a href="http://amasystem.ir/" rel="nofollow">http://amasystem.ir/</a></li> <li>Brand Guidelines/Licensing: <a href="http://amasystem.ir/" rel="nofollow">http://amasystem.ir/</a></li> <li>Logo: <a href="http://amasystem.ir/Assets/Image/ama-vira-logo-b.png" rel="nofollow">http://amasystem.ir/Assets/Image/ama-vira-logo-b.png</a></li> </ul> <blockquote> <p dir="auto">Example:</p> <p dir="auto">Name: Microsoft<br> Homepage url: <a href="https://microsoft.com" rel="nofollow">https://microsoft.com</a><br> Brand Guidelines/Licensing: <a href="https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/logo.aspx" rel="nofollow">https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/logo.aspx</a><br> Logo: <a href="https://news.microsoft.com/microsoft-news-center-photos/msft_logo_rgb_c-gray/" rel="nofollow">https://news.microsoft.com/microsoft-news-center-photos/msft_logo_rgb_c-gray/</a></p> </blockquote>
<p dir="auto">Please fill the following out:</p> <ul dir="auto"> <li>Name: Ama Vira Kian</li> <li>Homepage url: <a href="http://amasystem.ir" rel="nofollow">http://amasystem.ir</a></li> <li>Brand Guidelines/Licensing: <a href="http://amasystem.ir" rel="nofollow">http://amasystem.ir</a></li> </ul>
1
<p dir="auto">I want to quantize a h5 model, but i can't find “tf. fake_quant_with_min_max_args” by API tf.keras</p>
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10.0.17134.407</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: NA</li> <li>TensorFlow installed from (source or binary): Binary</li> <li>TensorFlow version: 1.12.0</li> <li>Python version: 3.6.7</li> <li>Installed using virtualenv? pip? conda?: pip</li> <li>Bazel version (if compiling from source): NA</li> <li>GCC/Compiler version (if compiling from source): NA</li> <li>CUDA/cuDNN version: 10.0.130 / 7.4.1.5 for Win 10</li> <li>GPU model and memory: Quadro M520</li> </ul> <p dir="auto"><strong>Describe the problem</strong><br> tensorflow fails on import with "module could not be found". Other issue says to open a new issue due to differing config (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="367432602" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/22794" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/22794/hovercard" href="https://github.com/tensorflow/tensorflow/issues/22794">#22794</a>)</p> <p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p> <ol dir="auto"> <li>python</li> <li>import tensorflow as tf</li> </ol> <p dir="auto"><strong>Any other info / logs</strong><br> Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32<br> Type "help", "copyright", "credits" or "license" for more information.</p> <blockquote> <blockquote> <blockquote> <p dir="auto">import tensorflow as tf<br> Traceback (most recent call last):<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br> _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module<br> return load_dynamic(name, filename, file)<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic<br> return _load(spec)<br> ImportError: DLL load failed: The specified module could not be found.</p> </blockquote> </blockquote> </blockquote> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File "", line 1, in <br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_<em>init</em>_.py", line 24, in <br> from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python_<em>init</em>_.py", line 49, in <br> from tensorflow.python import pywrap_tensorflow<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <br> raise ImportError(msg)<br> ImportError: Traceback (most recent call last):<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br> _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module<br> return load_dynamic(name, filename, file)<br> File "C:\Users\marktayl\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic<br> return _load(spec)<br> ImportError: DLL load failed: The specified module could not be found.</p> <p dir="auto">Failed to load the native TensorFlow runtime.</p> <p dir="auto">See <a href="https://www.tensorflow.org/install/errors" rel="nofollow">https://www.tensorflow.org/install/errors</a></p> <p dir="auto">for some common reasons and solutions. Include the entire stack trace<br> above this error message when asking for help.</p>
0
<p dir="auto">Issue Type: Bug Report<br> Ansible Version: 2.0.0.1<br> Ansible Configuration: nothing changed<br> Environment: OS X 10.11.2<br> Summary:</p> <p dir="auto">Conditional role inclusion in a play still tries to expand variables passed onto this role, even if the role is being skipped</p> <p dir="auto">Steps To Reproduce:</p> <p dir="auto">Given a play of this kind:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... roles: - { role: some_role, some_var: &quot;{{ some_value }}&quot;, when: some_value is defined, tags: [ tag1, tag2 ] }"><pre class="notranslate"><code class="notranslate">... roles: - { role: some_role, some_var: "{{ some_value }}", when: some_value is defined, tags: [ tag1, tag2 ] } </code></pre></div> <p dir="auto">when the <code class="notranslate">some_value</code> variable is undefined, one gets an error <code class="notranslate">ERROR! ERROR! 'some_value' is undefined</code> even though the output clearly shows that the role is being skipped:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="skipping: [localhost] =&gt; {&quot;changed&quot;: false, &quot;skip_reason&quot;: &quot;Conditional check failed&quot;, &quot;skipped&quot;: true}"><pre class="notranslate"><code class="notranslate">skipping: [localhost] =&gt; {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} </code></pre></div> <p dir="auto">Expected Results:</p> <p dir="auto">The role should be skipped without the error, as was the behaviour of Ansible 1.9.4</p> <p dir="auto">Actual Results:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... TASK [some_role : description of first task in that role] ** task path: /Users/some_user/some/path/to/roles/some_role/tasks/main.yml:2 skipping: [localhost] =&gt; {&quot;changed&quot;: false, &quot;skip_reason&quot;: &quot;Conditional check failed&quot;, &quot;skipped&quot;: true} ERROR! ERROR! 'some_value' is undefined"><pre class="notranslate"><code class="notranslate">... TASK [some_role : description of first task in that role] ** task path: /Users/some_user/some/path/to/roles/some_role/tasks/main.yml:2 skipping: [localhost] =&gt; {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} ERROR! ERROR! 'some_value' is undefined </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">Files/Template</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.2.0 (stable-2.3 10aa164166) last updated 2017/06/29 18:32:01 (GMT +300) config file = /home/user/.ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.2.0 (stable-2.3 10aa164166) last updated 2017/06/29 18:32:01 (GMT +300) config file = /home/user/.ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">none</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Lots of application, I install with ansible, are tar archives downloaded with 'maven_artifact' or 'unarchive' modules.<br> Some of these archives contains templates of configuration files in jinja2 format. I want to be able copy those files to application config directory with replacing jinja2 placeholders and without copying them to my local machine.<br> Now I have to use module 'replace', but I think it may be more native to use 'template' module with option 'remote_src=yes'</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Get Snapshot app maven_artifact: group_id: &quot;{{ component_group_id }}&quot; artifact_id: &quot;{{ component_artifact_id }}&quot; repository_url: &quot;{{ snapshot_repository }}&quot; version: &quot;{{ component_version }}&quot; extension: 'tar.gz' dest: &quot;{{ some_path }}.tgz&quot; - name: Extract tarball unarchive: remote_src: yes src: &quot;{{ some_path }}.tgz&quot; dest: &quot;{{ app_directory }}&quot; - name: Copy configuration files template: remote_src: yes # &lt;- this is what I want src: &quot;{{ app_directory }}/conf_templates/{{ item }}.j2&quot; dest: &quot;{{ app_directory }}/conf/{{ item }}&quot; with_items: &quot;{{ conf_files }}&quot;"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Get Snapshot app</span> <span class="pl-ent">maven_artifact</span>: <span class="pl-ent">group_id</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ component_group_id }}<span class="pl-pds">"</span></span> <span class="pl-ent">artifact_id</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ component_artifact_id }}<span class="pl-pds">"</span></span> <span class="pl-ent">repository_url</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ snapshot_repository }}<span class="pl-pds">"</span></span> <span class="pl-ent">version</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ component_version }}<span class="pl-pds">"</span></span> <span class="pl-ent">extension</span>: <span class="pl-s"><span class="pl-pds">'</span>tar.gz<span class="pl-pds">'</span></span> <span class="pl-ent">dest</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ some_path }}.tgz<span class="pl-pds">"</span></span> - <span class="pl-ent">name</span>: <span class="pl-s">Extract tarball</span> <span class="pl-ent">unarchive</span>: <span class="pl-ent">remote_src</span>: <span class="pl-s">yes</span> <span class="pl-ent">src</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ some_path }}.tgz<span class="pl-pds">"</span></span> <span class="pl-ent">dest</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ app_directory }}<span class="pl-pds">"</span></span> - <span class="pl-ent">name</span>: <span class="pl-s">Copy configuration files</span> <span class="pl-ent">template</span>: <span class="pl-ent">remote_src</span>: <span class="pl-s">yes </span><span class="pl-c"><span class="pl-c">#</span> &lt;- this is what I want</span> <span class="pl-ent">src</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ app_directory }}/conf_templates/{{ item }}.j2<span class="pl-pds">"</span></span> <span class="pl-ent">dest</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ app_directory }}/conf/{{ item }}<span class="pl-pds">"</span></span> <span class="pl-ent">with_items</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ conf_files }}<span class="pl-pds">"</span></span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Files from directory 'conf_templates' should be copied to directory 'conf' with jinja2 filters applied</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Now I can fetch those files to my local machine into temporary directory and then copy them back as templates, or use 'replace' module to replace jinja2 placeholders.</p>
0
<p dir="auto">Selecting with Cmd + D jumps to top instead of the next selected text.</p>
<p dir="auto">I use <code class="notranslate">cmd-d</code> with selected word and I expect the window to scroll to the next found occurrence -- but instead the window scrolls to top on the first <code class="notranslate">select-next</code>, then scrolls to the found word on the second <code class="notranslate">select-next</code>, then again to the top on the third and so on.</p>
1
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/29986/kubernetes-pull-build-test-e2e-gce/51596/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/29986/kubernetes-pull-build-test-e2e-gce/51596/</a></p> <p dir="auto">Failed: [k8s.io] Docker Containers should be able to override the image's default commmand (docker entrypoint) [Conformance] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/docker_containers.go:54 Error creating Pod Expected error: &lt;*url.Error | 0xc82040c210&gt;: { Op: &quot;Post&quot;, URL: &quot;https://104.155.177.28/api/v1/namespaces/e2e-tests-containers-nkgxg/pods&quot;, Err: { Op: &quot;dial&quot;, Net: &quot;tcp&quot;, Source: nil, Addr: { IP: &quot;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xffh\x9b\xb1\x1c&quot;, Port: 443, Zone: &quot;&quot;, }, Err: {}, }, } Post https://104.155.177.28/api/v1/namespaces/e2e-tests-containers-nkgxg/pods: dial tcp 104.155.177.28:443: i/o timeout not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/pods.go:50"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/docker_containers.go:54 Error creating Pod Expected error: &lt;*url.Error | 0xc82040c210&gt;: { Op: "Post", URL: "https://104.155.177.28/api/v1/namespaces/e2e-tests-containers-nkgxg/pods", Err: { Op: "dial", Net: "tcp", Source: nil, Addr: { IP: "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xffh\x9b\xb1\x1c", Port: 443, Zone: "", }, Err: {}, }, } Post https://104.155.177.28/api/v1/namespaces/e2e-tests-containers-nkgxg/pods: dial tcp 104.155.177.28:443: i/o timeout not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/pods.go:50 </code></pre></div> <p dir="auto">Happened on a presubmit run in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169114911" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29986" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/29986/hovercard" href="https://github.com/kubernetes/kubernetes/pull/29986">#29986</a>.</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): Completed Status POD Unmount</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br> Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5+$Format:%h$", GitCommit:"dc1efecced758680dc5aa29dc317e366b6792a48", GitTreeState:"dirty", BuildDate:"2016-10-31T10:12:09Z", GoVersion:"go1.7.1", Compiler:"gc", Platform:"linux/amd64"}<br> Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5+$Format:%h$", GitCommit:"996dae74127a3e5a2c3da136dd846356e612b18f", GitTreeState:"dirty", BuildDate:"2016-11-01T03:03:10Z", GoVersion:"go1.7.1", Compiler:"gc", Platform:"linux/amd64"}</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>:<br> VMs on softlayer. 1 Master nodes 3 worker nodes</li> <li><strong>OS</strong> (e.g. from /etc/os-release):<br> NAME="Ubuntu"<br> VERSION="14.04.5 LTS, Trusty Tahr"<br> ID=ubuntu<br> ID_LIKE=debian<br> PRETTY_NAME="Ubuntu 14.04.5 LTS"<br> VERSION_ID="14.04"<br> HOME_URL="<a href="http://www.ubuntu.com/" rel="nofollow">http://www.ubuntu.com/</a>"<br> SUPPORT_URL="<a href="http://help.ubuntu.com/" rel="nofollow">http://help.ubuntu.com/</a>"<br> BUG_REPORT_URL="<a href="http://bugs.launchpad.net/ubuntu/" rel="nofollow">http://bugs.launchpad.net/ubuntu/</a>"</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):<br> Linux cdsdev-dal09-stony03-api-01.softlayer.com 3.16.0-76-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35699037" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/98" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/98/hovercard" href="https://github.com/kubernetes/kubernetes/pull/98">#98</a>~14.04.1-Ubuntu SMP Fri Jun 24 17:04:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li> <li><strong>Install tools</strong>: Ansible</li> <li><strong>Others</strong>: No.</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <ol dir="auto"> <li>Create a bunch of PVs using nfs</li> <li>Create PVC in a pvc_storage.yaml</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" resources: requests: storage: 1Ti --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: dashmpp-local2 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Ti --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: dashmpp-data2 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Ti --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: dashmpp-local3 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Ti --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: dashmpp-data3 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Ti"><pre class="notranslate"><code class="notranslate"> resources: requests: storage: 1Ti --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: dashmpp-local2 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Ti --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: dashmpp-data2 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Ti --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: dashmpp-local3 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Ti --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: dashmpp-data3 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Ti </code></pre></div> <ol start="3" dir="auto"> <li>After use <code class="notranslate">kubectl create -f pvc_storage.yaml</code></li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM REASON AGE ppvl01 15Gi RWX Recycle Available 6d ppvl02 1Ti RWO Recycle Bound default/dashmpp-local1 6d ppvl04 1Ti RWO Recycle Bound default/dashmpp-data1 6d ppvl05 1Ti RWO Recycle Bound default/dashmpp-data2 27s ppvl06 1Ti RWO Recycle Bound default/dashmpp-local2 1m spv1 10Gi RWX Recycle Bound default/dashmpp-head 6d spv2 10Gi RWX Recycle Available 6d spv3 10Gi RWX Recycle Bound default/dashmpp-scratch 6d spv4 10Gi RWX Recycle Available 6d"><pre class="notranslate"><code class="notranslate">NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM REASON AGE ppvl01 15Gi RWX Recycle Available 6d ppvl02 1Ti RWO Recycle Bound default/dashmpp-local1 6d ppvl04 1Ti RWO Recycle Bound default/dashmpp-data1 6d ppvl05 1Ti RWO Recycle Bound default/dashmpp-data2 27s ppvl06 1Ti RWO Recycle Bound default/dashmpp-local2 1m spv1 10Gi RWX Recycle Bound default/dashmpp-head 6d spv2 10Gi RWX Recycle Available 6d spv3 10Gi RWX Recycle Bound default/dashmpp-scratch 6d spv4 10Gi RWX Recycle Available 6d </code></pre></div> <ol start="4" dir="auto"> <li>After run <code class="notranslate">kubectl delete -f pv_storage.yaml</code></li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="persistentvolumeclaim &quot;dashmpp-head&quot; deleted persistentvolumeclaim &quot;dashmpp-scratch&quot; deleted persistentvolumeclaim &quot;dashmpp-local1&quot; deleted persistentvolumeclaim &quot;dashmpp-data1&quot; deleted persistentvolumeclaim &quot;dashmpp-local2&quot; deleted persistentvolumeclaim &quot;dashmpp-data2&quot; deleted persistentvolumeclaim &quot;dashmpp-local3&quot; deleted persistentvolumeclaim &quot;dashmpp-data3&quot; deleted"><pre class="notranslate"><code class="notranslate">persistentvolumeclaim "dashmpp-head" deleted persistentvolumeclaim "dashmpp-scratch" deleted persistentvolumeclaim "dashmpp-local1" deleted persistentvolumeclaim "dashmpp-data1" deleted persistentvolumeclaim "dashmpp-local2" deleted persistentvolumeclaim "dashmpp-data2" deleted persistentvolumeclaim "dashmpp-local3" deleted persistentvolumeclaim "dashmpp-data3" deleted </code></pre></div> <ol start="5" dir="auto"> <li>Using <code class="notranslate"> kubectl get pod -a -o wide</code> some of the recyclers are in <code class="notranslate">Completed</code> status.</li> </ol> <p dir="auto">NAME READY STATUS RESTARTS AGE IP NODE<br> recycler-for-ppvl04 0/1 Completed 0 1m 10.121.55.231<br> recycler-for-spv1 0/1 Completed 0 1m 10.121.55.102<br> recycler-for-spv3 0/1 Completed 0 1m 10.121.55.70</p> <ol start="6" dir="auto"> <li>Login one of the recycler Node, e.g. <code class="notranslate">10.121.55.70</code> using <code class="notranslate">df -h</code>, we got</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="169.55.11.79:/gpfs/fs01/shared/prod/democluster01/dashdb/gamestop/spv3 99T 18T 81T 19% /var/lib/kubelet/pods/1e5c2676-a045-11e6-8264-06d7ef65f0fb/volumes/kubernetes.io~nfs/ppvl02"><pre class="notranslate"><code class="notranslate">169.55.11.79:/gpfs/fs01/shared/prod/democluster01/dashdb/gamestop/spv3 99T 18T 81T 19% /var/lib/kubelet/pods/1e5c2676-a045-11e6-8264-06d7ef65f0fb/volumes/kubernetes.io~nfs/ppvl02 </code></pre></div> <p dir="auto">As you can see the mount point still exist.</p> <ol start="7" dir="auto"> <li>If we delelet PVCs one by one, such as</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl delete pvc dashmpp-local1 kubectl delete pvc dashmpp-local2 kubectl delete pvc dashmpp-data1 kubectl delete pvc dashmpp-data2 kubectl delete pvc dashmpp-head kubectl delete pvc dashmpp-scratch "><pre class="notranslate"><code class="notranslate">kubectl delete pvc dashmpp-local1 kubectl delete pvc dashmpp-local2 kubectl delete pvc dashmpp-data1 kubectl delete pvc dashmpp-data2 kubectl delete pvc dashmpp-head kubectl delete pvc dashmpp-scratch </code></pre></div> <p dir="auto">We do not get such problems</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> Using <code class="notranslate">kubectl delete -f pvc_storage.yaml</code>, all the recycler could not in<code class="notranslate">Completed</code> status, and umount the mount point from worker node.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br> Describe in what happened section</p> <p dir="auto"><strong>Anything else do we need to know</strong>:<br> No.</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">exec_command (local)</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.0.0 config file = /home/USER/git/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.0.0 config file = /home/USER/git/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">SUMMARY</h5> <p dir="auto">We noticed that using a SUDO password with a non-ascii character causes Ansible to throw an exception when feeding the password to sudo. In my case the password include the ° character (0xb0), like the error output indicates:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="UnicodeEncodeError: 'ascii' codec can't encode character u'\xb0' in position 0: ordinal not in range(128)"><pre class="notranslate"><code class="notranslate">UnicodeEncodeError: 'ascii' codec can't encode character u'\xb0' in position 0: ordinal not in range(128) </code></pre></div> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">I intend to write a minimal reproducer an using the master branch.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[USER@SYSTEM ansible]$ ansible-playbook some_playbook.yml -K -vvv Using /home/USER/git/ansible/ansible.cfg as config file SUDO password: PLAY [system01] **************************************************************** TASK [fetch from system] ******************************************************* task path: /home/USER/git/ansible/some_playbook.yml:32 &lt;localhost&gt; ESTABLISH LOCAL CONNECTION FOR USER: USER &lt;localhost&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p &quot;` echo /tmp/ansible-tmp-1476453804.28-165187216012413 `&quot; &amp;&amp; echo ansible-tmp-1476453804.28-165187216012413=&quot;` echo /tmp/ansible-tmp-1476453804.28-165187216012413 `&quot; ) &amp;&amp; sleep 0' &lt;localhost&gt; PUT /tmp/tmpWVAqrj TO /tmp/ansible-tmp-1476453804.28-165187216012413/command &lt;localhost&gt; EXEC /bin/sh -c 'chown -R sysauto /tmp/ansible-tmp-1476453804.28-165187216012413/ &amp;&amp; sleep 0' &lt;localhost&gt; EXEC /bin/sh -c 'setfacl -R -m u:sysauto:rX /tmp/ansible-tmp-1476453804.28-165187216012413/ &amp;&amp; sleep 0' &lt;localhost&gt; EXEC /bin/sh -c 'sudo -H -S -p &quot;[sudo via ansible, key=opbxnljylhudewlchnsbwfnibhzyaent] password: &quot; -u sysauto /bin/sh -c '&quot;'&quot;'echo BECOME-SUCCESS-opbxnljylhudewlchnsbwfnibhzyaent; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /tmp/ansible-tmp-1476453804.28-165187216012413/command'&quot;'&quot;' &amp;&amp; sleep 0' An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File &quot;/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py&quot;, line 124, in run res = self._execute() File &quot;/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py&quot;, line 446, in _execute result = self._handler.run(task_vars=variables) File &quot;/usr/lib/python2.7/site-packages/ansible/plugins/action/normal.py&quot;, line 33, in run results = merge_hash(results, self._execute_module(tmp=tmp, task_vars=task_vars)) File &quot;/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py&quot;, line 644, in _execute_module res = self._low_level_execute_command(cmd, sudoable=sudoable, in_data=in_data) File &quot;/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py&quot;, line 718, in _low_level_execute_command rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable) File &quot;/usr/lib/python2.7/site-packages/ansible/plugins/connection/local.py&quot;, line 109, in exec_command p.stdin.write(self._play_context.become_pass + '\n') UnicodeEncodeError: 'ascii' codec can't encode character u'\xb0' in position 0: ordinal not in range(128) fatal: [system01]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;Unexpected failure during module execution.&quot;, &quot;stdout&quot;: &quot;&quot;} NO MORE HOSTS LEFT ************************************************************* PLAY RECAP ********************************************************************* system01 : ok=0 changed=0 unreachable=0 failed="><pre class="notranslate"><code class="notranslate">[USER@SYSTEM ansible]$ ansible-playbook some_playbook.yml -K -vvv Using /home/USER/git/ansible/ansible.cfg as config file SUDO password: PLAY [system01] **************************************************************** TASK [fetch from system] ******************************************************* task path: /home/USER/git/ansible/some_playbook.yml:32 &lt;localhost&gt; ESTABLISH LOCAL CONNECTION FOR USER: USER &lt;localhost&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p "` echo /tmp/ansible-tmp-1476453804.28-165187216012413 `" &amp;&amp; echo ansible-tmp-1476453804.28-165187216012413="` echo /tmp/ansible-tmp-1476453804.28-165187216012413 `" ) &amp;&amp; sleep 0' &lt;localhost&gt; PUT /tmp/tmpWVAqrj TO /tmp/ansible-tmp-1476453804.28-165187216012413/command &lt;localhost&gt; EXEC /bin/sh -c 'chown -R sysauto /tmp/ansible-tmp-1476453804.28-165187216012413/ &amp;&amp; sleep 0' &lt;localhost&gt; EXEC /bin/sh -c 'setfacl -R -m u:sysauto:rX /tmp/ansible-tmp-1476453804.28-165187216012413/ &amp;&amp; sleep 0' &lt;localhost&gt; EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=opbxnljylhudewlchnsbwfnibhzyaent] password: " -u sysauto /bin/sh -c '"'"'echo BECOME-SUCCESS-opbxnljylhudewlchnsbwfnibhzyaent; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /tmp/ansible-tmp-1476453804.28-165187216012413/command'"'"' &amp;&amp; sleep 0' An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 124, in run res = self._execute() File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 446, in _execute result = self._handler.run(task_vars=variables) File "/usr/lib/python2.7/site-packages/ansible/plugins/action/normal.py", line 33, in run results = merge_hash(results, self._execute_module(tmp=tmp, task_vars=task_vars)) File "/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 644, in _execute_module res = self._low_level_execute_command(cmd, sudoable=sudoable, in_data=in_data) File "/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 718, in _low_level_execute_command rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable) File "/usr/lib/python2.7/site-packages/ansible/plugins/connection/local.py", line 109, in exec_command p.stdin.write(self._play_context.become_pass + '\n') UnicodeEncodeError: 'ascii' codec can't encode character u'\xb0' in position 0: ordinal not in range(128) fatal: [system01]: FAILED! =&gt; {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""} NO MORE HOSTS LEFT ************************************************************* PLAY RECAP ********************************************************************* system01 : ok=0 changed=0 unreachable=0 failed= </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">Ansible is installed from Github:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0 (devel 46a97e1f55) last updated 2016/06/30 21:16:46 (GMT +100) lib/ansible/modules/core: (detached HEAD 1d0d5db97a) last updated 2016/06/30 21:16:54 (GMT +100) lib/ansible/modules/extras: (detached HEAD 00b8b96906) last updated 2016/06/30 21:16:54 (GMT +100) config file = .../jonblog-build/app/ansible.cfg [removed unimportant path info] configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.0 (devel 46a97e1f55) last updated 2016/06/30 21:16:46 (GMT +100) lib/ansible/modules/core: (detached HEAD 1d0d5db97a) last updated 2016/06/30 21:16:54 (GMT +100) lib/ansible/modules/extras: (detached HEAD 00b8b96906) last updated 2016/06/30 21:16:54 (GMT +100) config file = .../jonblog-build/app/ansible.cfg [removed unimportant path info] configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cat ansible.cfg [defaults] transport=paramiko"><pre class="notranslate"><code class="notranslate">cat ansible.cfg [defaults] transport=paramiko </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 14.04<br> Python 2.7.6</p> <p dir="auto">Paramiko from <code class="notranslate">apt-get</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apt-cache show python-paramiko Package: python-paramiko Priority: optional Section: python Installed-Size: 541 Maintainer: Ubuntu Developers &lt;[email protected]&gt; Original-Maintainer: Jeremy T. Bouse &lt;[email protected]&gt; Architecture: all Source: paramiko Version: 1.10.1-1git1build1 Provides: python2.7-paramiko Depends: python (&gt;= 2.7), python (&lt;&lt; 2.8), python:any (&gt;= 2.7.1-0ubuntu2), python-crypto (&gt;= 2.1.0-2) Filename: pool/main/p/paramiko/python-paramiko_1.10.1-1git1build1_all.deb Size: 105776 MD5sum: e728ed22af7bead915a5e509140971bb SHA1: 92f20ae140eeceb36d456bb696b4a5e5c7f36585 SHA256: b665fdc994b7d1944bc54aab781f9110d2e1e6e4d33257151bf6d2f8a2f56a7c Description-en: Make ssh v2 connections with Python (Python 2) This is a library for making SSH2 connections (client or server). Emphasis is on using SSH2 as an alternative to SSL for making secure connections between Python scripts. All major ciphers and hash methods are supported. SFTP client and server mode are both supported too. . This is the Python 2 version of the package. Description-md5: ef19708cf575fb15646b6a0f32043a47 Homepage: https://github.com/paramiko/paramiko/ Bugs: https://bugs.launchpad.net/ubuntu/+filebug Origin: Ubuntu Supported: 5y Task: edubuntu-desktop-gnome"><pre class="notranslate"><code class="notranslate">apt-cache show python-paramiko Package: python-paramiko Priority: optional Section: python Installed-Size: 541 Maintainer: Ubuntu Developers &lt;[email protected]&gt; Original-Maintainer: Jeremy T. Bouse &lt;[email protected]&gt; Architecture: all Source: paramiko Version: 1.10.1-1git1build1 Provides: python2.7-paramiko Depends: python (&gt;= 2.7), python (&lt;&lt; 2.8), python:any (&gt;= 2.7.1-0ubuntu2), python-crypto (&gt;= 2.1.0-2) Filename: pool/main/p/paramiko/python-paramiko_1.10.1-1git1build1_all.deb Size: 105776 MD5sum: e728ed22af7bead915a5e509140971bb SHA1: 92f20ae140eeceb36d456bb696b4a5e5c7f36585 SHA256: b665fdc994b7d1944bc54aab781f9110d2e1e6e4d33257151bf6d2f8a2f56a7c Description-en: Make ssh v2 connections with Python (Python 2) This is a library for making SSH2 connections (client or server). Emphasis is on using SSH2 as an alternative to SSL for making secure connections between Python scripts. All major ciphers and hash methods are supported. SFTP client and server mode are both supported too. . This is the Python 2 version of the package. Description-md5: ef19708cf575fb15646b6a0f32043a47 Homepage: https://github.com/paramiko/paramiko/ Bugs: https://bugs.launchpad.net/ubuntu/+filebug Origin: Ubuntu Supported: 5y Task: edubuntu-desktop-gnome </code></pre></div> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Using Paramiko as an SSH transport layer, with a <code class="notranslate">-K</code> root password containing a <code class="notranslate">£</code> pound sign causes a Python crash in Paramiko.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">I call my playbook with <code class="notranslate">ansible-playbook -K ansible/fetch-database.yml</code>. More details <a href="https://stackoverflow.com/questions/38132270/do-i-need-to-explicitly-switch-paramiko-or-ansible-to-use-utf-8-to-handle-non-as" rel="nofollow">in this post</a>.</p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I expected the playbook to execute without errors or crashes. The password is correct, and using the default SSH transport, it seems to work fine. (I had originally swapped to Paramiko as the default transport was hanging upon successful <code class="notranslate">su</code>, but a pull on the Ansible repo fixed that, so I have swapped back).</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Upon encountering the <code class="notranslate">su</code> code, I get this crash inside Paramiko:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File &quot;/home/jon/Development/Personal/server-build/ansible/lib/ansible/executor/task_executor.py&quot;, line 96, in run item_results = self._run_loop(items) File &quot;/home/jon/Development/Personal/server-build/ansible/lib/ansible/executor/task_executor.py&quot;, line 252, in _run_loop res = self._execute(variables=task_vars) File &quot;/home/jon/Development/Personal/server-build/ansible/lib/ansible/executor/task_executor.py&quot;, line 447, in _execute result = self._handler.run(task_vars=variables) File &quot;/home/jon/Development/Personal/server-build/ansible/lib/ansible/plugins/action/normal.py&quot;, line 33, in run results = merge_hash(results, self._execute_module(tmp=tmp, task_vars=task_vars)) File &quot;/home/jon/Development/Personal/server-build/ansible/lib/ansible/plugins/action/__init__.py&quot;, line 647, in _execute_module res = self._low_level_execute_command(cmd, sudoable=sudoable, in_data=in_data) File &quot;/home/jon/Development/Personal/server-build/ansible/lib/ansible/plugins/action/__init__.py&quot;, line 721, in _low_level_execute_command rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable) File &quot;/home/jon/Development/Personal/server-build/ansible/lib/ansible/plugins/connection/paramiko_ssh.py&quot;, line 311, in exec_command chan.sendall(self._play_context.become_pass + '\n') File &quot;/usr/lib/python2.7/dist-packages/paramiko/channel.py&quot;, line 797, in sendall sent = self.send(s) File &quot;/usr/lib/python2.7/dist-packages/paramiko/channel.py&quot;, line 729, in send m.add_string(s[:size]) File &quot;/usr/lib/python2.7/dist-packages/paramiko/message.py&quot;, line 259, in add_string self.packet.write(s) UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position 1: ordinal not in range(128) fatal: [server.example.com]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;Unexpected failure during module execution.&quot;, &quot;stdout&quot;: &quot;&quot;}"><pre class="notranslate"><code class="notranslate">An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File "/home/jon/Development/Personal/server-build/ansible/lib/ansible/executor/task_executor.py", line 96, in run item_results = self._run_loop(items) File "/home/jon/Development/Personal/server-build/ansible/lib/ansible/executor/task_executor.py", line 252, in _run_loop res = self._execute(variables=task_vars) File "/home/jon/Development/Personal/server-build/ansible/lib/ansible/executor/task_executor.py", line 447, in _execute result = self._handler.run(task_vars=variables) File "/home/jon/Development/Personal/server-build/ansible/lib/ansible/plugins/action/normal.py", line 33, in run results = merge_hash(results, self._execute_module(tmp=tmp, task_vars=task_vars)) File "/home/jon/Development/Personal/server-build/ansible/lib/ansible/plugins/action/__init__.py", line 647, in _execute_module res = self._low_level_execute_command(cmd, sudoable=sudoable, in_data=in_data) File "/home/jon/Development/Personal/server-build/ansible/lib/ansible/plugins/action/__init__.py", line 721, in _low_level_execute_command rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable) File "/home/jon/Development/Personal/server-build/ansible/lib/ansible/plugins/connection/paramiko_ssh.py", line 311, in exec_command chan.sendall(self._play_context.become_pass + '\n') File "/usr/lib/python2.7/dist-packages/paramiko/channel.py", line 797, in sendall sent = self.send(s) File "/usr/lib/python2.7/dist-packages/paramiko/channel.py", line 729, in send m.add_string(s[:size]) File "/usr/lib/python2.7/dist-packages/paramiko/message.py", line 259, in add_string self.packet.write(s) UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position 1: ordinal not in range(128) fatal: [server.example.com]: FAILED! =&gt; {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""} </code></pre></div> <p dir="auto">It is possible that this would be solved with a bleeding-edge install of Paramiko. If you'd like me to install that in order to try it, please let me know how to do that - I'm just using the version in Ubuntu at the moment.</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ x ] bug Report [ ] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[ x ] bug Report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Having a component with a ngClass, where the clauses have two or more of the same css classes, will be getting the css classes set wrongly, when using the component twice in a view.</p> <p dir="auto"><strong>Expected behavior</strong><br> All components used multiple times in a view should.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> For better understanding I'll start with the <em>Tour of Heroes: Part 3</em> Exmaple available on Plnkr and modify it.</p> <p dir="auto">To reproduce it you will have to give <code class="notranslate">my-hero-detail</code> a ngClass, like <code class="notranslate">[ngClass]="{'main' : isMain, 'main second': !isMain}"</code> and set <code class="notranslate">isMain</code> as a input variable of the component. When using the component <code class="notranslate">my-hero-detail</code> twice in a view, where the first component is set to <code class="notranslate">(isMain)=true</code> and the second is one is set to <code class="notranslate">(isMain)=false</code>, you will have a class missing in the first component. The second component will have the correct class set, being <code class="notranslate">class="main second"</code>, while the first component will have an empty class field <code class="notranslate">class=""</code>.</p> <p dir="auto">Modified <em>Tour of Heroes: Part 3</em> Exmaple: <a href="https://plnkr.co/edit/N9kiStd5mfDbqwGzmNiw?p=preview" rel="nofollow">https://plnkr.co/edit/N9kiStd5mfDbqwGzmNiw?p=preview</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Basically setting the right classes, when needed, without loosing a class.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Windows 10, VS Code</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong><br> 2.2.1</p> </li> <li> <p dir="auto"><strong>Browser:</strong><br> Reproduced in Chrome and Edge Browser</p> </li> <li> <p dir="auto"><strong>Language:</strong><br> Typescript</p> </li> </ul>
<p dir="auto">This is a plunk of the official one in the api preview with multiple class added instead, and change to alpha48</p> <p dir="auto"><a href="http://plnkr.co/edit/TxllaqdcEblrBW065XmX?p=preview" rel="nofollow">http://plnkr.co/edit/TxllaqdcEblrBW065XmX?p=preview</a></p> <p dir="auto">if you click the button and disabled back and forth, you will see that both class don't get added.</p>
1
<ul dir="auto"> <li>Electron version: Any??</li> <li>Operating system: Any??</li> </ul> <p dir="auto">This is where I found out about it: <a href="https://developer.chrome.com/multidevice/webview/tipsandtricks" rel="nofollow">https://developer.chrome.com/multidevice/webview/tipsandtricks</a></p>
<p dir="auto">We had a person report:</p> <p dir="auto">To increase nodejs memory limits it's common to use f.e. "NODE_OPTIONS=--max-old-space-size=8192".</p> <p dir="auto">For few seconds the slack.exe process appears in task manager, then disappears without any warnings or errors, doesn't matter if it's x32 or x64 version</p> <p dir="auto">Person thinks it’s something incompatible with node.dll(at initialization) slack use.</p> <ul dir="auto"> <li>Electron version: 1.8.x</li> <li>Operating system: Windows 10</li> <li>Slack version 3.1.1</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Slack should launch without issue.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Slack process starts in task manager and ends quickly after, no error or crash reported.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">User steps:</p> <p dir="auto">cmd<br> cd %USERPROFILE%\AppData\Local\Slack<br> set NODE_OPTIONS=--max-old-space-size=8192<br> slack.exe<br> It won’t start</p> <p dir="auto">If you:<br> set NODE_OPTIONS=<br> slack.exe</p> <p dir="auto">Slack starts without issue</p>
0
<h4 dir="auto">Description</h4> <p dir="auto">Type error thrown when handing over an options dictionary to gridsearchs fit method like so:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="grid_search.fit(train[[&quot;A&quot;, &quot;B&quot;]], train[&quot;C&quot;], **fit_options)"><pre class="notranslate"><span class="pl-s1">grid_search</span>.<span class="pl-en">fit</span>(<span class="pl-s1">train</span>[[<span class="pl-s">"A"</span>, <span class="pl-s">"B"</span>]], <span class="pl-s1">train</span>[<span class="pl-s">"C"</span>], <span class="pl-c1">**</span><span class="pl-s1">fit_options</span>)</pre></div> <p dir="auto">This worked for 0.21.3, but doesn't for 0.22.0, so this might be a regression. Behavior change was introduced here: <a href="https://github.com/scikit-learn/scikit-learn/blame/master/sklearn/model_selection/_search.py#L651">https://github.com/scikit-learn/scikit-learn/blame/master/sklearn/model_selection/_search.py#L651</a></p> <h4 dir="auto">Steps/Code to Reproduce</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.linear_model import HuberRegressor from sklearn.model_selection import GridSearchCV import pandas as pd train = pd.DataFrame({&quot;A&quot;: [1, 2, 3, 5, 2], &quot;B&quot;: [4, 5, 6, 4, 1], &quot;C&quot;: [5, 7, 9, 9, 3]}) hyper_parameter_tune = { &quot;epsilon&quot;: [1, 1.5] } fit_options = { &quot;sample_weight&quot;: 1 } gridsearch_params = { &quot;cv&quot;: 2 } gsearch = GridSearchCV(param_grid=hyper_parameter_tune, estimator=HuberRegressor(), **gridsearch_params ) gsearch.fit(train[[&quot;A&quot;, &quot;B&quot;]], train[&quot;C&quot;], **fit_options) observation = pd.DataFrame({&quot;A&quot;: [5], &quot;B&quot;: [2]}) print(gsearch.predict(observation))"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">linear_model</span> <span class="pl-k">import</span> <span class="pl-v">HuberRegressor</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">model_selection</span> <span class="pl-k">import</span> <span class="pl-v">GridSearchCV</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">train</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">"A"</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">5</span>, <span class="pl-c1">2</span>], <span class="pl-s">"B"</span>: [<span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>, <span class="pl-c1">4</span>, <span class="pl-c1">1</span>], <span class="pl-s">"C"</span>: [<span class="pl-c1">5</span>, <span class="pl-c1">7</span>, <span class="pl-c1">9</span>, <span class="pl-c1">9</span>, <span class="pl-c1">3</span>]}) <span class="pl-s1">hyper_parameter_tune</span> <span class="pl-c1">=</span> { <span class="pl-s">"epsilon"</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">1.5</span>] } <span class="pl-s1">fit_options</span> <span class="pl-c1">=</span> { <span class="pl-s">"sample_weight"</span>: <span class="pl-c1">1</span> } <span class="pl-s1">gridsearch_params</span> <span class="pl-c1">=</span> { <span class="pl-s">"cv"</span>: <span class="pl-c1">2</span> } <span class="pl-s1">gsearch</span> <span class="pl-c1">=</span> <span class="pl-v">GridSearchCV</span>(<span class="pl-s1">param_grid</span><span class="pl-c1">=</span><span class="pl-s1">hyper_parameter_tune</span>, <span class="pl-s1">estimator</span><span class="pl-c1">=</span><span class="pl-v">HuberRegressor</span>(), <span class="pl-c1">**</span><span class="pl-s1">gridsearch_params</span> ) <span class="pl-s1">gsearch</span>.<span class="pl-en">fit</span>(<span class="pl-s1">train</span>[[<span class="pl-s">"A"</span>, <span class="pl-s">"B"</span>]], <span class="pl-s1">train</span>[<span class="pl-s">"C"</span>], <span class="pl-c1">**</span><span class="pl-s1">fit_options</span>) <span class="pl-s1">observation</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">"A"</span>: [<span class="pl-c1">5</span>], <span class="pl-s">"B"</span>: [<span class="pl-c1">2</span>]}) <span class="pl-en">print</span>(<span class="pl-s1">gsearch</span>.<span class="pl-en">predict</span>(<span class="pl-s1">observation</span>))</pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">No Error thrown: TypeError: Singleton array array(1) cannot be considered a valid collection</p> <h4 dir="auto">Actual Results</h4> <p dir="auto">Traceback (most recent call last):<br> File "/home/stepo/PycharmProjects/untitled/test.py", line 24, in <br> gsearch.fit(train[["A", "B"]], train["C"], groups=None, **fit_options)<br> File "/home/stepo/PycharmProjects/untitled/venv/lib/python3.7/site-packages/sklearn/model_selection/_search.py", line 652, in fit<br> fit_params_values = indexable(*fit_params.values())<br> File "/home/stepo/PycharmProjects/untitled/venv/lib/python3.7/site-packages/sklearn/utils/validation.py", line 237, in indexable<br> check_consistent_length(*result)<br> File "/home/stepo/PycharmProjects/untitled/venv/lib/python3.7/site-packages/sklearn/utils/validation.py", line 208, in check_consistent_length<br> lengths = [_num_samples(X) for X in arrays if X is not None]<br> File "/home/stepo/PycharmProjects/untitled/venv/lib/python3.7/site-packages/sklearn/utils/validation.py", line 208, in <br> lengths = [_num_samples(X) for X in arrays if X is not None]<br> File "/home/stepo/PycharmProjects/untitled/venv/lib/python3.7/site-packages/sklearn/utils/validation.py", line 152, in _num_samples<br> " a valid collection." % x)<br> TypeError: Singleton array array(1) cannot be considered a valid collection.</p> <h4 dir="auto">Versions</h4> <p dir="auto">System:<br> python: 3.7.5 (default, Nov 20 2019, 09:21:52) [GCC 9.2.1 20191008]<br> executable: /home/stepo/PycharmProjects/untitled/venv/bin/python<br> machine: Linux-5.3.0-24-generic-x86_64-with-Ubuntu-19.10-eoan</p> <p dir="auto">Python dependencies:<br> pip: 19.0.3<br> setuptools: 40.8.0<br> sklearn: 0.22<br> numpy: 1.17.4<br> scipy: 1.3.3<br> Cython: None<br> pandas: 0.25.3<br> matplotlib: None<br> joblib: 0.14.1</p> <p dir="auto">Built with OpenMP: True</p>
<p dir="auto"><strong>UPDATE May 23 202</strong></p> <p dir="auto">Here's a list of the remaining classes:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> feature_selection.SelectorMixin</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> calibration.CalibratedClassifierCV (<a href="https://github.com/scikit-learn/scikit-learn/pull/15134" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/15134/hovercard">#15134</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> decomposition.DictionaryLearning (<a href="https://github.com/scikit-learn/scikit-learn/pull/16907" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/16907/hovercard">#16907</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> decomposition.MiniBatchDictionaryLearning (<a href="https://github.com/scikit-learn/scikit-learn/pull/16907" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/16907/hovercard">#16907</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> decomposition.SparseCoder (<a href="https://github.com/scikit-learn/scikit-learn/pull/15233" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/15233/hovercard">#15233</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ensemble.GradientBoostingClassifier</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> gaussian_process.kernels.CompoundKernel</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> gaussian_process.kernels.Hyperparameter</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> gaussian_process.kernels.Kernel</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> gaussian_process.kernels.PairwiseKernel</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> inspection.PartialDependenceDisplay</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> linear_model.PoissonRegressor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> linear_model.TweedieRegressor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> linear_model.GammaRegressor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> metrics.ConfusionMatrixDisplay</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> metrics.PrecisionRecallDisplay</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> mixture.BayesianGaussianMixture</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> mixture.GaussianMixture</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> multioutput.ClassifierChain (<a href="https://github.com/scikit-learn/scikit-learn/pull/15211" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/15211/hovercard">#15211</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> multioutput.RegressorChain (<a href="https://github.com/scikit-learn/scikit-learn/pull/15215" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/15215/hovercard">#15215</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> neighbors.BallTree</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> neighbors.DistanceMetric</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> neighbors.KDTree</li> </ul> <hr> <p dir="auto">Most of the docs in classes lack examples. It would be great to add one or two examples similar to this, <a href="http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Lasso.html" rel="nofollow">http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Lasso.html</a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/449558/42726195-f31a227c-8755-11e8-8156-57ecf714614c.png"><img src="https://user-images.githubusercontent.com/449558/42726195-f31a227c-8755-11e8-8156-57ecf714614c.png" alt="image" style="max-width: 100%;"></a></p>
0
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">I think it has feature reset settings</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">On Windows 10, when you pin the native PowerShell shortcut to start, there is a menu item "Run as Administrator" when you right-click it.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/39968/67994098-922cd000-fc7e-11e9-8d87-b09573273aa5.png"><img src="https://user-images.githubusercontent.com/39968/67994098-922cd000-fc7e-11e9-8d87-b09573273aa5.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">However, the same operation for Windows Terminal results in this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/39968/67994128-aec90800-fc7e-11e9-80fc-41a84d95833f.png"><img src="https://user-images.githubusercontent.com/39968/67994128-aec90800-fc7e-11e9-80fc-41a84d95833f.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The user has to choose "more" -&gt; "Run as Administrator".</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/39968/67994141-be485100-fc7e-11e9-8db6-acbefc80651d.png"><img src="https://user-images.githubusercontent.com/39968/67994141-be485100-fc7e-11e9-8db6-acbefc80651d.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I hope Windows Terminal has the top-level "Run as Administrator" just as native PowerShell does.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
0
<h1 dir="auto">v7 Regression</h1> <p dir="auto"><strong>Potential Commit/PR that introduced the regression</strong><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="464162117" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/10161" data-hovercard-type="pull_request" data-hovercard-url="/babel/babel/pull/10161/hovercard" href="https://github.com/babel/babel/pull/10161">#10161</a></p> <p dir="auto"><strong>Description</strong><br> When we recently upgraded from <code class="notranslate">7.5</code> to <code class="notranslate">7.8</code> we experienced a bundle size increase from <code class="notranslate">~3,4 MB</code> to <code class="notranslate">3.5 MB</code> minified (<code class="notranslate">+90 KB</code> difference)</p> <p dir="auto">When we checked the bundle diff, we found that a function <code class="notranslate">_getRequireWildcardCache</code> is being re-defined for every module in our application and adds quite a bunch of code in total.</p> <p dir="auto">Searching for the function, we found that it's a new feature in babel <code class="notranslate">7.6</code>. Here's a blog post where <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ifsnow/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ifsnow">@ifsnow</a> , who built this feature explains it nicely: <a href="https://www.notion.so/Improving-Babel-Import-performance-makes-React-Native-faster-4ab20915a599481ab8fbb4993db38709" rel="nofollow">https://www.notion.so/Improving-Babel-Import-performance-makes-React-Native-faster-4ab20915a599481ab8fbb4993db38709</a> (thanks for the explanation by the way)</p> <p dir="auto">But what we find now is that besides the performance improvement we're hoping to get, we're seeing this regression in bundle size.</p> <p dir="auto">Is that to be expected? Is it possible to opt-out of this optimization?</p>
<p dir="auto">Here's the input file.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(function () { 'use strict'; const angular = window.angular; function mainContainer() { return { restrict: 'E', templateUrl: 'packages/main-container/main-container.html' }; } angular.module('app') .directive('mainContainer', [ mainContainer ]); }());"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s">'use strict'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">angular</span> <span class="pl-c1">=</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">angular</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">mainContainer</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">restrict</span>: <span class="pl-s">'E'</span><span class="pl-kos">,</span> <span class="pl-c1">templateUrl</span>: <span class="pl-s">'packages/main-container/main-container.html'</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">angular</span><span class="pl-kos">.</span><span class="pl-en">module</span><span class="pl-kos">(</span><span class="pl-s">'app'</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">directive</span><span class="pl-kos">(</span><span class="pl-s">'mainContainer'</span><span class="pl-kos">,</span> <span class="pl-kos">[</span> <span class="pl-s1">mainContainer</span> <span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">And here's the output.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict'; (function () { 'use strict'; var angular = window.angular; function mainContainer() { return { restrict: 'E', templateUrl: 'packages/main-container/main-container.html' }; } angular.module('app').directive('mainContainer', [mainContainer]); })();"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s">'use strict'</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">angular</span> <span class="pl-c1">=</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">angular</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">mainContainer</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">restrict</span>: <span class="pl-s">'E'</span><span class="pl-kos">,</span> <span class="pl-c1">templateUrl</span>: <span class="pl-s">'packages/main-container/main-container.html'</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">angular</span><span class="pl-kos">.</span><span class="pl-en">module</span><span class="pl-kos">(</span><span class="pl-s">'app'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">directive</span><span class="pl-kos">(</span><span class="pl-s">'mainContainer'</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">mainContainer</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I'm using the default settings.</p>
0
<p dir="auto">This is a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="225066856" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/24110" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/24110/hovercard" href="https://github.com/ansible/ansible/issues/24110">#24110</a> but that issue is closed and nobody seems to be willing to open it (I even asked in #ansible).</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">pacman</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook 2.4.1.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/thom/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.14 (default, Sep 20 2017, 01:25:59) [GCC 7.2.0]"><pre class="notranslate"><code class="notranslate">ansible-playbook 2.4.1.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/thom/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.14 (default, Sep 20 2017, 01:25:59) [GCC 7.2.0] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">N/A</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Arch Linux</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Pacman supports aliases when searching or installing package names, but doesn't support them when querying package's installed states. This crashes the Ansible <code class="notranslate">pacman</code> module.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: localhost become: yes tasks: - pacman: name=svn state=present"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">become</span>: <span class="pl-s">yes</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">pacman</span>: <span class="pl-s">name=svn state=present</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Show that subversion is already installed</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="task path: /home/thom/git/ansible/test.yml:4 Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/pacman.py &lt;127.0.0.1&gt; ESTABLISH LOCAL CONNECTION FOR USER: thom &lt;127.0.0.1&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p &quot;` echo /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425 `&quot; &amp;&amp; echo ansible-tmp-1510228510.14-193730463357425=&quot;` echo /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425 `&quot; ) &amp;&amp; sleep 0' &lt;127.0.0.1&gt; PUT /tmp/tmpO43qZY TO /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425/pacman.py &lt;127.0.0.1&gt; EXEC /bin/sh -c 'chmod u+x /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425/ /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425/pacman.py &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c 'sudo -H -S -p &quot;[sudo via ansible, key=piygkrwrgcualemppeyqvtcebrddppaq] password: &quot; -u root /bin/sh -c '&quot;'&quot;'echo BECOME-SUCCESS-piygkrwrgcualemppeyqvtcebrddppaq; /usr/bin/python2 /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425/pacman.py; rm -rf &quot;/home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425/&quot; &gt; /dev/null 2&gt;&amp;1'&quot;'&quot;' &amp;&amp; sleep 0' The full traceback is: Traceback (most recent call last): File &quot;/tmp/ansible_VEhXK5/ansible_module_pacman.py&quot;, line 444, in &lt;module&gt; main() File &quot;/tmp/ansible_VEhXK5/ansible_module_pacman.py&quot;, line 436, in main install_packages(module, pacman_path, p['state'], pkgs, pkg_files) File &quot;/tmp/ansible_VEhXK5/ansible_module_pacman.py&quot;, line 298, in install_packages data = stdout.split('\n')[3].split(' ')[2:] IndexError: list index out of range fatal: [localhost]: FAILED! =&gt; { &quot;changed&quot;: false, &quot;failed&quot;: true, &quot;module_stderr&quot;: &quot;Traceback (most recent call last):\n File \&quot;/tmp/ansible_VEhXK5/ansible_module_pacman.py\&quot;, line 444, in &lt;module&gt;\n main()\n File \&quot;/tmp/ansible_VEhXK5/ansible_module_pacman.py\&quot;, line 436, in main\n install_packages(module, pacman_path, p['state'], pkgs, pkg_files)\n File \&quot;/tmp/ansible_VEhXK5/ansible_module_pacman.py\&quot;, line 298, in install_packages\n data = stdout.split('\\n')[3].split(' ')[2:]\nIndexError: list index out of range\n&quot;, &quot;module_stdout&quot;: &quot;&quot;, &quot;msg&quot;: &quot;MODULE FAILURE&quot;, &quot;rc&quot;: 0 }"><pre class="notranslate"><code class="notranslate">task path: /home/thom/git/ansible/test.yml:4 Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/pacman.py &lt;127.0.0.1&gt; ESTABLISH LOCAL CONNECTION FOR USER: thom &lt;127.0.0.1&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p "` echo /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425 `" &amp;&amp; echo ansible-tmp-1510228510.14-193730463357425="` echo /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425 `" ) &amp;&amp; sleep 0' &lt;127.0.0.1&gt; PUT /tmp/tmpO43qZY TO /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425/pacman.py &lt;127.0.0.1&gt; EXEC /bin/sh -c 'chmod u+x /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425/ /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425/pacman.py &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=piygkrwrgcualemppeyqvtcebrddppaq] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-piygkrwrgcualemppeyqvtcebrddppaq; /usr/bin/python2 /home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425/pacman.py; rm -rf "/home/thom/.ansible/tmp/ansible-tmp-1510228510.14-193730463357425/" &gt; /dev/null 2&gt;&amp;1'"'"' &amp;&amp; sleep 0' The full traceback is: Traceback (most recent call last): File "/tmp/ansible_VEhXK5/ansible_module_pacman.py", line 444, in &lt;module&gt; main() File "/tmp/ansible_VEhXK5/ansible_module_pacman.py", line 436, in main install_packages(module, pacman_path, p['state'], pkgs, pkg_files) File "/tmp/ansible_VEhXK5/ansible_module_pacman.py", line 298, in install_packages data = stdout.split('\n')[3].split(' ')[2:] IndexError: list index out of range fatal: [localhost]: FAILED! =&gt; { "changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_VEhXK5/ansible_module_pacman.py\", line 444, in &lt;module&gt;\n main()\n File \"/tmp/ansible_VEhXK5/ansible_module_pacman.py\", line 436, in main\n install_packages(module, pacman_path, p['state'], pkgs, pkg_files)\n File \"/tmp/ansible_VEhXK5/ansible_module_pacman.py\", line 298, in install_packages\n data = stdout.split('\\n')[3].split(' ')[2:]\nIndexError: list index out of range\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 0 } </code></pre></div> <p dir="auto">See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="225066856" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/24110" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/24110/hovercard" href="https://github.com/ansible/ansible/issues/24110">#24110</a></p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">pacman module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.13 (default, Feb 11 2017, 12:22:40) [GCC 6.3.1 20170109]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.13 (default, Feb 11 2017, 12:22:40) [GCC 6.3.1 20170109] </code></pre></div> <p dir="auto">This worked fine in Ansible 2.2.</p> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults] nocows=1"><pre class="notranslate"><code class="notranslate">[defaults] nocows=1 </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">I'm running on Arch Linux</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Running</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto"><a href="https://github.com/thomwiggers/odroid-playbooks/blob/master/roles/common/tasks/common.yml#L8-L16">https://github.com/thomwiggers/odroid-playbooks/blob/master/roles/common/tasks/common.yml#L8-L16</a></p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Updated/installed packages</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Crashes.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [common : Install packages] ************************************************************************************************************************************************************************************************************ task path: /home/thom/git/stage/management/roles/common/tasks/common.yml:8 Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/pacman.py &lt;homer&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;homer&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/thom/.ansible/cp/fdc2bea664 homer '/bin/sh -c '&quot;'&quot;'echo ~ &amp;&amp; sleep 0'&quot;'&quot;'' &lt;homer&gt; (0, '/home/thom\n', &quot;OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W '[%h]:%p' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n&quot;) &lt;homer&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;homer&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/thom/.ansible/cp/fdc2bea664 homer '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474 `&quot; &amp;&amp; echo ansible-tmp-1493382410.32-244000386629474=&quot;` echo /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;'' &lt;homer&gt; (0, 'ansible-tmp-1493382410.32-244000386629474=/home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474\n', &quot;OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W '[%h]:%p' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n&quot;) &lt;homer&gt; PUT /tmp/tmp3nwsZr TO /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/pacman.py &lt;homer&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/thom/.ansible/cp/fdc2bea664 '[homer]' &lt;homer&gt; (0, 'sftp&gt; put /tmp/tmp3nwsZr /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/pacman.py\n', 'OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W \'[%h]:%p\' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 2\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 2\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /home/thom size 0\r\ndebug3: Looking up /tmp/tmp3nwsZr\r\ndebug3: Sent message fd 5 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/pacman.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:27437\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 27437 bytes at 32768\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;homer&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;homer&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/thom/.ansible/cp/fdc2bea664 homer '/bin/sh -c '&quot;'&quot;'chmod u+x /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/ /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/pacman.py &amp;&amp; sleep 0'&quot;'&quot;'' &lt;homer&gt; (0, '', &quot;OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W '[%h]:%p' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n&quot;) &lt;homer&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;homer&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/thom/.ansible/cp/fdc2bea664 -tt homer '/bin/sh -c '&quot;'&quot;'sudo -H -S -n -u root /bin/sh -c '&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'echo BECOME-SUCCESS-tixkiailijheyhbmsllbeczwqwdaiueq; /usr/bin/python /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/pacman.py; rm -rf &quot;/home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/&quot; &gt; /dev/null 2&gt;&amp;1'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;' &amp;&amp; sleep 0'&quot;'&quot;'' &lt;homer&gt; (0, 'Traceback (most recent call last):\r\n File &quot;/tmp/ansible_nbtluy_z/ansible_module_pacman.py&quot;, line 451, in &lt;module&gt;\r\n main()\r\n File &quot;/tmp/ansible_nbtluy_z/ansible_module_pacman.py&quot;, line 443, in main\r\n install_packages(module, pacman_path, p[\'state\'], pkgs, pkg_files)\r\n File &quot;/tmp/ansible_nbtluy_z/ansible_module_pacman.py&quot;, line 306, in install_packages\r\n data = stdout.split(\'\\n\')[3].split(\' \')[2:]\r\nIndexError: list index out of range\r\n', &quot;OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W '[%h]:%p' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 131.174.12.215 closed.\r\n&quot;) failed: [homer] (item=[u'ack', u'base-devel', u'clang', u'cmake', u'cronie', u'curl', u'git', u'htop', u'ltrace', u'ntp', u'openbsd-netcat', u'python', u'python-pip', u'python-virtualenv', u'python-virtualenvwrapper', u'python2', u'python2-pip', u'rsync', u'strace', u'svn', u'the_silver_searcher', u'tmux', u'valgrind', u'vim', u'wget', u'zsh']) =&gt; { &quot;failed&quot;: true, &quot;item&quot;: [ &quot;ack&quot;, &quot;base-devel&quot;, &quot;clang&quot;, &quot;cmake&quot;, &quot;cronie&quot;, &quot;curl&quot;, &quot;git&quot;, &quot;htop&quot;, &quot;ltrace&quot;, &quot;ntp&quot;, &quot;openbsd-netcat&quot;, &quot;python&quot;, &quot;python-pip&quot;, &quot;python-virtualenv&quot;, &quot;python-virtualenvwrapper&quot;, &quot;python2&quot;, &quot;python2-pip&quot;, &quot;rsync&quot;, &quot;strace&quot;, &quot;svn&quot;, &quot;the_silver_searcher&quot;, &quot;tmux&quot;, &quot;valgrind&quot;, &quot;vim&quot;, &quot;wget&quot;, &quot;zsh&quot; ], &quot;module_stderr&quot;: &quot;OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W '[%h]:%p' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 131.174.12.215 closed.\r\n&quot;, &quot;module_stdout&quot;: &quot;Traceback (most recent call last):\r\n File \&quot;/tmp/ansible_nbtluy_z/ansible_module_pacman.py\&quot;, line 451, in &lt;module&gt;\r\n main()\r\n File \&quot;/tmp/ansible_nbtluy_z/ansible_module_pacman.py\&quot;, line 443, in main\r\n install_packages(module, pacman_path, p['state'], pkgs, pkg_files)\r\n File \&quot;/tmp/ansible_nbtluy_z/ansible_module_pacman.py\&quot;, line 306, in install_packages\r\n data = stdout.split('\\n')[3].split(' ')[2:]\r\nIndexError: list index out of range\r\n&quot;, &quot;msg&quot;: &quot;MODULE FAILURE&quot;, &quot;rc&quot;: 0 }"><pre class="notranslate"><code class="notranslate">TASK [common : Install packages] ************************************************************************************************************************************************************************************************************ task path: /home/thom/git/stage/management/roles/common/tasks/common.yml:8 Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/pacman.py &lt;homer&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;homer&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/thom/.ansible/cp/fdc2bea664 homer '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"'' &lt;homer&gt; (0, '/home/thom\n', "OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W '[%h]:%p' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n") &lt;homer&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;homer&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/thom/.ansible/cp/fdc2bea664 homer '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474 `" &amp;&amp; echo ansible-tmp-1493382410.32-244000386629474="` echo /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474 `" ) &amp;&amp; sleep 0'"'"'' &lt;homer&gt; (0, 'ansible-tmp-1493382410.32-244000386629474=/home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474\n', "OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W '[%h]:%p' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n") &lt;homer&gt; PUT /tmp/tmp3nwsZr TO /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/pacman.py &lt;homer&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/thom/.ansible/cp/fdc2bea664 '[homer]' &lt;homer&gt; (0, 'sftp&gt; put /tmp/tmp3nwsZr /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/pacman.py\n', 'OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W \'[%h]:%p\' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /home/thom size 0\r\ndebug3: Looking up /tmp/tmp3nwsZr\r\ndebug3: Sent message fd 5 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/pacman.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:27437\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 27437 bytes at 32768\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;homer&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;homer&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/thom/.ansible/cp/fdc2bea664 homer '/bin/sh -c '"'"'chmod u+x /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/ /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/pacman.py &amp;&amp; sleep 0'"'"'' &lt;homer&gt; (0, '', "OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W '[%h]:%p' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n") &lt;homer&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;homer&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/thom/.ansible/cp/fdc2bea664 -tt homer '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-tixkiailijheyhbmsllbeczwqwdaiueq; /usr/bin/python /home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/pacman.py; rm -rf "/home/thom/.ansible/tmp/ansible-tmp-1493382410.32-244000386629474/" &gt; /dev/null 2&gt;&amp;1'"'"'"'"'"'"'"'"' &amp;&amp; sleep 0'"'"'' &lt;homer&gt; (0, 'Traceback (most recent call last):\r\n File "/tmp/ansible_nbtluy_z/ansible_module_pacman.py", line 451, in &lt;module&gt;\r\n main()\r\n File "/tmp/ansible_nbtluy_z/ansible_module_pacman.py", line 443, in main\r\n install_packages(module, pacman_path, p[\'state\'], pkgs, pkg_files)\r\n File "/tmp/ansible_nbtluy_z/ansible_module_pacman.py", line 306, in install_packages\r\n data = stdout.split(\'\\n\')[3].split(\' \')[2:]\r\nIndexError: list index out of range\r\n', "OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W '[%h]:%p' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 131.174.12.215 closed.\r\n") failed: [homer] (item=[u'ack', u'base-devel', u'clang', u'cmake', u'cronie', u'curl', u'git', u'htop', u'ltrace', u'ntp', u'openbsd-netcat', u'python', u'python-pip', u'python-virtualenv', u'python-virtualenvwrapper', u'python2', u'python2-pip', u'rsync', u'strace', u'svn', u'the_silver_searcher', u'tmux', u'valgrind', u'vim', u'wget', u'zsh']) =&gt; { "failed": true, "item": [ "ack", "base-devel", "clang", "cmake", "cronie", "curl", "git", "htop", "ltrace", "ntp", "openbsd-netcat", "python", "python-pip", "python-virtualenv", "python-virtualenvwrapper", "python2", "python2-pip", "rsync", "strace", "svn", "the_silver_searcher", "tmux", "valgrind", "vim", "wget", "zsh" ], "module_stderr": "OpenSSH_7.5p1, OpenSSL 1.1.0e 16 Feb 2017\r\ndebug1: Reading configuration data /home/thom/.ssh/config\r\ndebug1: /home/thom/.ssh/config line 3: Applying options for *\r\ndebug3: kex names ok: [[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256]\r\ndebug1: /home/thom/.ssh/config line 82: Applying options for homer\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -l twiggers -vvv -W '[%h]:%p' lilo.science.ru.nl\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 7302\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 131.174.12.215 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_nbtluy_z/ansible_module_pacman.py\", line 451, in &lt;module&gt;\r\n main()\r\n File \"/tmp/ansible_nbtluy_z/ansible_module_pacman.py\", line 443, in main\r\n install_packages(module, pacman_path, p['state'], pkgs, pkg_files)\r\n File \"/tmp/ansible_nbtluy_z/ansible_module_pacman.py\", line 306, in install_packages\r\n data = stdout.split('\\n')[3].split(' ')[2:]\r\nIndexError: list index out of range\r\n", "msg": "MODULE FAILURE", "rc": 0 } </code></pre></div>
1
<ul dir="auto"> <li>VSCode Version: 1.1.0</li> <li>OS Version: Mac OSX 10.11.4</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open Visual Studio Code</li> <li>Open any file</li> <li>Right click in any word to show the popup menu</li> <li>The native Mac OSX popup menu is replaced by a particular Visual Studio Code menu</li> </ol> <p dir="auto">However, the operating system native popup usually provides useful things such as spell check. Visual Studio Code popup menu options would be added to the native Mac OSX popup.<br> The images below shows the differences between a native Mac OSX application and Visual Studio Code.</p> <ul dir="auto"> <li><strong>Mac OSX popup menu in native TextEdit app:</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/261605/15140797/b153fe5a-1694-11e6-8cb1-e4435d9a7acc.gif"><img src="https://cloud.githubusercontent.com/assets/261605/15140797/b153fe5a-1694-11e6-8cb1-e4435d9a7acc.gif" alt="macos-popup-menu-native-textedit-app" data-animated-image="" style="max-width: 100%;"></a></li> <li><strong>Replaced popup menu in Visual Studio Code:</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/261605/15140798/b19e513a-1694-11e6-9e34-ef4b20ecff20.gif"><img src="https://cloud.githubusercontent.com/assets/261605/15140798/b19e513a-1694-11e6-9e34-ef4b20ecff20.gif" alt="macos-popup-menu-visualstudiocode" data-animated-image="" style="max-width: 100%;"></a></li> </ul>
<ul dir="auto"> <li>VSCode Version: 1.1.0</li> <li>OS Version: Win 8.1</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Map a network drive to a location.</li> <li>Make mapped location unreachable.</li> <li>File &gt; Open Folder...</li> </ol> <p dir="auto">VS Code will become non-responsive for a period of time, after which several duplicated OS errors pop up regarding inability to connect to the drive.</p>
0
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.169.0<br> <strong>System</strong>: linux 3.13.0-43-generic<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Atom can only handle files &lt; 2MB for now.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /usr/share/atom/resources/app/src/project.js:355 Error: Atom can only handle files &lt; 2MB for now. at Project.module.exports.Project.buildBuffer (/usr/share/atom/resources/app/src/project.js:355:15) at Project.module.exports.Project.bufferForPath (/usr/share/atom/resources/app/src/project.js:332:63) at Project.module.exports.Project.open (/usr/share/atom/resources/app/src/project.js:286:19) at Workspace.module.exports.Workspace.openUriInPane (/usr/share/atom/resources/app/src/workspace.js:485:29) at Workspace.module.exports.Workspace.open (/usr/share/atom/resources/app/src/workspace.js:412:19) at Ipc.&lt;anonymous&gt; (/usr/share/atom/resources/app/src/window-event-handler.js:45:32) at Ipc.emit (events.js:110:17) at process.&lt;anonymous&gt; (/usr/share/atom/resources/atom/renderer/api/lib/ipc.js:22:29) at process.emit (events.js:118:17) "><pre class="notranslate"><code class="notranslate">At /usr/share/atom/resources/app/src/project.js:355 Error: Atom can only handle files &lt; 2MB for now. at Project.module.exports.Project.buildBuffer (/usr/share/atom/resources/app/src/project.js:355:15) at Project.module.exports.Project.bufferForPath (/usr/share/atom/resources/app/src/project.js:332:63) at Project.module.exports.Project.open (/usr/share/atom/resources/app/src/project.js:286:19) at Workspace.module.exports.Workspace.openUriInPane (/usr/share/atom/resources/app/src/workspace.js:485:29) at Workspace.module.exports.Workspace.open (/usr/share/atom/resources/app/src/workspace.js:412:19) at Ipc.&lt;anonymous&gt; (/usr/share/atom/resources/app/src/window-event-handler.js:45:32) at Ipc.emit (events.js:110:17) at process.&lt;anonymous&gt; (/usr/share/atom/resources/atom/renderer/api/lib/ipc.js:22:29) at process.emit (events.js:118:17) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 2x -1:44.1 application:new-file (ul.list-inline.tab-bar.inset-panel) 2x -1:21.8 tree-view:toggle (atom-text-editor.editor) -0:49.6 command-palette:toggle (atom-text-editor.editor) -0:45.3 core:confirm (atom-text-editor.editor.mini) -0:45.3 settings-view:open (atom-text-editor.editor) 4x -0:22.9 core:backspace (atom-text-editor.editor) -0:21.7 editor:newline (atom-text-editor.editor) 4x -0:18.8 core:backspace (atom-text-editor.editor) 2x -0:17.9 core:select-up (atom-text-editor.editor) -0:17.3 core:backspace (atom-text-editor.editor) -0:00.0 application:new-file (ul.list-inline.tab-bar.inset-panel)"><pre class="notranslate"><code class="notranslate"> 2x -1:44.1 application:new-file (ul.list-inline.tab-bar.inset-panel) 2x -1:21.8 tree-view:toggle (atom-text-editor.editor) -0:49.6 command-palette:toggle (atom-text-editor.editor) -0:45.3 core:confirm (atom-text-editor.editor.mini) -0:45.3 settings-view:open (atom-text-editor.editor) 4x -0:22.9 core:backspace (atom-text-editor.editor) -0:21.7 editor:newline (atom-text-editor.editor) 4x -0:18.8 core:backspace (atom-text-editor.editor) 2x -0:17.9 core:select-up (atom-text-editor.editor) -0:17.3 core:backspace (atom-text-editor.editor) -0:00.0 application:new-file (ul.list-inline.tab-bar.inset-panel) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;themes&quot;: [ &quot;atom-light-ui&quot;, &quot;solarized-light-syntax&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-light-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>solarized-light-syntax<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {} } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User No installed packages # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> <span class="pl-en">No</span> <span class="pl-en">installed</span> packages <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<ol dir="auto"> <li>Editing an unsaved .xml file</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.182.0<br> <strong>System</strong>: linux 3.18.6-1-ARCH<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught TypeError: Cannot read property 'isComment' of undefined</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /usr/share/atom/resources/app/src/tokenized-buffer.js:401 TypeError: Cannot read property 'isComment' of undefined at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableCodeAtRow (/usr/share/atom/resources/app/src/tokenized-buffer.js:401:71) at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableAtRow (/usr/share/atom/resources/app/src/tokenized-buffer.js:396:19) at TokenizedBuffer.module.exports.TokenizedBuffer.updateFoldableStatus (/usr/share/atom/resources/app/src/tokenized-buffer.js:384:25) at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/usr/share/atom/resources/app/src/tokenized-buffer.js:351:20) at /usr/share/atom/resources/app/src/tokenized-buffer.js:56:24 at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:82:11) at TextBuffer.module.exports.TextBuffer.applyPatch (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:594:20) at BufferPatch.module.exports.BufferPatch.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21) at Transaction.module.exports.Transaction.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/transaction.js:60:29) at History.module.exports.History.abortTransaction (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:165:24) at History.module.exports.History.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:122:16) at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27) at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app/src/text-editor.js:1195:26) at atom-text-editor.newCommandListeners.(anonymous function) (/usr/share/atom/resources/app/src/text-editor-element.js:304:22) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:243:29) at /usr/share/atom/resources/app/src/command-registry.js:3:61 at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16) at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22) at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app/src/window-event-handler.js:176:20) "><pre class="notranslate"><code class="notranslate">At /usr/share/atom/resources/app/src/tokenized-buffer.js:401 TypeError: Cannot read property 'isComment' of undefined at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableCodeAtRow (/usr/share/atom/resources/app/src/tokenized-buffer.js:401:71) at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableAtRow (/usr/share/atom/resources/app/src/tokenized-buffer.js:396:19) at TokenizedBuffer.module.exports.TokenizedBuffer.updateFoldableStatus (/usr/share/atom/resources/app/src/tokenized-buffer.js:384:25) at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/usr/share/atom/resources/app/src/tokenized-buffer.js:351:20) at /usr/share/atom/resources/app/src/tokenized-buffer.js:56:24 at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:82:11) at TextBuffer.module.exports.TextBuffer.applyPatch (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:594:20) at BufferPatch.module.exports.BufferPatch.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21) at Transaction.module.exports.Transaction.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/transaction.js:60:29) at History.module.exports.History.abortTransaction (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:165:24) at History.module.exports.History.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:122:16) at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27) at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app/src/text-editor.js:1195:26) at atom-text-editor.newCommandListeners.(anonymous function) (/usr/share/atom/resources/app/src/text-editor-element.js:304:22) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:243:29) at /usr/share/atom/resources/app/src/command-registry.js:3:61 at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16) at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22) at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app/src/window-event-handler.js:176:20) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 3x -1:41.5 editor:newline (atom-text-editor.editor.is-focused) -1:33.4 core:backspace (atom-text-editor.editor.is-focused) -1:31.2 autocomplete:toggle (atom-text-editor.editor.is-focused) -1:29.8 core:move-up (atom-text-editor.editor.is-focused) -1:20.2 core:backspace (atom-text-editor.editor.is-focused) -0:00.6 editor:newline (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> 3x -1:41.5 editor:newline (atom-text-editor.editor.is-focused) -1:33.4 core:backspace (atom-text-editor.editor.is-focused) -1:31.2 autocomplete:toggle (atom-text-editor.editor.is-focused) -1:29.8 core:move-up (atom-text-editor.editor.is-focused) -1:20.2 core:backspace (atom-text-editor.editor.is-focused) -0:00.6 editor:newline (atom-text-editor.editor.is-focused) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;destroyEmptyPanes&quot;: false }, &quot;editor&quot;: { &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"destroyEmptyPanes"</span>: <span class="pl-c1">false</span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {} } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User atom-beautify, v0.21.3 file-icons, v1.5.1 linter, v0.12.0 linter-xmllint, v0.0.5 xml-formatter, v0.8.1 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> atom<span class="pl-k">-</span>beautify, v0.<span class="pl-ii">21</span>.<span class="pl-ii">3</span> file<span class="pl-k">-</span>icons, v1.<span class="pl-ii">5</span>.<span class="pl-ii">1</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>xmllint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">5</span> xml<span class="pl-k">-</span>formatter, v0.<span class="pl-ii">8</span>.<span class="pl-ii">1</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
0
<p dir="auto">Scheduler takes 100% of CPU without task execution<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="784276414" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/13637" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/13637/hovercard" href="https://github.com/apache/airflow/issues/13637">#13637</a></p>
<p dir="auto">I have a kind request for all the contributors to the latest provider packages release.<br> Could you please help us to test the RC versions of the providers?</p> <p dir="auto">Let us know in the comment, whether the issue is addressed.</p> <p dir="auto">Those are providers that require testing as there were some substantial changes introduced:</p> <h2 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-amazon/8.0.0rc2" rel="nofollow">amazon: 8.0.0rc2</a></h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/30748" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30748/hovercard">Remove deprecated "delegate_to" from GCP operators and hooks (#30748)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/shahar1/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/shahar1">@shahar1</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/30755" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30755/hovercard">take advantage of upcoming major version release to remove deprecated things (#30755)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vandonr-amz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vandonr-amz">@vandonr-amz</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/30720" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30720/hovercard">add a stop operator to emr serverless (#30720)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vandonr-amz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vandonr-amz">@vandonr-amz</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/30460" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30460/hovercard">SqlToS3Operator - Add feature to partition SQL table (#30460)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/utkarsharma2/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/utkarsharma2">@utkarsharma2</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/28338" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/28338/hovercard">New AWS sensor — DynamoDBValueSensor (#28338)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrichman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrichman">@mrichman</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/30757" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30757/hovercard">Add a "force" option to emr serverless stop/delete operator (#30757)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vandonr-amz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vandonr-amz">@vandonr-amz</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/30032" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30032/hovercard">Add support for deferrable operators in AMPP (#30032)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/syedahsn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/syedahsn">@syedahsn</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/30703" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30703/hovercard">Fixed logging issue in <code class="notranslate">DynamoDBValueSensor</code> (#30703)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrichman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrichman">@mrichman</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/30595" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30595/hovercard">DynamoDBHook - waiter_path() to consider <code class="notranslate">resource_type</code> or <code class="notranslate">client_type</code> (#30595)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/utkarsharma2/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/utkarsharma2">@utkarsharma2</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/30586" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30586/hovercard">Add ability to override waiter delay in EcsRunTaskOperator (#30586)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vincbeck/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vincbeck">@vincbeck</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/29522" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/29522/hovercard">Add support in AWS Batch Operator for multinode jobs (#29522)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vandonr-amz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vandonr-amz">@vandonr-amz</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/30756" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30756/hovercard">AWS logs. Exit fast when 3 consecutive responses are returned from AWS Cloudwatch logs (#30756)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vincbeck/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vincbeck">@vincbeck</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/30774" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30774/hovercard">Remove @poke_mode_only from EmrStepSensor (#30774)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vincbeck/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vincbeck">@vincbeck</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/30541" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30541/hovercard">Organize Amazon provider docs index (#30541)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/30634" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30634/hovercard">Remove duplicate param docstring in EksPodOperator (#30634)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jlaneve/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jlaneve">@jlaneve</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/30844" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/30844/hovercard">Update AWS EMR Cluster Link to use the new dashboard (#30844)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dakshin-k/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dakshin-k">@dakshin-k</a></li> </ul> <p dir="auto">The guidelines on how to test providers can be found in</p> <p dir="auto"><a href="https://github.com/apache/airflow/blob/main/dev/README_RELEASE_PROVIDER_PACKAGES.md#verify-by-contributors">Verify providers by contributors</a></p> <p dir="auto">I have marked issues that were <a href="https://github.com/apache/airflow/issues/30803" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/30803/hovercard">tested in RC1</a> as completed.<br> All users involved in the PRs:<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/syedahsn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/syedahsn">@syedahsn</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/utkarsharma2/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/utkarsharma2">@utkarsharma2</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vincbeck/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vincbeck">@vincbeck</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vandonr-amz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vandonr-amz">@vandonr-amz</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/shahar1/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/shahar1">@shahar1</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dakshin-k/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dakshin-k">@dakshin-k</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrichman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrichman">@mrichman</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jlaneve/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jlaneve">@jlaneve</a></p> <h3 dir="auto">Committer</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I acknowledge that I am a maintainer/committer of the Apache Airflow project.</li> </ul>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=schlaufuchs" rel="nofollow">Kai Hackemesser</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8582?redirect=false" rel="nofollow">SPR-8582</a></strong> and commented</p> <p dir="auto">I have converted an xml config file into java config. The xml config then and now the java config defined the "messagesource" bean and imported a handful of other xml configs.<br> Some logic beans defined in the imported xml files depend on messagesource which is now defined in the importing config class - circle closed but exception thrown. As this was working in the pure xml config, I see this as a kind of regression.</p> <p dir="auto">I was able to work around here by defining a separate java config file just for the message source and importing this in the main java config as well. But it would be nice if the config interpreter would be able to handle this for me the same way the xml config handler was doing this.</p> <hr> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/18538/proof.jar" rel="nofollow">proof.jar</a> (<em>6.35 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398113849" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13227" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13227/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13227">#13227</a> Java config for Web app context and servlet context - autowiring the configuration fails. (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398114036" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13252" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13252/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13252">#13252</a> Detect circular dependencies within <code class="notranslate">@Configuration</code> classes and throw a helpful exception</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-attic/spring-framework-issues/commit/09dd8abf2c28eb7d2b7bd4abaa67bffdbe4776b9/hovercard" href="https://github.com/spring-attic/spring-framework-issues/commit/09dd8abf2c28eb7d2b7bd4abaa67bffdbe4776b9">spring-attic/spring-framework-issues@<tt>09dd8ab</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-attic/spring-framework-issues/commit/4ea27b64420078b5514d950d2f6212a8a0b16f02/hovercard" href="https://github.com/spring-attic/spring-framework-issues/commit/4ea27b64420078b5514d950d2f6212a8a0b16f02">spring-attic/spring-framework-issues@<tt>4ea27b6</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-attic/spring-framework-issues/commit/a1c4743954d3f3268866d4d1e27454ba967a9a62/hovercard" href="https://github.com/spring-attic/spring-framework-issues/commit/a1c4743954d3f3268866d4d1e27454ba967a9a62">spring-attic/spring-framework-issues@<tt>a1c4743</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=diathesis" rel="nofollow">Geoffrey Wiseman</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1359?redirect=false" rel="nofollow">SPR-1359</a></strong> and commented</p> <p dir="auto">I'm encountering a problem with Autowiring and Factories that seems to be, at the very least, unfortunate, and quite probably unintentional (e.g. a Bug).</p> <p dir="auto">Since it's somewhat complicated, and since I described it in the forum system already, I'll point this to that rather than duplicate it.<br> <a href="http://forum.springframework.org/viewtopic.php?t=9361" rel="nofollow">http://forum.springframework.org/viewtopic.php?t=9361</a></p> <p dir="auto">I've verified that the same thing happens in Spring 1.2.5. I'd have a hard time isolating this from the larger config, so I haven't yet done so; if I can find the time, I'll try and figure it out.</p> <hr> <p dir="auto"><strong>Affects:</strong> 1.2.3, 1.2.5</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/11792/source.zip" rel="nofollow">source.zip</a> (<em>1.55 kB</em>)</li> </ul>
0
<p dir="auto"><a href="https://facebook.github.io/react-native/docs/cameraroll.html#getphotos" rel="nofollow">https://facebook.github.io/react-native/docs/cameraroll.html#getphotos</a></p>
<p dir="auto">Right now the picker defaults to single mode, it would be nice to be able to have a multi-mode, by passing a parameter when you launch it, then an array is returned of files instead of just one.</p> <p dir="auto">for android this might help speed things up<br> unique code</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);"><pre class="notranslate"><span class="pl-s1">intent</span>.<span class="pl-en">putExtra</span>(<span class="pl-smi">Intent</span>.<span class="pl-c1">EXTRA_ALLOW_MULTIPLE</span>, <span class="pl-c1">true</span>);</pre></div> <p dir="auto">full example</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Intent intent = new Intent(); intent.setType(&quot;image/*&quot;); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent,&quot;Select Picture&quot;), 1);"><pre class="notranslate"><span class="pl-smi">Intent</span> <span class="pl-s1">intent</span> = <span class="pl-k">new</span> <span class="pl-smi">Intent</span>(); <span class="pl-s1">intent</span>.<span class="pl-en">setType</span>(<span class="pl-s">"image/*"</span>); <span class="pl-s1">intent</span>.<span class="pl-en">putExtra</span>(<span class="pl-smi">Intent</span>.<span class="pl-c1">EXTRA_ALLOW_MULTIPLE</span>, <span class="pl-c1">true</span>); <span class="pl-s1">intent</span>.<span class="pl-en">setAction</span>(<span class="pl-smi">Intent</span>.<span class="pl-c1">ACTION_GET_CONTENT</span>); <span class="pl-en">startActivityForResult</span>(<span class="pl-smi">Intent</span>.<span class="pl-en">createChooser</span>(<span class="pl-s1">intent</span>,<span class="pl-s">"Select Picture"</span>), <span class="pl-c1">1</span>);</pre></div> <p dir="auto">for iOS I think maybe using this library might help, and seems up to date.</p> <p dir="auto"><a href="https://github.com/hackiftekhar/IQMediaPickerController">https://github.com/hackiftekhar/IQMediaPickerController</a></p>
1
<p dir="auto">Installing a package from a remote repository from Github gives me:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustpkg install git://github.com/brson/rust-sdl.git rust: task failed at 'Package git:/github.com/brson/rust-sdl.git not found in any of the following workspaces: [.]', /Users/pascal/git/rust/src/librustpkg/workspace.rs:24"><pre class="notranslate"><code class="notranslate">$ rustpkg install git://github.com/brson/rust-sdl.git rust: task failed at 'Package git:/github.com/brson/rust-sdl.git not found in any of the following workspaces: [.]', /Users/pascal/git/rust/src/librustpkg/workspace.rs:24 </code></pre></div> <p dir="auto">Note the missing <code class="notranslate">/</code> in the URL. The same is happening if I omit the <code class="notranslate">git://</code> part. Tested with <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/32901104cb54a37211ac1c05f377f69ee702485c/hovercard" href="https://github.com/rust-lang/rust/commit/32901104cb54a37211ac1c05f377f69ee702485c"><tt>3290110</tt></a>. The people on #rust noted that rustpkg is not usable today but encouraged me to file a bug so that it doesn't get lost.</p>
<p dir="auto">if you have a cross-crate crust fn, it has type <code class="notranslate">native fn</code> not <code class="notranslate">*u8</code></p>
0
<p dir="auto">My issue is about high memory usage when using orthogonal indexing on sparse arrays, dependent on the shape of the indexers.</p> <h4 dir="auto">Reproducing code example:</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="%load_ext memory_profiler from scipy import sparse import numpy as np s = sparse.random(10000, 10000, format=&quot;csr&quot;) idx = np.arange(10000) # This uses a reasonable amount of memory %memit s[idx.reshape(-1, 1), idx] # peak memory: 135.93 MiB, increment: 46.52 MiB # This does not %memit s[np.ix_(idx, idx)] # peak memory: 2066.09 MiB, increment: 1930.15 MiB"><pre class="notranslate"><span class="pl-c1">%</span><span class="pl-s1">load_ext</span> <span class="pl-s1">memory_profiler</span> <span class="pl-k">from</span> <span class="pl-s1">scipy</span> <span class="pl-k">import</span> <span class="pl-s1">sparse</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">sparse</span>.<span class="pl-en">random</span>(<span class="pl-c1">10000</span>, <span class="pl-c1">10000</span>, <span class="pl-s1">format</span><span class="pl-c1">=</span><span class="pl-s">"csr"</span>) <span class="pl-s1">idx</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">10000</span>) <span class="pl-c"># This uses a reasonable amount of memory</span> <span class="pl-c1">%</span><span class="pl-s1">memit</span> <span class="pl-s1">s</span>[<span class="pl-s1">idx</span>.<span class="pl-en">reshape</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">1</span>), <span class="pl-s1">idx</span>] <span class="pl-c"># peak memory: 135.93 MiB, increment: 46.52 MiB</span> <span class="pl-c"># This does not</span> <span class="pl-c1">%</span><span class="pl-s1">memit</span> <span class="pl-s1">s</span>[<span class="pl-s1">np</span>.<span class="pl-en">ix_</span>(<span class="pl-s1">idx</span>, <span class="pl-s1">idx</span>)] <span class="pl-c"># peak memory: 2066.09 MiB, increment: 1930.15 MiB</span></pre></div> <p dir="auto">As far as I can tell, the results are exactly the same. Only performance is different.</p> <p dir="auto">It looks like this is (at least partially) a known issue (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="611576708" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/12015" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/12015/hovercard?comment_id=625854928&amp;comment_type=issue_comment" href="https://github.com/scipy/scipy/issues/12015#issuecomment-625854928">#12015 (comment)</a>).</p> <p dir="auto">Initially discovered in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621176807" data-permission-text="Title is private" data-url="https://github.com/scverse/anndata/issues/380" data-hovercard-type="issue" data-hovercard-url="/scverse/anndata/issues/380/hovercard" href="https://github.com/scverse/anndata/issues/380">scverse/anndata#380</a></p> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# 1.4.1 1.18.4 sys.version_info(major=3, minor=7, micro=7, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate"># 1.4.1 1.18.4 sys.version_info(major=3, minor=7, micro=7, releaselevel='final', serial=0) </code></pre></div>
<p dir="auto">A typical way to perform outer indexing can be unnecessarily and surprisingly super slow. It is illustrated in the in/out below.</p> <p dir="auto">I think the issue could be fixed by adding another fast path for input as in my <code class="notranslate">In [8]</code> to <code class="notranslate">scipy._index.IndexMixin</code>, in a similar manner to how it's done when using the method of <code class="notranslate">In [10]</code>.</p> <h4 dir="auto">Reproducing code example:</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: import scipy.sparse as ss, numpy as np In [2]: matrix = ss.random(2000, 50000, format=&quot;csr&quot;) In [3]: idx0 = np.arange(1000)[:, None] In [4]: idx1 = np.arange(1000, 2000) In [5]: imod = np.arange(25)[None, :] In [6]: idx1 = (idx1[:, None] + 1000 * imod).T.reshape(-1, 1) In [8]: # The 'easy' way to index: also really slow ...: %timeit out0 = matrix[idx0, idx1.T] 743 ms � 48 ms per loop (mean � std. dev. of 7 runs, 1 loop each) In [9]: # Equivalent submatrix, but not so easy to write: Much faster ...: %timeit out1 = matrix[idx0.ravel(), :][:, idx1.ravel()] 3.57 ms � 89.6 �s per loop (mean � std. dev. of 7 runs, 100 loops each) In [10]: # There is an existing fast path when the second index is 1D ...: %timeit out2 = matrix[idx0, idx1.ravel()] 3.47 ms � 113 �s per loop (mean � std. dev. of 7 runs, 100 loops each)"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">import</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">sparse</span> <span class="pl-k">as</span> <span class="pl-s1">ss</span>, <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">matrix</span> <span class="pl-c1">=</span> <span class="pl-s1">ss</span>.<span class="pl-en">random</span>(<span class="pl-c1">2000</span>, <span class="pl-c1">50000</span>, <span class="pl-s1">format</span><span class="pl-c1">=</span><span class="pl-s">"csr"</span>) <span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">idx0</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">1000</span>)[:, <span class="pl-c1">None</span>] <span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">idx1</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">1000</span>, <span class="pl-c1">2000</span>) <span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">imod</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">25</span>)[<span class="pl-c1">None</span>, :] <span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">idx1</span> <span class="pl-c1">=</span> (<span class="pl-s1">idx1</span>[:, <span class="pl-c1">None</span>] <span class="pl-c1">+</span> <span class="pl-c1">1000</span> <span class="pl-c1">*</span> <span class="pl-s1">imod</span>).<span class="pl-v">T</span>.<span class="pl-en">reshape</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">1</span>) <span class="pl-v">In</span> [<span class="pl-c1">8</span>]: <span class="pl-c"># The 'easy' way to index: also really slow </span> ...: <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">out0</span> <span class="pl-c1">=</span> <span class="pl-s1">matrix</span>[<span class="pl-s1">idx0</span>, <span class="pl-s1">idx1</span>.<span class="pl-v">T</span>] <span class="pl-c1">743</span> <span class="pl-s1">ms</span> � <span class="pl-c1">48</span> <span class="pl-s1">ms</span> <span class="pl-s1">per</span> <span class="pl-en">loop</span> (<span class="pl-s1">mean</span> � <span class="pl-s1">std</span>. <span class="pl-s1">dev</span>. <span class="pl-s1">of</span> <span class="pl-c1">7</span> <span class="pl-s1">runs</span>, <span class="pl-c1">1</span> <span class="pl-s1">loop</span> <span class="pl-s1">each</span>) <span class="pl-v">In</span> [<span class="pl-c1">9</span>]: <span class="pl-c"># Equivalent submatrix, but not so easy to write: Much faster </span> ...: <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">out1</span> <span class="pl-c1">=</span> <span class="pl-s1">matrix</span>[<span class="pl-s1">idx0</span>.<span class="pl-en">ravel</span>(), :][:, <span class="pl-s1">idx1</span>.<span class="pl-en">ravel</span>()] <span class="pl-c1">3.57</span> <span class="pl-s1">ms</span> � <span class="pl-c1">89.6</span> �<span class="pl-s1">s</span> <span class="pl-s1">per</span> <span class="pl-en">loop</span> (<span class="pl-s1">mean</span> � <span class="pl-s1">std</span>. <span class="pl-s1">dev</span>. <span class="pl-s1">of</span> <span class="pl-c1">7</span> <span class="pl-s1">runs</span>, <span class="pl-c1">100</span> <span class="pl-s1">loops</span> <span class="pl-s1">each</span>) <span class="pl-v">In</span> [<span class="pl-c1">10</span>]: <span class="pl-c"># There is an existing fast path when the second index is 1D </span> ...: <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">out2</span> <span class="pl-c1">=</span> <span class="pl-s1">matrix</span>[<span class="pl-s1">idx0</span>, <span class="pl-s1">idx1</span>.<span class="pl-en">ravel</span>()] <span class="pl-c1">3.47</span> <span class="pl-s1">ms</span> � <span class="pl-c1">113</span> �<span class="pl-s1">s</span> <span class="pl-s1">per</span> <span class="pl-en">loop</span> (<span class="pl-s1">mean</span> � <span class="pl-s1">std</span>. <span class="pl-s1">dev</span>. <span class="pl-s1">of</span> <span class="pl-c1">7</span> <span class="pl-s1">runs</span>, <span class="pl-c1">100</span> <span class="pl-s1">loops</span> <span class="pl-s1">each</span>)</pre></div> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [40]: import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info) 1.3.0 1.16.4 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">40</span>]: <span class="pl-s1">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">scipy</span>, <span class="pl-s1">numpy</span>; <span class="pl-en">print</span>(<span class="pl-s1">scipy</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">numpy</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version_info</span>) <span class="pl-c1">1.3</span>.<span class="pl-c1">0</span> <span class="pl-c1">1.16</span>.<span class="pl-c1">4</span> <span class="pl-s1">sys</span>.<span class="pl-en">version_info</span>(<span class="pl-s1">major</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">minor</span><span class="pl-c1">=</span><span class="pl-c1">7</span>, <span class="pl-s1">micro</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">releaselevel</span><span class="pl-c1">=</span><span class="pl-s">'final'</span>, <span class="pl-s1">serial</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)</pre></div>
1
<p dir="auto">I am running jax revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/google/jax/commit/0981e7555525347a49640e980376f7a475a5e2b1/hovercard" href="https://github.com/google/jax/commit/0981e7555525347a49640e980376f7a475a5e2b1"><tt>0981e75</tt></a> (currently master) which I compiled for Python 3.7.3 installed with homebrew. This crash also happens with a pip installable jax.</p> <p dir="auto">The issue can be reproduced with the following piece of code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from jax import np for i in range(15, 20): print(i) np.linalg.cholesky(np.eye(i))"><pre class="notranslate"><code class="notranslate">from jax import np for i in range(15, 20): print(i) np.linalg.cholesky(np.eye(i)) </code></pre></div> <p dir="auto">The program crashes after the <code class="notranslate">i==17</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="15 /Users/bayerj/.virtualenvs/try-jax/lib/python3.7/site-packages/jax/lib/xla_bridge.py:114: UserWarning: No GPU/TPU found, falling back to CPU. warnings.warn('No GPU/TPU found, falling back to CPU.') 16 17 [1] 81997 bus error python3 bug.py"><pre class="notranslate"><code class="notranslate">15 /Users/bayerj/.virtualenvs/try-jax/lib/python3.7/site-packages/jax/lib/xla_bridge.py:114: UserWarning: No GPU/TPU found, falling back to CPU. warnings.warn('No GPU/TPU found, falling back to CPU.') 16 17 [1] 81997 bus error python3 bug.py </code></pre></div>
<p dir="auto">I'm not exactly sure <em>why</em> this happens, being unfamiliar with the internal architecture, but on MacOS with Python 3.6.8, the following code segfaults if scipy 1.2.1 is installed (the version that comes by default when you <code class="notranslate">pip install jax jaxlib</code>):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.random as random import jax.scipy.linalg as linalg key = random.PRNGKey(42) # For some reason, matrices smaller than (50, 50) or so do not trigger segfaults X = random.normal(key, (500, 500)) A = X @ X.T # Drawn from standard Wishart distribution linalg.cholesky(A) print(&quot;Success!&quot;)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span> <span class="pl-k">as</span> <span class="pl-s1">random</span> <span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">scipy</span>.<span class="pl-s1">linalg</span> <span class="pl-k">as</span> <span class="pl-s1">linalg</span> <span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-v">PRNGKey</span>(<span class="pl-c1">42</span>) <span class="pl-c"># For some reason, matrices smaller than (50, 50) or so do not trigger segfaults</span> <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-s1">key</span>, (<span class="pl-c1">500</span>, <span class="pl-c1">500</span>)) <span class="pl-v">A</span> <span class="pl-c1">=</span> <span class="pl-v">X</span> @ <span class="pl-v">X</span>.<span class="pl-v">T</span> <span class="pl-c"># Drawn from standard Wishart distribution</span> <span class="pl-s1">linalg</span>.<span class="pl-en">cholesky</span>(<span class="pl-v">A</span>) <span class="pl-en">print</span>(<span class="pl-s">"Success!"</span>)</pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -W ignore test.py zsh: bus error python -W ignore test.py"><pre class="notranslate"><code class="notranslate">$ python -W ignore test.py zsh: bus error python -W ignore test.py </code></pre></div> <p dir="auto">If I roll back to Scipy 1.1.0, everything works:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -W ignore test.py Success!"><pre class="notranslate"><code class="notranslate">$ python -W ignore test.py Success! </code></pre></div> <p dir="auto">This is a great project by the way--thanks for working on it!</p> <p dir="auto">Edit: after further digging, I found the following in the the Scipy 1.2 release notes:</p> <blockquote> <p dir="auto">scipy.linalg.lapack now exposes the LAPACK routines using the Rectangular Full Packed storage (RFP) for upper triangular, lower triangular, symmetric, or Hermitian matrices; the upper trapezoidal fat matrix RZ decomposition routines are now available as well.</p> </blockquote> <p dir="auto">Perhaps this has something to do with it?</p> <p dir="auto">Even more edits: yet more digging has revealed <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="406164520" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/9751" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/9751/hovercard" href="https://github.com/scipy/scipy/issues/9751">scipy/scipy#9751</a>, which hints that this might be caused by a specific (old) version of XCode. I will report back once XCode is upgraded.</p>
1
<p dir="auto">In this challenge, the moment I write "function" the whole thing just freezes. I tried it over and over, refreshing, restarting, waiting days in between. It always freezes at the exact same point. I start typing the reverse code and as soon as I write function, it simply freezes</p> <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-reverse-arrays-with-reverse" rel="nofollow">Waypoint: Reverse Arrays with reverse</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var array = [1,2,3,4,5,6,7]; // Only change code below this line. var newArray = array; // Only change code above this line. "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">array</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-c1">3</span><span class="pl-kos">,</span><span class="pl-c1">4</span><span class="pl-kos">,</span><span class="pl-c1">5</span><span class="pl-kos">,</span><span class="pl-c1">6</span><span class="pl-kos">,</span><span class="pl-c1">7</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">// Only change code below this line.</span> <span class="pl-k">var</span> <span class="pl-s1">newArray</span> <span class="pl-c1">=</span> <span class="pl-s1">array</span><span class="pl-kos">;</span> <span class="pl-c">// Only change code above this line.</span> </pre></div>
<p dir="auto">This issue probably exists somewhere, but adding a function below a bonfire's default code will crash the browser.</p> <p dir="auto">Adding a function above a Bonfire's default code doesn't cause any problems.</p>
1
<p dir="auto">This code:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Foo&lt;T&gt; {} struct Bar&lt;T&gt;; impl&lt;T&gt; Foo&lt;T&gt; for Bar&lt;T&gt; {} fn get&lt;H: Foo&lt;int&gt;&gt;(val: H) {} fn main() { get(Bar); }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">struct</span> <span class="pl-smi">Bar</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-k">for</span> <span class="pl-smi">Bar</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">get</span><span class="pl-kos">&lt;</span><span class="pl-smi">H</span><span class="pl-kos">:</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">int</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">val</span><span class="pl-kos">:</span> <span class="pl-smi">H</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-v">Bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Is producing an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;anon&gt;:8:5: 8:8 error: cannot determine a type for this bounded type parameter: unconstrained type &lt;anon&gt;:8 get(Bar); ^~~"><pre class="notranslate"><code class="notranslate">&lt;anon&gt;:8:5: 8:8 error: cannot determine a type for this bounded type parameter: unconstrained type &lt;anon&gt;:8 get(Bar); ^~~ </code></pre></div> <p dir="auto">I'm not sure whether this is a bug or just a known limitation of type inference, but in both case it would be nice if it worked.</p> <p dir="auto">Surprisingly I didn't manage to find a duplicate issue.</p>
<p dir="auto">Sometimes you just want to do something some number of times. There's no real concise way to express that right now.</p>
0
<h5 dir="auto">System information (version)</h5> <p dir="auto">reproduced in linux (redhat 7.5 and ubuntu 16) on both intel and power architectures, on opencv versions 3.1 and 3.2<br> via the standard python binding of opencv</p> <h3 dir="auto">problem description</h3> <p dir="auto">warpAffine (and possibly other functions) use very incorrect constant border value when the image has more than 4 channels.</p> <h3 dir="auto">reproducing the problem:</h3> <p dir="auto">I've created a minimalistic self contained script to easily reproduce the problem:</p> <p dir="auto"><a href="https://gist.github.com/YoelShoshan/1c9976eb82b00fa27f0b0491c6093efc">https://gist.github.com/YoelShoshan/1c9976eb82b00fa27f0b0491c6093efc</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import cv2 import numpy as np def base_tens_stats(tens): print(f'shape={tens.shape} min={tens.min()} mean={tens.mean()} max={tens.max()}') x = np.random.randint(0,1020, (256,256,20)).astype(np.uint16) base_tens_stats(x) M = np.array([[ -9.86677170e-01, -3.59121144e-01, 4.28262177e+02], [ 3.59121144e-01, -9.86677170e-01, 3.36327148e+02], [ 0.00000000e+00, 0.00000000e+00, 1.00000000e+00]], dtype=np.float32) y = cv2.warpAffine(x, M[:2,:], x.shape[:2], borderMode=cv2.BORDER_CONSTANT, borderValue=0, flags=cv2.INTER_NEAREST) print('after transform 1') base_tens_stats(y) y = cv2.warpAffine(x, M[:2,:], x.shape[:2], borderMode=cv2.BORDER_CONSTANT, borderValue=0, flags=cv2.INTER_LINEAR) print('after transform 2') base_tens_stats(y)"><pre class="notranslate"><code class="notranslate">import cv2 import numpy as np def base_tens_stats(tens): print(f'shape={tens.shape} min={tens.min()} mean={tens.mean()} max={tens.max()}') x = np.random.randint(0,1020, (256,256,20)).astype(np.uint16) base_tens_stats(x) M = np.array([[ -9.86677170e-01, -3.59121144e-01, 4.28262177e+02], [ 3.59121144e-01, -9.86677170e-01, 3.36327148e+02], [ 0.00000000e+00, 0.00000000e+00, 1.00000000e+00]], dtype=np.float32) y = cv2.warpAffine(x, M[:2,:], x.shape[:2], borderMode=cv2.BORDER_CONSTANT, borderValue=0, flags=cv2.INTER_NEAREST) print('after transform 1') base_tens_stats(y) y = cv2.warpAffine(x, M[:2,:], x.shape[:2], borderMode=cv2.BORDER_CONSTANT, borderValue=0, flags=cv2.INTER_LINEAR) print('after transform 2') base_tens_stats(y) </code></pre></div> <p dir="auto">here's an example output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="shape=(256, 256, 20) min=0 mean=509.25673599243163 max=1019 after transform 1 shape=(256, 256, 20) min=0 mean=10139.467961883545 max=62814 after transform 2 shape=(256, 256, 20) min=0 mean=138.16527404785157 max=1019"><pre class="notranslate"><code class="notranslate">shape=(256, 256, 20) min=0 mean=509.25673599243163 max=1019 after transform 1 shape=(256, 256, 20) min=0 mean=10139.467961883545 max=62814 after transform 2 shape=(256, 256, 20) min=0 mean=138.16527404785157 max=1019 </code></pre></div> <h3 dir="auto">expected result</h3> <p dir="auto">the printed "all max=..." should be max=1019, but instead it gets filled with value 62814 when the channels num is bigger than 4 !</p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.2</li> <li>Operating System / Platform =&gt; ubuntu 14.04</li> <li>Compiler =&gt; GCC 4.8.2</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">When using warpPerspective with images with more than 4 channels, using BORDER_CONSTANT and one of the interpolation methods INTER_NEAREST, INTER_CUBIC or INTER_LANCZOS4, the borders are wrong.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Call the following function using BORDER_CONSTANT and one of the interpolation methods above, pass at least one grayscale image and a nonunit transform:</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="void test(const std::vector&lt;cv::Mat&gt; &amp;src_images, const cv::Matx33d &amp;transform, cv::Size img_size, int num_channels = 100, int interpolation = cv::INTER_NEAREST, int border = cv::BORDER_CONSTANT, const cv::Scalar &amp;value = cv::Scalar(255, 170, 85, 0)) { std::vector&lt;cv::Mat&gt; channels(num_channels), channels_true(num_channels); for (int i = 0; i &lt; num_channels; ++i) { int num = std::rand() % src_images.size(); channels[i] = src_images[num].clone(); channels_true[i] = channels[i].clone(); } cv::Mat multichannel; cv::merge(channels, multichannel); for (size_t i = 0; i &lt; channels_true.size(); ++i) { cv::Scalar val = value[i % 4]; auto ch = channels_true[i]; cv::warpPerspective(ch, ch, transform, img_size, interpolation, border, val); } cv::warpPerspective(multichannel, multichannel, transform, img_size, interpolation, border, value); cv::split(multichannel, channels); for (size_t i = 0; i &lt; channels.size(); ++i) { double s = cv::sum(channels[i] != channels_true[i])[0]; if (s &gt; 0.0) { cv::imshow(&quot;Error&quot;, channels[i]); cv::imshow(&quot;Should be&quot;, channels_true[i]); cv::waitKey(0); } } }"><pre class="notranslate"><span class="pl-k">void</span> <span class="pl-en">test</span>(<span class="pl-k">const</span> std::vector&lt;cv::Mat&gt; &amp;src_images, <span class="pl-k">const</span> cv::Matx33d &amp;transform, cv::<span class="pl-c1">Size</span> img_size, <span class="pl-k">int</span> num_channels = <span class="pl-c1">100</span>, <span class="pl-k">int</span> interpolation = cv::INTER_NEAREST, <span class="pl-k">int</span> border = cv::BORDER_CONSTANT, <span class="pl-k">const</span> cv::Scalar &amp;value = cv::Scalar(<span class="pl-c1">255</span>, <span class="pl-c1">170</span>, <span class="pl-c1">85</span>, <span class="pl-c1">0</span>)) { std::vector&lt;cv::Mat&gt; <span class="pl-c1">channels</span>(num_channels), <span class="pl-c1">channels_true</span>(num_channels); <span class="pl-k">for</span> (<span class="pl-k">int</span> i = <span class="pl-c1">0</span>; i &lt; num_channels; ++i) { <span class="pl-k">int</span> num = <span class="pl-c1">std::rand</span>() % src_images.<span class="pl-c1">size</span>(); channels[i] = src_images[num].<span class="pl-c1">clone</span>(); channels_true[i] = channels[i].<span class="pl-c1">clone</span>(); } cv::Mat multichannel; <span class="pl-c1">cv::merge</span>(channels, multichannel); <span class="pl-k">for</span> (<span class="pl-c1">size_t</span> i = <span class="pl-c1">0</span>; i &lt; channels_true.<span class="pl-c1">size</span>(); ++i) { cv::Scalar val = value[i % <span class="pl-c1">4</span>]; <span class="pl-k">auto</span> ch = channels_true[i]; <span class="pl-c1">cv::warpPerspective</span>(ch, ch, transform, img_size, interpolation, border, val); } <span class="pl-c1">cv::warpPerspective</span>(multichannel, multichannel, transform, img_size, interpolation, border, value); <span class="pl-c1">cv::split</span>(multichannel, channels); <span class="pl-k">for</span> (<span class="pl-c1">size_t</span> i = <span class="pl-c1">0</span>; i &lt; channels.<span class="pl-c1">size</span>(); ++i) { <span class="pl-k">double</span> s = <span class="pl-c1">cv::sum</span>(channels[i] != channels_true[i])[<span class="pl-c1">0</span>]; <span class="pl-k">if</span> (s &gt; <span class="pl-c1">0.0</span>) { <span class="pl-c1">cv::imshow</span>(<span class="pl-s"><span class="pl-pds">"</span>Error<span class="pl-pds">"</span></span>, channels[i]); <span class="pl-c1">cv::imshow</span>(<span class="pl-s"><span class="pl-pds">"</span>Should be<span class="pl-pds">"</span></span>, channels_true[i]); <span class="pl-c1">cv::waitKey</span>(<span class="pl-c1">0</span>); } } }</pre></div>
1
<p dir="auto">bootstrap not validated what the hell with this......<br> <a href="http://jigsaw.w3.org/css-validator/validator?uri=http://twitter.github.com/bootstrap" rel="nofollow">http://jigsaw.w3.org/css-validator/validator?uri=http://twitter.github.com/bootstrap</a></p>
<p dir="auto">I didn't find how to update data-source with typeahead. I tried to make it work simply with a new typehead() call and new values, but it does not update at all.</p> <p dir="auto">The first call works perfectly :) but the second one does.. nothing :(</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$('select').change(function() { var id = $(this).val(); $.getJSON(url + id, function(data) { $('input').typeahead({ source: data }); $('input.hide').slideDown(120); }); });"><pre class="notranslate"><code class="notranslate">$('select').change(function() { var id = $(this).val(); $.getJSON(url + id, function(data) { $('input').typeahead({ source: data }); $('input.hide').slideDown(120); }); }); </code></pre></div>
0
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SamVerschueren/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SamVerschueren">@SamVerschueren</a> on October 23, 2015 19:18</em></p> <p dir="auto">Is it possible to have something like an OutputInputChannel? I am creating a command that requires terminal input from the user.</p> <p dir="auto">If necessary, want to share more on the project I'm working on.</p> <p dir="auto"><em>Copied from original issue: Microsoft/vscode-extensionbuilders#55</em></p>
<p dir="auto"><strong>Visual Studio Code</strong> (version 0.10.11 on Windows 10586.164):<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9047283/14229163/73d5eb04-f92c-11e5-9963-49df1a64e733.png"><img src="https://cloud.githubusercontent.com/assets/9047283/14229163/73d5eb04-f92c-11e5-9963-49df1a64e733.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Source code, documentation, signature, all look almost the same. The following issues make it difficult to read:</p> <ul dir="auto"> <li>Same background as the underlying text view</li> <li>Same font and color as source code for documentation and signature, even line heights matches</li> <li>Difficult to see where does documentations ends and where does the actual signature begins</li> <li>Signature is incorrectly syntax highlighted: only the const keyword is highlighted, while any or any other type is not</li> <li>Wraps the signature into multiple lines which makes it more difficult to read, even if I still have a bunch of space horizontally on my screen</li> <li><strong>+1</strong> Links in the documentation text look like highlighted keywords. First thought was it is a bug: even the text is colorized, then seen that they are links.</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9047283/14229256/6bacae60-f92f-11e5-8fe5-b5b8eaafe5a0.png"><img src="https://cloud.githubusercontent.com/assets/9047283/14229256/6bacae60-f92f-11e5-8fe5-b5b8eaafe5a0.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">For reference, <strong>Visual Studio</strong>:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9047283/14229203/a5f05be6-f92d-11e5-8228-ee48ac4569fd.png"><img src="https://cloud.githubusercontent.com/assets/9047283/14229203/a5f05be6-f92d-11e5-8228-ee48ac4569fd.png" alt="image" style="max-width: 100%;"></a></p> <ul dir="auto"> <li>Different background and typography, it does not feel like it is embedded into the editor (the other one looks like an area in the editor with a border, there is no depth)</li> <li>Documentation and signature is separated visually</li> <li>Signature colorized correctly (keywords, types, identifiers)</li> <li>Signature is not wrapped into multiple lines</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Hover on anything</li> </ol>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.2</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>Compiler =&gt; Visual Studio 2015</li> <li>Python =&gt; Python 3.6 (64-bit)</li> </ul> <p dir="auto"><a href="https://github.com/opencv/opencv/files/2303118/bi.txt">BuildInformation.txt</a></p> <h5 dir="auto">Detailed description</h5> <p dir="auto">I have only one camera connected to my pc. When I try to connect to it and grab a frame (code example 1), I end up with an error after a 10 second time out. Coincidentally, I found, that I am able to connect to my camera by using index -1 for cv2.VideoCapture(index), see code example 2.</p> <p dir="auto">As cv2.VideoCapture(index) is initilized by an index, I'd suppose this index would start with 0.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Python Code example 1 (returns error)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import cv2 cap = cv2.VideoCapture(0) _, frame = cap.read()"><pre class="notranslate"><code class="notranslate">import cv2 cap = cv2.VideoCapture(0) _, frame = cap.read() </code></pre></div> <p dir="auto">returning output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ WARN:0] videoio(MSMF): can't grab frame. Error: -2147483638 Traceback (most recent call last): File &quot;D:\...\Test1.py&quot;, line 10, in &lt;module&gt; hsvFrame = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) cv2.error: OpenCV(3.4.2) c:\projects\opencv-python\opencv\modules\imgproc\src\color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) &amp;&amp; VDcn::contains(dcn) &amp;&amp; VDepth::contains(depth) in function 'cv::CvtHelper&lt;struct cv::Set&lt;3,4,-1&gt;,struct cv::Set&lt;3,-1,-1&gt;,struct cv::Set&lt;0,5,-1&gt;,2&gt;::CvtHelper'"><pre class="notranslate"><code class="notranslate">[ WARN:0] videoio(MSMF): can't grab frame. Error: -2147483638 Traceback (most recent call last): File "D:\...\Test1.py", line 10, in &lt;module&gt; hsvFrame = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) cv2.error: OpenCV(3.4.2) c:\projects\opencv-python\opencv\modules\imgproc\src\color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) &amp;&amp; VDcn::contains(dcn) &amp;&amp; VDepth::contains(depth) in function 'cv::CvtHelper&lt;struct cv::Set&lt;3,4,-1&gt;,struct cv::Set&lt;3,-1,-1&gt;,struct cv::Set&lt;0,5,-1&gt;,2&gt;::CvtHelper' </code></pre></div> <p dir="auto">Python Code example 2 (works)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import cv2 cap = cv2.VideoCapture(-1) _, frame = cap.read()"><pre class="notranslate"><code class="notranslate">import cv2 cap = cv2.VideoCapture(-1) _, frame = cap.read() </code></pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.2,0</li> <li>Operating System / Platform =&gt;Windows 64 Bit</li> <li>Compiler =&gt; mingw32</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Hello I am installing opencv in QT as mention below link :<br> <a href="https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows" rel="nofollow">https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows</a></p> <p dir="auto">During below step :<br> d:<br> cd d:<br> cd opencv-build<br> mingw32-make -j 8<br> mingw32-make install</p> <p dir="auto">Brief part</p> <p dir="auto">collect2.exe: error: ld returned 1 exit status<br> modules\highgui\CMakeFiles\opencv_highgui.dir\build.make:202: recipe for target 'bin/libopencv_highgui320.dll' failed<br> mingw32-make[2]: *** [bin/libopencv_highgui320.dll] Error 1<br> CMakeFiles\Makefile2:4399: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed<br> mingw32-make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2<br> Makefile:159: recipe for target 'all' failed<br> mingw32-make: *** [all] Error 2<br> collect2.exe: error: ld returned 1 exit status<br> modules\highgui\CMakeFiles\opencv_highgui.dir\build.make:202: recipe for target 'bin/libopencv_highgui320.dll' failed<br> mingw32-make[2]: *** [bin/libopencv_highgui320.dll] Error 1<br> CMakeFiles\Makefile2:4399: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed<br> mingw32-make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2<br> Makefile:159: recipe for target 'all' failed<br> mingw32-make: *** [all] Error 2</p> <p dir="auto">i am getting compilation as mentioned in attached file<br> <a href="https://github.com/opencv/opencv/files/2534790/Opencv_QT.txt">Opencv_QT.txt</a></p> <h5 dir="auto">Steps to reproduce</h5>
0
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Install XCode 9 beta (in particular beta 6 build 9M214v).<br> Start simulator (using iPhone 7)<br> run Flutter app (i.e. flutter run -d iPhone)</p> <p dir="auto">It never gets to the point where it shows commands for hot reload etc.</p> <p dir="auto">It also seems that after running in intellij, the hot reload button never becomes enabled. It shows some 'unnown key for Boolean:'... type messages and then "Observatory connection never becomes ready."</p> <p dir="auto">(added: before I installed xcode 9 beta I was having no problem with flutter running)</p> <h2 dir="auto">Logs</h2> <p dir="auto">This is the output of flutter run:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ +33 ms] [/Users/morgan/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +43 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/alpha [ ] [/Users/morgan/flutter/] git ls-remote --get-url origin [ +15 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [/Users/morgan/flutter/] git log -n 1 --pretty=format:%H [ +21 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 1c372c6803495a488ac894dc6be8990412eb34b1 [ ] [/Users/morgan/flutter/] git log -n 1 --pretty=format:%ar [ +11 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 5 days ago [ +186 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +41 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 2.3 [ +151 ms] Listing devices using /Users/morgan/Library/Android/sdk/platform-tools/adb [ ] /Users/morgan/Library/Android/sdk/platform-tools/adb devices -l [ +22 ms] Exit code 0 from: /Users/morgan/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached emulator-5554 device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 [+2639 ms] /usr/bin/xcrun simctl list --json devices [+1439 ms] Launching lib/main.dart on iPhone 7 in debug mode... [ +2 ms] /usr/bin/defaults read /Users/morgan/Programming/temp/myapp/ios/Runner/Info CFBundleIdentifier [ +54 ms] Exit code 0 from: /usr/bin/defaults read /Users/morgan/Programming/temp/myapp/ios/Runner/Info CFBundleIdentifier [ ] $(PRODUCT_BUNDLE_IDENTIFIER) [ ] /usr/bin/xcodebuild -project /Users/morgan/Programming/temp/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [+2158 ms] Exit code 0 from: /usr/bin/xcodebuild -project /Users/morgan/Programming/temp/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [ ] Build settings for action build and target Runner: ACTION = build AD_HOC_CODE_SIGNING_ALLOWED = NO ALTERNATE_GROUP = staff ALTERNATE_MODE = u+w,go-w,a+rX ALTERNATE_OWNER = morgan ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO ALWAYS_SEARCH_USER_PATHS = NO ALWAYS_USE_SEPARATE_HEADERMAPS = NO APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer APPLE_INTERNAL_DIR = /AppleInternal APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools APPLICATION_EXTENSION_API_ONLY = NO APPLY_RULES_IN_COPY_FILES = NO ARCHS = arm64 ARCHS_STANDARD = armv7 arm64 ARCHS_STANDARD_32_64_BIT = armv7 arm64 ARCHS_STANDARD_32_BIT = armv7 ARCHS_STANDARD_64_BIT = arm64 ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64 ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator BITCODE_GENERATION_MODE = marker BUILD_ACTIVE_RESOURCES_ONLY = NO BUILD_COMPONENTS = headers build BUILD_DIR = /Users/morgan/Programming/temp/myapp/build/ios BUILD_ROOT = /Users/morgan/Programming/temp/myapp/build/ios BUILD_STYLE = BUILD_VARIANTS = normal BUILT_PRODUCTS_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos CACHE_ROOT = /var/folders/8_/f5y7_bd549v6tr5rcthpdtp40000gn/C/com.apple.DeveloperTools/9.0-9M214v/Xcode CCHROOT = /var/folders/8_/f5y7_bd549v6tr5rcthpdtp40000gn/C/com.apple.DeveloperTools/9.0-9M214v/Xcode CHMOD = /bin/chmod CHOWN = /usr/sbin/chown CLANG_ANALYZER_NONNULL = YES CLANG_CXX_LANGUAGE_STANDARD = gnu++0x CLANG_CXX_LIBRARY = libc++ CLANG_ENABLE_MODULES = YES CLANG_ENABLE_OBJC_ARC = YES CLANG_WARN_BOOL_CONVERSION = YES CLANG_WARN_CONSTANT_CONVERSION = YES CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR CLANG_WARN_EMPTY_BODY = YES CLANG_WARN_ENUM_CONVERSION = YES CLANG_WARN_INFINITE_RECURSION = YES CLANG_WARN_INT_CONVERSION = YES CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR CLANG_WARN_SUSPICIOUS_MOVE = YES CLANG_WARN_UNREACHABLE_CODE = YES CLANG_WARN__DUPLICATE_METHOD_MATCH = YES CLASS_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/JavaClasses CLEAN_PRECOMPS = YES CLONE_HEADERS = NO CODESIGNING_FOLDER_PATH = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos/Runner.app CODE_SIGNING_ALLOWED = YES CODE_SIGNING_REQUIRED = YES CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext CODE_SIGN_IDENTITY = iPhone Developer COLOR_DIAGNOSTICS = NO COMBINE_HIDPI_IMAGES = NO COMPILER_INDEX_STORE_ENABLE = Default COMPOSITE_SDK_DIRS = /Users/morgan/Programming/temp/myapp/build/ios/CompositeSDKs COMPRESS_PNG_FILES = YES CONFIGURATION = Release CONFIGURATION_BUILD_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos CONFIGURATION_TEMP_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos CONTENTS_FOLDER_PATH = Runner.app COPYING_PRESERVES_HFS_DATA = NO COPY_HEADERS_RUN_UNIFDEF = NO COPY_PHASE_STRIP = NO COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator11.0 CP = /bin/cp CREATE_INFOPLIST_SECTION_IN_BINARY = NO CURRENT_ARCH = arm64 CURRENT_VARIANT = normal DEAD_CODE_STRIPPING = YES DEBUGGING_SYMBOLS = YES DEBUG_INFORMATION_FORMAT = dwarf-with-dsym DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0 DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions DEFINES_MODULE = NO DEPLOYMENT_LOCATION = NO DEPLOYMENT_POSTPROCESSING = NO DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min= DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_SUGGESTED_VALUES = 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3 11.0 DERIVED_FILES_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_SOURCES_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications DEVELOPER_BIN_DIR = /Applications/Xcode-beta.app/Contents/Developer/usr/bin DEVELOPER_DIR = /Applications/Xcode-beta.app/Contents/Developer DEVELOPER_FRAMEWORKS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Library/Frameworks DEVELOPER_FRAMEWORKS_DIR_QUOTED = /Applications/Xcode-beta.app/Contents/Developer/Library/Frameworks DEVELOPER_LIBRARY_DIR = /Applications/Xcode-beta.app/Contents/Developer/Library DEVELOPER_SDK_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs DEVELOPER_TOOLS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Tools DEVELOPER_USR_DIR = /Applications/Xcode-beta.app/Contents/Developer/usr DEVELOPMENT_LANGUAGE = English DOCUMENTATION_FOLDER_PATH = Runner.app/English.lproj/Documentation DO_HEADER_SCANNING_IN_JAM = NO DSTROOT = /tmp/Runner.dst DT_TOOLCHAIN_DIR = /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain DWARF_DSYM_FILE_NAME = Runner.app.dSYM DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO DWARF_DSYM_FOLDER_PATH = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos EFFECTIVE_PLATFORM_NAME = -iphoneos EMBEDDED_CONTENT_CONTAINS_SWIFT = NO EMBEDDED_PROFILE_NAME = embedded.mobileprovision EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO ENABLE_BITCODE = NO ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES ENABLE_HEADER_DEPENDENCIES = YES ENABLE_NS_ASSERTIONS = NO ENABLE_ON_DEMAND_RESOURCES = YES ENABLE_STRICT_OBJC_MSGSEND = YES ENABLE_TESTABILITY = NO ENTITLEMENTS_ALLOWED = YES ENTITLEMENTS_REQUIRED = YES EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj EXECUTABLES_FOLDER_PATH = Runner.app/Executables EXECUTABLE_FOLDER_PATH = Runner.app EXECUTABLE_NAME = Runner EXECUTABLE_PATH = Runner.app/Runner EXPANDED_CODE_SIGN_IDENTITY = EXPANDED_CODE_SIGN_IDENTITY_NAME = EXPANDED_PROVISIONING_PROFILE = FILE_LIST = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects/LinkFileList FIXED_FILES_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/FixedFiles FLUTTER_APPLICATION_PATH = /Users/morgan/Programming/temp/myapp FLUTTER_BUILD_DIR = build FLUTTER_BUILD_MODE = debug FLUTTER_FRAMEWORK_DIR = /Users/morgan/flutter/bin/cache/artifacts/engine/ios FLUTTER_ROOT = /Users/morgan/flutter FLUTTER_TARGET = lib/main.dart FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks FRAMEWORK_FLAG_PREFIX = -framework FRAMEWORK_SEARCH_PATHS = /Users/morgan/Programming/temp/myapp/ios/Flutter FRAMEWORK_VERSION = A FULL_PRODUCT_NAME = Runner.app GCC3_VERSION = 3.3 GCC_C_LANGUAGE_STANDARD = gnu99 GCC_INLINES_ARE_PRIVATE_EXTERN = YES GCC_NO_COMMON_BLOCKS = YES GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++ GCC_SYMBOLS_PRIVATE_EXTERN = YES GCC_THUMB_SUPPORT = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_VERSION = com.apple.compilers.llvm.clang.1_0 GCC_VERSION_IDENTIFIER = com_apple_compilers_llvm_clang_1_0 GCC_WARN_64_TO_32_BIT_CONVERSION = YES GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR GCC_WARN_UNDECLARED_SELECTOR = YES GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE GCC_WARN_UNUSED_FUNCTION = YES GCC_WARN_UNUSED_VARIABLE = YES GENERATE_MASTER_OBJECT_FILE = NO GENERATE_PKGINFO_FILE = YES GENERATE_PROFILING_CODE = NO GENERATE_TEXT_BASED_STUBS = NO GID = 20 GROUP = staff HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT = YES HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = YES HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS = YES HEADERMAP_INCLUDES_PROJECT_HEADERS = YES HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES = YES HEADERMAP_USES_VFS = NO HIDE_BITCODE_SYMBOLS = YES HOME = /Users/morgan ICONV = /usr/bin/iconv INFOPLIST_EXPAND_BUILD_SETTINGS = YES INFOPLIST_FILE = Runner/Info.plist INFOPLIST_OUTPUT_FORMAT = binary INFOPLIST_PATH = Runner.app/Info.plist INFOPLIST_PREPROCESS = NO INFOSTRINGS_PATH = Runner.app/English.lproj/InfoPlist.strings INLINE_PRIVATE_FRAMEWORKS = NO INSTALLHDRS_COPY_PHASE = NO INSTALLHDRS_SCRIPT_PHASE = NO INSTALL_DIR = /tmp/Runner.dst/Applications INSTALL_GROUP = staff INSTALL_MODE_FLAG = u+w,go-w,a+rX INSTALL_OWNER = morgan INSTALL_PATH = /Applications INSTALL_ROOT = /tmp/Runner.dst IPHONEOS_DEPLOYMENT_TARGET = 8.0 JAVAC_DEFAULT_FLAGS = -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8 JAVA_APP_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub JAVA_ARCHIVE_CLASSES = YES JAVA_ARCHIVE_TYPE = JAR JAVA_COMPILER = /usr/bin/javac JAVA_FOLDER_PATH = Runner.app/Java JAVA_FRAMEWORK_RESOURCES_DIRS = Resources JAVA_JAR_FLAGS = cv JAVA_SOURCE_SUBDIR = . JAVA_USE_DEPENDENCIES = YES JAVA_ZIP_FLAGS = -urg JIKES_DEFAULT_FLAGS = +E +OLDCSO KASAN_DEFAULT_CFLAGS = -DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow KEEP_PRIVATE_EXTERNS = NO LD_DEPENDENCY_INFO_FILE = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/Runner_dependency_info.dat LD_GENERATE_MAP_FILE = NO LD_MAP_FILE_PATH = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Runner-LinkMap-normal-arm64.txt LD_NO_PIE = NO LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES LD_RUNPATH_SEARCH_PATHS = @executable_path/Frameworks LEGACY_DEVELOPER_DIR = /Applications/Xcode-beta.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer LEX = lex LIBRARY_FLAG_NOSPACE = YES LIBRARY_FLAG_PREFIX = -l LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions LIBRARY_SEARCH_PATHS = /Users/morgan/Programming/temp/myapp/ios/Flutter LINKER_DISPLAYS_MANGLED_NAMES = NO LINK_FILE_LIST_normal_arm64 = LINK_WITH_STANDARD_LIBRARIES = YES LOCALIZABLE_CONTENT_DIR = LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/English.lproj LOCAL_ADMIN_APPS_DIR = /Applications/Utilities LOCAL_APPS_DIR = /Applications LOCAL_DEVELOPER_DIR = /Library/Developer LOCAL_LIBRARY_DIR = /Library LOCROOT = LOCSYMROOT = MACH_O_TYPE = mh_execute MAC_OS_X_PRODUCT_BUILD_VERSION = 16G29 MAC_OS_X_VERSION_ACTUAL = 101206 MAC_OS_X_VERSION_MAJOR = 101200 MAC_OS_X_VERSION_MINOR = 1206 METAL_LIBRARY_FILE_BASE = default METAL_LIBRARY_OUTPUT_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos/Runner.app MODULE_CACHE_DIR = /Users/morgan/Library/Developer/Xcode/DerivedData/ModuleCache MTL_ENABLE_DEBUG_INFO = NO NATIVE_ARCH = armv7 NATIVE_ARCH_32_BIT = i386 NATIVE_ARCH_64_BIT = x86_64 NATIVE_ARCH_ACTUAL = x86_64 NO_COMMON = YES OBJECT_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects OBJECT_FILE_DIR_normal = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal OBJROOT = /Users/morgan/Programming/temp/myapp/build/ios ONLY_ACTIVE_ARCH = NO OS = MACOS OSAC = /usr/bin/osacompile PACKAGE_TYPE = com.apple.package-type.wrapper.application PASCAL_STRINGS = YES PATH = /Applications/Xcode-beta.app/Contents/Developer/usr/bin:/Users/morgan/flutter/bin:/Users/morgan/flutter.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES = /usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode-beta.app/Contents/Developer/Headers /Applications/Xcode-beta.app/Contents/Developer/SDKs /Applications/Xcode-beta.app/Contents/Developer/Platforms PBDEVELOPMENTPLIST_PATH = Runner.app/pbdevelopment.plist PFE_FILE_C_DIALECTS = objective-c PKGINFO_FILE_PATH = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PkgInfo PKGINFO_PATH = Runner.app/PkgInfo PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode-beta.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr PLATFORM_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform PLATFORM_DISPLAY_NAME = iOS PLATFORM_NAME = iphoneos PLATFORM_PREFERRED_ARCH = arm64 PLATFORM_PRODUCT_BUILD_VERSION = 15A5361a PLIST_FILE_OUTPUT_FORMAT = binary PLUGINS_FOLDER_PATH = Runner.app/PlugIns PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES PRECOMP_DESTINATION_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PrefixHeaders PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.myapp PRODUCT_MODULE_NAME = Runner PRODUCT_NAME = Runner PRODUCT_SETTINGS_PATH = /Users/morgan/Programming/temp/myapp/ios/Runner/Info.plist PRODUCT_TYPE = com.apple.product-type.application PROFILING_CODE = NO PROJECT = Runner PROJECT_DERIVED_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/DerivedSources PROJECT_DIR = /Users/morgan/Programming/temp/myapp/ios PROJECT_FILE_PATH = /Users/morgan/Programming/temp/myapp/ios/Runner.xcodeproj PROJECT_NAME = Runner PROJECT_TEMP_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build PROJECT_TEMP_ROOT = /Users/morgan/Programming/temp/myapp/build/ios PROVISIONING_PROFILE_REQUIRED = YES PUBLIC_HEADERS_FOLDER_PATH = Runner.app/Headers RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS = YES REMOVE_CVS_FROM_RESOURCES = YES REMOVE_GIT_FROM_RESOURCES = YES REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES REMOVE_HG_FROM_RESOURCES = YES REMOVE_SVN_FROM_RESOURCES = YES RESOURCE_RULES_REQUIRED = YES REZ_COLLECTOR_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources REZ_OBJECTS_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources/Objects SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO SCRIPTS_FOLDER_PATH = Runner.app/Scripts SDKROOT = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk SDK_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk SDK_DIR_iphoneos11_0 = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk SDK_NAME = iphoneos11.0 SDK_NAMES = iphoneos11.0 SDK_PRODUCT_BUILD_VERSION = 15A5361a SDK_VERSION = 11.0 SDK_VERSION_ACTUAL = 110000 SDK_VERSION_MAJOR = 110000 SDK_VERSION_MINOR = 000 SED = /usr/bin/sed SEPARATE_STRIP = NO SEPARATE_SYMBOL_EDIT = NO SET_DIR_MODE_OWNER_GROUP = YES SET_FILE_MODE_OWNER_GROUP = NO SHALLOW_BUNDLE = YES SHARED_DERIVED_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos/DerivedSources SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks SHARED_PRECOMPS_DIR = /Users/morgan/Programming/temp/myapp/build/ios/SharedPrecompiledHeaders SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport SKIP_INSTALL = NO SOURCE_ROOT = /Users/morgan/Programming/temp/myapp/ios SRCROOT = /Users/morgan/Programming/temp/myapp/ios STRINGS_FILE_OUTPUT_ENCODING = binary STRIP_BITCODE_FROM_COPIED_FILES = YES STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = all STRIP_SWIFT_SYMBOLS = YES SUPPORTED_DEVICE_FAMILIES = 1,2 SUPPORTED_PLATFORMS = iphonesimulator iphoneos SUPPORTS_TEXT_BASED_API = NO SWIFT_PLATFORM_TARGET_PREFIX = ios SYMROOT = /Users/morgan/Programming/temp/myapp/build/ios SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities SYSTEM_APPS_DIR = /Applications SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices SYSTEM_DEMOS_DIR = /Applications/Extras SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode-beta.app/Contents/Developer/usr/bin SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications/Utilities/Built Examples SYSTEM_DEVELOPER_DIR = /Applications/Xcode-beta.app/Contents/Developer SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode-beta.app/Contents/Developer/ADC Reference Library SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications/Graphics Tools SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications/Java Tools SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications/Performance Tools SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode-beta.app/Contents/Developer/ADC Reference Library/releasenotes SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode-beta.app/Contents/Developer/Tools SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode-beta.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode-beta.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode-beta.app/Contents/Developer/usr SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications/Utilities SYSTEM_DOCUMENTATION_DIR = /Library/Documentation SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions SYSTEM_LIBRARY_DIR = /System/Library TAPI_VERIFY_MODE = ErrorsOnly TARGETED_DEVICE_FAMILY = 1,2 TARGETNAME = Runner TARGET_BUILD_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos TARGET_NAME = Runner TARGET_TEMP_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILES_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_ROOT = /Users/morgan/Programming/temp/myapp/build/ios TOOLCHAIN_DIR = /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO UID = 501 UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app UNSTRIPPED_PRODUCT = NO USER = morgan USER_APPS_DIR = /Users/morgan/Applications USER_LIBRARY_DIR = /Users/morgan/Library USE_DYNAMIC_NO_PIC = YES USE_HEADERMAP = YES USE_HEADER_SYMLINKS = NO VALIDATE_PRODUCT = YES VALID_ARCHS = arm64 armv7 armv7s VERBOSE_PBXCP = NO VERSIONPLIST_PATH = Runner.app/version.plist VERSION_INFO_BUILDER = morgan VERSION_INFO_FILE = Runner_vers.c VERSION_INFO_STRING = &quot;@(#)PROGRAM:Runner PROJECT:Runner-&quot; WRAPPER_EXTENSION = app WRAPPER_NAME = Runner.app WRAPPER_SUFFIX = .app WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO XCODE_APP_SUPPORT_DIR = /Applications/Xcode-beta.app/Contents/Developer/Library/Xcode XCODE_PRODUCT_BUILD_VERSION = 9M214v XCODE_VERSION_ACTUAL = 0900 XCODE_VERSION_MAJOR = 0900 XCODE_VERSION_MINOR = 0900 XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices YACC = yacc arch = arm64 variant = normal [ +66 ms] tail -n 0 -F /Users/morgan/Library/Logs/CoreSimulator/2CF233EB-27B2-4464-9C07-FFC924A1B630/system.log [ +6 ms] Building Runner.app for 2CF233EB-27B2-4464-9C07-FFC924A1B630. [ +11 ms] Building build/app.flx [ +156 ms] tail -n 0 -F /private/var/log/system.log [ +211 ms] which zip [ +7 ms] Encoding zip file to build/app.flx [ +33 ms] [build/flx/] zip -q /Users/morgan/Programming/temp/myapp/build/app.flx fonts/MaterialIcons-Regular.ttf AssetManifest.json FontManifest.json LICENSE [ +54 ms] Built build/app.flx. [ +1 ms] /usr/bin/xcrun simctl get_app_container 2CF233EB-27B2-4464-9C07-FFC924A1B630 com.yourcompany.myapp [ ] /usr/bin/killall Runner [ +63 ms] [DEVICE LOG] Sep 5 15:43:23 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (UIKitApplication:com.yourcompany.myapp[0x582f][32397][33539]): Service exited due to signal: Terminated: 15 sent by killall[33639] [ +102 ms] /usr/bin/xcrun simctl launch 2CF233EB-27B2-4464-9C07-FFC924A1B630 com.yourcompany.myapp --enable-dart-profiling --flx=/Users/morgan/Programming/temp/myapp/build/app.flx --dart-main=/Users/morgan/Programming/temp/myapp/lib/main.dart --packages=/Users/morgan/Programming/temp/myapp/.packages --enable-checked-mode --observatory-port=8102 --diagnostic-port=8103 [ +224 ms] com.yourcompany.myapp: 33641 [ ] Waiting for observatory port to be available... [+1142 ms] [DEVICE LOG] Sep 5 15:43:24 Richards-MacBook Runner[33641]: assertion failed: 16G29 15A5361a: libxpc.dylib + 69578 [EF78594B-BD50-3F3B-B607-190E9A20F4E9]: 0x7d [+146461 ms] [SYS LOG] Sep 5 15:45:51 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [+2852 ms] [SYS LOG] Sep 5 15:45:54 Richards-MacBook xpcproxy[33744]: libcoreservices: _dirhelper_userdir: 523: bootstrap_look_up returned 268435459 [+1945 ms] [SYS LOG] Sep 5 15:45:56 Richards-MacBook akd[33746]: objc[33746]: Class AKToken is implemented in both /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/AuthKit (0x7fffd04d7338) and /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/Support/akd (0x10d3d76b8). One of the two will be used. Which one is undefined. [ ] [SYS LOG] Sep 5 15:45:56 Richards-MacBook akd[33746]: objc[33746]: Class AKMasterToken is implemented in both /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/AuthKit (0x7fffd04d7388) and /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/Support/akd (0x10d3d7708). One of the two will be used. Which one is undefined. [+232871 ms] [SYS LOG] Sep 5 15:49:48 Richards-MacBook syslogd[23]: ASL Sender Statistics [+21070 ms] [SYS LOG] Sep 5 15:50:09 Richards-MacBook GoogleSoftwareUpdateAgent[33907]: 2017-09-05 15:50:09.947 GoogleSoftwareUpdateAgent[33907/0x7fffd29113c0] [lvl=2] -[KSAgentApp(PrivateMethods) setupLoggerOutput] Agent default/global settings: &lt;KSAgentSettings:0x100307030 bundleID=com.google.Keystone.Agent lastCheck=2017-09-05 21:49:46 +0000 lastServerCheck=2017-09-05 21:49:44 +0000 lastCheckStart=2017-09-05 21:49:24 +0000 checkInterval=18000.000000 uiDisplayInterval=604800.000000 sleepInterval=1800.000000 jitterInterval=900 maxRunInterval=0.000000 isConsoleUser=1 ticketStorePath=/Users/morgan/Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore runMode=3 daemonUpdateEngineBrokerServiceName=com.google.Keystone.Daemon.UpdateEngine daemonAdministrationServiceName=com.google.Keystone.Daemon.Administration logEverything=0 logBufferSize=2048 alwaysPromptForUpdates=0 productIDToUpdate=(null) lastUIDisplayed=(null) alwaysShowStatusItem=0 updateCheckTag=(null) printResults=NO userInitiated=NO&gt; [+153604 ms] [SYS LOG] Sep 5 15:52:43 Richards-MacBook pbs[32741]: BUG in libdispatch client: kevent[EVFILT_MACHPORT] monitored resource vanished before the source cancel handler was invoked [+47651 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook Preferences[34031]: objc[34031]: Class SFUserNotification is implemented in both /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/Sharing.framework/Sharing (0x11d3164c8) and /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/SafariServices.framework/SafariServices (0x1219c6388). One of the two will be used. Which one is undefined. [ +3 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook syslogd[32373]: ASL Sender Statistics [ +209 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook Preferences[34031]: assertion failed: 16G29 15A5361a: libxpc.dylib + 69578 [EF78594B-BD50-3F3B-B607-190E9A20F4E9]: 0x7d [ +231 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Networking): Unknown key for Boolean: EnableTransactions [ +11 ms] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Networking): Unknown key for Boolean: EnableTransactions [ +3 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Networking): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.IdentityLookup.MessageFilter): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.IdentityLookup.MessageFilter): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Databases): Unknown key for Boolean: EnableTransactions [ +28 ms] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Networking): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.IdentityLookup.MessageFilter): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.IdentityLookup.MessageFilter): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Databases): Unknown key for Boolean: EnableTransactions [ +1 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Databases): Unknown key for Boolean: EnablePressuredExit [ +33 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.SafariServices.ContentBlockerLoader): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.SafariServices.ContentBlockerLoader): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.ClassroomKit.ScreenshotService): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.ClassroomKit.ScreenshotService): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.ImageDecoder): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.ImageDecoder): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.History): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Databases): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.SafariServices.ContentBlockerLoader): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.SafariServices.ContentBlockerLoader): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.ClassroomKit.ScreenshotService): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.ClassroomKit.ScreenshotService): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.ImageDecoder): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.ImageDecoder): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.History): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.History): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.icloud.FMF.FMFMapXPCService): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.icloud.FMF.FMFMapXPCService): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.History): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.icloud.FMF.FMFMapXPCService): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.icloud.FMF.FMFMapXPCService): Unknown key for Boolean: EnablePressuredExit [ +11 ms] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnablePressuredExit [ +257 ms] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook Preferences[34031]: objc[34031]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x1286fb490) and /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/AVConference (0x128589fc8). One of the two will be used. Which one is undefined. [ +101 ms] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions [ +1 ms] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [ ] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [ +5 ms] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit [ +16 ms] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit [ +426 ms] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnablePressuredExit [+72341 ms] [SYS LOG] Sep 5 15:54:44 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [+101291 ms] [SYS LOG] Sep 5 15:56:26 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.ReportCrash[34143]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash [+7262 ms] [DEVICE LOG] Sep 5 15:56:33 Richards-MacBook launchd_sim[32371]: BUG in libdispatch client: kevent[mach_recv] monitored resource vanished before the source cancel handler was invoked [+52889 ms] [SYS LOG] Sep 5 15:57:26 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.metadata.mds[48]): Service exited due to signal: Segmentation fault: 11 sent by exc handler[0] [ ] [SYS LOG] Sep 5 15:57:26 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.ReportCrash.Root[34181]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash.DirectoryService [+42869 ms] [SYS LOG] Sep 5 15:58:09 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.quicklook[34219]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook"><pre class="notranslate"><code class="notranslate">[ +33 ms] [/Users/morgan/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +43 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/alpha [ ] [/Users/morgan/flutter/] git ls-remote --get-url origin [ +15 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [/Users/morgan/flutter/] git log -n 1 --pretty=format:%H [ +21 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 1c372c6803495a488ac894dc6be8990412eb34b1 [ ] [/Users/morgan/flutter/] git log -n 1 --pretty=format:%ar [ +11 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 5 days ago [ +186 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +41 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 2.3 [ +151 ms] Listing devices using /Users/morgan/Library/Android/sdk/platform-tools/adb [ ] /Users/morgan/Library/Android/sdk/platform-tools/adb devices -l [ +22 ms] Exit code 0 from: /Users/morgan/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached emulator-5554 device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 [+2639 ms] /usr/bin/xcrun simctl list --json devices [+1439 ms] Launching lib/main.dart on iPhone 7 in debug mode... [ +2 ms] /usr/bin/defaults read /Users/morgan/Programming/temp/myapp/ios/Runner/Info CFBundleIdentifier [ +54 ms] Exit code 0 from: /usr/bin/defaults read /Users/morgan/Programming/temp/myapp/ios/Runner/Info CFBundleIdentifier [ ] $(PRODUCT_BUNDLE_IDENTIFIER) [ ] /usr/bin/xcodebuild -project /Users/morgan/Programming/temp/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [+2158 ms] Exit code 0 from: /usr/bin/xcodebuild -project /Users/morgan/Programming/temp/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [ ] Build settings for action build and target Runner: ACTION = build AD_HOC_CODE_SIGNING_ALLOWED = NO ALTERNATE_GROUP = staff ALTERNATE_MODE = u+w,go-w,a+rX ALTERNATE_OWNER = morgan ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO ALWAYS_SEARCH_USER_PATHS = NO ALWAYS_USE_SEPARATE_HEADERMAPS = NO APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer APPLE_INTERNAL_DIR = /AppleInternal APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools APPLICATION_EXTENSION_API_ONLY = NO APPLY_RULES_IN_COPY_FILES = NO ARCHS = arm64 ARCHS_STANDARD = armv7 arm64 ARCHS_STANDARD_32_64_BIT = armv7 arm64 ARCHS_STANDARD_32_BIT = armv7 ARCHS_STANDARD_64_BIT = arm64 ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64 ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator BITCODE_GENERATION_MODE = marker BUILD_ACTIVE_RESOURCES_ONLY = NO BUILD_COMPONENTS = headers build BUILD_DIR = /Users/morgan/Programming/temp/myapp/build/ios BUILD_ROOT = /Users/morgan/Programming/temp/myapp/build/ios BUILD_STYLE = BUILD_VARIANTS = normal BUILT_PRODUCTS_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos CACHE_ROOT = /var/folders/8_/f5y7_bd549v6tr5rcthpdtp40000gn/C/com.apple.DeveloperTools/9.0-9M214v/Xcode CCHROOT = /var/folders/8_/f5y7_bd549v6tr5rcthpdtp40000gn/C/com.apple.DeveloperTools/9.0-9M214v/Xcode CHMOD = /bin/chmod CHOWN = /usr/sbin/chown CLANG_ANALYZER_NONNULL = YES CLANG_CXX_LANGUAGE_STANDARD = gnu++0x CLANG_CXX_LIBRARY = libc++ CLANG_ENABLE_MODULES = YES CLANG_ENABLE_OBJC_ARC = YES CLANG_WARN_BOOL_CONVERSION = YES CLANG_WARN_CONSTANT_CONVERSION = YES CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR CLANG_WARN_EMPTY_BODY = YES CLANG_WARN_ENUM_CONVERSION = YES CLANG_WARN_INFINITE_RECURSION = YES CLANG_WARN_INT_CONVERSION = YES CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR CLANG_WARN_SUSPICIOUS_MOVE = YES CLANG_WARN_UNREACHABLE_CODE = YES CLANG_WARN__DUPLICATE_METHOD_MATCH = YES CLASS_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/JavaClasses CLEAN_PRECOMPS = YES CLONE_HEADERS = NO CODESIGNING_FOLDER_PATH = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos/Runner.app CODE_SIGNING_ALLOWED = YES CODE_SIGNING_REQUIRED = YES CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext CODE_SIGN_IDENTITY = iPhone Developer COLOR_DIAGNOSTICS = NO COMBINE_HIDPI_IMAGES = NO COMPILER_INDEX_STORE_ENABLE = Default COMPOSITE_SDK_DIRS = /Users/morgan/Programming/temp/myapp/build/ios/CompositeSDKs COMPRESS_PNG_FILES = YES CONFIGURATION = Release CONFIGURATION_BUILD_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos CONFIGURATION_TEMP_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos CONTENTS_FOLDER_PATH = Runner.app COPYING_PRESERVES_HFS_DATA = NO COPY_HEADERS_RUN_UNIFDEF = NO COPY_PHASE_STRIP = NO COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator11.0 CP = /bin/cp CREATE_INFOPLIST_SECTION_IN_BINARY = NO CURRENT_ARCH = arm64 CURRENT_VARIANT = normal DEAD_CODE_STRIPPING = YES DEBUGGING_SYMBOLS = YES DEBUG_INFORMATION_FORMAT = dwarf-with-dsym DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0 DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions DEFINES_MODULE = NO DEPLOYMENT_LOCATION = NO DEPLOYMENT_POSTPROCESSING = NO DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min= DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_SUGGESTED_VALUES = 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3 11.0 DERIVED_FILES_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_SOURCES_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications DEVELOPER_BIN_DIR = /Applications/Xcode-beta.app/Contents/Developer/usr/bin DEVELOPER_DIR = /Applications/Xcode-beta.app/Contents/Developer DEVELOPER_FRAMEWORKS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Library/Frameworks DEVELOPER_FRAMEWORKS_DIR_QUOTED = /Applications/Xcode-beta.app/Contents/Developer/Library/Frameworks DEVELOPER_LIBRARY_DIR = /Applications/Xcode-beta.app/Contents/Developer/Library DEVELOPER_SDK_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs DEVELOPER_TOOLS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Tools DEVELOPER_USR_DIR = /Applications/Xcode-beta.app/Contents/Developer/usr DEVELOPMENT_LANGUAGE = English DOCUMENTATION_FOLDER_PATH = Runner.app/English.lproj/Documentation DO_HEADER_SCANNING_IN_JAM = NO DSTROOT = /tmp/Runner.dst DT_TOOLCHAIN_DIR = /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain DWARF_DSYM_FILE_NAME = Runner.app.dSYM DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO DWARF_DSYM_FOLDER_PATH = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos EFFECTIVE_PLATFORM_NAME = -iphoneos EMBEDDED_CONTENT_CONTAINS_SWIFT = NO EMBEDDED_PROFILE_NAME = embedded.mobileprovision EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO ENABLE_BITCODE = NO ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES ENABLE_HEADER_DEPENDENCIES = YES ENABLE_NS_ASSERTIONS = NO ENABLE_ON_DEMAND_RESOURCES = YES ENABLE_STRICT_OBJC_MSGSEND = YES ENABLE_TESTABILITY = NO ENTITLEMENTS_ALLOWED = YES ENTITLEMENTS_REQUIRED = YES EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj EXECUTABLES_FOLDER_PATH = Runner.app/Executables EXECUTABLE_FOLDER_PATH = Runner.app EXECUTABLE_NAME = Runner EXECUTABLE_PATH = Runner.app/Runner EXPANDED_CODE_SIGN_IDENTITY = EXPANDED_CODE_SIGN_IDENTITY_NAME = EXPANDED_PROVISIONING_PROFILE = FILE_LIST = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects/LinkFileList FIXED_FILES_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/FixedFiles FLUTTER_APPLICATION_PATH = /Users/morgan/Programming/temp/myapp FLUTTER_BUILD_DIR = build FLUTTER_BUILD_MODE = debug FLUTTER_FRAMEWORK_DIR = /Users/morgan/flutter/bin/cache/artifacts/engine/ios FLUTTER_ROOT = /Users/morgan/flutter FLUTTER_TARGET = lib/main.dart FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks FRAMEWORK_FLAG_PREFIX = -framework FRAMEWORK_SEARCH_PATHS = /Users/morgan/Programming/temp/myapp/ios/Flutter FRAMEWORK_VERSION = A FULL_PRODUCT_NAME = Runner.app GCC3_VERSION = 3.3 GCC_C_LANGUAGE_STANDARD = gnu99 GCC_INLINES_ARE_PRIVATE_EXTERN = YES GCC_NO_COMMON_BLOCKS = YES GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++ GCC_SYMBOLS_PRIVATE_EXTERN = YES GCC_THUMB_SUPPORT = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_VERSION = com.apple.compilers.llvm.clang.1_0 GCC_VERSION_IDENTIFIER = com_apple_compilers_llvm_clang_1_0 GCC_WARN_64_TO_32_BIT_CONVERSION = YES GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR GCC_WARN_UNDECLARED_SELECTOR = YES GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE GCC_WARN_UNUSED_FUNCTION = YES GCC_WARN_UNUSED_VARIABLE = YES GENERATE_MASTER_OBJECT_FILE = NO GENERATE_PKGINFO_FILE = YES GENERATE_PROFILING_CODE = NO GENERATE_TEXT_BASED_STUBS = NO GID = 20 GROUP = staff HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT = YES HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = YES HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS = YES HEADERMAP_INCLUDES_PROJECT_HEADERS = YES HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES = YES HEADERMAP_USES_VFS = NO HIDE_BITCODE_SYMBOLS = YES HOME = /Users/morgan ICONV = /usr/bin/iconv INFOPLIST_EXPAND_BUILD_SETTINGS = YES INFOPLIST_FILE = Runner/Info.plist INFOPLIST_OUTPUT_FORMAT = binary INFOPLIST_PATH = Runner.app/Info.plist INFOPLIST_PREPROCESS = NO INFOSTRINGS_PATH = Runner.app/English.lproj/InfoPlist.strings INLINE_PRIVATE_FRAMEWORKS = NO INSTALLHDRS_COPY_PHASE = NO INSTALLHDRS_SCRIPT_PHASE = NO INSTALL_DIR = /tmp/Runner.dst/Applications INSTALL_GROUP = staff INSTALL_MODE_FLAG = u+w,go-w,a+rX INSTALL_OWNER = morgan INSTALL_PATH = /Applications INSTALL_ROOT = /tmp/Runner.dst IPHONEOS_DEPLOYMENT_TARGET = 8.0 JAVAC_DEFAULT_FLAGS = -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8 JAVA_APP_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub JAVA_ARCHIVE_CLASSES = YES JAVA_ARCHIVE_TYPE = JAR JAVA_COMPILER = /usr/bin/javac JAVA_FOLDER_PATH = Runner.app/Java JAVA_FRAMEWORK_RESOURCES_DIRS = Resources JAVA_JAR_FLAGS = cv JAVA_SOURCE_SUBDIR = . JAVA_USE_DEPENDENCIES = YES JAVA_ZIP_FLAGS = -urg JIKES_DEFAULT_FLAGS = +E +OLDCSO KASAN_DEFAULT_CFLAGS = -DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow KEEP_PRIVATE_EXTERNS = NO LD_DEPENDENCY_INFO_FILE = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/Runner_dependency_info.dat LD_GENERATE_MAP_FILE = NO LD_MAP_FILE_PATH = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Runner-LinkMap-normal-arm64.txt LD_NO_PIE = NO LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES LD_RUNPATH_SEARCH_PATHS = @executable_path/Frameworks LEGACY_DEVELOPER_DIR = /Applications/Xcode-beta.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer LEX = lex LIBRARY_FLAG_NOSPACE = YES LIBRARY_FLAG_PREFIX = -l LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions LIBRARY_SEARCH_PATHS = /Users/morgan/Programming/temp/myapp/ios/Flutter LINKER_DISPLAYS_MANGLED_NAMES = NO LINK_FILE_LIST_normal_arm64 = LINK_WITH_STANDARD_LIBRARIES = YES LOCALIZABLE_CONTENT_DIR = LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/English.lproj LOCAL_ADMIN_APPS_DIR = /Applications/Utilities LOCAL_APPS_DIR = /Applications LOCAL_DEVELOPER_DIR = /Library/Developer LOCAL_LIBRARY_DIR = /Library LOCROOT = LOCSYMROOT = MACH_O_TYPE = mh_execute MAC_OS_X_PRODUCT_BUILD_VERSION = 16G29 MAC_OS_X_VERSION_ACTUAL = 101206 MAC_OS_X_VERSION_MAJOR = 101200 MAC_OS_X_VERSION_MINOR = 1206 METAL_LIBRARY_FILE_BASE = default METAL_LIBRARY_OUTPUT_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos/Runner.app MODULE_CACHE_DIR = /Users/morgan/Library/Developer/Xcode/DerivedData/ModuleCache MTL_ENABLE_DEBUG_INFO = NO NATIVE_ARCH = armv7 NATIVE_ARCH_32_BIT = i386 NATIVE_ARCH_64_BIT = x86_64 NATIVE_ARCH_ACTUAL = x86_64 NO_COMMON = YES OBJECT_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects OBJECT_FILE_DIR_normal = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal OBJROOT = /Users/morgan/Programming/temp/myapp/build/ios ONLY_ACTIVE_ARCH = NO OS = MACOS OSAC = /usr/bin/osacompile PACKAGE_TYPE = com.apple.package-type.wrapper.application PASCAL_STRINGS = YES PATH = /Applications/Xcode-beta.app/Contents/Developer/usr/bin:/Users/morgan/flutter/bin:/Users/morgan/flutter.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES = /usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode-beta.app/Contents/Developer/Headers /Applications/Xcode-beta.app/Contents/Developer/SDKs /Applications/Xcode-beta.app/Contents/Developer/Platforms PBDEVELOPMENTPLIST_PATH = Runner.app/pbdevelopment.plist PFE_FILE_C_DIALECTS = objective-c PKGINFO_FILE_PATH = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PkgInfo PKGINFO_PATH = Runner.app/PkgInfo PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode-beta.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr PLATFORM_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform PLATFORM_DISPLAY_NAME = iOS PLATFORM_NAME = iphoneos PLATFORM_PREFERRED_ARCH = arm64 PLATFORM_PRODUCT_BUILD_VERSION = 15A5361a PLIST_FILE_OUTPUT_FORMAT = binary PLUGINS_FOLDER_PATH = Runner.app/PlugIns PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES PRECOMP_DESTINATION_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PrefixHeaders PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.myapp PRODUCT_MODULE_NAME = Runner PRODUCT_NAME = Runner PRODUCT_SETTINGS_PATH = /Users/morgan/Programming/temp/myapp/ios/Runner/Info.plist PRODUCT_TYPE = com.apple.product-type.application PROFILING_CODE = NO PROJECT = Runner PROJECT_DERIVED_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/DerivedSources PROJECT_DIR = /Users/morgan/Programming/temp/myapp/ios PROJECT_FILE_PATH = /Users/morgan/Programming/temp/myapp/ios/Runner.xcodeproj PROJECT_NAME = Runner PROJECT_TEMP_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build PROJECT_TEMP_ROOT = /Users/morgan/Programming/temp/myapp/build/ios PROVISIONING_PROFILE_REQUIRED = YES PUBLIC_HEADERS_FOLDER_PATH = Runner.app/Headers RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS = YES REMOVE_CVS_FROM_RESOURCES = YES REMOVE_GIT_FROM_RESOURCES = YES REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES REMOVE_HG_FROM_RESOURCES = YES REMOVE_SVN_FROM_RESOURCES = YES RESOURCE_RULES_REQUIRED = YES REZ_COLLECTOR_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources REZ_OBJECTS_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources/Objects SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO SCRIPTS_FOLDER_PATH = Runner.app/Scripts SDKROOT = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk SDK_DIR = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk SDK_DIR_iphoneos11_0 = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk SDK_NAME = iphoneos11.0 SDK_NAMES = iphoneos11.0 SDK_PRODUCT_BUILD_VERSION = 15A5361a SDK_VERSION = 11.0 SDK_VERSION_ACTUAL = 110000 SDK_VERSION_MAJOR = 110000 SDK_VERSION_MINOR = 000 SED = /usr/bin/sed SEPARATE_STRIP = NO SEPARATE_SYMBOL_EDIT = NO SET_DIR_MODE_OWNER_GROUP = YES SET_FILE_MODE_OWNER_GROUP = NO SHALLOW_BUNDLE = YES SHARED_DERIVED_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos/DerivedSources SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks SHARED_PRECOMPS_DIR = /Users/morgan/Programming/temp/myapp/build/ios/SharedPrecompiledHeaders SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport SKIP_INSTALL = NO SOURCE_ROOT = /Users/morgan/Programming/temp/myapp/ios SRCROOT = /Users/morgan/Programming/temp/myapp/ios STRINGS_FILE_OUTPUT_ENCODING = binary STRIP_BITCODE_FROM_COPIED_FILES = YES STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = all STRIP_SWIFT_SYMBOLS = YES SUPPORTED_DEVICE_FAMILIES = 1,2 SUPPORTED_PLATFORMS = iphonesimulator iphoneos SUPPORTS_TEXT_BASED_API = NO SWIFT_PLATFORM_TARGET_PREFIX = ios SYMROOT = /Users/morgan/Programming/temp/myapp/build/ios SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities SYSTEM_APPS_DIR = /Applications SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices SYSTEM_DEMOS_DIR = /Applications/Extras SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode-beta.app/Contents/Developer/usr/bin SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications/Utilities/Built Examples SYSTEM_DEVELOPER_DIR = /Applications/Xcode-beta.app/Contents/Developer SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode-beta.app/Contents/Developer/ADC Reference Library SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications/Graphics Tools SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications/Java Tools SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications/Performance Tools SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode-beta.app/Contents/Developer/ADC Reference Library/releasenotes SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode-beta.app/Contents/Developer/Tools SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode-beta.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode-beta.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode-beta.app/Contents/Developer/usr SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode-beta.app/Contents/Developer/Applications/Utilities SYSTEM_DOCUMENTATION_DIR = /Library/Documentation SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions SYSTEM_LIBRARY_DIR = /System/Library TAPI_VERIFY_MODE = ErrorsOnly TARGETED_DEVICE_FAMILY = 1,2 TARGETNAME = Runner TARGET_BUILD_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Release-iphoneos TARGET_NAME = Runner TARGET_TEMP_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILES_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILE_DIR = /Users/morgan/Programming/temp/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_ROOT = /Users/morgan/Programming/temp/myapp/build/ios TOOLCHAIN_DIR = /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO UID = 501 UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app UNSTRIPPED_PRODUCT = NO USER = morgan USER_APPS_DIR = /Users/morgan/Applications USER_LIBRARY_DIR = /Users/morgan/Library USE_DYNAMIC_NO_PIC = YES USE_HEADERMAP = YES USE_HEADER_SYMLINKS = NO VALIDATE_PRODUCT = YES VALID_ARCHS = arm64 armv7 armv7s VERBOSE_PBXCP = NO VERSIONPLIST_PATH = Runner.app/version.plist VERSION_INFO_BUILDER = morgan VERSION_INFO_FILE = Runner_vers.c VERSION_INFO_STRING = "@(#)PROGRAM:Runner PROJECT:Runner-" WRAPPER_EXTENSION = app WRAPPER_NAME = Runner.app WRAPPER_SUFFIX = .app WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO XCODE_APP_SUPPORT_DIR = /Applications/Xcode-beta.app/Contents/Developer/Library/Xcode XCODE_PRODUCT_BUILD_VERSION = 9M214v XCODE_VERSION_ACTUAL = 0900 XCODE_VERSION_MAJOR = 0900 XCODE_VERSION_MINOR = 0900 XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices YACC = yacc arch = arm64 variant = normal [ +66 ms] tail -n 0 -F /Users/morgan/Library/Logs/CoreSimulator/2CF233EB-27B2-4464-9C07-FFC924A1B630/system.log [ +6 ms] Building Runner.app for 2CF233EB-27B2-4464-9C07-FFC924A1B630. [ +11 ms] Building build/app.flx [ +156 ms] tail -n 0 -F /private/var/log/system.log [ +211 ms] which zip [ +7 ms] Encoding zip file to build/app.flx [ +33 ms] [build/flx/] zip -q /Users/morgan/Programming/temp/myapp/build/app.flx fonts/MaterialIcons-Regular.ttf AssetManifest.json FontManifest.json LICENSE [ +54 ms] Built build/app.flx. [ +1 ms] /usr/bin/xcrun simctl get_app_container 2CF233EB-27B2-4464-9C07-FFC924A1B630 com.yourcompany.myapp [ ] /usr/bin/killall Runner [ +63 ms] [DEVICE LOG] Sep 5 15:43:23 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (UIKitApplication:com.yourcompany.myapp[0x582f][32397][33539]): Service exited due to signal: Terminated: 15 sent by killall[33639] [ +102 ms] /usr/bin/xcrun simctl launch 2CF233EB-27B2-4464-9C07-FFC924A1B630 com.yourcompany.myapp --enable-dart-profiling --flx=/Users/morgan/Programming/temp/myapp/build/app.flx --dart-main=/Users/morgan/Programming/temp/myapp/lib/main.dart --packages=/Users/morgan/Programming/temp/myapp/.packages --enable-checked-mode --observatory-port=8102 --diagnostic-port=8103 [ +224 ms] com.yourcompany.myapp: 33641 [ ] Waiting for observatory port to be available... [+1142 ms] [DEVICE LOG] Sep 5 15:43:24 Richards-MacBook Runner[33641]: assertion failed: 16G29 15A5361a: libxpc.dylib + 69578 [EF78594B-BD50-3F3B-B607-190E9A20F4E9]: 0x7d [+146461 ms] [SYS LOG] Sep 5 15:45:51 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [+2852 ms] [SYS LOG] Sep 5 15:45:54 Richards-MacBook xpcproxy[33744]: libcoreservices: _dirhelper_userdir: 523: bootstrap_look_up returned 268435459 [+1945 ms] [SYS LOG] Sep 5 15:45:56 Richards-MacBook akd[33746]: objc[33746]: Class AKToken is implemented in both /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/AuthKit (0x7fffd04d7338) and /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/Support/akd (0x10d3d76b8). One of the two will be used. Which one is undefined. [ ] [SYS LOG] Sep 5 15:45:56 Richards-MacBook akd[33746]: objc[33746]: Class AKMasterToken is implemented in both /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/AuthKit (0x7fffd04d7388) and /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/Support/akd (0x10d3d7708). One of the two will be used. Which one is undefined. [+232871 ms] [SYS LOG] Sep 5 15:49:48 Richards-MacBook syslogd[23]: ASL Sender Statistics [+21070 ms] [SYS LOG] Sep 5 15:50:09 Richards-MacBook GoogleSoftwareUpdateAgent[33907]: 2017-09-05 15:50:09.947 GoogleSoftwareUpdateAgent[33907/0x7fffd29113c0] [lvl=2] -[KSAgentApp(PrivateMethods) setupLoggerOutput] Agent default/global settings: &lt;KSAgentSettings:0x100307030 bundleID=com.google.Keystone.Agent lastCheck=2017-09-05 21:49:46 +0000 lastServerCheck=2017-09-05 21:49:44 +0000 lastCheckStart=2017-09-05 21:49:24 +0000 checkInterval=18000.000000 uiDisplayInterval=604800.000000 sleepInterval=1800.000000 jitterInterval=900 maxRunInterval=0.000000 isConsoleUser=1 ticketStorePath=/Users/morgan/Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore runMode=3 daemonUpdateEngineBrokerServiceName=com.google.Keystone.Daemon.UpdateEngine daemonAdministrationServiceName=com.google.Keystone.Daemon.Administration logEverything=0 logBufferSize=2048 alwaysPromptForUpdates=0 productIDToUpdate=(null) lastUIDisplayed=(null) alwaysShowStatusItem=0 updateCheckTag=(null) printResults=NO userInitiated=NO&gt; [+153604 ms] [SYS LOG] Sep 5 15:52:43 Richards-MacBook pbs[32741]: BUG in libdispatch client: kevent[EVFILT_MACHPORT] monitored resource vanished before the source cancel handler was invoked [+47651 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook Preferences[34031]: objc[34031]: Class SFUserNotification is implemented in both /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/Sharing.framework/Sharing (0x11d3164c8) and /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/SafariServices.framework/SafariServices (0x1219c6388). One of the two will be used. Which one is undefined. [ +3 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook syslogd[32373]: ASL Sender Statistics [ +209 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook Preferences[34031]: assertion failed: 16G29 15A5361a: libxpc.dylib + 69578 [EF78594B-BD50-3F3B-B607-190E9A20F4E9]: 0x7d [ +231 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Networking): Unknown key for Boolean: EnableTransactions [ +11 ms] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Networking): Unknown key for Boolean: EnableTransactions [ +3 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Networking): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.IdentityLookup.MessageFilter): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.IdentityLookup.MessageFilter): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Databases): Unknown key for Boolean: EnableTransactions [ +28 ms] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Networking): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.IdentityLookup.MessageFilter): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.IdentityLookup.MessageFilter): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Databases): Unknown key for Boolean: EnableTransactions [ +1 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Databases): Unknown key for Boolean: EnablePressuredExit [ +33 ms] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.SafariServices.ContentBlockerLoader): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.SafariServices.ContentBlockerLoader): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.ClassroomKit.ScreenshotService): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.ClassroomKit.ScreenshotService): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.ImageDecoder): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.ImageDecoder): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.History): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.Databases): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.SafariServices.ContentBlockerLoader): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.SafariServices.ContentBlockerLoader): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.ClassroomKit.ScreenshotService): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.ClassroomKit.ScreenshotService): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.ImageDecoder): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.ImageDecoder): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.History): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.History): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.icloud.FMF.FMFMapXPCService): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.icloud.FMF.FMFMapXPCService): Unknown key for Boolean: EnablePressuredExit [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.Safari.History): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.icloud.FMF.FMFMapXPCService): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.icloud.FMF.FMFMapXPCService): Unknown key for Boolean: EnablePressuredExit [ +11 ms] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:31 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnablePressuredExit [ +257 ms] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook Preferences[34031]: objc[34031]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x1286fb490) and /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/AVConference (0x128589fc8). One of the two will be used. Which one is undefined. [ +101 ms] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions [ +1 ms] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [ ] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [ +5 ms] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit [ +16 ms] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit [ +426 ms] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnableTransactions [ ] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnableTransactions [ ] [DEVICE LOG] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnablePressuredExit [ ] Sep 5 15:53:32 Richards-MacBook com.apple.CoreSimulator.SimDevice.2CF233EB-27B2-4464-9C07-FFC924A1B630[32371] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnablePressuredExit [+72341 ms] [SYS LOG] Sep 5 15:54:44 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit [+101291 ms] [SYS LOG] Sep 5 15:56:26 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.ReportCrash[34143]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash [+7262 ms] [DEVICE LOG] Sep 5 15:56:33 Richards-MacBook launchd_sim[32371]: BUG in libdispatch client: kevent[mach_recv] monitored resource vanished before the source cancel handler was invoked [+52889 ms] [SYS LOG] Sep 5 15:57:26 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.metadata.mds[48]): Service exited due to signal: Segmentation fault: 11 sent by exc handler[0] [ ] [SYS LOG] Sep 5 15:57:26 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.ReportCrash.Root[34181]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash.DirectoryService [+42869 ms] [SYS LOG] Sep 5 15:58:09 Richards-MacBook com.apple.xpc.launchd[1] (com.apple.quicklook[34219]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook </code></pre></div> <p dir="auto">Also ran flutter analyze but no issues were found.</p> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Mac OS X 10.12.6 16G29, locale en-CA, channel alpha) • Flutter at /Users/morgan/flutter • Framework revision 1c372c6803 (5 days ago), 2017-08-31 15:54:45 -0700 • Engine revision f9e00a7c72 • Tools Dart version 1.25.0-dev.11.0 [✓] Android toolchain - develop for Android devices (Android SDK 26.0.1) • Android SDK at /Users/morgan/Library/Android/sdk • Platform android-26, build-tools 26.0.1 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] iOS toolchain - develop for iOS devices (Xcode 9.0) • Xcode at /Applications/Xcode-beta.app/Contents/Developer • Xcode 9.0, Build version 9M214v • ios-deploy 1.9.2 • CocoaPods version 1.3.1 [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Community Edition (version 2017.2.3) • Flutter plugin version 17.0 • Dart plugin version 172.3968.27 [✓] Connected devices • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator) • iPhone 7 • 2CF233EB-27B2-4464-9C07-FFC924A1B630 • ios • iOS 11.0 (simulator)"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS X 10.12.6 16G29, locale en-CA, channel alpha) • Flutter at /Users/morgan/flutter • Framework revision 1c372c6803 (5 days ago), 2017-08-31 15:54:45 -0700 • Engine revision f9e00a7c72 • Tools Dart version 1.25.0-dev.11.0 [✓] Android toolchain - develop for Android devices (Android SDK 26.0.1) • Android SDK at /Users/morgan/Library/Android/sdk • Platform android-26, build-tools 26.0.1 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] iOS toolchain - develop for iOS devices (Xcode 9.0) • Xcode at /Applications/Xcode-beta.app/Contents/Developer • Xcode 9.0, Build version 9M214v • ios-deploy 1.9.2 • CocoaPods version 1.3.1 [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Community Edition (version 2017.2.3) • Flutter plugin version 17.0 • Dart plugin version 172.3968.27 [✓] Connected devices • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator) • iPhone 7 • 2CF233EB-27B2-4464-9C07-FFC924A1B630 • ios • iOS 11.0 (simulator) </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I am a Android developer. Develop IDE is android stodio 3.0.1.<br> I upgrade Flutter to 0.2.12 in yesterday.</p> <p dir="auto">But when i running my project, It made a mistake.</p> <h2 dir="auto">Logs</h2> <p dir="auto">Run my application with <code class="notranslate">flutter run</code> , and all logs is :</p> <hr> <blockquote> <p dir="auto">D:\android\git_aliyun\xlcrm&gt;flutter run<br> Launching lib/main.dart on Redmi Note 3 in debug mode...<br> Initializing gradle...<br> Skipping compilation. Fingerprint match.</p> <p dir="auto">Oops; flutter has exited unexpectedly.</p> </blockquote> <hr> <p dir="auto">and it's over.......</p> <p dir="auto">But it created a flutter_01.log in my project root director. it's here :</p> <hr> <blockquote> <p dir="auto">Flutter crash report; please file at <a href="https://github.com/flutter/flutter/issues">https://github.com/flutter/flutter/issues</a>.</p> <h2 dir="auto">command</h2> <p dir="auto">flutter run</p> <h2 dir="auto">exception</h2> <p dir="auto">FormatException: FormatException: Bad UTF-8 encoding 0xe4 (at offset 9)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 _Utf8Decoder.convert (dart:convert/utf.dart:490) #1 _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:345) #2 _Utf8ConversionSink.add (dart:convert/string_conversion.dart:341) #3 _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:86) #4 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120) #5 _rootRunUnary (dart:async/zone.dart:1134) #6 _CustomZone.runUnary (dart:async/zone.dart:1031) #7 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933) #8 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330) #9 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257) #10 _StreamController&amp;&amp;_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:763) #11 _StreamController._add (dart:async/stream_controller.dart:639) #12 _StreamController.add (dart:async/stream_controller.dart:585) #13 _Socket._onData (dart:io-patch/socket_patch.dart:1674) #14 _rootRunUnary (dart:async/zone.dart:1138) #15 _CustomZone.runUnary (dart:async/zone.dart:1031) #16 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933) #17 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330) #18 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257) #19 _StreamController&amp;&amp;_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:763) #20 _StreamController._add (dart:async/stream_controller.dart:639) #21 _StreamController.add (dart:async/stream_controller.dart:585) #22 new _RawSocket.&lt;anonymous closure&gt; (dart:io-patch/socket_patch.dart:1247) #23 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:799) #24 _microtaskLoop (dart:async/schedule_microtask.dart:41) #25 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50) #26 _runPendingImmediateCallback (dart:isolate-patch/dart:isolate/isolate_patch.dart:113) #27 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:166)"><pre class="notranslate"><code class="notranslate">#0 _Utf8Decoder.convert (dart:convert/utf.dart:490) #1 _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:345) #2 _Utf8ConversionSink.add (dart:convert/string_conversion.dart:341) #3 _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:86) #4 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120) #5 _rootRunUnary (dart:async/zone.dart:1134) #6 _CustomZone.runUnary (dart:async/zone.dart:1031) #7 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933) #8 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330) #9 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257) #10 _StreamController&amp;&amp;_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:763) #11 _StreamController._add (dart:async/stream_controller.dart:639) #12 _StreamController.add (dart:async/stream_controller.dart:585) #13 _Socket._onData (dart:io-patch/socket_patch.dart:1674) #14 _rootRunUnary (dart:async/zone.dart:1138) #15 _CustomZone.runUnary (dart:async/zone.dart:1031) #16 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933) #17 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330) #18 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257) #19 _StreamController&amp;&amp;_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:763) #20 _StreamController._add (dart:async/stream_controller.dart:639) #21 _StreamController.add (dart:async/stream_controller.dart:585) #22 new _RawSocket.&lt;anonymous closure&gt; (dart:io-patch/socket_patch.dart:1247) #23 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:799) #24 _microtaskLoop (dart:async/schedule_microtask.dart:41) #25 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50) #26 _runPendingImmediateCallback (dart:isolate-patch/dart:isolate/isolate_patch.dart:113) #27 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:166) </code></pre></div> <h2 dir="auto">flutter doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel master, v0.2.12-pre.30, on Microsoft Windows [Version 6.1.7601], locale zh-CN) • Flutter version 0.2.12-pre.30 at D:\flutterSdk\flutter • Framework revision 1c3f6a851f (21 hours ago), 2018-04-12 21:16:39 -0700 • Engine revision 76cb311d9c • Dart version 2.0.0-dev.47.0.flutter-f76dad0adc [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at E:\android\studio-sdk • Android NDK at E:\android\studio-sdk\ndk-bundle • Platform android-P, build-tools 27.0.3 • ANDROID_HOME = E:\android\studio-sdk • Java binary at: E:\android\as\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) • All Android licenses accepted. [✓] Android Studio (version 3.0) • Android Studio at E:\android\as ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [✓] Connected devices (1 available) • Redmi Note 3 • JNY969CI99999999 • android-arm64 • Android 5.0.2 (API 21) • No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel master, v0.2.12-pre.30, on Microsoft Windows [Version 6.1.7601], locale zh-CN) • Flutter version 0.2.12-pre.30 at D:\flutterSdk\flutter • Framework revision 1c3f6a851f (21 hours ago), 2018-04-12 21:16:39 -0700 • Engine revision 76cb311d9c • Dart version 2.0.0-dev.47.0.flutter-f76dad0adc [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at E:\android\studio-sdk • Android NDK at E:\android\studio-sdk\ndk-bundle • Platform android-P, build-tools 27.0.3 • ANDROID_HOME = E:\android\studio-sdk • Java binary at: E:\android\as\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) • All Android licenses accepted. [✓] Android Studio (version 3.0) • Android Studio at E:\android\as ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [✓] Connected devices (1 available) • Redmi Note 3 • JNY969CI99999999 • android-arm64 • Android 5.0.2 (API 21) • No issues found! </code></pre></div> </blockquote> <hr> <p dir="auto">Flutter plugin and Dart plugin was intalled:</p> <p dir="auto"><a href="https://imgchr.com/i/CVIUeJ" rel="nofollow">flutter plugin screenshot</a><br> <a href="https://imgchr.com/i/CVItL4" rel="nofollow">dart plugin screenshot</a></p> <p dir="auto"><strong>How can i fixed it ? Thanks !</strong></p>
0
<h4 dir="auto">Issue Description</h4> <ul dir="auto"> <li>I have noticed that when I return to view my completed Camper News project, I am failing to get access to the API via AJAX, as I'm now getting the "No-Access-Control-Origin" error in the console. This has been working from the moment I completed it (2015), but for reason, it does not work anymore, so no news info is populating the page as I designed. Not sure if FCC server still accepts CORS or if I'm doing something wrong?</li> <li>I tried pulling up the project on codepen via Firefox Browser, as well as my iPhone's Safari browser. Same results.</li> </ul> <h4 dir="auto">My Browser Information</h4> <ul dir="auto"> <li>Chrome Version 49.0.2623.87 (64-bit)</li> <li>Linux, Ubuntu Mate 15.10</li> </ul> <h4 dir="auto">My Code</h4> <p dir="auto"><a href="http://codepen.io/Ramon-Carroll/full/ZbgmGB/" rel="nofollow">My codepen</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var req = new XMLHttpRequest(); req.open(&quot;GET&quot;, &quot;http://www.freecodecamp.com/news/hot&quot;, true); req.onload = function() { var fcc; fcc = JSON.parse(req.responseText); var amountToDisplay = 40; for (var i = 0; i &lt; amountToDisplay; i++) { var storySection = document.querySelector(&quot;.story-section&quot;); var story = document.createElement(&quot;div&quot;); var headline = document.createElement(&quot;a&quot;); var img = document.createElement(&quot;img&quot;);[GitHub](http://github.com) var author = document.createElement(&quot;a&quot;); var likes = document.createElement(&quot;p&quot;); story.classList.add(&quot;story&quot;); headline.classList.add(&quot;headline&quot;); headline.setAttribute(&quot;href&quot;, fcc[i].link); headline.innerHTML = fcc[i].headline; headline.setAttribute(&quot;target&quot;, &quot;_blank&quot;); img.setAttribute(&quot;src&quot;, fcc[i].author.picture); author.classList.add(&quot;author&quot;); author.setAttribute(&quot;href&quot;, &quot;http://www.freecodecamp.com/&quot; + fcc[i].author.username); author.innerHTML = &quot;By &quot; + fcc[i].author.username; likes.innerHTML = &quot;♥ &quot; + fcc[i].upVotes.length; likes.classList.add(&quot;likes&quot;); story.appendChild(headline); story.appendChild(img); story.appendChild(author); story.appendChild(likes); storySection.appendChild(story); }; }; req.send();"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">req</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">XMLHttpRequest</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-en">open</span><span class="pl-kos">(</span><span class="pl-s">"GET"</span><span class="pl-kos">,</span> <span class="pl-s">"http://www.freecodecamp.com/news/hot"</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-en">onload</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">fcc</span><span class="pl-kos">;</span> <span class="pl-s1">fcc</span> <span class="pl-c1">=</span> <span class="pl-c1">JSON</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-c1">responseText</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">amountToDisplay</span> <span class="pl-c1">=</span> <span class="pl-c1">40</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">amountToDisplay</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">storySection</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">querySelector</span><span class="pl-kos">(</span><span class="pl-s">".story-section"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">story</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"div"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">headline</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"a"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">img</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"img"</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-kos">[</span><span class="pl-v">GitHub</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-c">//github.com)</span> <span class="pl-k">var</span> <span class="pl-s1">author</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"a"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">likes</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"p"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">story</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s">"story"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">headline</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s">"headline"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">headline</span><span class="pl-kos">.</span><span class="pl-en">setAttribute</span><span class="pl-kos">(</span><span class="pl-s">"href"</span><span class="pl-kos">,</span> <span class="pl-s1">fcc</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">link</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">headline</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span> <span class="pl-c1">=</span> <span class="pl-s1">fcc</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">headline</span><span class="pl-kos">;</span> <span class="pl-s1">headline</span><span class="pl-kos">.</span><span class="pl-en">setAttribute</span><span class="pl-kos">(</span><span class="pl-s">"target"</span><span class="pl-kos">,</span> <span class="pl-s">"_blank"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">img</span><span class="pl-kos">.</span><span class="pl-en">setAttribute</span><span class="pl-kos">(</span><span class="pl-s">"src"</span><span class="pl-kos">,</span> <span class="pl-s1">fcc</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">author</span><span class="pl-kos">.</span><span class="pl-c1">picture</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">author</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s">"author"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">author</span><span class="pl-kos">.</span><span class="pl-en">setAttribute</span><span class="pl-kos">(</span><span class="pl-s">"href"</span><span class="pl-kos">,</span> <span class="pl-s">"http://www.freecodecamp.com/"</span> <span class="pl-c1">+</span> <span class="pl-s1">fcc</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">author</span><span class="pl-kos">.</span><span class="pl-c1">username</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">author</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span> <span class="pl-c1">=</span> <span class="pl-s">"By "</span> <span class="pl-c1">+</span> <span class="pl-s1">fcc</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">author</span><span class="pl-kos">.</span><span class="pl-c1">username</span><span class="pl-kos">;</span> <span class="pl-s1">likes</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span> <span class="pl-c1">=</span> <span class="pl-s">"♥ "</span> <span class="pl-c1">+</span> <span class="pl-s1">fcc</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">upVotes</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">likes</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s">"likes"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">story</span><span class="pl-kos">.</span><span class="pl-en">appendChild</span><span class="pl-kos">(</span><span class="pl-s1">headline</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">story</span><span class="pl-kos">.</span><span class="pl-en">appendChild</span><span class="pl-kos">(</span><span class="pl-s1">img</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">story</span><span class="pl-kos">.</span><span class="pl-en">appendChild</span><span class="pl-kos">(</span><span class="pl-s1">author</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">story</span><span class="pl-kos">.</span><span class="pl-en">appendChild</span><span class="pl-kos">(</span><span class="pl-s1">likes</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">storySection</span><span class="pl-kos">.</span><span class="pl-en">appendChild</span><span class="pl-kos">(</span><span class="pl-s1">story</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/show-relationships-with-a-force-directed-graph" rel="nofollow">Show Relationships with a Force Directed Graph</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">Just opened the pen and it spits out a CORS error.</p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 1.0.0<br> <strong>System</strong>: Microsoft Windows 7 Ultimate<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Radu\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -1:34.4.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused) -1:34.4.0 editor:newline (atom-text-editor.editor.is-focused) -1:34.3.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused) -1:34.3.0 editor:newline (atom-text-editor.editor.is-focused) 4x -1:14.2.0 core:backspace (atom-text-editor.editor.is-focused) -1:10.1.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused) -1:10.1.0 editor:newline (atom-text-editor.editor.is-focused) -1:09.5.0 core:paste (atom-text-editor.editor.is-focused) 11x -1:02.3.0 core:backspace (atom-text-editor.editor.is-focused) 2x -0:31.9.0 emmet:expand-abbreviation-with-tab (atom-text-editor.editor.is-focused) -0:27.1.0 core:move-right (atom-text-editor.editor.is-focused) 4x -0:26.7.0 core:backspace (atom-text-editor.editor.is-focused) -0:26 core:save (atom-text-editor.editor.is-focused) -0:19.2.0 core:move-up (atom-text-editor.editor.is-focused) -0:19 core:backspace (atom-text-editor.editor.is-focused) -0:18.7.0 core:save (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -1:34.4.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused) -1:34.4.0 editor:newline (atom-text-editor.editor.is-focused) -1:34.3.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused) -1:34.3.0 editor:newline (atom-text-editor.editor.is-focused) 4x -1:14.2.0 core:backspace (atom-text-editor.editor.is-focused) -1:10.1.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused) -1:10.1.0 editor:newline (atom-text-editor.editor.is-focused) -1:09.5.0 core:paste (atom-text-editor.editor.is-focused) 11x -1:02.3.0 core:backspace (atom-text-editor.editor.is-focused) 2x -0:31.9.0 emmet:expand-abbreviation-with-tab (atom-text-editor.editor.is-focused) -0:27.1.0 core:move-right (atom-text-editor.editor.is-focused) 4x -0:26.7.0 core:backspace (atom-text-editor.editor.is-focused) -0:26 core:save (atom-text-editor.editor.is-focused) -0:19.2.0 core:move-up (atom-text-editor.editor.is-focused) -0:19 core:backspace (atom-text-editor.editor.is-focused) -0:18.7.0 core:save (atom-text-editor.editor.is-focused) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: {}, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;tabLength&quot;: 4, &quot;showIndentGuide&quot;: true, &quot;fontSize&quot;: 15 } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: {}, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"tabLength"</span>: <span class="pl-c1">4</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">15</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User color-picker, v2.0.6 emmet, v2.3.10 minimap, v4.10.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> color<span class="pl-k">-</span>picker, v2.<span class="pl-ii">0</span>.<span class="pl-ii">6</span> emmet, v2.<span class="pl-ii">3</span>.<span class="pl-ii">10</span> minimap, v4.<span class="pl-ii">10</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;node_modules&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ], &quot;disabledPackages&quot;: [ &quot;Tern&quot; ], &quot;projectHome&quot;: &quot;Y:\\app-tfoumax&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User autocomplete-plus, v2.12.0 autocomplete-snippets, v1.2.0 javascript-snippets, v1.0.0 jshint, v1.3.5 language-ejs, v0.1.0 linter, v0.12.1 pretty-json, v0.3.3 save-session, v0.14.0 Search, v0.4.0 seti-syntax, v0.4.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/930" rel="nofollow">http://projects.scipy.org/numpy/ticket/930</a> on 2008-10-14 by trac user jbosch, assigned to unknown.</em></p> <p dir="auto">The <code class="notranslate">empty_like</code> and <code class="notranslate">zeros_like</code> creation functions, which are defined in python in numeric.py, differ in their handling of array-subtype input from <code class="notranslate">ones_like</code>, which is defined in C as a ufunc.</p> <p dir="auto">In particular, if a subtype of ndarray is passed to <code class="notranslate">empty_like</code> or <code class="notranslate">zeros_like</code>, neither <code class="notranslate">__array_wrap__</code> or <code class="notranslate">__array_finalize__</code> is called, which makes it impossible for subtypes to define any extra attributes they might need.</p> <p dir="auto">I believe this behavior could be fixed entirely by switching from:</p> <p dir="auto"><code class="notranslate">if isinstance(a,ndarray):</code></p> <p dir="auto">to</p> <p dir="auto"><code class="notranslate">if type(a)==ndarray:</code></p> <p dir="auto">at the top of those two functions, though there are probably more efficient ways to accomplish the same thing.</p>
<p dir="auto">Copied code for NumPy.ipmt at <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.ipmt.html#numpy.ipmt" rel="nofollow">https://docs.scipy.org/doc/numpy/reference/generated/numpy.ipmt.html#numpy.ipmt</a>.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np principal = 2500.00 per = np.arange(1*12) + 1 ipmt = np.ipmt(0.0824/12, per, 1*12, principal) ppmt = np.ppmt(0.0824/12, per, 1*12, principal) fmt = '{0:2d} {1:8.2f} {2:8.2f} {3:8.2f}' for payment in per: index = payment - 1 principal = principal + ppmt[index] print(fmt.format(payment, ppmt[index], ipmt[index], principal))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">principal</span> <span class="pl-c1">=</span> <span class="pl-c1">2500.00</span> <span class="pl-s1">per</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">1</span><span class="pl-c1">*</span><span class="pl-c1">12</span>) <span class="pl-c1">+</span> <span class="pl-c1">1</span> <span class="pl-s1">ipmt</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ipmt</span>(<span class="pl-c1">0.0824</span><span class="pl-c1">/</span><span class="pl-c1">12</span>, <span class="pl-s1">per</span>, <span class="pl-c1">1</span><span class="pl-c1">*</span><span class="pl-c1">12</span>, <span class="pl-s1">principal</span>) <span class="pl-s1">ppmt</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ppmt</span>(<span class="pl-c1">0.0824</span><span class="pl-c1">/</span><span class="pl-c1">12</span>, <span class="pl-s1">per</span>, <span class="pl-c1">1</span><span class="pl-c1">*</span><span class="pl-c1">12</span>, <span class="pl-s1">principal</span>) <span class="pl-s1">fmt</span> <span class="pl-c1">=</span> <span class="pl-s">'{0:2d} {1:8.2f} {2:8.2f} {3:8.2f}'</span> <span class="pl-k">for</span> <span class="pl-s1">payment</span> <span class="pl-c1">in</span> <span class="pl-s1">per</span>: <span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">payment</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span> <span class="pl-s1">principal</span> <span class="pl-c1">=</span> <span class="pl-s1">principal</span> <span class="pl-c1">+</span> <span class="pl-s1">ppmt</span>[<span class="pl-s1">index</span>] <span class="pl-en">print</span>(<span class="pl-s1">fmt</span>.<span class="pl-en">format</span>(<span class="pl-s1">payment</span>, <span class="pl-s1">ppmt</span>[<span class="pl-s1">index</span>], <span class="pl-s1">ipmt</span>[<span class="pl-s1">index</span>], <span class="pl-s1">principal</span>))</pre></div> <p dir="auto">Expected output:</p> <p dir="auto">1 -200.58 -17.17 2299.42<br> 2 -201.96 -15.79 2097.46<br> 3 -203.35 -14.40 1894.11<br> 4 -204.74 -13.01 1689.37<br> 5 -206.15 -11.60 1483.22<br> 6 -207.56 -10.18 1275.66<br> 7 -208.99 -8.76 1066.67<br> 8 -210.42 -7.32 856.25<br> 9 -211.87 -5.88 644.38<br> 10 -213.32 -4.42 431.05<br> 11 -214.79 -2.96 216.26<br> 12 -216.26 -1.49 -0.00</p> <p dir="auto">I get:</p> <p dir="auto">0 -216.26 -1.49 2283.74<br> 1 -199.21 -18.53 2084.52<br> 2 -200.58 -17.17 1883.94<br> 3 -201.96 -15.79 1681.98<br> 4 -203.35 -14.40 1478.64<br> 5 -204.74 -13.01 1273.89<br> 6 -206.15 -11.60 1067.74<br> 7 -207.56 -10.18 860.18<br> 8 -208.99 -8.76 651.19<br> 9 -210.42 -7.32 440.77<br> 10 -211.87 -5.88 228.90<br> 11 -213.32 -4.42 15.57<br> 12 -214.79 -2.96 -199.21</p> <p dir="auto">per variable is supposed to start the payment number count at 1, but as you can see, when I do it, it starts at 0 and throws off the entire array.</p> <h3 dir="auto">Numpy version information: 1.17.0</h3> <h3 dir="auto">Python version information: 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]</h3> <p dir="auto">How do I get an accurate array?<br> Thank you.</p>
0
<p dir="auto">this applies to v0.14.0-rc2</p> <p dir="auto">OnChange event does not pass menuItem anymore. Based on documentation it should be</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="onChange function(event, selectedIndex, menuItem)"><pre class="notranslate"><span class="pl-en">onChange</span> <span class="pl-s1">function</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">,</span> <span class="pl-s1">selectedIndex</span><span class="pl-kos">,</span> <span class="pl-s1">menuItem</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Instead, what is happening now is</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="onChange function(event, selectedIndex, selectedIndex)"><pre class="notranslate"><span class="pl-en">onChange</span> <span class="pl-s1">function</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">,</span> <span class="pl-s1">selectedIndex</span><span class="pl-kos">,</span> <span class="pl-s1">selectedIndex</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Both 2nd and 3rd parameters are selectedIndex, menuItem never get passed along. Please fix.</p> <p dir="auto">Also I use extra properties in menuItem of pass data, so please retain everything in menuItem.<br> e.g. I use menuItem as</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" let menuItems = [ { id: 'myid', payload: '1', text: 'Never' }, { id: 'myid', payload: '2', text: 'Every Night' }, ];"><pre class="notranslate"> <span class="pl-k">let</span> <span class="pl-s1">menuItems</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">id</span>: <span class="pl-s">'myid'</span><span class="pl-kos">,</span> <span class="pl-c1">payload</span>: <span class="pl-s">'1'</span><span class="pl-kos">,</span> <span class="pl-c1">text</span>: <span class="pl-s">'Never'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">id</span>: <span class="pl-s">'myid'</span><span class="pl-kos">,</span> <span class="pl-c1">payload</span>: <span class="pl-s">'2'</span><span class="pl-kos">,</span> <span class="pl-c1">text</span>: <span class="pl-s">'Every Night'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I upgraded react and material-ui to the 0.14-rc2<br> and Dropdown menu params seem to have changed<br> I wouldn't think a change like this would slip through react itself</p> <p dir="auto">Package: [email protected]<br> Maintainers: mdg<br> Git: <a href="https://github.com/meteor/react-packages">https://github.com/meteor/react-packages</a><br> Implies: jsx, react-meteor-data, react-runtime</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;DropDownMenu hintText='topic' selectedIndex={topicMenuIndex} onChange={this.setTopicFilter} menuItems={this.data.topics} desktop={true} /&gt;"><pre class="notranslate"><code class="notranslate"> &lt;DropDownMenu hintText='topic' selectedIndex={topicMenuIndex} onChange={this.setTopicFilter} menuItems={this.data.topics} desktop={true} /&gt; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="setTopicFilter(event, selectedIndex, menuItem) "><pre class="notranslate"><code class="notranslate">setTopicFilter(event, selectedIndex, menuItem) </code></pre></div> <p dir="auto">previously the 3rd param was the text of the menuItem but now I'm getting the selectedIndex twice.<br> could this be related to the Menu composability refactoring?</p>
1
<p dir="auto">Following up on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="196267978" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/8075" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/8075/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/8075">#8075</a> I think we should have a convenience option to add <code class="notranslate">MissingIndicator</code> to <code class="notranslate">SimpleImputer</code> without having to build a <code class="notranslate">FeatureUnion</code> or <code class="notranslate">ColumnTransformer</code>.</p>
<p dir="auto">For whatever imputers we have, but especially <a href="http://scikit-learn.org/dev/modules/generated/sklearn.impute.SimpleImputer.html" rel="nofollow">SimpleImputer</a>, we should have an <code class="notranslate">add_indicator</code> parameter, which simply stacks a <a href="http://scikit-learn.org/dev/modules/generated/sklearn.impute.MissingIndicator.html" rel="nofollow">MissingIndicator</a> transform onto the output of the imputer's <code class="notranslate">transform</code>.</p>
1
<p dir="auto">I've confirmed the error does not occur in Pandas 0.16 on a similar machine.</p> <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd df = pd.DataFrame({'x': ['a', 'a', 'b'], 'y': [pd.Timestamp('2016-05-07 20:09:25+00:00'), pd.Timestamp('2016-05-07 20:09:29+00:00'), pd.Timestamp('2016-05-07 20:09:29+00:00')]}) df.groupby('x').count()"><pre class="notranslate"><code class="notranslate">import pandas as pd df = pd.DataFrame({'x': ['a', 'a', 'b'], 'y': [pd.Timestamp('2016-05-07 20:09:25+00:00'), pd.Timestamp('2016-05-07 20:09:29+00:00'), pd.Timestamp('2016-05-07 20:09:29+00:00')]}) df.groupby('x').count() </code></pre></div> <h4 dir="auto">Observed output</h4> <hr> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError Traceback (most recent call last) &lt;ipython-input-5-3119045de5b1&gt; in &lt;module&gt;() 2 df = pd.DataFrame({'x': ['a', 'a', 'b'], 3 'y': [pd.Timestamp('2016-05-07 20:09:25+00:00'), pd.Timestamp('2016-05-07 20:09:29+00:00'), pd.Timestamp('2016-05-07 20:09:29+00:00')]}) ----&gt; 4 print df.groupby('x').count() /usr/local/lib/python2.7/dist-packages/pandas/core/groupby.pyc in count(self) 3754 blk = map(make_block, map(counter, val), loc) 3755 -&gt; 3756 return self._wrap_agged_blocks(data.items, list(blk)) 3757 3758 pandas/lib.pyx in pandas.lib.count_level_2d (pandas/lib.c:23068)() ValueError: Buffer has wrong number of dimensions (expected 2, got 1)"><pre class="notranslate"><code class="notranslate">ValueError Traceback (most recent call last) &lt;ipython-input-5-3119045de5b1&gt; in &lt;module&gt;() 2 df = pd.DataFrame({'x': ['a', 'a', 'b'], 3 'y': [pd.Timestamp('2016-05-07 20:09:25+00:00'), pd.Timestamp('2016-05-07 20:09:29+00:00'), pd.Timestamp('2016-05-07 20:09:29+00:00')]}) ----&gt; 4 print df.groupby('x').count() /usr/local/lib/python2.7/dist-packages/pandas/core/groupby.pyc in count(self) 3754 blk = map(make_block, map(counter, val), loc) 3755 -&gt; 3756 return self._wrap_agged_blocks(data.items, list(blk)) 3757 3758 pandas/lib.pyx in pandas.lib.count_level_2d (pandas/lib.c:23068)() ValueError: Buffer has wrong number of dimensions (expected 2, got 1) </code></pre></div> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="x y a 2 b 1"><pre class="notranslate"><code class="notranslate">x y a 2 b 1 </code></pre></div> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-32-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.1 pip: 8.1.2 setuptools: 21.2.1 Cython: None numpy: 1.11.0 scipy: 0.16.0 statsmodels: 0.5.0 xarray: None IPython: 4.2.0 sphinx: None patsy: 0.2.1 dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.2.2 matplotlib: 1.5.1 openpyxl: 1.7.0 xlrd: 0.9.2 xlwt: 0.7.5 xlsxwriter: 0.5.8 lxml: None bs4: 4.2.1 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: 0.9.7 pymysql: None psycopg2: 2.5.3 (dt dec pq3 ext) jinja2: 2.8 boto: 2.36.0 pandas_datareader: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-32-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.1 pip: 8.1.2 setuptools: 21.2.1 Cython: None numpy: 1.11.0 scipy: 0.16.0 statsmodels: 0.5.0 xarray: None IPython: 4.2.0 sphinx: None patsy: 0.2.1 dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.2.2 matplotlib: 1.5.1 openpyxl: 1.7.0 xlrd: 0.9.2 xlwt: 0.7.5 xlsxwriter: 0.5.8 lxml: None bs4: 4.2.1 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: 0.9.7 pymysql: None psycopg2: 2.5.3 (dt dec pq3 ext) jinja2: 2.8 boto: 2.36.0 pandas_datareader: None </code></pre></div>
<p dir="auto">Currently masking by boolean vectors it doesn't matter which syntax you use:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df[mask] df.iloc[mask] df.loc[mask]"><pre class="notranslate"><code class="notranslate">df[mask] df.iloc[mask] df.loc[mask] </code></pre></div> <p dir="auto">are all equivalent. Should mask <code class="notranslate">df.iloc[mask]</code> mask by position? (this makes sense if mask is integer index).</p> <p dir="auto">This <a href="http://stackoverflow.com/questions/16603765/what-is-the-most-idiomatic-way-to-index-an-object-with-a-boolean-array-in-pandas" rel="nofollow">SO question</a>.</p>
0
<p dir="auto">When I write this code,syntax highlighting is error with too much '</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var http = require('http'), util = require('util'), databaseUrl = &quot;***&quot;, collections = [&quot;files&quot;], db = require(&quot;mongojs&quot;).connect(databaseUrl, collections); var spawn = require('child_process').spawn, ffmpeg = spawn('./ffmpeg-2.1.3/bin/ffmpeg', ['-i','upload_3481af342dad78be657922eb9f70a87d.MOV','-c:v','libx264','-subq','7','-qcomp','0.6','-qmin','10','-qmax','50','-qdiff','4','-bf','16','-coder','1','-refs','6','-x264opts','b-pyramid:weightb:mixed-refs:8x8dct:no-fast-pskip=0','-vprofile','high','-pix_fmt','yuv420p','-b:v','2500k','-s','720x1280','-r','29.829','-g','60','-vf','transpose=1','-metadata:s:v','rotate=&quot;0&quot;','-c:a','libfdk_aac','-filter_complex','aresample=async=1:min_hard_comp=0.100000:first_pts=0','-b:a','128k','-ar','44100','-ac','2','-f','mp4','-flags','+loop+mv4','-cmp','256','-partitions','+parti4x4+partp8x8+partb8x8','-trellis','1','-refs','6','-me_range','16','-keyint_min','20','-sc_threshold','40','-i_qfactor','0.71','-bt','700k','-maxrate','2500k','-bufsize','5000k','-rc_eq','blurCplx^(1-qComp)','-vsync','1','-threads','4','-y','upload_3481af342dad78be657922eb9f70a87d_720p.mp4']); ffmpeg.stdout.on('data', function (data) { console.log('' + data); }); ffmpeg.stderr.on('data', function (data) { console.log('ffmpeg stderr: ' + data); }); ffmpeg.on('close', function (code) { if (code !== 0) { console.log('ffmpeg process exited with code ' + code); } });"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">http</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'http'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">util</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'util'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">databaseUrl</span> <span class="pl-c1">=</span> <span class="pl-s">"***"</span><span class="pl-kos">,</span> <span class="pl-s1">collections</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">"files"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">db</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"mongojs"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">connect</span><span class="pl-kos">(</span><span class="pl-s1">databaseUrl</span><span class="pl-kos">,</span> <span class="pl-s1">collections</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">spawn</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'child_process'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">spawn</span><span class="pl-kos">,</span> <span class="pl-s1">ffmpeg</span> <span class="pl-c1">=</span> <span class="pl-s1">spawn</span><span class="pl-kos">(</span><span class="pl-s">'./ffmpeg-2.1.3/bin/ffmpeg'</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">'-i'</span><span class="pl-kos">,</span><span class="pl-s">'upload_3481af342dad78be657922eb9f70a87d.MOV'</span><span class="pl-kos">,</span><span class="pl-s">'-c:v'</span><span class="pl-kos">,</span><span class="pl-s">'libx264'</span><span class="pl-kos">,</span><span class="pl-s">'-subq'</span><span class="pl-kos">,</span><span class="pl-s">'7'</span><span class="pl-kos">,</span><span class="pl-s">'-qcomp'</span><span class="pl-kos">,</span><span class="pl-s">'0.6'</span><span class="pl-kos">,</span><span class="pl-s">'-qmin'</span><span class="pl-kos">,</span><span class="pl-s">'10'</span><span class="pl-kos">,</span><span class="pl-s">'-qmax'</span><span class="pl-kos">,</span><span class="pl-s">'50'</span><span class="pl-kos">,</span><span class="pl-s">'-qdiff'</span><span class="pl-kos">,</span><span class="pl-s">'4'</span><span class="pl-kos">,</span><span class="pl-s">'-bf'</span><span class="pl-kos">,</span><span class="pl-s">'16'</span><span class="pl-kos">,</span><span class="pl-s">'-coder'</span><span class="pl-kos">,</span><span class="pl-s">'1'</span><span class="pl-kos">,</span><span class="pl-s">'-refs'</span><span class="pl-kos">,</span><span class="pl-s">'6'</span><span class="pl-kos">,</span><span class="pl-s">'-x264opts'</span><span class="pl-kos">,</span><span class="pl-s">'b-pyramid:weightb:mixed-refs:8x8dct:no-fast-pskip=0'</span><span class="pl-kos">,</span><span class="pl-s">'-vprofile'</span><span class="pl-kos">,</span><span class="pl-s">'high'</span><span class="pl-kos">,</span><span class="pl-s">'-pix_fmt'</span><span class="pl-kos">,</span><span class="pl-s">'yuv420p'</span><span class="pl-kos">,</span><span class="pl-s">'-b:v'</span><span class="pl-kos">,</span><span class="pl-s">'2500k'</span><span class="pl-kos">,</span><span class="pl-s">'-s'</span><span class="pl-kos">,</span><span class="pl-s">'720x1280'</span><span class="pl-kos">,</span><span class="pl-s">'-r'</span><span class="pl-kos">,</span><span class="pl-s">'29.829'</span><span class="pl-kos">,</span><span class="pl-s">'-g'</span><span class="pl-kos">,</span><span class="pl-s">'60'</span><span class="pl-kos">,</span><span class="pl-s">'-vf'</span><span class="pl-kos">,</span><span class="pl-s">'transpose=1'</span><span class="pl-kos">,</span><span class="pl-s">'-metadata:s:v'</span><span class="pl-kos">,</span><span class="pl-s">'rotate="0"'</span><span class="pl-kos">,</span><span class="pl-s">'-c:a'</span><span class="pl-kos">,</span><span class="pl-s">'libfdk_aac'</span><span class="pl-kos">,</span><span class="pl-s">'-filter_complex'</span><span class="pl-kos">,</span><span class="pl-s">'aresample=async=1:min_hard_comp=0.100000:first_pts=0'</span><span class="pl-kos">,</span><span class="pl-s">'-b:a'</span><span class="pl-kos">,</span><span class="pl-s">'128k'</span><span class="pl-kos">,</span><span class="pl-s">'-ar'</span><span class="pl-kos">,</span><span class="pl-s">'44100'</span><span class="pl-kos">,</span><span class="pl-s">'-ac'</span><span class="pl-kos">,</span><span class="pl-s">'2'</span><span class="pl-kos">,</span><span class="pl-s">'-f'</span><span class="pl-kos">,</span><span class="pl-s">'mp4'</span><span class="pl-kos">,</span><span class="pl-s">'-flags'</span><span class="pl-kos">,</span><span class="pl-s">'+loop+mv4'</span><span class="pl-kos">,</span><span class="pl-s">'-cmp'</span><span class="pl-kos">,</span><span class="pl-s">'256'</span><span class="pl-kos">,</span><span class="pl-s">'-partitions'</span><span class="pl-kos">,</span><span class="pl-s">'+parti4x4+partp8x8+partb8x8'</span><span class="pl-kos">,</span><span class="pl-s">'-trellis'</span><span class="pl-kos">,</span><span class="pl-s">'1'</span><span class="pl-kos">,</span><span class="pl-s">'-refs'</span><span class="pl-kos">,</span><span class="pl-s">'6'</span><span class="pl-kos">,</span><span class="pl-s">'-me_range'</span><span class="pl-kos">,</span><span class="pl-s">'16'</span><span class="pl-kos">,</span><span class="pl-s">'-keyint_min'</span><span class="pl-kos">,</span><span class="pl-s">'20'</span><span class="pl-kos">,</span><span class="pl-s">'-sc_threshold'</span><span class="pl-kos">,</span><span class="pl-s">'40'</span><span class="pl-kos">,</span><span class="pl-s">'-i_qfactor'</span><span class="pl-kos">,</span><span class="pl-s">'0.71'</span><span class="pl-kos">,</span><span class="pl-s">'-bt'</span><span class="pl-kos">,</span><span class="pl-s">'700k'</span><span class="pl-kos">,</span><span class="pl-s">'-maxrate'</span><span class="pl-kos">,</span><span class="pl-s">'2500k'</span><span class="pl-kos">,</span><span class="pl-s">'-bufsize'</span><span class="pl-kos">,</span><span class="pl-s">'5000k'</span><span class="pl-kos">,</span><span class="pl-s">'-rc_eq'</span><span class="pl-kos">,</span><span class="pl-s">'blurCplx^(1-qComp)'</span><span class="pl-kos">,</span><span class="pl-s">'-vsync'</span><span class="pl-kos">,</span><span class="pl-s">'1'</span><span class="pl-kos">,</span><span class="pl-s">'-threads'</span><span class="pl-kos">,</span><span class="pl-s">'4'</span><span class="pl-kos">,</span><span class="pl-s">'-y'</span><span class="pl-kos">,</span><span class="pl-s">'upload_3481af342dad78be657922eb9f70a87d_720p.mp4'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">ffmpeg</span><span class="pl-kos">.</span><span class="pl-c1">stdout</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'data'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">''</span> <span class="pl-c1">+</span> <span class="pl-s1">data</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">ffmpeg</span><span class="pl-kos">.</span><span class="pl-c1">stderr</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'data'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'ffmpeg stderr: '</span> <span class="pl-c1">+</span> <span class="pl-s1">data</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">ffmpeg</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'close'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">code</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">code</span> <span class="pl-c1">!==</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'ffmpeg process exited with code '</span> <span class="pl-c1">+</span> <span class="pl-s1">code</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">atom<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2648873/5568818/2b30eb94-8f9f-11e4-8e4e-cc3280daa802.png"><img src="https://cloud.githubusercontent.com/assets/2648873/5568818/2b30eb94-8f9f-11e4-8e4e-cc3280daa802.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">nodepad++<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2648873/5568819/38c2edb6-8f9f-11e4-8e2e-5b5e6af631a9.png"><img src="https://cloud.githubusercontent.com/assets/2648873/5568819/38c2edb6-8f9f-11e4-8e2e-5b5e6af631a9.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I opened a Python file with the following line (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20976125" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/963" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/963/hovercard" href="https://github.com/atom/atom/pull/963">#963</a>):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" PrintAndLog(u&quot;SSID: &quot; + RememberedNetwork[&quot;SSIDString&quot;].decode(&quot;utf-8&quot;) + u&quot; - BSSID: &quot; + RememberedNetwork[&quot;CachedScanRecord&quot;][&quot;BSSID&quot;] + u&quot; - RSSI: &quot; + str(RememberedNetwork[&quot;CachedScanRecord&quot;][&quot;RSSI&quot;]) + u&quot; - Last connected: &quot; + str(RememberedNetwork[&quot;LastConnected&quot;]) + u&quot; - Security type: &quot; + RememberedNetwork[&quot;SecurityType&quot;] + u&quot; - Geolocation: &quot; + Geolocation, &quot;INFO&quot;)"><pre class="notranslate"> <span class="pl-v">PrintAndLog</span>(<span class="pl-s">u"SSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SSIDString"</span>].<span class="pl-en">decode</span>(<span class="pl-s">"utf-8"</span>) <span class="pl-c1">+</span> <span class="pl-s">u" - BSSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"BSSID"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - RSSI: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"RSSI"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Last connected: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"LastConnected"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Security type: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SecurityType"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - Geolocation: "</span> <span class="pl-c1">+</span> <span class="pl-v">Geolocation</span>, <span class="pl-s">"INFO"</span>)</pre></div> <p dir="auto">Which led to the following bug:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67"><img src="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67" alt="screen shot 2014-03-03 at 2 52 40 pm" data-canonical-src="https://f.cloud.github.com/assets/44774/2313778/76bb4bba-a30d-11e3-9a64-81f6f91c25c4.png" style="max-width: 100%;"></a></p> <p dir="auto">You can find this as the main file in <a href="https://github.com/jipegit/OSXAuditor/blob/master/osxauditor.py"><code class="notranslate">osxauditor.py</code></a>.</p>
1
<p dir="auto">When using the <code class="notranslate">baseUrl</code> property in<code class="notranslate">tsconfig.json</code>, Next 9 fails to build with the following error:<br> <code class="notranslate">Module not found: Can't resolve ...</code></p> <p dir="auto">This is resolved by updating the import path to be absolute.</p> <p dir="auto">When running <code class="notranslate">tsc</code> on the same directory, the relative import works.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">The <code class="notranslate">baseUrl</code> in <code class="notranslate">tsconfig.json</code> is used when running <code class="notranslate">next build</code></p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Update tsconfig to use <code class="notranslate">baseUrl</code> compiler option:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;target&quot;: &quot;es5&quot;, &quot;lib&quot;: [&quot;dom&quot;, &quot;dom.iterable&quot;, &quot;esnext&quot;], &quot;allowJs&quot;: true, &quot;skipLibCheck&quot;: true, &quot;strict&quot;: true, &quot;forceConsistentCasingInFileNames&quot;: true, &quot;noEmit&quot;: true, &quot;esModuleInterop&quot;: true, &quot;module&quot;: &quot;esnext&quot;, &quot;moduleResolution&quot;: &quot;node&quot;, &quot;resolveJsonModule&quot;: true, &quot;isolatedModules&quot;: true, &quot;jsx&quot;: &quot;preserve&quot;, &quot;baseUrl&quot;: &quot;.&quot; }, &quot;exclude&quot;: [&quot;node_modules&quot;], &quot;include&quot;: [&quot;next-env.d.ts&quot;, &quot;**/*.ts&quot;, &quot;**/*.tsx&quot;] }"><pre class="notranslate">{ <span class="pl-ent">"compilerOptions"</span>: { <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>es5<span class="pl-pds">"</span></span>, <span class="pl-ent">"lib"</span>: [<span class="pl-s"><span class="pl-pds">"</span>dom<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>dom.iterable<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>esnext<span class="pl-pds">"</span></span>], <span class="pl-ent">"allowJs"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"skipLibCheck"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"strict"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"forceConsistentCasingInFileNames"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"noEmit"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"esModuleInterop"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>esnext<span class="pl-pds">"</span></span>, <span class="pl-ent">"moduleResolution"</span>: <span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>, <span class="pl-ent">"resolveJsonModule"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"isolatedModules"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"jsx"</span>: <span class="pl-s"><span class="pl-pds">"</span>preserve<span class="pl-pds">"</span></span>, <span class="pl-ent">"baseUrl"</span>: <span class="pl-s"><span class="pl-pds">"</span>.<span class="pl-pds">"</span></span> }, <span class="pl-ent">"exclude"</span>: [<span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span>], <span class="pl-ent">"include"</span>: [<span class="pl-s"><span class="pl-pds">"</span>next-env.d.ts<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>**/*.ts<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>**/*.tsx<span class="pl-pds">"</span></span>] }</pre></div> <p dir="auto">Assuming a directory structure of:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="components |--&gt; Layout.tsx pages |--&gt; index.tsx"><pre class="notranslate"><code class="notranslate">components |--&gt; Layout.tsx pages |--&gt; index.tsx </code></pre></div> <p dir="auto">Import file using relative path:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // pages/index.js import Layout from 'components/layout' export default (props) =&gt; &lt;Layout&gt;Welcome!&lt;/Layout&gt;"><pre class="notranslate"> <span class="pl-c">// pages/index.js</span> <span class="pl-k">import</span> <span class="pl-v">Layout</span> <span class="pl-k">from</span> <span class="pl-s">'components/layout'</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Layout</span><span class="pl-c1">&gt;</span>Welcome!<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Layout</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">package.json</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;dependencies&quot;: { &quot;next&quot;: &quot;^9.0.0&quot;, &quot;react&quot;: &quot;^16.8.6&quot;, &quot;react-dom&quot;: &quot;^16.8.6&quot;, }, &quot;devDependencies&quot;: { &quot;typescript&quot;: &quot;^3.5.3&quot; }"><pre class="notranslate"><span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"next"</span>: <span class="pl-s"><span class="pl-pds">"</span>^9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^16.8.6<span class="pl-pds">"</span></span>, <span class="pl-ent">"react-dom"</span>: <span class="pl-s"><span class="pl-pds">"</span>^16.8.6<span class="pl-pds">"</span></span>, }, <span class="pl-ent">"devDependencies"</span>: { <span class="pl-ent">"typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.5.3<span class="pl-pds">"</span></span> }</pre></div>
<h2 dir="auto">Question</h2> <p dir="auto">I create a simple React Context to test the React Context API but it seems that is doesn't work as expected or I'm doing something wrong.</p> <p dir="auto">TestContext</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from 'react'; export default React.createContext(true);"><pre class="notranslate"><code class="notranslate">import React from 'react'; export default React.createContext(true); </code></pre></div> <p dir="auto">in _app.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import TestContext from './TestContext'; ... render(){ .... &lt;TestContext.Provider value={false}&gt; &lt;Component pageContext={this.pageContext} {...pageProps} /&gt; &lt;/TestContext.Provider&gt; }"><pre class="notranslate"><code class="notranslate">import TestContext from './TestContext'; ... render(){ .... &lt;TestContext.Provider value={false}&gt; &lt;Component pageContext={this.pageContext} {...pageProps} /&gt; &lt;/TestContext.Provider&gt; } </code></pre></div> <p dir="auto">inside a page:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="render() { return ( &lt;TestContext.Consumer&gt; {isTrue =&gt; isTrue ? 'true' : 'false'} &lt;/TestContext.Consumer&gt; ); }"><pre class="notranslate"><code class="notranslate">render() { return ( &lt;TestContext.Consumer&gt; {isTrue =&gt; isTrue ? 'true' : 'false'} &lt;/TestContext.Consumer&gt; ); } </code></pre></div> <p dir="auto"><strong>output</strong>: true</p>
0