text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">See repro below:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd df_with_ts = pd.DataFrame(data=[['BL', pd.Timestamp('2015-02-01')], ['TH', pd.Timestamp('2015-02-02')]], columns=['item', 'date']) res = df_with_ts.groupby(['date']).apply(lambda x: pd.Series(x['item'].unique()[0])) In []: res Out[]: 0 date 2015-02-01 NaT 2015-02-02 2015-02-17 In []: res.dtypes Out[]: 0 datetime64[ns] dtype: object "><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">df_with_ts</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span>[[<span class="pl-s">'BL'</span>, <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2015-02-01'</span>)], [<span class="pl-s">'TH'</span>, <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2015-02-02'</span>)]], <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'item'</span>, <span class="pl-s">'date'</span>]) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">df_with_ts</span>.<span class="pl-en">groupby</span>([<span class="pl-s">'date'</span>]).<span class="pl-en">apply</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">x</span>[<span class="pl-s">'item'</span>].<span class="pl-en">unique</span>()[<span class="pl-c1">0</span>])) <span class="pl-v">In</span> [<span class="pl-s1"></span>]: <span class="pl-s1">res</span> <span class="pl-v">Out</span>[<span class="pl-s1"></span>]: <span class="pl-c1">0</span> <span class="pl-s1">date</span> <span class="pl-c1">2015</span><span class="pl-c1">-</span><span class="pl-c1">02</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">NaT</span> <span class="pl-c1">2015</span><span class="pl-c1">-</span><span class="pl-c1">02</span><span class="pl-c1">-</span><span class="pl-c1">02</span> <span class="pl-c1">2015</span><span class="pl-c1">-</span><span class="pl-c1">02</span><span class="pl-c1">-</span><span class="pl-c1">17</span> <span class="pl-v">In</span> [<span class="pl-s1"></span>]: <span class="pl-s1">res</span>.<span class="pl-s1">dtypes</span> <span class="pl-v">Out</span>[]: <span class="pl-c1">0</span> <span class="pl-s1">datetime64</span>[<span class="pl-s1">ns</span>] <span class="pl-s1">dtype</span>: <span class="pl-s1">object</span> </pre></div> <p dir="auto">It looks like this is happening because pd.Timestamp('TH') is valid and results in no exceptions. If you replace the string 'TH' with something else then the resulting column's dtype is object, as expected. The order of columns in the above example does not matter.</p> <p dir="auto">For comparison, this case works as expected:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df = pd.DataFrame(data=[['BL', '2015-02-01'], ['TH', '2015-02-02']], columns=['item', 'date']) res = df.groupby(['date']).apply(lambda x: pd.Series(x['item'].unique()[0])) In []: res Out[]: 0 date 2015-02-01 BL 2015-02-02 TH In []: res.dtypes Out[]: 0 object dtype: object "><pre class="notranslate"><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">data</span><span class="pl-c1">=</span>[[<span class="pl-s">'BL'</span>, <span class="pl-s">'2015-02-01'</span>], [<span class="pl-s">'TH'</span>, <span class="pl-s">'2015-02-02'</span>]], <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'item'</span>, <span class="pl-s">'date'</span>]) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>([<span class="pl-s">'date'</span>]).<span class="pl-en">apply</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">x</span>[<span class="pl-s">'item'</span>].<span class="pl-en">unique</span>()[<span class="pl-c1">0</span>])) <span class="pl-v">In</span> [<span class="pl-s1"></span>]: <span class="pl-s1">res</span> <span class="pl-v">Out</span>[<span class="pl-s1"></span>]: <span class="pl-c1">0</span> <span class="pl-s1">date</span> <span class="pl-c1">2015</span><span class="pl-c1">-</span><span class="pl-c1">02</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">BL</span> <span class="pl-c1">2015</span><span class="pl-c1">-</span><span class="pl-c1">02</span><span class="pl-c1">-</span><span class="pl-c1">02</span> <span class="pl-v">TH</span> <span class="pl-v">In</span> [<span class="pl-s1"></span>]: <span class="pl-s1">res</span>.<span class="pl-s1">dtypes</span> <span class="pl-v">Out</span>[]: <span class="pl-c1">0</span> <span class="pl-s1">object</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">object</span> </pre></div> <p dir="auto">output of show_versions() below (using Miniconda):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In []: from pandas.util.print_versions import show_versions In []: show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.15.2 nose: 1.3.4 Cython: 0.21.2 numpy: 1.8.2 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.3.0 sphinx: 1.2.3 patsy: 0.2.1 dateutil: 2.2 pytz: 2014.9 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.0 openpyxl: 2.0.2 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: 0.6.6 lxml: 3.4.1 bs4: 4.3.2 html5lib: 0.999 httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.8 pymysql: None psycopg2: None "><pre class="notranslate"><span class="pl-v">In</span> []: <span class="pl-s1">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">util</span>.<span class="pl-s1">print_versions</span> <span class="pl-s1">import</span> <span class="pl-s1">show_versions</span> <span class="pl-v">In</span> []: <span class="pl-en">show_versions</span>() <span class="pl-v">INSTALLED</span> <span class="pl-v">VERSIONS</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-s1">commit</span>: <span class="pl-c1">None</span> <span class="pl-s1">python</span>: <span class="pl-c1">2.7</span>.<span class="pl-c1">9.</span><span class="pl-s1">final</span>.<span class="pl-c1">0</span> <span class="pl-s1">python</span><span class="pl-c1">-</span><span class="pl-s1">bits</span>: <span class="pl-c1">64</span> <span class="pl-v">OS</span>: <span class="pl-v">Windows</span> <span class="pl-v">OS</span><span class="pl-c1">-</span><span class="pl-s1">release</span>: <span class="pl-c1">7</span> <span class="pl-s1">machine</span>: <span class="pl-v">AMD64</span> <span class="pl-s1">processor</span>: <span class="pl-v">Intel64</span> <span class="pl-v">Family</span> <span class="pl-c1">6</span> <span class="pl-v">Model</span> <span class="pl-c1">60</span> <span class="pl-v">Stepping</span> <span class="pl-c1">3</span>, <span class="pl-v">GenuineIntel</span> <span class="pl-s1">byteorder</span>: <span class="pl-s1">little</span> <span class="pl-v">LC_ALL</span>: <span class="pl-c1">None</span> <span class="pl-v">LANG</span>: <span class="pl-c1">None</span> <span class="pl-s1">pandas</span>: <span class="pl-c1">0.15</span>.<span class="pl-c1">2</span> <span class="pl-s1">nose</span>: <span class="pl-c1">1.3</span>.<span class="pl-c1">4</span> <span class="pl-v">Cython</span>: <span class="pl-c1">0.21</span>.<span class="pl-c1">2</span> <span class="pl-s1">numpy</span>: <span class="pl-c1">1.8</span>.<span class="pl-c1">2</span> <span class="pl-s1">scipy</span>: <span class="pl-c1">0.14</span>.<span class="pl-c1">0</span> <span class="pl-s1">statsmodels</span>: <span class="pl-c1">0.5</span>.<span class="pl-c1">0</span> <span class="pl-v">IPython</span>: <span class="pl-c1">2.3</span>.<span class="pl-c1">0</span> <span class="pl-s1">sphinx</span>: <span class="pl-c1">1.2</span>.<span class="pl-c1">3</span> <span class="pl-s1">patsy</span>: <span class="pl-c1">0.2</span>.<span class="pl-c1">1</span> <span class="pl-s1">dateutil</span>: <span class="pl-c1">2.2</span> <span class="pl-s1">pytz</span>: <span class="pl-c1">2014.9</span> <span class="pl-s1">bottleneck</span>: <span class="pl-c1">0.8</span>.<span class="pl-c1">0</span> <span class="pl-s1">tables</span>: <span class="pl-c1">3.1</span>.<span class="pl-c1">1</span> <span class="pl-s1">numexpr</span>: <span class="pl-c1">2.3</span>.<span class="pl-c1">1</span> <span class="pl-s1">matplotlib</span>: <span class="pl-c1">1.4</span>.<span class="pl-c1">0</span> <span class="pl-s1">openpyxl</span>: <span class="pl-c1">2.0</span>.<span class="pl-c1">2</span> <span class="pl-s1">xlrd</span>: <span class="pl-c1">0.9</span>.<span class="pl-c1">3</span> <span class="pl-s1">xlwt</span>: <span class="pl-c1">0.7</span>.<span class="pl-c1">5</span> <span class="pl-s1">xlsxwriter</span>: <span class="pl-c1">0.6</span>.<span class="pl-c1">6</span> <span class="pl-s1">lxml</span>: <span class="pl-c1">3.4</span>.<span class="pl-c1">1</span> <span class="pl-s1">bs4</span>: <span class="pl-c1">4.3</span>.<span class="pl-c1">2</span> <span class="pl-s1">html5lib</span>: <span class="pl-c1">0.999</span> <span class="pl-s1">httplib2</span>: <span class="pl-c1">None</span> <span class="pl-s1">apiclient</span>: <span class="pl-c1">None</span> <span class="pl-s1">rpy2</span>: <span class="pl-c1">None</span> <span class="pl-s1">sqlalchemy</span>: <span class="pl-c1">0.9</span>.<span class="pl-c1">8</span> <span class="pl-s1">pymysql</span>: <span class="pl-c1">None</span> <span class="pl-s1">psycopg2</span>: <span class="pl-c1">None</span> </pre></div>
<p dir="auto">The .apply on DataFrame is converting my string to a date. I have posted this on StackOverflow:</p> <p dir="auto"><a href="http://stackoverflow.com/questions/28487105/pandas-on-apply-passing-wrong-value" rel="nofollow">http://stackoverflow.com/questions/28487105/pandas-on-apply-passing-wrong-value</a></p> <p dir="auto">I'm not sure if I'm doing something wrong or it is a bug, but it seems quite strange behavior.</p> <p dir="auto">Example <a href="http://stackoverflow.com/questions/28550339/interesting-pandas-loc-behavior?noredirect=1#comment45415876_28550339" rel="nofollow">here</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [8]: df = pd.DataFrame({'wing1':wing1, 'wing2':wing2, 'mat':mat}, index=belly) In [9]: df Out[9]: mat wing1 wing2 216 2016-01-22 2T15 416 3T19 2019-09-07 4H19 4T20 In [17]: df.loc['3T19'] Out[17]: mat 2019-09-07 00:00:00 wing1 2015-02-16 04:19:00 wing2 2015-04-20 00:00:00 Name: 3T19, dtype: datetime64[ns] In [18]: df.loc['216'] Out[18]: mat 2016-01-22 00:00:00 wing1 2T15 wing2 416 Name: 216, dtype: object"><pre class="notranslate"><code class="notranslate">In [8]: df = pd.DataFrame({'wing1':wing1, 'wing2':wing2, 'mat':mat}, index=belly) In [9]: df Out[9]: mat wing1 wing2 216 2016-01-22 2T15 416 3T19 2019-09-07 4H19 4T20 In [17]: df.loc['3T19'] Out[17]: mat 2019-09-07 00:00:00 wing1 2015-02-16 04:19:00 wing2 2015-04-20 00:00:00 Name: 3T19, dtype: datetime64[ns] In [18]: df.loc['216'] Out[18]: mat 2016-01-22 00:00:00 wing1 2T15 wing2 416 Name: 216, dtype: object </code></pre></div>
1
<h3 dir="auto">Describe the bug</h3> <p dir="auto">AxiosError: unexpected end of file<br> at AxiosError.from (C:\Users\samqw\Documents\scrapping\sense\node_modules\axios\dist\node\axios.cjs:785:14)<br> at BrotliDecompress.handleStreamError (C:\Users\samqw\Documents\scrapping\sense\node_modules\axios\dist\node\axios.cjs:2696:29)<br> at BrotliDecompress.emit (node:events:525:35)<br> at emitErrorNT (node:internal/streams/destroy:151:8)<br> at emitErrorCloseNT (node:internal/streams/destroy:116:3)<br> at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {<br> code: 'Z_BUF_ERROR',<br> errno: -5,<br> config: {<br> transitional: {<br> silentJSONParsing: true,<br> forcedJSONParsing: true,<br> clarifyTimeoutError: false<br> },<br> adapter: [ 'xhr', 'http' ],<br> transformRequest: [ [Function: transformRequest] ],<br> transformResponse: [ [Function: transformResponse] ],<br> timeout: 0,<br> xsrfCookieName: 'XSRF-TOKEN',<br> xsrfHeaderName: 'X-XSRF-TOKEN',<br> maxContentLength: -1,<br> maxBodyLength: -1,<br> env: { FormData: [Function], Blob: [class Blob] },<br> validateStatus: [Function: validateStatus],<br> headers: AxiosHeaders {<br> Accept: 'application/json, text/plain, <em>/</em>',<br> 'User-Agent': 'axios/1.2.1',<br> 'Accept-Encoding': 'gzip, compress, deflate, br'<br> },<br> method: 'get',<br> url: '<a href="https://www.sense.com.tr/kaban-469" rel="nofollow">https://www.sense.com.tr/kaban-469</a>',<br> data: undefined<br> },</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">const response = await axios.get("<a href="https://www.sense.com.tr/kaban-469" rel="nofollow">https://www.sense.com.tr/kaban-469</a>");</p> <p dir="auto">const outerhtml = response.data;</p> <h3 dir="auto">Code snippet</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">this snippet code above was working perfectly on "axios": "^0.21.0", before upgrading to "axios": "^1.2.1"</p> <h3 dir="auto">Axios Version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Adapter Version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Browser</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Browser Version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Node.js Version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">OS</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional Library Versions</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context/Screenshots</h3> <p dir="auto"><em>No response</em></p>
<p dir="auto">It seem axios simply concats the headers into a single string separated by comma rather than returning them in an array, this is problematic if a header value contains a comma.</p> <p dir="auto">Example server:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as http from 'http'; //Lets define a port we want to listen to const PORT = 8080; //Create a server const server = http.createServer((request, response) =&gt; { response.setHeader('x-warning', ['a', 'b']); response.end('It Works!! Path Hit: ' + request.url); }); //Lets start our server server.listen(PORT, () =&gt; { console.log(&quot;Server listening on: http://localhost:%s&quot;, PORT); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">http</span> <span class="pl-k">from</span> <span class="pl-s">'http'</span><span class="pl-kos">;</span> <span class="pl-c">//Lets define a port we want to listen to</span> <span class="pl-k">const</span> <span class="pl-smi">PORT</span> <span class="pl-c1">=</span> <span class="pl-c1">8080</span><span class="pl-kos">;</span> <span class="pl-c">//Create a server</span> <span class="pl-k">const</span> <span class="pl-s1">server</span> <span class="pl-c1">=</span> <span class="pl-s1">http</span><span class="pl-kos">.</span><span class="pl-en">createServer</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">request</span><span class="pl-kos">,</span> <span class="pl-s1">response</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-en">setHeader</span><span class="pl-kos">(</span><span class="pl-s">'x-warning'</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">'a'</span><span class="pl-kos">,</span> <span class="pl-s">'b'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-en">end</span><span class="pl-kos">(</span><span class="pl-s">'It Works!! Path Hit: '</span> <span class="pl-c1">+</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-c1">url</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">//Lets start our server</span> <span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-smi">PORT</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-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">"Server listening on: http://localhost:%s"</span><span class="pl-kos">,</span> <span class="pl-smi">PORT</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">Result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; void(axios = require('axios')) undefined &gt; axios.get('http://localhost:8080').then(r=&gt;console.log(r.headers)) Promise { &lt;pending&gt; } &gt; { 'x-warning': 'a, b', date: 'Fri, 06 Jan 2017 19:06:02 GMT', connection: 'close', 'content-length': '22' }"><pre class="notranslate"><code class="notranslate">&gt; void(axios = require('axios')) undefined &gt; axios.get('http://localhost:8080').then(r=&gt;console.log(r.headers)) Promise { &lt;pending&gt; } &gt; { 'x-warning': 'a, b', date: 'Fri, 06 Jan 2017 19:06:02 GMT', connection: 'close', 'content-length': '22' } </code></pre></div> <p dir="auto">Curl for sanity:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl localhost:8080 -vvv * Rebuilt URL to: localhost:8080/ * Trying ::1... * TCP_NODELAY set * Connected to localhost (::1) port 8080 (#0) &gt; GET / HTTP/1.1 &gt; Host: localhost:8080 &gt; User-Agent: curl/7.51.0 &gt; Accept: */* &gt; &lt; HTTP/1.1 200 OK &lt; x-warning: a &lt; x-warning: b &lt; Date: Fri, 06 Jan 2017 19:04:49 GMT &lt; Connection: keep-alive &lt; Content-Length: 22 &lt; * Curl_http_done: called premature == 0 * Connection #0 to host localhost left intact It Works!! Path Hit: /%"><pre class="notranslate"><code class="notranslate">curl localhost:8080 -vvv * Rebuilt URL to: localhost:8080/ * Trying ::1... * TCP_NODELAY set * Connected to localhost (::1) port 8080 (#0) &gt; GET / HTTP/1.1 &gt; Host: localhost:8080 &gt; User-Agent: curl/7.51.0 &gt; Accept: */* &gt; &lt; HTTP/1.1 200 OK &lt; x-warning: a &lt; x-warning: b &lt; Date: Fri, 06 Jan 2017 19:04:49 GMT &lt; Connection: keep-alive &lt; Content-Length: 22 &lt; * Curl_http_done: called premature == 0 * Connection #0 to host localhost left intact It Works!! Path Hit: /% </code></pre></div>
0
<p dir="auto">I'm fairly sure this is unrelated to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="113146378" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/5389" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/5389/hovercard" href="https://github.com/microsoft/TypeScript/issues/5389">#5389</a></p> <p dir="auto">Returning a non-Promise custom type from an async function causes the compiler to crash.</p> <p dir="auto">Given this tsconfig</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;experimentalAsyncFunctions&quot;: true, &quot;target&quot;: &quot;ES6&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"compilerOptions"</span>: { <span class="pl-ent">"experimentalAsyncFunctions"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>ES6<span class="pl-pds">"</span></span> } }</pre></div> <p dir="auto">and this code</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type SomeType = { someValue: string } async function someFunction(): SomeType { return { someValue: '' } }"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">SomeType</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">someValue</span>: <span class="pl-smi">string</span> <span class="pl-kos">}</span> <span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">someFunction</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">SomeType</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">someValue</span>: <span class="pl-s">''</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">tsc will crash with the following</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot read property 'flags' of undefined at isKnownProperty (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:14041:25) at hasExcessProperties (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:14063:26) at isRelatedTo (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:13955:25) at checkTypeRelatedTo (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:13903:26) at checkTypeAssignableTo (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:13886:20) at checkReturnStatement (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:19460:29) at checkSourceElement (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:20461:28) at Object.forEach (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:90:30) at checkBlock (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:18973:16) at checkSourceElement (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:20440:28)"><pre class="notranslate"><code class="notranslate">TypeError: Cannot read property 'flags' of undefined at isKnownProperty (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:14041:25) at hasExcessProperties (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:14063:26) at isRelatedTo (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:13955:25) at checkTypeRelatedTo (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:13903:26) at checkTypeAssignableTo (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:13886:20) at checkReturnStatement (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:19460:29) at checkSourceElement (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:20461:28) at Object.forEach (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:90:30) at checkBlock (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:18973:16) at checkSourceElement (/Users/andrewsmith/.nvm/versions/node/v0.12.6/lib/node_modules/typescript/lib/tsc.js:20440:28) </code></pre></div> <p dir="auto">tsc -v returns <code class="notranslate">message TS6029: Version 1.6.2</code></p>
<p dir="auto">/usr/local/lib/node_modules/typescript/lib/tsc.js:29825</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="async function abc():number{ return 123; }"><pre class="notranslate"><code class="notranslate">async function abc():number{ return 123; } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/local/lib/node_modules/typescript/lib/tsc.js:29825 throw e; ^ TypeError: Cannot read property 'flags' of undefined at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:13951:56)"><pre class="notranslate"><code class="notranslate">/usr/local/lib/node_modules/typescript/lib/tsc.js:29825 throw e; ^ TypeError: Cannot read property 'flags' of undefined at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:13951:56) </code></pre></div>
1
<p dir="auto">When method extension coupled with multiple dispatch mechanism, we tend to be always find ourselves in the loop of continuing adding disambiguating methods. Seriously, this is unsustainable in the long run.</p> <p dir="auto">Consider the following:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# suppose this is defined in base type A &lt;: BaseT end +(::A, ::A) = println(&quot;A + A&quot;) # this needs to be in front +(::A, ::BaseT) = println(&quot;A + BaseT&quot;) +(::BaseT, ::A) = println(&quot;BaseT + A&quot;)"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> suppose this is defined in base</span> type A <span class="pl-k">&lt;:</span> <span class="pl-c1">BaseT</span> <span class="pl-k">end</span> <span class="pl-k">+</span>(<span class="pl-k">::</span><span class="pl-c1">A</span>, <span class="pl-k">::</span><span class="pl-c1">A</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>A + A<span class="pl-pds">"</span></span>) <span class="pl-c"><span class="pl-c">#</span> this needs to be in front</span> <span class="pl-k">+</span>(<span class="pl-k">::</span><span class="pl-c1">A</span>, <span class="pl-k">::</span><span class="pl-c1">BaseT</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>A + BaseT<span class="pl-pds">"</span></span>) <span class="pl-k">+</span>(<span class="pl-k">::</span><span class="pl-c1">BaseT</span>, <span class="pl-k">::</span><span class="pl-c1">A</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>BaseT + A<span class="pl-pds">"</span></span>)</pre></div> <p dir="auto">If someone want to write a package that extends <code class="notranslate">BaseT</code>, he will need to write</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module modB import Base: BaseT, A, + type B &lt;: BaseT end # for the second type, you have to put three methods in front # in order to reduce ambiguity +(::A, ::B) = println(&quot;A and B&quot;) +(::B, ::A) = println(&quot;B and A&quot;) +(::B, ::B) = println(&quot;B and B&quot;) +(::B, ::BaseT) = println(&quot;B and BaseT&quot;) +(::BaseT, ::B) = println(&quot;BaseT and B&quot;) end"><pre class="notranslate"><span class="pl-k">module</span> modB <span class="pl-k">import</span> Base<span class="pl-k">:</span> BaseT, A, <span class="pl-k">+</span> type B <span class="pl-k">&lt;:</span> <span class="pl-c1">BaseT</span> <span class="pl-k">end</span> <span class="pl-c"><span class="pl-c">#</span> for the second type, you have to put three methods in front</span> <span class="pl-c"><span class="pl-c">#</span> in order to reduce ambiguity</span> <span class="pl-k">+</span>(<span class="pl-k">::</span><span class="pl-c1">A</span>, <span class="pl-k">::</span><span class="pl-c1">B</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>A and B<span class="pl-pds">"</span></span>) <span class="pl-k">+</span>(<span class="pl-k">::</span><span class="pl-c1">B</span>, <span class="pl-k">::</span><span class="pl-c1">A</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>B and A<span class="pl-pds">"</span></span>) <span class="pl-k">+</span>(<span class="pl-k">::</span><span class="pl-c1">B</span>, <span class="pl-k">::</span><span class="pl-c1">B</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>B and B<span class="pl-pds">"</span></span>) <span class="pl-k">+</span>(<span class="pl-k">::</span><span class="pl-c1">B</span>, <span class="pl-k">::</span><span class="pl-c1">BaseT</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>B and BaseT<span class="pl-pds">"</span></span>) <span class="pl-k">+</span>(<span class="pl-k">::</span><span class="pl-c1">BaseT</span>, <span class="pl-k">::</span><span class="pl-c1">B</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>BaseT and B<span class="pl-pds">"</span></span>) <span class="pl-k">end</span></pre></div> <p dir="auto">If there are <code class="notranslate">n</code> subtypes of <code class="notranslate">BaseT</code> in the <code class="notranslate">Base</code>, <code class="notranslate">O(n^2)</code> disambiguating methods need to be added.</p> <p dir="auto">What's worse, if another one independently creates another package that extends <code class="notranslate">BaseT</code>, as below:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module modC import Base: BaseT, A, + type C &lt;: BaseT end +(::A, ::C) = println(&quot;A and C&quot;) +(::C, ::A) = println(&quot;C and A&quot;) +(::C, ::C) = println(&quot;C and C&quot;) foo(::C, ::BaseT) = println(&quot;C and BaseT&quot;) foo(::BaseT, ::C) = println(&quot;BaseT and C&quot;) end"><pre class="notranslate"><span class="pl-k">module</span> modC <span class="pl-k">import</span> Base<span class="pl-k">:</span> BaseT, A, <span class="pl-k">+</span> type C <span class="pl-k">&lt;:</span> <span class="pl-c1">BaseT</span> <span class="pl-k">end</span> <span class="pl-k">+</span>(<span class="pl-k">::</span><span class="pl-c1">A</span>, <span class="pl-k">::</span><span class="pl-c1">C</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>A and C<span class="pl-pds">"</span></span>) <span class="pl-k">+</span>(<span class="pl-k">::</span><span class="pl-c1">C</span>, <span class="pl-k">::</span><span class="pl-c1">A</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>C and A<span class="pl-pds">"</span></span>) <span class="pl-k">+</span>(<span class="pl-k">::</span><span class="pl-c1">C</span>, <span class="pl-k">::</span><span class="pl-c1">C</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>C and C<span class="pl-pds">"</span></span>) <span class="pl-en">foo</span>(<span class="pl-k">::</span><span class="pl-c1">C</span>, <span class="pl-k">::</span><span class="pl-c1">BaseT</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>C and BaseT<span class="pl-pds">"</span></span>) <span class="pl-en">foo</span>(<span class="pl-k">::</span><span class="pl-c1">BaseT</span>, <span class="pl-k">::</span><span class="pl-c1">C</span>) <span class="pl-k">=</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>BaseT and C<span class="pl-pds">"</span></span>) <span class="pl-k">end</span></pre></div> <p dir="auto">Then when one want to import both packages (even without <code class="notranslate">using</code>, just <code class="notranslate">import</code>), there will be ambiguities warnings about <code class="notranslate">+(B, C)</code> etc.</p> <p dir="auto">This issue has caused a lot of headaches for packages that try to define their own customized array types, for example:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25105359" data-permission-text="Title is private" data-url="https://github.com/JuliaStats/DataArrays.jl/issues/51" data-hovercard-type="issue" data-hovercard-url="/JuliaStats/DataArrays.jl/issues/51/hovercard" href="https://github.com/JuliaStats/DataArrays.jl/issues/51">JuliaStats/DataArrays.jl#51</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="29322903" data-permission-text="Title is private" data-url="https://github.com/JuliaStats/DataArrays.jl/issues/77" data-hovercard-type="issue" data-hovercard-url="/JuliaStats/DataArrays.jl/issues/77/hovercard" href="https://github.com/JuliaStats/DataArrays.jl/issues/77">JuliaStats/DataArrays.jl#77</a></li> </ul> <p dir="auto"><em>Images</em> and some other packages also encounter such problems.</p> <p dir="auto">Whereas this might be solved by continuously adding disambiguating methods, problems still exist (or even worse) when you use two or more of these packages together.<br> Are we going to add disambiguating methods for every pair of array types residing in different packages?</p> <p dir="auto">Just try the following, you will see screens full of ambiguities warnings (though just importing either one will be fine):</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import DataArrays import Images"><pre class="notranslate"><span class="pl-k">import</span> DataArrays <span class="pl-k">import</span> Images</pre></div> <p dir="auto">We seriously need a fundamental solution to this.</p>
<p dir="auto">Branching this Issue off of the conversation here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="392387472" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/30445" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/30445/hovercard?comment_id=243427894&amp;comment_type=review_comment" href="https://github.com/JuliaLang/julia/pull/30445#discussion_r243427894">#30445 (comment)</a></p> <hr> <p dir="auto">Reproducing it in this Issue:</p> <blockquote> <p dir="auto">Also, I wanted to ask: Does anyone know why <code class="notranslate">signed</code> takes <code class="notranslate">x::Unsigned</code>, but <code class="notranslate">unsigned</code> takes <code class="notranslate">x::BitSigned</code>? I'm <em>guessing</em> it's to prevent <code class="notranslate">BigInt</code> from falling under the <code class="notranslate">reinterpret</code> implementation. I'm currently just copying that in the <code class="notranslate">::Type{T}</code> definitions -- does that seem reasonable?</p> </blockquote> <hr> <blockquote> <p dir="auto">yes -- the set difference is the presence/absence of <code class="notranslate">BigInt</code><br> also Signed is an abstract type, BitSigned is a Union (in this context it is immaterial pbly).</p> </blockquote> <hr> <blockquote> <p dir="auto">Now that you mention it, it is a little weird, because there's nothing about the docstring for <code class="notranslate">Unsigned</code> that specifies it needs to be <code class="notranslate">isprimitivetype</code>. Nothing stops me from defining</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct WeirdUnsigned &lt;: Unsigned msg::String val::UInt16 end WeirdUnsigned(x::Int) = WeirdUnsigned(&quot;missing&quot;, UInt16(x)) Base.Signed(x::WeirdUnsigned) = signed(x.val) julia&gt; signed(WeirdUnsigned(4)) ERROR: bitcast: expected primitive type value for second argument Stacktrace: [1] reinterpret at ./essentials.jl:381 [inlined] [2] signed(::WeirdUnsigned) at ./int.jl:162 [3] top-level scope at none:0"><pre class="notranslate"><span class="pl-k">struct</span> WeirdUnsigned <span class="pl-k">&lt;:</span> <span class="pl-c1">Unsigned</span> msg<span class="pl-k">::</span><span class="pl-c1">String</span> val<span class="pl-k">::</span><span class="pl-c1">UInt16</span> <span class="pl-k">end</span> <span class="pl-en">WeirdUnsigned</span>(x<span class="pl-k">::</span><span class="pl-c1">Int</span>) <span class="pl-k">=</span> <span class="pl-c1">WeirdUnsigned</span>(<span class="pl-s"><span class="pl-pds">"</span>missing<span class="pl-pds">"</span></span>, <span class="pl-c1">UInt16</span>(x)) Base<span class="pl-k">.</span><span class="pl-en">Signed</span>(x<span class="pl-k">::</span><span class="pl-c1">WeirdUnsigned</span>) <span class="pl-k">=</span> <span class="pl-c1">signed</span>(x<span class="pl-k">.</span>val) julia<span class="pl-k">&gt;</span> <span class="pl-c1">signed</span>(<span class="pl-c1">WeirdUnsigned</span>(<span class="pl-c1">4</span>)) ERROR<span class="pl-k">:</span> bitcast<span class="pl-k">:</span> expected <span class="pl-k">primitive type</span> value <span class="pl-k">for</span> second argument Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] reinterpret at <span class="pl-k">./</span>essentials<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">381</span> [inlined] [<span class="pl-c1">2</span>] <span class="pl-c1">signed</span>(<span class="pl-k">::</span><span class="pl-c1">WeirdUnsigned</span>) at <span class="pl-k">./</span>int<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">162</span> [<span class="pl-c1">3</span>] top<span class="pl-k">-</span>level scope at none<span class="pl-k">:</span><span class="pl-c1">0</span></pre></div> <p dir="auto">Of course this isn't a catastrophe: the error is sensible and one could always provide a more specialized definition. (If it returned a borked answer, that would be a genuine problem.) But of course the same could be said of <code class="notranslate">Signed</code>, and <code class="notranslate">reinterpret(UInt, BigInt(4))</code> throws the same error.</p> </blockquote> <hr> <blockquote> <p dir="auto">Yeah, that's exactly the sort of thing I was referring to. Thanks for including an example.</p> <blockquote> <p dir="auto">Of course this isn't a catastrophe: the error is sensible and one could always provide a more specialized definition. (If it returned a borked answer, that would be a genuine problem.) But of course the same could be said of <code class="notranslate">Signed</code>, and <code class="notranslate">reinterpret(UInt, BigInt(4))</code> throws the same error.</p> </blockquote> <p dir="auto">Totally, I agree. But I think that it's the inconsistency with <code class="notranslate">unsigned()</code> that's a little weird. I think <em>either</em> we should change this to also accept only <code class="notranslate">BitUnsigned</code>, so that you'd get the correct behavior above, <em>OR</em> we should loosen <code class="notranslate">unsigned()</code> to accept any kind of <code class="notranslate">Signed</code>, and just add an extra overload for <code class="notranslate">BigInt</code>, exactly as you'd have to do for <code class="notranslate">WeirdUnsigned</code> above. Does that seem reasonable to you?</p> </blockquote>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=gchen77" rel="nofollow">Tim Chen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3180?redirect=false" rel="nofollow">SPR-3180</a></strong> and commented</p> <p dir="auto">I have a PropertyPlaceholderConfigurer that is prefixed with #{<br> I can use it for any spring definition except those that are using namespaces.<br> For example:<br> Code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;tx:advice id=&quot;txAdvice&quot; transaction-manager=&quot;jtaTxManager&quot;&gt; &lt;tx:attributes&gt; &lt;tx:method name=&quot;*&quot; propagation=&quot;REQUIRED&quot; timeout=&quot;#{operational:jtaTimeout}&quot;/&gt; &lt;/tx:attributes&gt; &lt;/tx:advice&gt;"><pre class="notranslate"><code class="notranslate">&lt;tx:advice id="txAdvice" transaction-manager="jtaTxManager"&gt; &lt;tx:attributes&gt; &lt;tx:method name="*" propagation="REQUIRED" timeout="#{operational:jtaTimeout}"/&gt; &lt;/tx:attributes&gt; &lt;/tx:advice&gt; </code></pre></div> <p dir="auto">It wont process the value and I get exceptions that the value must be an integer.<br> How can I use PropertyPlaceholderConfigurer with namespaces?</p> <p dir="auto">The forum link is <a href="http://forum.springframework.org/showthread.php?p=101823#post101823" rel="nofollow">http://forum.springframework.org/showthread.php?p=101823#post101823</a></p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.2</p> <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="398088593" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9523" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9523/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9523">#9523</a> PropertyPlaceholderConfigurer doesn't work on beans defined in own schema e.g. tx:* (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">3 votes, 11 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jmbaker" rel="nofollow">John Baker</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6052?redirect=false" rel="nofollow">SPR-6052</a></strong> and commented</p> <p dir="auto">The following exception has been noted when the WL JMS drivers failed to connect:</p> <p dir="auto">Exception in thread "jms.jobs.messageListenerContainer.SRUpdateFromSiebel-1" java.lang.NullPointerException<br> at java.lang.String.indexOf(String.java:1564)<br> at java.lang.String.indexOf(String.java:1546)<br> at org.springframework.jms.support.JmsUtils.buildExceptionMessage(JmsUtils.java:255)<br> at org.springframework.jms.listener.DefaultMessageListenerContainer.handleListenerSetupFailure(DefaultMessageListenerContainer.java:745)<br> at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:897)<br> at java.lang.Thread.run(Thread.java:595)</p> <p dir="auto">The problem is this line of code in JmsUtils.buildException:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (linkedEx != null &amp;&amp; message.indexOf(linkedEx.getMessage()) == -1) {"><pre class="notranslate"><code class="notranslate">if (linkedEx != null &amp;&amp; message.indexOf(linkedEx.getMessage()) == -1) { </code></pre></div> <p dir="auto">linkedEx may not be null, but the message can be null, so it simply need to be:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (linkedEx != null &amp;&amp; linkedEx.getMessage() != null &amp;&amp; message.indexOf(linkedEx.getMessage()) == -1) {"><pre class="notranslate"><code class="notranslate">if (linkedEx != null &amp;&amp; linkedEx.getMessage() != null &amp;&amp; message.indexOf(linkedEx.getMessage()) == -1) { </code></pre></div> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.6</p> <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="398091774" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9948" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9948/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9948">#9948</a> JmsUtils.buildExceptionMessage throws NPE if the linked exception doesn't have a message (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<h1 dir="auto">Feature request</h1> <h2 dir="auto">Is your feature request related to a problem? Please describe.</h2> <p dir="auto">My development setup consists of multiple Docker containers:</p> <ol dir="auto"> <li>Next.js application running in development mode</li> <li>Mock API</li> <li>Proxy that is used in front of Next.js application and mock API containers so one host is used for accessing both the application and API.</li> </ol> <p dir="auto">Next.js 8.0 has introduced WebSockets based ping approach. This in turn uses randomly assigned port for WebSocket connection and makes it impossible for me to specify which port to open in proxy container to proxy to the application container. This results in refresh of the page every 5 seconds after WebSocket connection fails.</p> <h2 dir="auto">Describe the solution you'd like</h2> <p dir="auto">Possibility to configure WebSocket ping port will solve this issue since that specific port can be opened and proxied in the proxy container.</p> <h2 dir="auto">Describe alternatives you've considered</h2> <p dir="auto">Solution described above is desired and probably absolutely doable. As an alternative I would consider possibility to specify ping approach: either <code class="notranslate">fetch</code> based or WebSocket based.</p>
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">We can't use nextjs v8 in dev mode with docker because it reload the DOM every 5 seconds.<br> He can't access to the websocket port. I can open this port in my Dockerfile but it change every time I launch next</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:<br> Just start next v8 with docker in dev mode</p> <h2 dir="auto">Screenshots</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="on-demand-entries-client.js:136 WebSocket connection to 'ws://0.0.0.0:41861/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED"><pre class="notranslate"><code class="notranslate">on-demand-entries-client.js:136 WebSocket connection to 'ws://0.0.0.0:41861/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED </code></pre></div> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macOS</li> <li>Version of Next.js: 8.0.0</li> </ul>
1
<p dir="auto">I use cifar10 model training my dataset,which is made by tf.python_io.TFRecordWriter() .<br> I am sure labels in dataset are right,because it's running ok on Ubuntu PC but get Error Invalid argument: Received a label value of 255 which is outside the valid range of [0, 10) on Mac and GPU Server.</p> <p dir="auto">W tensorflow/core/framework/op_kernel.cc:975] Invalid argument: Received a label value of 255 which is outside the valid range of [0, 10). Label values: 65 229 184 161 102 117 112 160 66 93 107 117 131 122 129 132 113 163 149 130 75 52 109 84 161 165 99 203 82 42 57 179 155 63 126 49 172 50 144 224 152 220 164 82 195 169 171 125 107 127 70 60 93 115 165 143 78 116 60 153 113 62 89 175 125 90 85 178 167 200 133 168 125 92 62 93 166 141 98 172 102 103 72 179 138 108 49 176 46 70 55 101 141 144 107 126 60 146 108 77 125 59 58 109 171 107 63 151 55 93 172 131 52 128 75 167 255 97 108 171 113 130 77 166 150 132 62 196<br> Traceback (most recent call last):<br> File "/Users/yangk/cifar10/cifar10_train.py", line 137, in <br> tf.app.run()<br> File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run<br> sys.exit(main(sys.argv[:1] + flags_passthrough))<br> File "/Users/yangk/cifar10/cifar10_train.py", line 133, in main<br> train()<br> File "/Users/yangk/cifar10/cifar10_train.py", line 103, in train<br> _, loss_value = sess.run([train_op, loss])<br> File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 766, in run<br> run_metadata_ptr)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 964, in _run<br> feed_dict_string, options, run_metadata)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 1014, in _do_run<br> target_list, options, run_metadata)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 1034, in _do_call<br> raise type(e)(node_def, op, message)<br> tensorflow.python.framework.errors_impl.InvalidArgumentError: Received a label value of 255 which is outside the valid range of [0, 10). Label values: 65 229 184 161 102 117 112 160 66 93 107 117 131 122 129 132 113 163 149 130 75 52 109 84 161 165 99 203 82 42 57 179 155 63 126 49 172 50 144 224 152 220 164 82 195 169 171 125 107 127 70 60 93 115 165 143 78 116 60 153 113 62 89 175 125 90 85 178 167 200 133 168 125 92 62 93 166 141 98 172 102 103 72 179 138 108 49 176 46 70 55 101 141 144 107 126 60 146 108 77 125 59 58 109 171 107 63 151 55 93 172 131 52 128 75 167 255 97 108 171 113 130 77 166 150 132 62 196<br> [[Node: cross_entropy_per_example/cross_entropy_per_example = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"](softmax_linear/softmax_linear, Cast_4)]]</p> <p dir="auto">Caused by op u'cross_entropy_per_example/cross_entropy_per_example', defined at:<br> File "/Users/yangk/cifar10/cifar10_train.py", line 137, in <br> tf.app.run()<br> File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run<br> sys.exit(main(sys.argv[:1] + flags_passthrough))<br> File "/Users/yangk/cifar10/cifar10_train.py", line 133, in main<br> train()<br> File "/Users/yangk/cifar10/cifar10_train.py", line 76, in train<br> loss = cifar10.loss(logits, labels)<br> File "/Users/yangk/cifar10/cifar10.py", line 289, in loss<br> logits, labels, name='cross_entropy_per_example')<br> File "/Library/Python/2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 1537, in sparse_softmax_cross_entropy_with_logits<br> precise_logits, labels, name=name)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 2378, in _sparse_softmax_cross_entropy_with_logits<br> features=features, labels=labels, name=name)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op<br> op_def=op_def)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py", line 2371, in create_op<br> original_op=self._default_original_op, op_def=op_def)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py", line 1258, in <strong>init</strong><br> self._traceback = _extract_stack()</p> <p dir="auto">InvalidArgumentError (see above for traceback): Received a label value of 255 which is outside the valid range of [0, 10). Label values: 65 229 184 161 102 117 112 160 66 93 107 117 131 122 129 132 113 163 149 130 75 52 109 84 161 165 99 203 82 42 57 179 155 63 126 49 172 50 144 224 152 220 164 82 195 169 171 125 107 127 70 60 93 115 165 143 78 116 60 153 113 62 89 175 125 90 85 178 167 200 133 168 125 92 62 93 166 141 98 172 102 103 72 179 138 108 49 176 46 70 55 101 141 144 107 126 60 146 108 77 125 59 58 109 171 107 63 151 55 93 172 131 52 128 75 167 255 97 108 171 113 130 77 166 150 132 62 196<br> [[Node: cross_entropy_per_example/cross_entropy_per_example = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"](softmax_linear/softmax_linear, Cast_4)]]</p>
<p dir="auto">I use the cifar10 model train my own TFRecord dataset ,it's running on Ubuntu 14.4 without error,but getting these errors when I run it on Mac or GPU server。And I am sure the labels of my dataset are right ,I don't know why get labels bigger than 10 ,I just have 10 classifications。</p> <p dir="auto">I use this code write images and labels in binfile:</p> <p dir="auto">image_raw = image.tostring()<br> example = tf.train.Example(features=tf.train.Features(feature={<br> 'image_raw' : _bytes_feature(image_raw),<br> 'height' : _int64_feature(image.shape[0]),<br> 'width' : _int64_feature(image.shape[1]),<br> 'deepth' : _int64_feature(image.shape[2]),<br> 'label' : _int64_feature(label)<br> }))<br> writer.write(example.SerializeToString())<br> writer.close()</p> <p dir="auto">The errors:</p> <p dir="auto">W tensorflow/core/framework/op_kernel.cc:975] Invalid argument: Received a label value of 245 which is outside the valid range of [0, 10). Label values: 180 96 226 166 162 179 147 115 162 141 150 136 129 118 162 141 78 154 133 155 89 184 116 179 176 70 209 177 65 177 89 36 80 139 117 187 115 182 106 42 203 120 48 72 96 126 74 123 134 115 112 154 128 163 64 113 35 140 198 193 189 67 164 110 117 61 215 186 189 84 95 206 163 82 122 160 37 179 236 157 140 181 178 128 67 114 43 211 143 70 0 91 184 142 172 127 80 160 127 90 62 151 158 23 180 192 21 97 125 94 98 136 125 190 158 128 119 30 198 111 206 66 137 126 245 210 158 188<br> Traceback (most recent call last):<br> File "/Users/yangk/cifar10/cifar10_train.py", line 137, in <br> tf.app.run()<br> File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run<br> sys.exit(main(sys.argv[:1] + flags_passthrough))<br> File "/Users/yangk/cifar10/cifar10_train.py", line 133, in main<br> train()<br> File "/Users/yangk/cifar10/cifar10_train.py", line 103, in train<br> _, loss_value = sess.run([train_op, loss])<br> File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 766, in run<br> run_metadata_ptr)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 964, in _run<br> feed_dict_string, options, run_metadata)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 1014, in _do_run<br> target_list, options, run_metadata)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 1034, in _do_call<br> raise type(e)(node_def, op, message)<br> tensorflow.python.framework.errors_impl.InvalidArgumentError: Received a label value of 245 which is outside the valid range of [0, 10). Label values: 180 96 226 166 162 179 147 115 162 141 150 136 129 118 162 141 78 154 133 155 89 184 116 179 176 70 209 177 65 177 89 36 80 139 117 187 115 182 106 42 203 120 48 72 96 126 74 123 134 115 112 154 128 163 64 113 35 140 198 193 189 67 164 110 117 61 215 186 189 84 95 206 163 82 122 160 37 179 236 157 140 181 178 128 67 114 43 211 143 70 0 91 184 142 172 127 80 160 127 90 62 151 158 23 180 192 21 97 125 94 98 136 125 190 158 128 119 30 198 111 206 66 137 126 245 210 158 188<br> [[Node: cross_entropy_per_example/cross_entropy_per_example = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"](softmax_linear/softmax_linear, Cast_4)]]</p> <p dir="auto">Caused by op u'cross_entropy_per_example/cross_entropy_per_example', defined at:<br> File "/Users/yangk/cifar10/cifar10_train.py", line 137, in <br> tf.app.run()<br> File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run<br> sys.exit(main(sys.argv[:1] + flags_passthrough))<br> File "/Users/yangk/cifar10/cifar10_train.py", line 133, in main<br> train()<br> File "/Users/yangk/cifar10/cifar10_train.py", line 76, in train<br> loss = cifar10.loss(logits, labels)<br> File "/Users/yangk/cifar10/cifar10.py", line 289, in loss<br> logits, labels, name='cross_entropy_per_example')<br> File "/Library/Python/2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 1537, in sparse_softmax_cross_entropy_with_logits<br> precise_logits, labels, name=name)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 2378, in _sparse_softmax_cross_entropy_with_logits<br> features=features, labels=labels, name=name)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op<br> op_def=op_def)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py", line 2371, in create_op<br> original_op=self._default_original_op, op_def=op_def)<br> File "/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py", line 1258, in <strong>init</strong><br> self._traceback = _extract_stack()</p> <p dir="auto">InvalidArgumentError (see above for traceback): Received a label value of 245 which is outside the valid range of [0, 10). Label values: 180 96 226 166 162 179 147 115 162 141 150 136 129 118 162 141 78 154 133 155 89 184 116 179 176 70 209 177 65 177 89 36 80 139 117 187 115 182 106 42 203 120 48 72 96 126 74 123 134 115 112 154 128 163 64 113 35 140 198 193 189 67 164 110 117 61 215 186 189 84 95 206 163 82 122 160 37 179 236 157 140 181 178 128 67 114 43 211 143 70 0 91 184 142 172 127 80 160 127 90 62 151 158 23 180 192 21 97 125 94 98 136 125 190 158 128 119 30 198 111 206 66 137 126 245 210 158 188<br> [[Node: cross_entropy_per_example/cross_entropy_per_example = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"](softmax_linear/softmax_linear, Cast_4)]]</p>
1
<p dir="auto">React-i18n in Production</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I'm struggling with a very strange bug on running the react-i18next with nextJS, it works perfectly on dev, but when I run it on production mode it crashes. The strange thing is that I created the configs based on the examples that are provided here, but it doesn't work on production mode, as doesn't find react under the i18n options object.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">On production I get this error the front-end</p> <p dir="auto">app.js:78 Cannot read property 'react' of undefined<br> TypeError: Cannot read property 'react' of undefined<br> at new l (<a href="http://localhost:3000/_next/65dbc4ba-ad42-4d43-b7bc-3bc411c9d184/page/:3:1740" rel="nofollow">http://localhost:3000/_next/65dbc4ba-ad42-4d43-b7bc-3bc411c9d184/page/:3:1740</a>)<br> at d._constructComponentWithoutOwner (<a href="http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:341292" rel="nofollow">http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:341292</a>)<br> at d._constructComponent (<a href="http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:341159" rel="nofollow">http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:341159</a>)<br> at d.mountComponent (<a href="http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:340341" rel="nofollow">http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:340341</a>)<br> at Object.mountComponent (<a href="http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:7:67596" rel="nofollow">http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:7:67596</a>)<br> at d.performInitialMount (<a href="http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:342114" rel="nofollow">http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:342114</a>)<br> at d.mountComponent (<a href="http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:341000" rel="nofollow">http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:341000</a>)<br> at Object.mountComponent (<a href="http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:7:67596" rel="nofollow">http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:7:67596</a>)<br> at mountChildren (<a href="http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:336860" rel="nofollow">http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:336860</a>)<br> at m._createContentMarkup (<a href="http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:325835" rel="nofollow">http://localhost:3000/_next/2ff3a5285f98c6920205133b0780e5fc/app.js:35:325835</a>)</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">1.next build<br> 2.npm start</p> <h2 dir="auto">Context</h2> <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>^3.0.1-beta.18</td> </tr> <tr> <td>OS</td> <td>MAC OS</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
<h1 dir="auto">Bug report</h1> <p dir="auto">There are duplicate chunks for the <code class="notranslate">robot-bundle</code> component. The component is lazy loaded with <code class="notranslate">SSR: false</code>.</p> <p dir="auto">This is the section of the react-loadable-manifest.json. You can see that <code class="notranslate">0zX2</code>, <code class="notranslate">3at2</code> are duplicated.</p> <p dir="auto">Is that correct or what's the reason for this? <em><strong>There are also two chunks for the <code class="notranslate">robot-bundle</code> component on client side</strong></em> even though it's exactly the same component.</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &quot;../../components/robot-bundle&quot;: [ { &quot;id&quot;: &quot;&quot;, &quot;name&quot;: null, &quot;file&quot;: &quot;static/chunks/styles.7bcfa32fbdfd22ad0da9.js&quot;, &quot;publicPath&quot;: &quot;static/chunks/styles.7bcfa32fbdfd22ad0da9.js&quot; }, { &quot;id&quot;: &quot;0zX2&quot;, &quot;name&quot;: &quot;../../node_modules/axios/lib/helpers/isURLSameOrigin.js&quot;, &quot;file&quot;: &quot;static/chunks/9c13.c708e85ffab23caa575e.js&quot;, &quot;publicPath&quot;: &quot;static/chunks/9c13.c708e85ffab23caa575e.js&quot; }, { &quot;id&quot;: &quot;3at2&quot;, &quot;name&quot;: &quot;../../node_modules/react-feather/dist/icons/eye.js&quot;, &quot;file&quot;: &quot;static/chunks/9a93.ce32de670ed7dbc20850.js&quot;, &quot;publicPath&quot;: &quot;static/chunks/9a93.ce32de670ed7dbc20850.js&quot; }, { &quot;id&quot;: &quot;3at2&quot;, &quot;name&quot;: &quot;../../node_modules/react-feather/dist/icons/eye.js&quot;, &quot;file&quot;: &quot;static/chunks/0430.1e2bbca5ac8a0d8676d8.js&quot;, &quot;publicPath&quot;: &quot;static/chunks/0430.1e2bbca5ac8a0d8676d8.js&quot; }, { &quot;id&quot;: &quot;0zX2&quot;, &quot;name&quot;: &quot;../../node_modules/axios/lib/helpers/isURLSameOrigin.js&quot;, &quot;file&quot;: &quot;static/chunks/c2a8.27def4aa4c3e39bcd218.js&quot;, &quot;publicPath&quot;: &quot;static/chunks/c2a8.27def4aa4c3e39bcd218.js&quot; } ],"><pre class="notranslate"> <span class="pl-ent">"../../components/robot-bundle"</span>: [ { <span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>, <span class="pl-ent">"name"</span>: <span class="pl-c1">null</span>, <span class="pl-ent">"file"</span>: <span class="pl-s"><span class="pl-pds">"</span>static/chunks/styles.7bcfa32fbdfd22ad0da9.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"publicPath"</span>: <span class="pl-s"><span class="pl-pds">"</span>static/chunks/styles.7bcfa32fbdfd22ad0da9.js<span class="pl-pds">"</span></span> }, { <span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>0zX2<span class="pl-pds">"</span></span>, <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>../../node_modules/axios/lib/helpers/isURLSameOrigin.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"file"</span>: <span class="pl-s"><span class="pl-pds">"</span>static/chunks/9c13.c708e85ffab23caa575e.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"publicPath"</span>: <span class="pl-s"><span class="pl-pds">"</span>static/chunks/9c13.c708e85ffab23caa575e.js<span class="pl-pds">"</span></span> }, { <span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>3at2<span class="pl-pds">"</span></span>, <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>../../node_modules/react-feather/dist/icons/eye.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"file"</span>: <span class="pl-s"><span class="pl-pds">"</span>static/chunks/9a93.ce32de670ed7dbc20850.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"publicPath"</span>: <span class="pl-s"><span class="pl-pds">"</span>static/chunks/9a93.ce32de670ed7dbc20850.js<span class="pl-pds">"</span></span> }, { <span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>3at2<span class="pl-pds">"</span></span>, <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>../../node_modules/react-feather/dist/icons/eye.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"file"</span>: <span class="pl-s"><span class="pl-pds">"</span>static/chunks/0430.1e2bbca5ac8a0d8676d8.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"publicPath"</span>: <span class="pl-s"><span class="pl-pds">"</span>static/chunks/0430.1e2bbca5ac8a0d8676d8.js<span class="pl-pds">"</span></span> }, { <span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>0zX2<span class="pl-pds">"</span></span>, <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>../../node_modules/axios/lib/helpers/isURLSameOrigin.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"file"</span>: <span class="pl-s"><span class="pl-pds">"</span>static/chunks/c2a8.27def4aa4c3e39bcd218.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"publicPath"</span>: <span class="pl-s"><span class="pl-pds">"</span>static/chunks/c2a8.27def4aa4c3e39bcd218.js<span class="pl-pds">"</span></span> } ],</pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">From my understanding I expect that there is only one chunk.</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: Ubuntu</li> <li>Version of Next.js: 8.1.0</li> </ul>
0
<p dir="auto">NOTE: Only file GitHub issues for bugs and feature requests. All other topics will be closed.</p> <p dir="auto">For general support from the community, see <a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">StackOverflow</a>.<br> To make bugs and feature requests more easy to find and organize, we close issues that are deemed<br> out of scope for GitHub Issues and point people to StackOverflow.</p> <p dir="auto">For bugs or installation issues, please provide the following information.<br> The more information you provide, the more easily we will be able to offer<br> help and advice.</p> <h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Linux RHL 7.2</p> <p dir="auto">Installed version of CUDA and cuDNN:<br> (please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>): cuda 7.5 + cudnn 5</p> <p dir="auto">If installed from binary pip package, provide:</p> <ol dir="auto"> <li>A link to the pip package you installed:</li> <li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.</li> </ol> <p dir="auto">If installed from source, provide</p> <ol dir="auto"> <li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)</li> <li>The output of <code class="notranslate">bazel version</code></li> </ol> <h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3> <p dir="auto">./configure (select to support GPU)<br> bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package --verbose_failures</p> <h3 dir="auto">What other attempted solutions have you tried?</h3> <p dir="auto">Rebuild from scratch, still repro.</p> <h3 dir="auto">Logs or other output that would be helpful</h3> <p dir="auto">(If logs are large, please upload as attachment or provide link).</p> <p dir="auto">ERROR: /data/tools/tensorflow/core/kernels/BUILD:1509:1: undeclared inclusion(s) in rule '//tensorflow/core/kernels:batchtospace_op_gpu':<br> this rule is missing dependency declarations for the following files included by 'tensorflow/core/kernels/batchtospace_op_gpu.cu.cc':<br> '/usr/local/cuda-7.5/include/cuda_runtime.h'<br> '/usr/local/cuda-7.5/include/host_config.h'<br> '/usr/local/cuda-7.5/include/builtin_types.h'<br> '/usr/local/cuda-7.5/include/device_types.h'<br> '/usr/local/cuda-7.5/include/host_defines.h'<br> '/usr/local/cuda-7.5/include/driver_types.h'<br> '/usr/local/cuda-7.5/include/surface_types.h'<br> '/usr/local/cuda-7.5/include/texture_types.h'<br> '/usr/local/cuda-7.5/include/vector_types.h'<br> '/usr/local/cuda-7.5/include/channel_descriptor.h'<br> '/usr/local/cuda-7.5/include/cuda_runtime_api.h'<br> '/usr/local/cuda-7.5/include/cuda_device_runtime_api.h'<br> '/usr/local/cuda-7.5/include/driver_functions.h'<br> '/usr/local/cuda-7.5/include/vector_functions.h'<br> '/usr/local/cuda-7.5/include/vector_functions.hpp'<br> '/usr/local/cuda-7.5/include/common_functions.h'<br> '/usr/local/cuda-7.5/include/math_functions.h'<br> '/usr/local/cuda-7.5/include/math_functions.hpp'<br> '/usr/local/cuda-7.5/include/math_functions_dbl_ptx3.h'<br> '/usr/local/cuda-7.5/include/math_functions_dbl_ptx3.hpp'<br> '/usr/local/cuda-7.5/include/cuda_surface_types.h'<br> '/usr/local/cuda-7.5/include/cuda_texture_types.h'<br> ...</p>
<p dir="auto">It looks like the GPU installation from source got refactored and is failing to compile on my Ubuntu 16.04, CUDA 8.0, cuDNN 5.0, with GTX 1080 GPU.</p> <p dir="auto">I had the GTX 1080 working with the build from a few days ago, but just pulled from the head and now cannot compile so I am not sure if this is the auto_configure for the GPU or not I saw going though.</p> <p dir="auto">$ git rev-parse HEAD<br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/6d04d601e9e8758ec4642fa9d548b7321d804d63/hovercard" href="https://github.com/tensorflow/tensorflow/commit/6d04d601e9e8758ec4642fa9d548b7321d804d63"><tt>6d04d60</tt></a></p> <p dir="auto">$ bazel version<br> Build label: 0.3.1<br> Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar<br> Build time: Fri Jul 29 09:09:52 2016 (1469783392)<br> Build timestamp: 1469783392<br> Build timestamp as int: 1469783392</p> <p dir="auto">$ ./configure</p> <p dir="auto">GPU configured</p> <p dir="auto">INFO: All external dependencies fetch successfully.<br> Configuration finished</p> <p dir="auto">$ bazel build -c opt --config=cuda --verbose_failures //tensorflow/tools/pip_package:build_pip_package 1&gt;~/initial_output.txt 2&gt;&amp;1<br> <a href="https://github.com/tensorflow/tensorflow/files/432724/initial_output.txt">initial_output.txt</a></p> <p dir="auto">GPU CUDA includes were not found so I added line to new file: CROSSTOOL.tpl @ line 66</p> <p dir="auto">cxx_builtin_include_directory: "/usr/local/cuda-8.0/include"</p> <p dir="auto">$ bazel build -c opt --config=cuda --verbose_failures //tensorflow/tools/pip_package:build_pip_package 1&gt;~/second_output.txt 2&gt;&amp;1<br> <a href="https://github.com/tensorflow/tensorflow/files/432726/second_output.txt">second_output.txt</a></p> <p dir="auto">I think it is complaining about not finding "crosstool_wrapper_driver_is_not_gcc".</p> <p dir="auto">I did a "locate" and my version seems to be at the following:<br> $ locate crosstool_wrapper_driver_is_not_gcc<br> /home/greg/serving/tensorflow/third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc<br> /home/greg/serving/tf_models/syntaxnet/tensorflow/third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc<br> /home/greg/tensorflow/third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl</p> <p dir="auto">Let me know where the file is that has the path to the crosstool_wrapper.... and I can update the path to test that as a fix unless you know the root cause...</p> <p dir="auto">EDIT: BTW, the build works fine without the GPU configuration</p>
1
<p dir="auto">by <strong><a href="mailto:jim@superluckycasino.com">jim@superluckycasino.com</a></strong>:</p> <pre class="notranslate">Before filing a bug, please check whether it has been fixed since the latest release. Search the issue tracker and check that you're running the latest version of Go: Run "go version" and compare against <a href="http://golang.org/doc/devel/release.html" rel="nofollow">http://golang.org/doc/devel/release.html</a> If a newer version of Go exists, install it and retry what you did to reproduce the problem. Thanks. What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Download go1.1.2.darwin-amd64.pkg 2. Run installer 3. Installer fails with no explanation; some go files appear to be installed. What is the expected output? Successful installation. What do you see instead? Failed installation. Seriously. If you're going to fail, say why, or at least point to a log file. Which compiler are you using (5g, 6g, 8g, gccgo)? I don't know how to determine this. Which operating system are you using? Mac OSX 10.8.4 Which version are you using? (run 'go version') 1.1.2 Please provide any additional information below.</pre>
<p dir="auto">by <strong>supermighty</strong>:</p> <pre class="notranslate"><a href="http://play.golang.org/p/s5CbtvUW4J" rel="nofollow">http://play.golang.org/p/s5CbtvUW4J</a> Using play.golang.org, fmt.Println out a time formatted using time.RFC822 and time.RFC822Z. What is the expected output? It is expected that they will be different. - time.RFC822 should output the alpha time zone (EST) - time.RFC822Z should output the numeric time zone (-0500) What do you see instead? They will be the same. Which compiler are you using (5g, 6g, 8g, gccgo)? This uses the current play.golang.org compiler Which operating system are you using? play.golang.org Which version are you using? (run 'go version') Please provide any additional information below. I ran this test locally too. (Debian wheezy, go 1.0.2) and it worked as expected. This seems to be an issue with play.golang.org Thank you for all your hard work and freely giving me Go. Ukiah</pre>
0
<p dir="auto">After updating Symfony I thought I could see the effect of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="75010234" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/14601" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/14601/hovercard" href="https://github.com/symfony/symfony/pull/14601">#14601</a> but it doesn't happen because there is <strong>two</strong> translations folders into the security component.</p> <p dir="auto">I updated <a href="https://github.com/symfony/symfony/blob/2.8/src/Symfony/Component/Security/Resources/translations/security.fr.xlf">Security/Resources/translations/security.fr.xlf</a> but <a href="https://github.com/symfony/symfony/blob/2.8/src/Symfony/Component/Security/Core/Resources/translations/security.fr.xlf">Security/Core/Resources/translations/security.fr.xlf</a> is used.</p> <p dir="auto">I don't know if it's legit but now that translations have diverged I think something must be done.</p>
<p dir="auto">PHP 7<br> Using Symfony\Component\Validator\Constraints\Collection;</p> <p dir="auto">I'm using Symfony 3.1 and I hope I'm not doing something wrong. When I validate a field, it doesn't stop after the first violation. Example :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$errors = $val-&gt;validate( $info, new \Symfony\Component\Validator\Constraints\Collection([ 'fields' =&gt; array( 'specialKey' =&gt; array( new NotBlank(), new Length(['min' =&gt; 8,'max' =&gt; 20]), new Regex(['value' =&gt; &quot;/^[A-Za-z]*$/&quot;]), ) ), 'allowExtraFields' =&gt; true, ]) );"><pre class="notranslate"><code class="notranslate">$errors = $val-&gt;validate( $info, new \Symfony\Component\Validator\Constraints\Collection([ 'fields' =&gt; array( 'specialKey' =&gt; array( new NotBlank(), new Length(['min' =&gt; 8,'max' =&gt; 20]), new Regex(['value' =&gt; "/^[A-Za-z]*$/"]), ) ), 'allowExtraFields' =&gt; true, ]) ); </code></pre></div> <p dir="auto">I'm getting :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'This value is too short. It should have 8 characters or more.' 'This value is not valid.'"><pre class="notranslate"><code class="notranslate">'This value is too short. It should have 8 characters or more.' 'This value is not valid.' </code></pre></div> <p dir="auto">I found a walk-around for those who are interested :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$errors = $val-&gt;validate( $info, new \Symfony\Component\Validator\Constraints\Collection([ 'fields' =&gt; array( 'specialKey' =&gt; array( new NotBlank(['groups' =&gt; 'groupe1']), new Length(['min' =&gt; 8,'max' =&gt; 20,'groups' =&gt; 'groupe2']), new Regex(['value' =&gt; &quot;/^[A-Za-z]*$/&quot;,'groups' =&gt; 'groupe3']), ) ), 'allowExtraFields' =&gt; true, ]), new GroupSequence(array('Default','groupe1','groupe2','groupe3')) );"><pre class="notranslate"><code class="notranslate">$errors = $val-&gt;validate( $info, new \Symfony\Component\Validator\Constraints\Collection([ 'fields' =&gt; array( 'specialKey' =&gt; array( new NotBlank(['groups' =&gt; 'groupe1']), new Length(['min' =&gt; 8,'max' =&gt; 20,'groups' =&gt; 'groupe2']), new Regex(['value' =&gt; "/^[A-Za-z]*$/",'groups' =&gt; 'groupe3']), ) ), 'allowExtraFields' =&gt; true, ]), new GroupSequence(array('Default','groupe1','groupe2','groupe3')) ); </code></pre></div>
0
<p dir="auto">This code all "works," but in a surprising way:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd t0 = 1234567890123400000 df1 = pd.DataFrame(index=pd.DatetimeIndex([t0, t0 + 1000, t0 + 2000, t0 + 3000])) df2 = pd.DataFrame(index=range(4)) df1.loc[:2, 'a'] = np.arange(2) df2.loc[:2, 'a'] = np.arange(3)"><pre class="notranslate"><code class="notranslate">import pandas as pd t0 = 1234567890123400000 df1 = pd.DataFrame(index=pd.DatetimeIndex([t0, t0 + 1000, t0 + 2000, t0 + 3000])) df2 = pd.DataFrame(index=range(4)) df1.loc[:2, 'a'] = np.arange(2) df2.loc[:2, 'a'] = np.arange(3) </code></pre></div> <p dir="auto">We create <code class="notranslate">df1</code> with a DatetimeIndex and <code class="notranslate">df2</code> with an integer index. We then create a new column <code class="notranslate">a</code> in each, using <code class="notranslate">.loc[]</code> with an integer slice. With <code class="notranslate">df1</code> we get the intuitive, normal Python slice behavior where <code class="notranslate">[:2]</code> means "the first 2 elements", whereas with <code class="notranslate">df2</code> we get the bizarre—but <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.loc.html" rel="nofollow">documented</a>—<code class="notranslate">DataFrame.loc</code> slice behavior where <code class="notranslate">[:2]</code> means "elements up to index 2, inclusive."</p> <p dir="auto">I don't see why the type of index the DataFrame has should affect the semantics of slicing with <code class="notranslate">.loc[]</code>. I happen to think the exclusive-end behavior is correct in all cases, though apparently Pandas has decided (or at least documented) that <code class="notranslate">.loc[]</code> slicing is inclusive (in which case the DatetimeIndex case looks like a bug).</p> <p dir="auto">Also note that trying to "read" <code class="notranslate">df1.loc[:2, 'a']</code> (e.g. to print it) fails, saying:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: cannot do slice indexing on &lt;class 'pandas.tseries.index.DatetimeIndex'&gt; with these indexers [2] of &lt;class 'int'&gt;"><pre class="notranslate"><code class="notranslate">TypeError: cannot do slice indexing on &lt;class 'pandas.tseries.index.DatetimeIndex'&gt; with these indexers [2] of &lt;class 'int'&gt; </code></pre></div> <p dir="auto">It's sort of strange that you can assign to this slice but not read from it.</p> <p dir="auto">I'm using Pandas 0.18.1.</p>
<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="import glob import pandas as pd files = glob.glob('*.tab') dfs = [pd.read_csv(fp, sep='\t',index_col=[0], header=0) for fp in files] df = pd.merge(dfs[0], dfs[1],how='outer', left_index=True, right_index=True).sort_index() df1 = pd.merge(dfs[2], df, how='outer', left_index=True, right_index=True).sort_index() df2 = df1.fillna('-') df3 = df2.drop_duplicates(keep='first') #Not working properly print (df3) df3.to_csv('/home/jsena/Documents/atten_sites_1.csv', sep='\t')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">glob</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">files</span> <span class="pl-c1">=</span> <span class="pl-s1">glob</span>.<span class="pl-en">glob</span>(<span class="pl-s">'*.tab'</span>) <span class="pl-s1">dfs</span> <span class="pl-c1">=</span> [<span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s1">fp</span>, <span class="pl-s1">sep</span><span class="pl-c1">=</span><span class="pl-s">'<span class="pl-cce">\t</span>'</span>,<span class="pl-s1">index_col</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>], <span class="pl-s1">header</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-k">for</span> <span class="pl-s1">fp</span> <span class="pl-c1">in</span> <span class="pl-s1">files</span>] <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">merge</span>(<span class="pl-s1">dfs</span>[<span class="pl-c1">0</span>], <span class="pl-s1">dfs</span>[<span class="pl-c1">1</span>],<span class="pl-s1">how</span><span class="pl-c1">=</span><span class="pl-s">'outer'</span>, <span class="pl-s1">left_index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">right_index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>).<span class="pl-en">sort_index</span>() <span class="pl-s1">df1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">merge</span>(<span class="pl-s1">dfs</span>[<span class="pl-c1">2</span>], <span class="pl-s1">df</span>, <span class="pl-s1">how</span><span class="pl-c1">=</span><span class="pl-s">'outer'</span>, <span class="pl-s1">left_index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">right_index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>).<span class="pl-en">sort_index</span>() <span class="pl-s1">df2</span> <span class="pl-c1">=</span> <span class="pl-s1">df1</span>.<span class="pl-en">fillna</span>(<span class="pl-s">'-'</span>) <span class="pl-s1">df3</span> <span class="pl-c1">=</span> <span class="pl-s1">df2</span>.<span class="pl-en">drop_duplicates</span>(<span class="pl-s1">keep</span><span class="pl-c1">=</span><span class="pl-s">'first'</span>) <span class="pl-c">#Not working properly</span> <span class="pl-en">print</span> (<span class="pl-s1">df3</span>) <span class="pl-s1">df3</span>.<span class="pl-en">to_csv</span>(<span class="pl-s">'/home/jsena/Documents/atten_sites_1.csv'</span>, <span class="pl-s1">sep</span><span class="pl-c1">=</span><span class="pl-s">'<span class="pl-cce">\t</span>'</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">I used the code above to combine and merage several tab separated files. I then attempted to remove duplicate rows with drop_duplicates. When I use drop_duplicates, unique rows are being removed. However, If I use command-line tools I can get the correct output.</p> <p dir="auto">Thank you very much for your help!</p> <p dir="auto"><strong>Input Files:</strong><br> <a href="https://github.com/pandas-dev/pandas/files/1741608/5270.txt">5270.txt</a><br> <a href="https://github.com/pandas-dev/pandas/files/1741609/2579.txt">2579.txt</a><br> <a href="https://github.com/pandas-dev/pandas/files/1741610/57.txt">57.txt</a><br> <strong>note:</strong> I had to change the extension from .tab to .txt to attach the files.</p> <p dir="auto"><strong>Note</strong>: Many problems can be resolved by simply upgrading <code class="notranslate">pandas</code> to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if <code class="notranslate">master</code> addresses this issue, but that is not necessary.</p> <p dir="auto"><em>Upgrading Pandas did not solve my issue. I get the same results with conda and pandas</em><br> <strong>Pandas version used with conda</strong><br> pd.<strong>version</strong><br> '0.22.0'</p> <p dir="auto"><strong>Expected Output</strong><br> <a href="https://github.com/pandas-dev/pandas/files/1749880/expected_output.txt">expected_output.txt</a></p> <p dir="auto">read 56 2578 5269<br> 100005/ccs#CACTAGTCTGTTATTC T A T<br> 100009/ccs#CCACAATGGCGGCACT T A T<br> 100013/ccs#CACCTCCACCGTTAAT T A T<br> 00017/ccs#CCTTCACAGTATAACA T - T<br> 100021/ccs#ACCTTGAATCGTCGAC T A T<br> 100023/ccs#CCGACTGTCATATGGT T A T<br> 100027/ccs#CCGCATTCCGAAATTA T A T<br> 10004/ccs#CTCTTGCACAAAATCG T A T</p> <p dir="auto"><strong>drop_duplicates output</strong><br> <a href="https://github.com/pandas-dev/pandas/files/1741647/pandas_output.txt">pandas_output.txt</a></p> <p dir="auto">read 56 2578 5269<br> 100005/ccs#CACTAGTCTGTTATTC T A T<br> 100017/ccs#CCTTCACAGTATAACA T - T<br> 100075/ccs#CTCTGTAAGTGTCCTT - A T<br> 10008/ccs#CCAGCTTCGGACCAGC T A -<br> 10052/ccs#CCCATCCGGTCGAAAC - - T<br> 100575/ccs#CGGTACTTGTGTTTTC - A -<br> 100734/ccs#CCGCACTCCTGCTCAC T - -<br> 101808/ccs#CATGCGATCGAAACCG C A T</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <p dir="auto">Python and Pandas version<br> Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)<br> [GCC 7.2.0] on linux<br> pandas.<strong>version</strong><br> '0.20.3'</p>
0
<p dir="auto">Please see:</p> <p dir="auto"><a href="http://play.golang.org/p/VXUScwoGAH" rel="nofollow">http://play.golang.org/p/VXUScwoGAH</a></p> <p dir="auto">I can see and understand why the final equality test returns false, but at the same time given that the default timezone is Z, would nevertheless expect the result to be true.</p>
<p dir="auto">It seems that marshaling and unmarshaling a zero time produces an object that is different from the original:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="func TestMarshalUnmarshalJSON(t *testing.T) { var expected, parsed Time body, err := expected.MarshalJSON() if err != nil { t.Errorf(&quot;json.Marshal error = %v&quot;, err) } err = parsed.UnmarshalJSON(body) if err != nil { t.Errorf(&quot;json.Unmarshal error = %v&quot;, err) } if !reflect.DeepEqual(expected, parsed) { t.Errorf(&quot;json error, expected = %#v, parsed = %#v&quot;, expected, parsed) } } --- FAIL: TestMarshalUnmarshalJSON (0.00 seconds) time_test.go:807: json error, expected = time.Time{sec:0, nsec:0x0, loc:(*time.Location)(nil)}, parsed = time.Time{sec:0, nsec:0x0, loc:(*time.Location)(0x6cd2a0)}"><pre class="notranslate"><code class="notranslate">func TestMarshalUnmarshalJSON(t *testing.T) { var expected, parsed Time body, err := expected.MarshalJSON() if err != nil { t.Errorf("json.Marshal error = %v", err) } err = parsed.UnmarshalJSON(body) if err != nil { t.Errorf("json.Unmarshal error = %v", err) } if !reflect.DeepEqual(expected, parsed) { t.Errorf("json error, expected = %#v, parsed = %#v", expected, parsed) } } --- FAIL: TestMarshalUnmarshalJSON (0.00 seconds) time_test.go:807: json error, expected = time.Time{sec:0, nsec:0x0, loc:(*time.Location)(nil)}, parsed = time.Time{sec:0, nsec:0x0, loc:(*time.Location)(0x6cd2a0)} </code></pre></div>
1
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: Well, I added patches</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 10, 64 bit</li> <li><strong>TensorFlow installed from (source or binary)</strong>: Source</li> <li><strong>TensorFlow version (use command below)</strong>: 1.8.0</li> <li><strong>Python version</strong>: 3.5, 3.6</li> <li><strong>Bazel version (if compiling from source)</strong>: 1.12.0, 1.14.0</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: MSVC 2015 Update v3</li> <li><strong>CUDA/cuDNN version</strong>: 9.0/7.1</li> <li><strong>GPU model and memory</strong>: GeForce GT 430</li> <li><strong>Exact command to reproduce</strong>: ;-)</li> </ul> <h3 dir="auto">Description</h3> <p dir="auto">I wanted to compile tensorflow with GPU support on Windows and I went through the ordeal (I was finally able to build it, but I'll come to that later). I always followed the stuff done in: <a href="https://github.com/tensorflow/tensorflow/blob/v1.8.0/tensorflow/tools/ci_build/">https://github.com/tensorflow/tensorflow/blob/v1.8.0/tensorflow/tools/ci_build/</a></p> <p dir="auto">This is how it went:</p> <p dir="auto">First, I attempted the CPU build.<br> Initial attempt was with CMake. It took ~3hours, all went fine upto the final linking phase, there link.exe died with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(Lib target) -&gt; tf_core_kernels.dir\Release\tf_core_kernels.lib : fatal error LNK1248: image size (100039B2C) exceeds maximum allowable size (FFFFFFFF) "><pre class="notranslate"><code class="notranslate">(Lib target) -&gt; tf_core_kernels.dir\Release\tf_core_kernels.lib : fatal error LNK1248: image size (100039B2C) exceeds maximum allowable size (FFFFFFFF) </code></pre></div> <p dir="auto">I was lost here, I tried tinkering with some CMake build options, but all resulted into the same error. So, I gave up CMake.</p> <p dir="auto">Then, I attempted to build with bazel 1.12.0.<br> I was using the mingw64 shell, so first, I had to patch <code class="notranslate">tensorflow/tools/pip_package/build_pip_package.sh</code> . I also sent a PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="318680793" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/18953" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/18953/hovercard" href="https://github.com/tensorflow/tensorflow/pull/18953">#18953</a></p> <p dir="auto">Surprisingly, the build went fine after that, and then I tried to run the tests. All were successful, except <code class="notranslate">tensorflow/python/kernel_tests/boosted_trees:training_ops_test</code>, probably because it was not being run serially. Even for running the tests, I had to patch <code class="notranslate">tensorflow/contrib/tensorboard/plugins/trace/trace.py</code> and I also sent a PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="318680816" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/18954" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/18954/hovercard" href="https://github.com/tensorflow/tensorflow/pull/18954">#18954</a></p> <p dir="auto">Now comes the real deal. The GPU build.</p> <p dir="auto">Again, I attempted the build with CMake. It took ~3hours and then link.exe failed with the same error as before. I spent quite some time reading about it and couldn't figure it out as most solutions said 'break your huge lib into smaller libs'. I am still baffled as to why the CI job at <a href="http://ci.tensorflow.org/job/tf-master-win-gpu-cmake/" rel="nofollow">http://ci.tensorflow.org/job/tf-master-win-gpu-cmake/</a> doesn't die with the same problem. I am using the same compiler, same linker,<br> and my machine is powerful enough. So, I just gave up again on CMake.</p> <p dir="auto">Going back to bazel now. By this time, bazel 1.14.0 was was released. So I decided to use that instead. I had to apply the two patches as before, but life isn't so easy.</p> <p dir="auto">Next big hurdle: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="297766287" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/17067" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/17067/hovercard" href="https://github.com/tensorflow/tensorflow/issues/17067">#17067</a> .</p> <ul dir="auto"> <li>So I got <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dtrebbien/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dtrebbien">@dtrebbien</a> 's patch from <a href="https://github.com/dtrebbien/protobuf/commit/50f552646ba1de79e07562b41f3999fe036b4fd0">https://github.com/dtrebbien/protobuf/commit/50f552646ba1de79e07562b41f3999fe036b4fd0</a> and made changes to <code class="notranslate">tensorflow/workspace.bzl</code> to apply it to all protobuf checkouts.</li> </ul> <p dir="auto">Next big hurdle: NCCL doesn't seem to be officially supported on Windows.</p> <ul dir="auto"> <li>But bazel is still trying to build nccl related stuff. I had to patch stuff again, to disable all references to nccl in the BUILD files all over the place. <g-emoji class="g-emoji" alias="crying_cat_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f63f.png">😿</g-emoji></li> </ul> <p dir="auto">Next big hurdle:</p> <ul dir="auto"> <li>Shared libraries under <code class="notranslate">tensorflow/contrib/rnn/python/ops/</code> failed at link phase with the error:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Creating library bazel-out/host/bin/tensorflow/contrib/rnn/python/ops/_gru_ops.ifso and object bazel-out/host/bin/tensorflow/contrib/rnn/python/ops/_gru_ops.exp blas_gemm.o : error LNK2019: unresolved external symbol &quot;public: class perftools::gputools::Stream &amp; __cdecl perftools::gputools::Stream::ThenBlasGemm(enum perftools::gputools::blas::Transpose,enum perftools::gputools::blas::Transpose,unsigned __int64,unsigned __int64,unsigned __int64,float,class perftools::gputools::DeviceMemory&lt;float&gt; const &amp;,int,class perftools::gputools::DeviceMemory&lt;float&gt; const &amp;,int,float,class perftools::gputools::DeviceMemory&lt;float&gt; *,int)&quot; (?ThenBlasGemm@Stream@gputools@perftools@@QEAAAEAV123@W4Transpose@blas@23@0_K11MAEBV?$DeviceMemory@M@23@H2HMPEAV623@H@Z) referenced in function &quot;public: void __cdecl tensorflow::functor::TensorCuBlasGemm&lt;float&gt;::operator()(class tensorflow::OpKernelContext *,bool,bool,unsigned __int64,unsigned __int64,unsigned __int64,float,float const *,int,float const *,int,float,float *,int)&quot; (??R?$TensorCuBlasGemm@M@functor@tensorflow@@QEAAXPEAVOpKernelContext@2@_N1_K22MPEBMH3HMPEAMH@Z) blas_gemm.o : error LNK2019: unresolved external symbol &quot;public: class perftools::gputools::Stream &amp; __cdecl perftools::gputools::Stream::ThenBlasGemm(enum perftools::gputools::blas::Transpose,enum perftools::gputools::blas::Transpose,unsigned __int64,unsigned __int64,unsigned __int64,double,class perftools::gputools::DeviceMemory&lt;double&gt; const &amp;,int,class perftools::gputools::DeviceMemory&lt;double&gt; const &amp;,int,double,class perftools::gputools::DeviceMemory&lt;double&gt; *,int)&quot; (?ThenBlasGemm@Stream@gputools@perftools@@QEAAAEAV123@W4Transpose@blas@23@0_K11NAEBV?$DeviceMemory@N@23@H2HNPEAV623@H@Z) referenced in function &quot;public: void __cdecl tensorflow::functor::TensorCuBlasGemm&lt;double&gt;::operator()(class tensorflow::OpKernelContext *,bool,bool,unsigned __int64,unsigned __int64,unsigned __int64,double,double const *,int,double const *,int,double,double *,int)&quot; (??R?$TensorCuBlasGemm@N@functor@tensorflow@@QEAAXPEAVOpKernelContext@2@_N1_K22NPEBNH3HNPEANH@Z)"><pre class="notranslate"><code class="notranslate">Creating library bazel-out/host/bin/tensorflow/contrib/rnn/python/ops/_gru_ops.ifso and object bazel-out/host/bin/tensorflow/contrib/rnn/python/ops/_gru_ops.exp blas_gemm.o : error LNK2019: unresolved external symbol "public: class perftools::gputools::Stream &amp; __cdecl perftools::gputools::Stream::ThenBlasGemm(enum perftools::gputools::blas::Transpose,enum perftools::gputools::blas::Transpose,unsigned __int64,unsigned __int64,unsigned __int64,float,class perftools::gputools::DeviceMemory&lt;float&gt; const &amp;,int,class perftools::gputools::DeviceMemory&lt;float&gt; const &amp;,int,float,class perftools::gputools::DeviceMemory&lt;float&gt; *,int)" (?ThenBlasGemm@Stream@gputools@perftools@@QEAAAEAV123@W4Transpose@blas@23@0_K11MAEBV?$DeviceMemory@M@23@H2HMPEAV623@H@Z) referenced in function "public: void __cdecl tensorflow::functor::TensorCuBlasGemm&lt;float&gt;::operator()(class tensorflow::OpKernelContext *,bool,bool,unsigned __int64,unsigned __int64,unsigned __int64,float,float const *,int,float const *,int,float,float *,int)" (??R?$TensorCuBlasGemm@M@functor@tensorflow@@QEAAXPEAVOpKernelContext@2@_N1_K22MPEBMH3HMPEAMH@Z) blas_gemm.o : error LNK2019: unresolved external symbol "public: class perftools::gputools::Stream &amp; __cdecl perftools::gputools::Stream::ThenBlasGemm(enum perftools::gputools::blas::Transpose,enum perftools::gputools::blas::Transpose,unsigned __int64,unsigned __int64,unsigned __int64,double,class perftools::gputools::DeviceMemory&lt;double&gt; const &amp;,int,class perftools::gputools::DeviceMemory&lt;double&gt; const &amp;,int,double,class perftools::gputools::DeviceMemory&lt;double&gt; *,int)" (?ThenBlasGemm@Stream@gputools@perftools@@QEAAAEAV123@W4Transpose@blas@23@0_K11NAEBV?$DeviceMemory@N@23@H2HNPEAV623@H@Z) referenced in function "public: void __cdecl tensorflow::functor::TensorCuBlasGemm&lt;double&gt;::operator()(class tensorflow::OpKernelContext *,bool,bool,unsigned __int64,unsigned __int64,unsigned __int64,double,double const *,int,double const *,int,double,double *,int)" (??R?$TensorCuBlasGemm@N@functor@tensorflow@@QEAAXPEAVOpKernelContext@2@_N1_K22NPEBNH3HNPEANH@Z) </code></pre></div> <ul dir="auto"> <li>Then I stumbled upon <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="278302064" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/15013" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/15013/hovercard" href="https://github.com/tensorflow/tensorflow/issues/15013">#15013</a> and saw that another person had faced the same issue quite some time ago and the OP's solution was <code class="notranslate">add all the .lib from tensorflow and cuda</code> . I can't do that. So, I went looking for where this symbol comes from, and where should it be. Took me a while to realize what's happening and that's when I came across the workaround<br> of using intermediate interface shared object file at <a href="https://github.com/tensorflow/tensorflow/blob/v1.8.0/tensorflow/tensorflow.bzl#L1228-L1237">https://github.com/tensorflow/tensorflow/blob/v1.8.0/tensorflow/tensorflow.bzl#L1228-L1237</a>. Apparently, this didn't have enough symbols for the kernels in <code class="notranslate">tensorflow/contrib/rnn/python/ops/</code>. So I started looking for where I could find them and ended up adding:<br> <code class="notranslate">clean_dep("//tensorflow/stream_executor:stream_executor_impl"),</code> to that list and the link error went away.</li> </ul> <p dir="auto">Next hurdle: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="333122041" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/20088" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/20088/hovercard" href="https://github.com/tensorflow/tensorflow/issues/20088">#20088</a></p> <ul dir="auto"> <li>The compiler doesn't like<br> <a href="https://github.com/tensorflow/tensorflow/blob/v1.8.0/tensorflow/contrib/fused_conv/kernels/fused_conv2d_bias_activation_op.cc#L46">https://github.com/tensorflow/tensorflow/blob/v1.8.0/tensorflow/contrib/fused_conv/kernels/fused_conv2d_bias_activation_op.cc#L46</a> when it was already being done at <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/conv_ops_gpu.h#L189">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/conv_ops_gpu.h#L189</a> . So I commented out the typdef in <code class="notranslate">fused_conv2d_bias_activation_op.cc</code> and tried building it. The error went away, but link.exe cried again at the end, because it didn't know where to get the symbol for <code class="notranslate">GetCudnnWorkspaceLimit</code> at <a href="https://github.com/tensorflow/tensorflow/blob/v1.8.0/tensorflow/contrib/fused_conv/kernels/fused_conv2d_bias_activation_op.cc#L519">https://github.com/tensorflow/tensorflow/blob/v1.8.0/tensorflow/contrib/fused_conv/kernels/fused_conv2d_bias_activation_op.cc#L519</a> . After some searching, I found out that this symbol comes from <a href="https://github.com/tensorflow/tensorflow/blob/v1.8.0/tensorflow/core/kernels/conv_ops.cc#L456-L471">https://github.com/tensorflow/tensorflow/blob/v1.8.0/tensorflow/core/kernels/conv_ops.cc#L456-L471</a> . So I tried making it part of the intermediary additional_deps_impl.ifso import lib, but no matter what, it always ended up bloating it with symbols &gt; 64k (it went upto ~72k, when I tried adding some deps which might have that symbol). So I gave up on this contrib kernel at this point and when I looked at the CMake build (I could be wrong here) I didn't find it building this kernel either. So I just ended up commenting out all references to <code class="notranslate">fused_conv</code> in the BUILD files.</li> </ul> <p dir="auto">Next hurdle: Bazel had made some breaking changes in 1.13.0</p> <ul dir="auto"> <li>I came across at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="294430208" data-permission-text="Title is private" data-url="https://github.com/bazelbuild/bazel/issues/4583" data-hovercard-type="issue" data-hovercard-url="/bazelbuild/bazel/issues/4583/hovercard" href="https://github.com/bazelbuild/bazel/issues/4583">bazelbuild/bazel#4583</a> and then applied two other patches locally to get around that problem.</li> </ul> <p dir="auto">Next hurdle: Tests won't run.</p> <ul dir="auto"> <li>Most of them want to import nccl. <g-emoji class="g-emoji" alias="sob" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f62d.png">😭</g-emoji> So I ended up faking it by creating a blank module and then the tests ran fine. I did have to tell bazel to ignore the <code class="notranslate">contrib/lite</code> subset <code class="notranslate">-//${PY_TEST_DIR}/tensorflow/contrib/lite/...</code>.</li> </ul> <p dir="auto">For the lost souls who attempt at building tensorflow with GPU support, I hope this issue might be helpful. All the patches and the entire build can be found here: <a href="https://github.com/AnacondaRecipes/aggregate/blob/459dee0989e0c7cc4ab66c49d3d7605cddbb1bc3/tensorflow-gpu-base-feedstock/recipe/meta.yaml">https://github.com/AnacondaRecipes/aggregate/blob/459dee0989e0c7cc4ab66c49d3d7605cddbb1bc3/tensorflow-gpu-base-feedstock/recipe/meta.yaml</a></p>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: no</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 10 1803</li> <li><strong>TensorFlow installed from (source or binary)</strong>: source</li> <li><strong>TensorFlow version (use command below)</strong>: v1.11.0-rc1</li> <li><strong>Python version</strong>: 3.6.5</li> <li><strong>Bazel version (if compiling from source)</strong>: 0.15.2</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: vs2017 15.8 / cl.exe 19.15.26726</li> <li><strong>CUDA/cuDNN version</strong>: 9.2.148.1/7.2.1</li> <li><strong>GPU model and memory</strong>: 1080ti 11GB</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package bazel-bin\tensorflow\tools\pip_package\build_pip_package C:/tmp/tensorflow_pkg"><pre class="notranslate"><code class="notranslate">bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package bazel-bin\tensorflow\tools\pip_package\build_pip_package C:/tmp/tensorflow_pkg </code></pre></div> <h3 dir="auto">Describe the problem</h3> <p dir="auto">If build artifact large than 4GB, it can't generate the python package.</p> <p dir="auto">A easy way to reproduce the issue</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,7.0]: 3.0,3.2,3.5,5.0,5.2,5.3"><pre class="notranslate"><code class="notranslate">Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,7.0]: 3.0,3.2,3.5,5.0,5.2,5.3 </code></pre></div> <p dir="auto">related link:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="336090628" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/20332" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/20332/hovercard?comment_id=415974623&amp;comment_type=issue_comment" href="https://github.com/tensorflow/tensorflow/issues/20332#issuecomment-415974623">#20332 (comment)</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="361772394" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/22382" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/22382/hovercard" href="https://github.com/tensorflow/tensorflow/issues/22382">#22382</a><br> <a href="https://github.com/bazelbuild/bazel/blob/0.17.1/third_party/ijar/zip.cc#L74">https://github.com/bazelbuild/bazel/blob/0.17.1/third_party/ijar/zip.cc#L74</a></p> <h3 dir="auto">Source code / logs</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncompressed input jar has size ???, which exceeds the maximum supported output size 4294967295. Assuming that ijar will be smaller and hoping for the best. Unzipping simple_console_for_windows.zip to create runfiles tree... [./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip or ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.zip, and cannot find ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.ZIP, period. "><pre class="notranslate"><code class="notranslate">Uncompressed input jar has size ???, which exceeds the maximum supported output size 4294967295. Assuming that ijar will be smaller and hoping for the best. Unzipping simple_console_for_windows.zip to create runfiles tree... [./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip or ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.zip, and cannot find ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.ZIP, period. </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> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: master</li> <li>Operating System version: mac os 10.14.3</li> <li>Java version: 1.8.0_201</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>remove code ClassUtils.isPrimitive(method1.getReturnType()) in AbstractConfig.java at line 653</li> <li>ClassUtils.isPrimitive(method1.getReturnType()) is already judge in method MethodUtils.isGetter</li> <li>no need to do this any more</li> </ol> <p dir="auto">What actually happens?<br> make code brief and clean</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/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"> 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: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <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 actually happens?</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>
0
<p dir="auto">The documentation for <code class="notranslate">read()</code> in the <code class="notranslate">Reader</code> trait specifies:</p> <blockquote> <p dir="auto">Read bytes, up to the length of <code class="notranslate">buf</code> and place them in <code class="notranslate">buf</code>.<br> Returns the number of bytes read. The number of bytes read may<br> be less than the number requested, even 0. Returns <code class="notranslate">Err</code> on EOF.</p> </blockquote> <p dir="auto">However, the <code class="notranslate">BufferedReader</code> type which implements <code class="notranslate">Reader</code> will only perform a single read up to its internal buffer size of 64kB, regardless of the input stream size or output buffer size.</p> <p dir="auto">The following test program creates a 200kB file and reads it into a similarly sized buffer. Only the first 64kB is read:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="use std::io::{BufferedReader, BufferedWriter, File}; fn main() { let buf_size = 200*1024; let filename = &quot;/tmp/test.dat&quot;; println!(&quot;Generating buffer of {} bytes&quot;, buf_size); let source_data = Vec::from_elem(buf_size, 0xA5); let path = Path::new(filename); let mut file = BufferedWriter::new(File::create(&amp;path)); match file.write(source_data.as_slice()) { Ok(()) =&gt; (), // succeeded Err(e) =&gt; println!(&quot;failed in write: {}&quot;, e), } let path = Path::new(filename); let mut file = BufferedReader::new(File::open(&amp;path)); let mut read_data = Vec::from_elem(buf_size, 0); println!(&quot;Buffer capacity {} bytes&quot;, read_data.len()); match file.read(read_data.as_mut_slice()) { Ok(bytes_read) =&gt; println!(&quot;Read {} bytes&quot;, bytes_read), Err(e) =&gt; println!(&quot;error reading: {}&quot;, e) } }"><pre class="notranslate"><code class="notranslate">use std::io::{BufferedReader, BufferedWriter, File}; fn main() { let buf_size = 200*1024; let filename = "/tmp/test.dat"; println!("Generating buffer of {} bytes", buf_size); let source_data = Vec::from_elem(buf_size, 0xA5); let path = Path::new(filename); let mut file = BufferedWriter::new(File::create(&amp;path)); match file.write(source_data.as_slice()) { Ok(()) =&gt; (), // succeeded Err(e) =&gt; println!("failed in write: {}", e), } let path = Path::new(filename); let mut file = BufferedReader::new(File::open(&amp;path)); let mut read_data = Vec::from_elem(buf_size, 0); println!("Buffer capacity {} bytes", read_data.len()); match file.read(read_data.as_mut_slice()) { Ok(bytes_read) =&gt; println!("Read {} bytes", bytes_read), Err(e) =&gt; println!("error reading: {}", e) } } </code></pre></div> <p dir="auto">The output is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Generating buffer of 204800 bytes Buffer capacity 204800 bytes Read 65536 bytes"><pre class="notranslate"><code class="notranslate">Generating buffer of 204800 bytes Buffer capacity 204800 bytes Read 65536 bytes </code></pre></div> <p dir="auto">The expected output would obviously report "Read 204800 bytes". As per the trait's documentation, the <code class="notranslate">read()</code> method should read up to the size of either the input stream or the output buffer, whichever is smaller; reading in chunks of 64kB in its internal buffer is an implementation detail.</p> <p dir="auto">If instead of using <code class="notranslate">read()</code> the <code class="notranslate">read_at_least()</code> method is called (with <code class="notranslate">buf_size</code>), the full size is read.</p>
0
<p dir="auto">Hi, I recently opened an issue here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="82043080" data-permission-text="Title is private" data-url="https://github.com/atom/tabs/issues/148" data-hovercard-type="issue" data-hovercard-url="/atom/tabs/issues/148/hovercard" href="https://github.com/atom/tabs/issues/148">atom/tabs#148</a> , claiming I couldn't drag tabs around to rearrange them, but realized it's a more general problem. I can't left-click and drag ANYTHING in Atom. I can't even left mouse down and drag to highlight text. It's as if the mouse up event is firing when it shouldn't.</p> <p dir="auto">I'm using a fresh install of<br> Atom 0.204.0<br> on Linux Mint 17 Qiana (based on Ubuntu 14.04, Trusty Tahr)</p> <p dir="auto">Thanks!</p>
<p dir="auto">Almost certainly because of this Chrome issue: <a href="https://code.google.com/p/chromium/issues/detail?id=465660" rel="nofollow">https://code.google.com/p/chromium/issues/detail?id=465660</a> (see also <a href="https://code.google.com/p/chromium/issues/detail?id=456222" rel="nofollow">https://code.google.com/p/chromium/issues/detail?id=456222</a>, <a href="https://www.virtualbox.org/ticket/13968" rel="nofollow">https://www.virtualbox.org/ticket/13968</a>). Didn't have this problem in Atom in this environment before the upgrade to use Chrome 41. Makes Atom very difficult to use in this environment.</p>
1
<h3 dir="auto">Affected Version</h3> <p dir="auto">0.14.0-rc1</p> <h3 dir="auto">Description</h3> <p dir="auto">I created two dataSources for the same Kinesis stream, but it returned different results for the same query. Duplicate raw events was found in one dataSource (it was about 110 events). I'm suspecting <a href="https://github.com/apache/incubator-druid/blob/master/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java#L2347">this line</a>. Maybe <code class="notranslate">isExclusive</code> should be set to true. But, I'm not sure why it happened for only one dataSource.</p>
<p dir="auto">BufferUnderflowExceptions reported with 0.9.2-rc1: <a href="https://groups.google.com/d/topic/druid-user/bZJq0Z3U_Ms/discussion" rel="nofollow">https://groups.google.com/d/topic/druid-user/bZJq0Z3U_Ms/discussion</a>. May be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169025566" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/3314" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/3314/hovercard" href="https://github.com/apache/druid/pull/3314">#3314</a>.</p> <p dir="auto">The stack trace was:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="016-10-03T17:20:43,407 ERROR [processing-9] io.druid.query.GroupByMergedQueryRunner - Exception with one of the sequences! java.nio.BufferUnderflowException at java.nio.Buffer.nextGetIndex(Buffer.java:506) ~[?:1.8.0_101] at java.nio.DirectByteBuffer.getShort(DirectByteBuffer.java:590) ~[?:1.8.0_101] at io.druid.query.aggregation.hyperloglog.HyperLogLogCollector.fold(HyperLogLogCollector.java:393) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.aggregation.hyperloglog.HyperUniquesBufferAggregator.aggregate(HyperUniquesBufferAggregator.java:65) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:237) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.access$100(GroupByQueryEngine.java:150) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowIterator.next(GroupByQueryEngine.java:378) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowIterator.next(GroupByQueryEngine.java:293) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at com.metamx.common.guava.BaseSequence.accumulate(BaseSequence.java:67) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ConcatSequence$1.accumulate(ConcatSequence.java:46) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ConcatSequence$1.accumulate(ConcatSequence.java:42) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.MappingAccumulator.accumulate(MappingAccumulator.java:39) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.FilteringAccumulator.accumulate(FilteringAccumulator.java:40) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.MappingAccumulator.accumulate(MappingAccumulator.java:39) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.BaseSequence.accumulate(BaseSequence.java:67) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.MappedSequence.accumulate(MappedSequence.java:40) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ResourceClosingSequence.accumulate(ResourceClosingSequence.java:38) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.FilteredSequence.accumulate(FilteredSequence.java:42) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.MappedSequence.accumulate(MappedSequence.java:40) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ResourceClosingSequence.accumulate(ResourceClosingSequence.java:38) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ConcatSequence.accumulate(ConcatSequence.java:40) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ResourceClosingSequence.accumulate(ResourceClosingSequence.java:38) ~[java-util-0.27.10.jar:?] at io.druid.query.MetricsEmittingQueryRunner$1.accumulate(MetricsEmittingQueryRunner.java:104) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at com.metamx.common.guava.MappedSequence.accumulate(MappedSequence.java:40) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.Sequences$1.accumulate(Sequences.java:90) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.Sequences.toList(Sequences.java:113) ~[java-util-0.27.10.jar:?] at io.druid.query.BySegmentQueryRunner.run(BySegmentQueryRunner.java:56) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.MetricsEmittingQueryRunner$1.accumulate(MetricsEmittingQueryRunner.java:104) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.spec.SpecificSegmentQueryRunner$2$1.call(SpecificSegmentQueryRunner.java:87) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.spec.SpecificSegmentQueryRunner.doNamed(SpecificSegmentQueryRunner.java:171) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.spec.SpecificSegmentQueryRunner.access$400(SpecificSegmentQueryRunner.java:41) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.spec.SpecificSegmentQueryRunner$2.doItNamed(SpecificSegmentQueryRunner.java:162) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.spec.SpecificSegmentQueryRunner$2.accumulate(SpecificSegmentQueryRunner.java:80) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.CPUTimeMetricQueryRunner$1.accumulate(CPUTimeMetricQueryRunner.java:81) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at com.metamx.common.guava.Sequences$1.accumulate(Sequences.java:90) ~[java-util-0.27.10.jar:?] at io.druid.query.GroupByMergedQueryRunner$1$1.call(GroupByMergedQueryRunner.java:118) [druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.GroupByMergedQueryRunner$1$1.call(GroupByMergedQueryRunner.java:111) [druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101] at io.druid.query.PrioritizedListenableFutureTask.run(PrioritizedExecutorService.java:271) [druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_101] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_101] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]"><pre class="notranslate"><code class="notranslate">016-10-03T17:20:43,407 ERROR [processing-9] io.druid.query.GroupByMergedQueryRunner - Exception with one of the sequences! java.nio.BufferUnderflowException at java.nio.Buffer.nextGetIndex(Buffer.java:506) ~[?:1.8.0_101] at java.nio.DirectByteBuffer.getShort(DirectByteBuffer.java:590) ~[?:1.8.0_101] at io.druid.query.aggregation.hyperloglog.HyperLogLogCollector.fold(HyperLogLogCollector.java:393) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.aggregation.hyperloglog.HyperUniquesBufferAggregator.aggregate(HyperUniquesBufferAggregator.java:65) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:237) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.updateValues(GroupByQueryEngine.java:200) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowUpdater.access$100(GroupByQueryEngine.java:150) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowIterator.next(GroupByQueryEngine.java:378) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.groupby.GroupByQueryEngine$RowIterator.next(GroupByQueryEngine.java:293) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at com.metamx.common.guava.BaseSequence.accumulate(BaseSequence.java:67) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ConcatSequence$1.accumulate(ConcatSequence.java:46) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ConcatSequence$1.accumulate(ConcatSequence.java:42) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.MappingAccumulator.accumulate(MappingAccumulator.java:39) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.FilteringAccumulator.accumulate(FilteringAccumulator.java:40) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.MappingAccumulator.accumulate(MappingAccumulator.java:39) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.BaseSequence.accumulate(BaseSequence.java:67) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.MappedSequence.accumulate(MappedSequence.java:40) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ResourceClosingSequence.accumulate(ResourceClosingSequence.java:38) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.FilteredSequence.accumulate(FilteredSequence.java:42) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.MappedSequence.accumulate(MappedSequence.java:40) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ResourceClosingSequence.accumulate(ResourceClosingSequence.java:38) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ConcatSequence.accumulate(ConcatSequence.java:40) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.ResourceClosingSequence.accumulate(ResourceClosingSequence.java:38) ~[java-util-0.27.10.jar:?] at io.druid.query.MetricsEmittingQueryRunner$1.accumulate(MetricsEmittingQueryRunner.java:104) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at com.metamx.common.guava.MappedSequence.accumulate(MappedSequence.java:40) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.Sequences$1.accumulate(Sequences.java:90) ~[java-util-0.27.10.jar:?] at com.metamx.common.guava.Sequences.toList(Sequences.java:113) ~[java-util-0.27.10.jar:?] at io.druid.query.BySegmentQueryRunner.run(BySegmentQueryRunner.java:56) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.MetricsEmittingQueryRunner$1.accumulate(MetricsEmittingQueryRunner.java:104) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.spec.SpecificSegmentQueryRunner$2$1.call(SpecificSegmentQueryRunner.java:87) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.spec.SpecificSegmentQueryRunner.doNamed(SpecificSegmentQueryRunner.java:171) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.spec.SpecificSegmentQueryRunner.access$400(SpecificSegmentQueryRunner.java:41) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.spec.SpecificSegmentQueryRunner$2.doItNamed(SpecificSegmentQueryRunner.java:162) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.spec.SpecificSegmentQueryRunner$2.accumulate(SpecificSegmentQueryRunner.java:80) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.CPUTimeMetricQueryRunner$1.accumulate(CPUTimeMetricQueryRunner.java:81) ~[druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at com.metamx.common.guava.Sequences$1.accumulate(Sequences.java:90) ~[java-util-0.27.10.jar:?] at io.druid.query.GroupByMergedQueryRunner$1$1.call(GroupByMergedQueryRunner.java:118) [druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at io.druid.query.GroupByMergedQueryRunner$1$1.call(GroupByMergedQueryRunner.java:111) [druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101] at io.druid.query.PrioritizedListenableFutureTask.run(PrioritizedExecutorService.java:271) [druid-processing-0.9.2-rc1.jar:0.9.2-rc1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_101] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_101] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101] </code></pre></div>
0
<h3 dir="auto">Bug summary</h3> <p dir="auto">Compare the colorbars at the top of the imagegrid in <a href="https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html" rel="nofollow">https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html</a> and <a href="https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_grid.html" rel="nofollow">https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_grid.html</a> (same example, but mpl3.4 vs 3.5): the ticks have incorrectly moved from the top side of the colorbar to the bottom side (and the ticklabels are no longer suppressed by the toggle_label(False) call, but that's more or less a consequence of the first point, because toggle_label will try to hide the labels on the cbar_location="top" side).<br> This is a regression that bisects to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="866131221" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/20054" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/20054/hovercard" href="https://github.com/matplotlib/matplotlib/pull/20054">#20054</a>.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Run galleries/examples/axes_grid1/demo_axes_grid.py or galleries/examples/axes_grid1/demo_axes_grid2.py"><pre class="notranslate"><span class="pl-c"># Run galleries/examples/axes_grid1/demo_axes_grid.py or galleries/examples/axes_grid1/demo_axes_grid2.py</span></pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto"><a href="https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_grid.html" rel="nofollow">https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_grid.html</a></p> <h3 dir="auto">Expected outcome</h3> <p dir="auto"><a href="https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html" rel="nofollow">https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html</a></p> <h3 dir="auto">Additional information</h3> <p dir="auto">Obviously <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="866131221" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/20054" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/20054/hovercard" href="https://github.com/matplotlib/matplotlib/pull/20054">#20054</a> changed colorbar axes for the (much) better. We can either try to fix the problematic interaction between new-style colorbars and ImageGrid, or "advantageously" interpret the fact that no one reported this bug in the ~1.5y since the release of matplotlib 3.5 as a sign that ImageGrid sees very little use and perhaps deprecate it (it has a slightly idiosyncratic API anyways, and may be better replaced by compressed layout these days).</p> <h3 dir="auto">Operating system</h3> <p dir="auto">macos</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.8.0.dev1020+gefd66d48fc</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">mplcairo</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.11</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto">enosuchlib</p> <h3 dir="auto">Installation</h3> <p dir="auto">git checkout</p>
<p dir="auto">Part of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="325949738" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/11299" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/11299/hovercard" href="https://github.com/matplotlib/matplotlib/pull/11299">#11299</a> deprecates the property <code class="notranslate">Patches.xy</code>.</p> <p dir="auto">I assume this was based on the existing docstring</p> <blockquote> <p dir="auto">Set/get the vertices of the polygon. This property is<br> provided for backward compatibility with matplotlib 0.91.x<br> only. New code should use<br> :meth:<code class="notranslate">~matplotlib.patches.Polygon.get_xy</code> and<br> :meth:<code class="notranslate">~matplotlib.patches.Polygon.set_xy</code> instead.</p> </blockquote> <p dir="auto">That docstring is 10 years old, and I'm not sure if we really want to deprecate the property. In many places I would actually favor properties over getters/setters.</p>
0
<h4 dir="auto">Description</h4> <p dir="auto">I tried to use the <code class="notranslate">learning_curve</code> function using a <code class="notranslate">Pipeline</code> object as estimator but this results in a <code class="notranslate">TypeError</code>.</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.datasets import load_boston from sklearn.linear_model import ElasticNet from sklearn.model_selection import learning_curve from sklearn.pipeline import Pipeline from sklearn.preprocessing import StandardScaler X, y = load_boston(return_X_y=True) pipe = Pipeline((['preproc', StandardScaler()], ['predict', ElasticNet()])) learning_curve(pipe, X, y)"><pre class="notranslate"><code class="notranslate">import numpy as np from sklearn.datasets import load_boston from sklearn.linear_model import ElasticNet from sklearn.model_selection import learning_curve from sklearn.pipeline import Pipeline from sklearn.preprocessing import StandardScaler X, y = load_boston(return_X_y=True) pipe = Pipeline((['preproc', StandardScaler()], ['predict', ElasticNet()])) learning_curve(pipe, X, y) </code></pre></div> <h4 dir="auto">Expected Results</h4> <h4 dir="auto">Actual Results</h4> <p dir="auto"><code class="notranslate">TypeError: 'tuple' object does not support item assignment</code></p> <h4 dir="auto">Versions</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Linux-4.4.0-96-generic-x86_64-with-debian-stretch-sid ('Python', '2.7.13 |Continuum Analytics, Inc.| (default, Dec 20 2016, 23:09:15) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]') ('NumPy', '1.13.1') ('SciPy', '0.19.1') ('Scikit-Learn', '0.19.0')"><pre class="notranslate"><code class="notranslate">Linux-4.4.0-96-generic-x86_64-with-debian-stretch-sid ('Python', '2.7.13 |Continuum Analytics, Inc.| (default, Dec 20 2016, 23:09:15) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]') ('NumPy', '1.13.1') ('SciPy', '0.19.1') ('Scikit-Learn', '0.19.0') </code></pre></div>
<h4 dir="auto">Description</h4> <p dir="auto"><code class="notranslate">TypeError: 'tuple' object does not support item assignment</code> error thrown when calling <code class="notranslate">fit</code> on a <code class="notranslate">Pipeline</code> whose <code class="notranslate">steps</code> parameter was initialized with an n-tuple (as opposed to a list) of (name, transform) tuples.</p> <p dir="auto">Previous versions of sklearn Pipelines worked when an n-tuple was used for <code class="notranslate">steps</code>. I guess new functionality associated with Pipelines now requires that <code class="notranslate">steps</code> be mutable.</p> <p dir="auto">I guess there are a few choices here:</p> <ol dir="auto"> <li>Automatically handle the case of an n-tuple being passed by creating a new list for <code class="notranslate">self.steps</code> and copying over the tuple's items to it. And maybe throw a warning for behavior's deprecation.</li> <li>Throw an immediate error during initialization if <code class="notranslate">steps</code> is a tuple. Of course, this is still a breaking change, but at least, the user won't have to wait until calling <code class="notranslate">fit</code> before discovering something is wrong.</li> </ol> <p dir="auto">I could submit a PR for this if you want.</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.pipeline import Pipeline from sklearn.ensemble import RandomForestClassifier from sklearn.decomposition import PCA from sklearn.datasets import load_breast_cancer pipeline = Pipeline((('pca', PCA()), ('rf', RandomForestClassifier()))) X, y = load_breast_cancer(True) pipeline.fit(X, y)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">pipeline</span> <span class="pl-k">import</span> <span class="pl-v">Pipeline</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">ensemble</span> <span class="pl-k">import</span> <span class="pl-v">RandomForestClassifier</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">decomposition</span> <span class="pl-k">import</span> <span class="pl-v">PCA</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span> <span class="pl-k">import</span> <span class="pl-s1">load_breast_cancer</span> <span class="pl-s1">pipeline</span> <span class="pl-c1">=</span> <span class="pl-v">Pipeline</span>(((<span class="pl-s">'pca'</span>, <span class="pl-v">PCA</span>()), (<span class="pl-s">'rf'</span>, <span class="pl-v">RandomForestClassifier</span>()))) <span class="pl-v">X</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">load_breast_cancer</span>(<span class="pl-c1">True</span>) <span class="pl-s1">pipeline</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)</pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">This had no errors in previous versions</p> <h4 dir="auto">Actual Results</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/usr/local/lib/python2.7/dist-packages/sklearn/pipeline.py&quot;, line 257, in fit Xt, fit_params = self._fit(X, y, **fit_params) File &quot;/usr/local/lib/python2.7/dist-packages/sklearn/pipeline.py&quot;, line 226, in _fit self.steps[step_idx] = (name, fitted_transformer) TypeError: 'tuple' object does not support item assignment "><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/usr/local/lib/python2.7/dist-packages/sklearn/pipeline.py", line 257, in fit Xt, fit_params = self._fit(X, y, **fit_params) File "/usr/local/lib/python2.7/dist-packages/sklearn/pipeline.py", line 226, in _fit self.steps[step_idx] = (name, fitted_transformer) TypeError: 'tuple' object does not support item assignment </code></pre></div> <h4 dir="auto">Versions</h4> <p dir="auto">Linux-4.4.0-36-generic-x86_64-with-Ubuntu-14.04-trusty<br> ('Python', '2.7.6 (default, Jun 22 2015, 17:58:13) \n[GCC 4.8.2]')<br> ('NumPy', '1.13.1')<br> ('SciPy', '0.19.0')<br> ('Scikit-Learn', '0.19.0')</p>
1
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/12566/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/12566/</a></p> <p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Update Demo should create and stop a replication controller [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/kubectl.go:210 Expected error: &lt;*errors.errorString | 0xc820381c10&gt;: { s: &quot;Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.218.12 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-e438n -o template --template={{if (exists . \&quot;status\&quot; \&quot;containerStatuses\&quot;)}}{{range .status.containerStatuses}}{{if (and (eq .name \&quot;update-demo\&quot;) (exists . \&quot;state\&quot; \&quot;running\&quot;))}}true{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-vpkad] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] &lt;nil&gt; 0xc820938680 exit status 1 &lt;nil&gt; true [0xc820de2710 0xc820de2728 0xc820de2740] [0xc820de2710 0xc820de2728 0xc820de2740] [0xc820de2720 0xc820de2738] [0xabd2f0 0xabd2f0] 0xc820e038c0}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n&quot;, } Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.218.12 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-e438n -o template --template={{if (exists . &quot;status&quot; &quot;containerStatuses&quot;)}}{{range .status.containerStatuses}}{{if (and (eq .name &quot;update-demo&quot;) (exists . &quot;state&quot; &quot;running&quot;))}}true{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-vpkad] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. [] &lt;nil&gt; 0xc820938680 exit status 1 &lt;nil&gt; true [0xc820de2710 0xc820de2728 0xc820de2740] [0xc820de2710 0xc820de2728 0xc820de2740] [0xc820de2720 0xc820de2738] [0xabd2f0 0xabd2f0] 0xc820e038c0}: Command stdout: stderr: failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. error: exit status 1 not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:2006"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:210 Expected error: &lt;*errors.errorString | 0xc820381c10&gt;: { s: "Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.218.12 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-e438n -o template --template={{if (exists . \"status\" \"containerStatuses\")}}{{range .status.containerStatuses}}{{if (and (eq .name \"update-demo\") (exists . \"state\" \"running\"))}}true{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-vpkad] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] &lt;nil&gt; 0xc820938680 exit status 1 &lt;nil&gt; true [0xc820de2710 0xc820de2728 0xc820de2740] [0xc820de2710 0xc820de2728 0xc820de2740] [0xc820de2720 0xc820de2738] [0xabd2f0 0xabd2f0] 0xc820e038c0}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n", } Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.218.12 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-e438n -o template --template={{if (exists . "status" "containerStatuses")}}{{range .status.containerStatuses}}{{if (and (eq .name "update-demo") (exists . "state" "running"))}}true{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-vpkad] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. [] &lt;nil&gt; 0xc820938680 exit status 1 &lt;nil&gt; true [0xc820de2710 0xc820de2728 0xc820de2740] [0xc820de2710 0xc820de2728 0xc820de2740] [0xc820de2720 0xc820de2738] [0xabd2f0 0xabd2f0] 0xc820e038c0}: Command stdout: stderr: failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. error: exit status 1 not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:2006 </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164204998" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28565" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28565/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28565">#28565</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="165981728" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29072" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29072/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29072">#29072</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="166890122" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29390" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29390/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29390">#29390</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="167780962" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29659" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29659/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29659">#29659</a></p>
<p dir="auto"><code class="notranslate">error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.</code> appears in a lot of flakes. Speculation is that the metadata server is slow to respond.</p> <p dir="auto">So far, these are the issues where this message has popped up:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164220053" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28569" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28569/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28569">#28569</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164204998" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28565" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28565/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28565">#28565</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163991819" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28523" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28523/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28523">#28523</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163933215" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28507" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28507/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28507">#28507</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163811600" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28493" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28493/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28493">#28493</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163579268" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28439" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28439/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28439">#28439</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163578278" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28437" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28437/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28437">#28437</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163545161" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28429" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28429/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28429">#28429</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163541783" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28426" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28426/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28426">#28426</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163533035" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28420" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28420/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28420">#28420</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163207971" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28293" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28293/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28293">#28293</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162029512" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27976" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27976/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27976">#27976</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161598746" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27839" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27839/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27839">#27839</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161178789" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27715" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27715/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27715">#27715</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159529335" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27156" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27156/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27156">#27156</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158173781" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26715" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26715/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26715">#26715</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157357173" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26490" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26490/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26490">#26490</a></p> <p dir="auto">Sample failed run: <a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10664" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10664</a></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cjcullen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cjcullen">@cjcullen</a> since this is dealing with auth, I'm initially assigning to you. Feel free to reassign to someone more appropriate.</p>
1
<p dir="auto">by <strong><a href="mailto:google@barrera.io">google@barrera.io</a></strong>:</p> <pre class="notranslate">$ go version go version go1.2.2 linux/amd64 $ cat test.go package main import "net" import "fmt" func main() { conn, err := net.Dial("tcp", "google.com:80") if err != nil { fmt.Println(err) } fmt.Fprintf(conn, "GET / HTTP/1.0\r\n\r\n") } $ go run test.go dial tcp 173.194.42.72:80: network is unreachable --- This is happening on an IPv6-only host, so there should be no attempt to connect to the above IPv4, and instead, try the IPv6 (eg: the AAAA record) one instead.</pre>
<pre class="notranslate">Forking this from <a href="https://golang.org/issue/3610" rel="nofollow">issue #3610</a>. My experiments show that net.Dial has two modes of operation when connecting to a dual-stack hostname: 1. By default, it prefers IPv4 :( 2. When using a net.Dialer{DualStack: true}, IPv4 and IPv6 SYNs are sent simultaneously, and the resulting address family is unpredictable. The latter violates a "MUST" in the Happy Eyeballs RFC: <a href="http://tools.ietf.org/html/rfc6555#section-4.1" rel="nofollow">http://tools.ietf.org/html/rfc6555#section-4.1</a> This is harmful for two reasons: - It increases server load in the common case, by always sending two SYNs. - Dual-stack clients cannot reliably use IPv6 to route around NATs. The primary incentive for a network operator to deploy IPv6 is to reduce NAT load (and therefore save money), but this sort of client behavior invalidates that incentive.</pre>
1
<p dir="auto">julia 0.3.3 on Mac OSX 10.9.4/amd64</p> <p dir="auto">When I re-define a function, any other functions that call that function need to be recompiled to use the new definition.</p> <p dir="auto">Here is a simple example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; function f() print(&quot;f called\n&quot;) end f (generic function with 1 method) julia&gt; function g() print(&quot;g, pre-f\n&quot;); f(); print(&quot;g, post-f\n&quot;) end g (generic function with 1 method) julia&gt; g() g, pre-f f called g, post-f julia&gt; function f() print(&quot;hi, I'm a new definition of f \n&quot;) end f (generic function with 1 method) julia&gt; g() g, pre-f f called &lt;&lt;&lt;&lt;&lt;&lt;&lt; ARG, WHAT?! g, post-f julia&gt; "><pre class="notranslate"><code class="notranslate">julia&gt; function f() print("f called\n") end f (generic function with 1 method) julia&gt; function g() print("g, pre-f\n"); f(); print("g, post-f\n") end g (generic function with 1 method) julia&gt; g() g, pre-f f called g, post-f julia&gt; function f() print("hi, I'm a new definition of f \n") end f (generic function with 1 method) julia&gt; g() g, pre-f f called &lt;&lt;&lt;&lt;&lt;&lt;&lt; ARG, WHAT?! g, post-f julia&gt; </code></pre></div>
<p dir="auto">if I define a function d2 before a function d1 which calls d2 then change d2, d1 uses the old definition for d2.<br> I assume this is because it is all precompiled, but maybe there should be a note warning of this? Or would it be possible to replace the old definition with a longjmp to the new one?<br> (Mostly important for the REPL, since I don't always do a full load)</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; function d2() a end julia&gt; function d() d2() end julia&gt; d() in d: a not defined julia&gt; function d2() b=2 end julia&gt; d() in d: a not defined julia&gt; d2 Methods for generic function d2 d2() at prompt:2 julia&gt; function d() d2() end julia&gt; d() 2"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">d2</span>() a <span class="pl-k">end</span> julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">d</span>() <span class="pl-c1">d2</span>() <span class="pl-k">end</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">d</span>() in d<span class="pl-k">:</span> a not defined julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">d2</span>() b<span class="pl-k">=</span><span class="pl-c1">2</span> <span class="pl-k">end</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">d</span>() in d<span class="pl-k">:</span> a not defined julia<span class="pl-k">&gt;</span> d2 Methods <span class="pl-k">for</span> generic <span class="pl-k">function</span> d2 <span class="pl-c1">d2</span>() at prompt<span class="pl-k">:</span><span class="pl-c1">2</span> julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">d</span>() <span class="pl-c1">d2</span>() <span class="pl-k">end</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">d</span>() <span class="pl-c1">2</span></pre></div>
1
<h2 dir="auto">Problem</h2> <p dir="auto">Most Linux distribution provide <code class="notranslate">python2</code> as Python 2 program, yet python scripts within the repo still use <code class="notranslate">#! /usr/bin/env python</code> making it impossible to run them on Linux outside Docker sandbox.</p> <h2 dir="auto">Suggestion</h2> <p dir="auto">Change these shebangs to <code class="notranslate">#! /usr/bin/env python2</code></p>
<p dir="auto">hello!<br> I have built deno in my <strong>Manjaro</strong>. But Manjaro use python3 for default python.So I get a error.<br> Can use python2 instead of python in the build script .</p> <p dir="auto">thank.</p>
1
<p dir="auto">The application was created from scratch and untouched. I am able to detect the 3 devices I tried with (1 emulator and 2 different model physical devices). All had the same error when attempting to run. Please see the details below:</p> <p dir="auto"><strong>$ flutter doctor -v</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.14393], locale en-US) • Flutter version 0.5.1 at C:\flutter • Framework revision c7ea3ca377 (8 weeks ago), 2018-05-29 21:07:33 +0200 • Engine revision 1ed25ca7b7 • Dart version 2.0.0-dev.58.0.flutter-f981f09760 Error retrieving device properties for ro.product.cpu.abi: [√] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at C:\Users\khewitt\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) • All Android licenses accepted. [√] Android Studio (version 3.1) • Android Studio at C:\Program Files\Android\Android Studio X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) [!] VS Code, 32-bit edition (version 1.24.1) • VS Code at C:\Program Files (x86)\Microsoft VS Code • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [√] Connected devices (1 available) • SM J111M • 4200552adea38200 • android-arm • Android null (API null) ! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.14393], locale en-US) • Flutter version 0.5.1 at C:\flutter • Framework revision c7ea3ca377 (8 weeks ago), 2018-05-29 21:07:33 +0200 • Engine revision 1ed25ca7b7 • Dart version 2.0.0-dev.58.0.flutter-f981f09760 Error retrieving device properties for ro.product.cpu.abi: [√] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at C:\Users\khewitt\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) • All Android licenses accepted. [√] Android Studio (version 3.1) • Android Studio at C:\Program Files\Android\Android Studio X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) [!] VS Code, 32-bit edition (version 1.24.1) • VS Code at C:\Program Files (x86)\Microsoft VS Code • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [√] Connected devices (1 available) • SM J111M • 4200552adea38200 • android-arm • Android null (API null) ! Doctor found issues in 1 category. </code></pre></div> <h3 dir="auto">This happens when i try to run</h3> <p dir="auto"><strong>$ flutter run -v</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ +54 ms] [C:\flutter\] git rev-parse --abbrev-ref --symbolic @{u} [ +162 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/beta [ ] [C:\flutter\] git rev-parse --abbrev-ref HEAD [ +96 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] beta [ ] [C:\flutter\] git ls-remote --get-url origin [ +97 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [C:\flutter\] git log -n 1 --pretty=format:%H [ +104 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] c7ea3ca377e909469c68f2ab878a5bc53d3cf66b [ ] [C:\flutter\] git log -n 1 --pretty=format:%ar [ +111 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 8 weeks ago [ ] [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags [ +118 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.5.1-0-gc7ea3ca37 [ +583 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb devices -l [+4183 ms] Exit code 0 from: C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb devices -l [ ] List of devices attached 4200552adea38200 device product:j1acevelteub model:SM_J111M device:j1acevelte transport_id:1 [ +271 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 shell getprop [ +191 ms] Error retrieving device properties for ro.product.cpu.abi: [ +2 ms] ro.hardware = null [ ] ro.build.characteristics = null [ +792 ms] Launching lib/main.dart on SM J111M in debug mode... [ +8 ms] Initializing gradle... [ ] Using gradle from C:\Development\Flutter\jcoapp\android\gradlew.bat. [ +241 ms] C:\Development\Flutter\jcoapp\android\gradlew.bat -v [ +800 ms] ------------------------------------------------------------ Gradle 4.1 ------------------------------------------------------------ Build time: 2017-08-07 14:38:48 UTC Revision: 941559e020f6c357ebb08d5c67acdb858a3defc2 Groovy: 2.4.11 Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b02) OS: Windows 10 10.0 amd64 [ +2 ms] Resolving dependencies... [ ] [android\] C:\Development\Flutter\jcoapp\android\gradlew.bat app:properties [+2250 ms] :app:properties ------------------------------------------------------------ Project :app ------------------------------------------------------------ allprojects: [project ':app'] android: com.android.build.gradle.AppExtension_Decorated@21958ff4 androidDependencies: task ':app:androidDependencies' ant: org.gradle.api.internal.project.DefaultAntBuilder@1d22313b antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@47cfa0a0 archivesBaseName: app artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@5facd275 asDynamicObject: DynamicObject for project ':app' assemble: task ':app:assemble' assembleAndroidTest: task ':app:assembleAndroidTest' assembleDebug: task ':app:assembleDebug' assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest' assembleDebugUnitTest: task ':app:assembleDebugUnitTest' assembleProfile: task ':app:assembleProfile' assembleProfileUnitTest: task ':app:assembleProfileUnitTest' assembleRelease: task ':app:assembleRelease' assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest' baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@52cb0c5b buildDependents: task ':app:buildDependents' buildDir: C:\Development\Flutter\jcoapp\build\app buildFile: C:\Development\Flutter\jcoapp\android\app\build.gradle buildNeeded: task ':app:buildNeeded' buildOutputs: BaseVariantOutput container buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@5eec44d0 buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@641c350d bundleAppClassesDebug: task ':app:bundleAppClassesDebug' bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest' bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest' bundleAppClassesProfile: task ':app:bundleAppClassesProfile' bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest' bundleAppClassesRelease: task ':app:bundleAppClassesRelease' bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest' check: task ':app:check' checkDebugManifest: task ':app:checkDebugManifest' checkProfileManifest: task ':app:checkProfileManifest' checkReleaseManifest: task ':app:checkReleaseManifest' childProjects: {} class: class org.gradle.api.internal.project.DefaultProject_Decorated classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@5d9a6c81 cleanBuildCache: task ':app:cleanBuildCache' compileDebugAidl: task ':app:compileDebugAidl' compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl' compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac' compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk' compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript' compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders' compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources' compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac' compileDebugNdk: task ':app:compileDebugNdk' compileDebugRenderscript: task ':app:compileDebugRenderscript' compileDebugShaders: task ':app:compileDebugShaders' compileDebugSources: task ':app:compileDebugSources' compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac' compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources' compileLint: task ':app:compileLint' compileProfileAidl: task ':app:compileProfileAidl' compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac' compileProfileNdk: task ':app:compileProfileNdk' compileProfileRenderscript: task ':app:compileProfileRenderscript' compileProfileShaders: task ':app:compileProfileShaders' compileProfileSources: task ':app:compileProfileSources' compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac' compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources' compileReleaseAidl: task ':app:compileReleaseAidl' compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac' compileReleaseNdk: task ':app:compileReleaseNdk' compileReleaseRenderscript: task ':app:compileReleaseRenderscript' compileReleaseShaders: task ':app:compileReleaseShaders' compileReleaseSources: task ':app:compileReleaseSources' compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac' compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources' components: SoftwareComponentInternal set configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@57391abd configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@6b4f1e4e configurations: configuration container connectedAndroidTest: task ':app:connectedAndroidTest' connectedCheck: task ':app:connectedCheck' connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest' consumeConfigAttr: task ':app:consumeConfigAttr' convention: org.gradle.api.internal.plugins.DefaultConvention@6efeea77 copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug' copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile' copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease' createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests' createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests' createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests' defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@608e6d4d defaultTasks: [] deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@7ffd7f13 dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@6cd3b3cc depth: 1 description: null deviceAndroidTest: task ':app:deviceAndroidTest' deviceCheck: task ':app:deviceCheck' displayName: project ':app' distsDir: C:\Development\Flutter\jcoapp\build\app\distributions distsDirName: distributions docsDir: C:\Development\Flutter\jcoapp\build\app\docs docsDirName: docs ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@75674173 extensions: org.gradle.api.internal.plugins.DefaultConvention@6efeea77 extractProguardFiles: task ':app:extractProguardFiles' fileOperations: org.gradle.api.internal.file.DefaultFileOperations@6690ae97 fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@728140b1 flutter: FlutterExtension_Decorated@33dd0fe flutterBuildDebug: task ':app:flutterBuildDebug' flutterBuildProfile: task ':app:flutterBuildProfile' flutterBuildRelease: task ':app:flutterBuildRelease' flutterBuildX86Jar: task ':app:flutterBuildX86Jar' generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets' generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig' generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues' generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources' generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources' generateDebugAssets: task ':app:generateDebugAssets' generateDebugBuildConfig: task ':app:generateDebugBuildConfig' generateDebugResValues: task ':app:generateDebugResValues' generateDebugResources: task ':app:generateDebugResources' generateDebugSources: task ':app:generateDebugSources' generateProfileAssets: task ':app:generateProfileAssets' generateProfileBuildConfig: task ':app:generateProfileBuildConfig' generateProfileResValues: task ':app:generateProfileResValues' generateProfileResources: task ':app:generateProfileResources' generateProfileSources: task ':app:generateProfileSources' generateReleaseAssets: task ':app:generateReleaseAssets' generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig' generateReleaseResValues: task ':app:generateReleaseResValues' generateReleaseResources: task ':app:generateReleaseResources' generateReleaseSources: task ':app:generateReleaseSources' gradle: build 'android' group: android identityPath: :app inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@4c1e7533 installDebug: task ':app:installDebug' installDebugAndroidTest: task ':app:installDebugAndroidTest' installProfile: task ':app:installProfile' installRelease: task ':app:installRelease' javaPreCompileDebug: task ':app:javaPreCompileDebug' javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest' javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest' javaPreCompileProfile: task ':app:javaPreCompileProfile' javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest' javaPreCompileRelease: task ':app:javaPreCompileRelease' javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest' layout: org.gradle.api.internal.file.DefaultProjectLayout@2f199e31 libsDir: C:\Development\Flutter\jcoapp\build\app\libs libsDirName: libs lint: task ':app:lint' lintDebug: task ':app:lintDebug' lintProfile: task ':app:lintProfile' lintRelease: task ':app:lintRelease' lintVitalRelease: task ':app:lintVitalRelease' logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@4cb7bdec logging: org.gradle.internal.logging.services.DefaultLoggingManager@57e5d7ab mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets' mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders' mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources' mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders' mergeDebugAssets: task ':app:mergeDebugAssets' mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders' mergeDebugResources: task ':app:mergeDebugResources' mergeDebugShaders: task ':app:mergeDebugShaders' mergeProfileAssets: task ':app:mergeProfileAssets' mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders' mergeProfileResources: task ':app:mergeProfileResources' mergeProfileShaders: task ':app:mergeProfileShaders' mergeReleaseAssets: task ':app:mergeReleaseAssets' mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders' mergeReleaseResources: task ':app:mergeReleaseResources' mergeReleaseShaders: task ':app:mergeReleaseShaders' mockableAndroidJar: task ':app:mockableAndroidJar' modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@3a324789 modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@27e33fe6 module: org.gradle.api.internal.artifacts.ProjectBackedModule@5ba7adb2 name: app normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@5ba1a11 objects: org.gradle.api.internal.model.DefaultObjectFactory@64734f68 org.gradle.jvmargs: -Xmx1536M packageDebug: task ':app:packageDebug' packageDebugAndroidTest: task ':app:packageDebugAndroidTest' packageProfile: task ':app:packageProfile' packageRelease: task ':app:packageRelease' parent: root project 'android' parentIdentifier: root project 'android' path: :app platformAttrExtractor: task ':app:platformAttrExtractor' pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@66b1e481 plugins: [org.gradle.api.plugins.HelpTasksPlugin@7c64ac5f, com.android.build.gradle.api.AndroidBasePlugin@1d64ddcc, org.gradle.language.base.plugins.LifecycleBasePlugin@782c5efe, org.gradle.api.plugins.BasePlugin@268748a7, org.gradle.api.plugins.ReportingBasePlugin@25c29f73, org.gradle.platform.base.plugins.ComponentBasePlugin@2e52ec7, org.gradle.language.base.plugins.LanguageBasePlugin@33ed00ef, org.gradle.platform.base.plugins.BinaryBasePlugin@206f1c5e, org.gradle.api.plugins.JavaBasePlugin@54cd963c, com.android.build.gradle.internal.coverage.JacocoPlugin@47e68268, com.android.build.gradle.AppPlugin@b9eafb0, FlutterPlugin@53fdf091] preBuild: task ':app:preBuild' preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild' preDebugBuild: task ':app:preDebugBuild' preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild' preProfileBuild: task ':app:preProfileBuild' preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild' preReleaseBuild: task ':app:preReleaseBuild' preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild' prepareLintJar: task ':app:prepareLintJar' processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes' processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest' processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources' processDebugJavaRes: task ':app:processDebugJavaRes' processDebugManifest: task ':app:processDebugManifest' processDebugResources: task ':app:processDebugResources' processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes' processOperations: org.gradle.api.internal.file.DefaultFileOperations@6690ae97 processProfileJavaRes: task ':app:processProfileJavaRes' processProfileManifest: task ':app:processProfileManifest' processProfileResources: task ':app:processProfileResources' processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes' processReleaseJavaRes: task ':app:processReleaseJavaRes' processReleaseManifest: task ':app:processReleaseManifest' processReleaseResources: task ':app:processReleaseResources' processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes' project: project ':app' projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@1f902f73 projectDir: C:\Development\Flutter\jcoapp\android\app projectEvaluationBroadcaster: ProjectEvaluationListener broadcast projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@37363d07 projectPath: :app projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@6289c362 properties: {...} providers: org.gradle.api.internal.provider.DefaultProviderFactory@5fd2bed3 reporting: org.gradle.api.reporting.ReportingExtension_Decorated@b75a65e reportsDir: C:\Development\Flutter\jcoapp\build\app\reports repositories: repository container resolveConfigAttr: task ':app:resolveConfigAttr' resources: org.gradle.api.internal.resources.DefaultResourceHandler@1580ebf4 rootDir: C:\Development\Flutter\jcoapp\android rootProject: root project 'android' scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@13d82246 scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@3fe6618c serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@19876778 services: ProjectScopeServices signingReport: task ':app:signingReport' sourceCompatibility: 1.8 sourceSets: SourceSet container splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug' splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest' splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile' splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease' standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@57e5d7ab state: project state 'EXECUTED' status: integration subprojects: [] targetCompatibility: 1.8 tasks: task set test: task ':app:test' testDebugUnitTest: task ':app:testDebugUnitTest' testProfileUnitTest: task ':app:testProfileUnitTest' testReleaseUnitTest: task ':app:testReleaseUnitTest' testReportDir: C:\Development\Flutter\jcoapp\build\app\reports\tests testReportDirName: tests testResultsDir: C:\Development\Flutter\jcoapp\build\app\test-results testResultsDirName: test-results transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug' transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest' transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile' transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease' transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug' transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest' transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile' transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest' transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile' transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease' transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug' transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest' transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile' transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease' transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug' transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest' transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest' transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile' transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest' transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease' transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest' uninstallAll: task ':app:uninstallAll' uninstallDebug: task ':app:uninstallDebug' uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest' uninstallProfile: task ':app:uninstallProfile' uninstallRelease: task ':app:uninstallRelease' validateSigningDebug: task ':app:validateSigningDebug' validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest' validateSigningProfile: task ':app:validateSigningProfile' validateSigningRelease: task ':app:validateSigningRelease' version: unspecified writeDebugApplicationId: task ':app:writeDebugApplicationId' writeProfileApplicationId: task ':app:writeProfileApplicationId' writeReleaseApplicationId: task ':app:writeReleaseApplicationId' BUILD SUCCESSFUL in 2s 1 actionable task: 1 executed [ +54 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 logcat -v time -t 1 [ +209 ms] Exit code 0 from: C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 logcat -v time -t 1 [ ] --------- beginning of system 07-21 13:30:05.225 D/SSRM:n ( 724): SIOP:: AP = 340, CUR = 366, LCD = 0 [ +2 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 logcat -v time [ +9 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb version [ +147 ms] Android Debug Bridge version 1.0.39 Version 0.0.1-4500957 Installed as C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb.EXE [ +5 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb start-server [ +168 ms] Unexpected failure from adb: Invalid argument(s): The source must not be null [ ] Error launching application on SM J111M. [ +18 ms] &quot;flutter run&quot; took 9,762ms. #0 throwToolExit (package:flutter_tools/src/base/common.dart:28) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:401) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:344) &lt;asynchronous suspension&gt; #3 FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:279) &lt;asynchronous suspension&gt; #4 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #5 _rootRun (dart:async/zone.dart:1126) #6 _CustomZone.run (dart:async/zone.dart:1023) #7 runZoned (dart:async/zone.dart:1501) #8 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #9 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270) #10 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #11 FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:309) &lt;asynchronous suspension&gt; #12 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #13 _rootRun (dart:async/zone.dart:1126) #14 _CustomZone.run (dart:async/zone.dart:1023) #15 runZoned (dart:async/zone.dart:1501) #16 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #17 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265) &lt;asynchronous suspension&gt; #18 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #19 new Future.sync (dart:async/future.dart:222) #20 CommandRunner.run (package:args/command_runner.dart:109) #21 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174) #22 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:59) &lt;asynchronous suspension&gt; #23 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #24 _rootRun (dart:async/zone.dart:1126) #25 _CustomZone.run (dart:async/zone.dart:1023) #26 runZoned (dart:async/zone.dart:1501) #27 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #28 runInContext (package:flutter_tools/src/context_runner.dart:43) &lt;asynchronous suspension&gt; #29 run (package:flutter_tools/runner.dart:50) #30 main (package:flutter_tools/executable.dart:49) &lt;asynchronous suspension&gt; #31 main (file:///E:/b/build/slave/Windows_Flutter_Packaging/build/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8) #32 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #33 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)"><pre class="notranslate"><code class="notranslate">[ +54 ms] [C:\flutter\] git rev-parse --abbrev-ref --symbolic @{u} [ +162 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/beta [ ] [C:\flutter\] git rev-parse --abbrev-ref HEAD [ +96 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] beta [ ] [C:\flutter\] git ls-remote --get-url origin [ +97 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [C:\flutter\] git log -n 1 --pretty=format:%H [ +104 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] c7ea3ca377e909469c68f2ab878a5bc53d3cf66b [ ] [C:\flutter\] git log -n 1 --pretty=format:%ar [ +111 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 8 weeks ago [ ] [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags [ +118 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.5.1-0-gc7ea3ca37 [ +583 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb devices -l [+4183 ms] Exit code 0 from: C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb devices -l [ ] List of devices attached 4200552adea38200 device product:j1acevelteub model:SM_J111M device:j1acevelte transport_id:1 [ +271 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 shell getprop [ +191 ms] Error retrieving device properties for ro.product.cpu.abi: [ +2 ms] ro.hardware = null [ ] ro.build.characteristics = null [ +792 ms] Launching lib/main.dart on SM J111M in debug mode... [ +8 ms] Initializing gradle... [ ] Using gradle from C:\Development\Flutter\jcoapp\android\gradlew.bat. [ +241 ms] C:\Development\Flutter\jcoapp\android\gradlew.bat -v [ +800 ms] ------------------------------------------------------------ Gradle 4.1 ------------------------------------------------------------ Build time: 2017-08-07 14:38:48 UTC Revision: 941559e020f6c357ebb08d5c67acdb858a3defc2 Groovy: 2.4.11 Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b02) OS: Windows 10 10.0 amd64 [ +2 ms] Resolving dependencies... [ ] [android\] C:\Development\Flutter\jcoapp\android\gradlew.bat app:properties [+2250 ms] :app:properties ------------------------------------------------------------ Project :app ------------------------------------------------------------ allprojects: [project ':app'] android: com.android.build.gradle.AppExtension_Decorated@21958ff4 androidDependencies: task ':app:androidDependencies' ant: org.gradle.api.internal.project.DefaultAntBuilder@1d22313b antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@47cfa0a0 archivesBaseName: app artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@5facd275 asDynamicObject: DynamicObject for project ':app' assemble: task ':app:assemble' assembleAndroidTest: task ':app:assembleAndroidTest' assembleDebug: task ':app:assembleDebug' assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest' assembleDebugUnitTest: task ':app:assembleDebugUnitTest' assembleProfile: task ':app:assembleProfile' assembleProfileUnitTest: task ':app:assembleProfileUnitTest' assembleRelease: task ':app:assembleRelease' assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest' baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@52cb0c5b buildDependents: task ':app:buildDependents' buildDir: C:\Development\Flutter\jcoapp\build\app buildFile: C:\Development\Flutter\jcoapp\android\app\build.gradle buildNeeded: task ':app:buildNeeded' buildOutputs: BaseVariantOutput container buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@5eec44d0 buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@641c350d bundleAppClassesDebug: task ':app:bundleAppClassesDebug' bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest' bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest' bundleAppClassesProfile: task ':app:bundleAppClassesProfile' bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest' bundleAppClassesRelease: task ':app:bundleAppClassesRelease' bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest' check: task ':app:check' checkDebugManifest: task ':app:checkDebugManifest' checkProfileManifest: task ':app:checkProfileManifest' checkReleaseManifest: task ':app:checkReleaseManifest' childProjects: {} class: class org.gradle.api.internal.project.DefaultProject_Decorated classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@5d9a6c81 cleanBuildCache: task ':app:cleanBuildCache' compileDebugAidl: task ':app:compileDebugAidl' compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl' compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac' compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk' compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript' compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders' compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources' compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac' compileDebugNdk: task ':app:compileDebugNdk' compileDebugRenderscript: task ':app:compileDebugRenderscript' compileDebugShaders: task ':app:compileDebugShaders' compileDebugSources: task ':app:compileDebugSources' compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac' compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources' compileLint: task ':app:compileLint' compileProfileAidl: task ':app:compileProfileAidl' compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac' compileProfileNdk: task ':app:compileProfileNdk' compileProfileRenderscript: task ':app:compileProfileRenderscript' compileProfileShaders: task ':app:compileProfileShaders' compileProfileSources: task ':app:compileProfileSources' compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac' compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources' compileReleaseAidl: task ':app:compileReleaseAidl' compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac' compileReleaseNdk: task ':app:compileReleaseNdk' compileReleaseRenderscript: task ':app:compileReleaseRenderscript' compileReleaseShaders: task ':app:compileReleaseShaders' compileReleaseSources: task ':app:compileReleaseSources' compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac' compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources' components: SoftwareComponentInternal set configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@57391abd configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@6b4f1e4e configurations: configuration container connectedAndroidTest: task ':app:connectedAndroidTest' connectedCheck: task ':app:connectedCheck' connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest' consumeConfigAttr: task ':app:consumeConfigAttr' convention: org.gradle.api.internal.plugins.DefaultConvention@6efeea77 copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug' copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile' copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease' createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests' createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests' createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests' defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@608e6d4d defaultTasks: [] deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@7ffd7f13 dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@6cd3b3cc depth: 1 description: null deviceAndroidTest: task ':app:deviceAndroidTest' deviceCheck: task ':app:deviceCheck' displayName: project ':app' distsDir: C:\Development\Flutter\jcoapp\build\app\distributions distsDirName: distributions docsDir: C:\Development\Flutter\jcoapp\build\app\docs docsDirName: docs ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@75674173 extensions: org.gradle.api.internal.plugins.DefaultConvention@6efeea77 extractProguardFiles: task ':app:extractProguardFiles' fileOperations: org.gradle.api.internal.file.DefaultFileOperations@6690ae97 fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@728140b1 flutter: FlutterExtension_Decorated@33dd0fe flutterBuildDebug: task ':app:flutterBuildDebug' flutterBuildProfile: task ':app:flutterBuildProfile' flutterBuildRelease: task ':app:flutterBuildRelease' flutterBuildX86Jar: task ':app:flutterBuildX86Jar' generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets' generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig' generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues' generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources' generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources' generateDebugAssets: task ':app:generateDebugAssets' generateDebugBuildConfig: task ':app:generateDebugBuildConfig' generateDebugResValues: task ':app:generateDebugResValues' generateDebugResources: task ':app:generateDebugResources' generateDebugSources: task ':app:generateDebugSources' generateProfileAssets: task ':app:generateProfileAssets' generateProfileBuildConfig: task ':app:generateProfileBuildConfig' generateProfileResValues: task ':app:generateProfileResValues' generateProfileResources: task ':app:generateProfileResources' generateProfileSources: task ':app:generateProfileSources' generateReleaseAssets: task ':app:generateReleaseAssets' generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig' generateReleaseResValues: task ':app:generateReleaseResValues' generateReleaseResources: task ':app:generateReleaseResources' generateReleaseSources: task ':app:generateReleaseSources' gradle: build 'android' group: android identityPath: :app inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@4c1e7533 installDebug: task ':app:installDebug' installDebugAndroidTest: task ':app:installDebugAndroidTest' installProfile: task ':app:installProfile' installRelease: task ':app:installRelease' javaPreCompileDebug: task ':app:javaPreCompileDebug' javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest' javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest' javaPreCompileProfile: task ':app:javaPreCompileProfile' javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest' javaPreCompileRelease: task ':app:javaPreCompileRelease' javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest' layout: org.gradle.api.internal.file.DefaultProjectLayout@2f199e31 libsDir: C:\Development\Flutter\jcoapp\build\app\libs libsDirName: libs lint: task ':app:lint' lintDebug: task ':app:lintDebug' lintProfile: task ':app:lintProfile' lintRelease: task ':app:lintRelease' lintVitalRelease: task ':app:lintVitalRelease' logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@4cb7bdec logging: org.gradle.internal.logging.services.DefaultLoggingManager@57e5d7ab mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets' mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders' mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources' mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders' mergeDebugAssets: task ':app:mergeDebugAssets' mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders' mergeDebugResources: task ':app:mergeDebugResources' mergeDebugShaders: task ':app:mergeDebugShaders' mergeProfileAssets: task ':app:mergeProfileAssets' mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders' mergeProfileResources: task ':app:mergeProfileResources' mergeProfileShaders: task ':app:mergeProfileShaders' mergeReleaseAssets: task ':app:mergeReleaseAssets' mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders' mergeReleaseResources: task ':app:mergeReleaseResources' mergeReleaseShaders: task ':app:mergeReleaseShaders' mockableAndroidJar: task ':app:mockableAndroidJar' modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@3a324789 modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@27e33fe6 module: org.gradle.api.internal.artifacts.ProjectBackedModule@5ba7adb2 name: app normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@5ba1a11 objects: org.gradle.api.internal.model.DefaultObjectFactory@64734f68 org.gradle.jvmargs: -Xmx1536M packageDebug: task ':app:packageDebug' packageDebugAndroidTest: task ':app:packageDebugAndroidTest' packageProfile: task ':app:packageProfile' packageRelease: task ':app:packageRelease' parent: root project 'android' parentIdentifier: root project 'android' path: :app platformAttrExtractor: task ':app:platformAttrExtractor' pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@66b1e481 plugins: [org.gradle.api.plugins.HelpTasksPlugin@7c64ac5f, com.android.build.gradle.api.AndroidBasePlugin@1d64ddcc, org.gradle.language.base.plugins.LifecycleBasePlugin@782c5efe, org.gradle.api.plugins.BasePlugin@268748a7, org.gradle.api.plugins.ReportingBasePlugin@25c29f73, org.gradle.platform.base.plugins.ComponentBasePlugin@2e52ec7, org.gradle.language.base.plugins.LanguageBasePlugin@33ed00ef, org.gradle.platform.base.plugins.BinaryBasePlugin@206f1c5e, org.gradle.api.plugins.JavaBasePlugin@54cd963c, com.android.build.gradle.internal.coverage.JacocoPlugin@47e68268, com.android.build.gradle.AppPlugin@b9eafb0, FlutterPlugin@53fdf091] preBuild: task ':app:preBuild' preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild' preDebugBuild: task ':app:preDebugBuild' preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild' preProfileBuild: task ':app:preProfileBuild' preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild' preReleaseBuild: task ':app:preReleaseBuild' preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild' prepareLintJar: task ':app:prepareLintJar' processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes' processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest' processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources' processDebugJavaRes: task ':app:processDebugJavaRes' processDebugManifest: task ':app:processDebugManifest' processDebugResources: task ':app:processDebugResources' processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes' processOperations: org.gradle.api.internal.file.DefaultFileOperations@6690ae97 processProfileJavaRes: task ':app:processProfileJavaRes' processProfileManifest: task ':app:processProfileManifest' processProfileResources: task ':app:processProfileResources' processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes' processReleaseJavaRes: task ':app:processReleaseJavaRes' processReleaseManifest: task ':app:processReleaseManifest' processReleaseResources: task ':app:processReleaseResources' processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes' project: project ':app' projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@1f902f73 projectDir: C:\Development\Flutter\jcoapp\android\app projectEvaluationBroadcaster: ProjectEvaluationListener broadcast projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@37363d07 projectPath: :app projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@6289c362 properties: {...} providers: org.gradle.api.internal.provider.DefaultProviderFactory@5fd2bed3 reporting: org.gradle.api.reporting.ReportingExtension_Decorated@b75a65e reportsDir: C:\Development\Flutter\jcoapp\build\app\reports repositories: repository container resolveConfigAttr: task ':app:resolveConfigAttr' resources: org.gradle.api.internal.resources.DefaultResourceHandler@1580ebf4 rootDir: C:\Development\Flutter\jcoapp\android rootProject: root project 'android' scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@13d82246 scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@3fe6618c serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@19876778 services: ProjectScopeServices signingReport: task ':app:signingReport' sourceCompatibility: 1.8 sourceSets: SourceSet container splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug' splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest' splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile' splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease' standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@57e5d7ab state: project state 'EXECUTED' status: integration subprojects: [] targetCompatibility: 1.8 tasks: task set test: task ':app:test' testDebugUnitTest: task ':app:testDebugUnitTest' testProfileUnitTest: task ':app:testProfileUnitTest' testReleaseUnitTest: task ':app:testReleaseUnitTest' testReportDir: C:\Development\Flutter\jcoapp\build\app\reports\tests testReportDirName: tests testResultsDir: C:\Development\Flutter\jcoapp\build\app\test-results testResultsDirName: test-results transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug' transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest' transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile' transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease' transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug' transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest' transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile' transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest' transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile' transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease' transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug' transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest' transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile' transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease' transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug' transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest' transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest' transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile' transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest' transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease' transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest' uninstallAll: task ':app:uninstallAll' uninstallDebug: task ':app:uninstallDebug' uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest' uninstallProfile: task ':app:uninstallProfile' uninstallRelease: task ':app:uninstallRelease' validateSigningDebug: task ':app:validateSigningDebug' validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest' validateSigningProfile: task ':app:validateSigningProfile' validateSigningRelease: task ':app:validateSigningRelease' version: unspecified writeDebugApplicationId: task ':app:writeDebugApplicationId' writeProfileApplicationId: task ':app:writeProfileApplicationId' writeReleaseApplicationId: task ':app:writeReleaseApplicationId' BUILD SUCCESSFUL in 2s 1 actionable task: 1 executed [ +54 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 logcat -v time -t 1 [ +209 ms] Exit code 0 from: C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 logcat -v time -t 1 [ ] --------- beginning of system 07-21 13:30:05.225 D/SSRM:n ( 724): SIOP:: AP = 340, CUR = 366, LCD = 0 [ +2 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb -s 4200552adea38200 logcat -v time [ +9 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb version [ +147 ms] Android Debug Bridge version 1.0.39 Version 0.0.1-4500957 Installed as C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb.EXE [ +5 ms] C:\Users\khewitt\AppData\Local\Android\sdk\platform-tools\adb start-server [ +168 ms] Unexpected failure from adb: Invalid argument(s): The source must not be null [ ] Error launching application on SM J111M. [ +18 ms] "flutter run" took 9,762ms. #0 throwToolExit (package:flutter_tools/src/base/common.dart:28) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:401) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:344) &lt;asynchronous suspension&gt; #3 FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:279) &lt;asynchronous suspension&gt; #4 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #5 _rootRun (dart:async/zone.dart:1126) #6 _CustomZone.run (dart:async/zone.dart:1023) #7 runZoned (dart:async/zone.dart:1501) #8 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #9 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270) #10 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #11 FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:309) &lt;asynchronous suspension&gt; #12 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #13 _rootRun (dart:async/zone.dart:1126) #14 _CustomZone.run (dart:async/zone.dart:1023) #15 runZoned (dart:async/zone.dart:1501) #16 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #17 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265) &lt;asynchronous suspension&gt; #18 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #19 new Future.sync (dart:async/future.dart:222) #20 CommandRunner.run (package:args/command_runner.dart:109) #21 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174) #22 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:59) &lt;asynchronous suspension&gt; #23 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #24 _rootRun (dart:async/zone.dart:1126) #25 _CustomZone.run (dart:async/zone.dart:1023) #26 runZoned (dart:async/zone.dart:1501) #27 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #28 runInContext (package:flutter_tools/src/context_runner.dart:43) &lt;asynchronous suspension&gt; #29 run (package:flutter_tools/runner.dart:50) #30 main (package:flutter_tools/executable.dart:49) &lt;asynchronous suspension&gt; #31 main (file:///E:/b/build/slave/Windows_Flutter_Packaging/build/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8) #32 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #33 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) </code></pre></div>
<p dir="auto">It looks like 'flutter run --release --preview-dart-2' performs kernel compilation twice, which is a waste of build time. It becomes more important as we're going to do more time-consuming global transformations during AOT compilation.</p> <h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Add</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" _outputStream.writeln(&quot;Kernel compilation: $filename&quot;);"><pre class="notranslate"><code class="notranslate"> _outputStream.writeln("Kernel compilation: $filename"); </code></pre></div> <p dir="auto">after the line</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" _outputStream.writeln('result $boundaryKey');"><pre class="notranslate"><code class="notranslate"> _outputStream.writeln('result $boundaryKey'); </code></pre></div> <p dir="auto">into engine/src/flutter/frontend_server/lib/server.dart.</p> <ol start="2" dir="auto"> <li>Build local engine</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter/tools/gn --android --runtime-mode=release --goma ninja -j1000 -C out/android_release flutter/tools/gn --runtime-mode=release --goma ninja -j1000 -C out/host_release"><pre class="notranslate"><code class="notranslate">flutter/tools/gn --android --runtime-mode=release --goma ninja -j1000 -C out/android_release flutter/tools/gn --runtime-mode=release --goma ninja -j1000 -C out/host_release </code></pre></div> <ol start="3" dir="auto"> <li>Run 'flutter run' with local engine:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cd flutter/examples/flutter_gallery flutter clean flutter run -v --release --preview-dart-2 --local-engine android_release"><pre class="notranslate"><code class="notranslate">cd flutter/examples/flutter_gallery flutter clean flutter run -v --release --preview-dart-2 --local-engine android_release </code></pre></div> <p dir="auto">The message 'Kernel compilation' will appear twice in the output.</p> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] :app:generateReleaseBuildConfig [ ] :app:prepareLintJar UP-TO-DATE [ ] :app:cleanMergeReleaseAssets UP-TO-DATE [ +574 ms] compiler message: Kernel compilation: [..cut..]/flutter/examples/flutter_gallery/lib/main.dart [+17856 ms] :app:flutterDependenciesRelease [ +700 ms] compiler message: Kernel compilation: [..cut..]/flutter/examples/flutter_gallery/lib/main.dart [+5254 ms] :app:flutterBuildRelease [ ] Skipping AOT snapshot build. Fingerprint match. [+1089 ms] :app:mergeReleaseShaders [ +10 ms] :app:compileReleaseShaders [ ] :app:generateReleaseAssets"><pre class="notranslate"><code class="notranslate">[ ] :app:generateReleaseBuildConfig [ ] :app:prepareLintJar UP-TO-DATE [ ] :app:cleanMergeReleaseAssets UP-TO-DATE [ +574 ms] compiler message: Kernel compilation: [..cut..]/flutter/examples/flutter_gallery/lib/main.dart [+17856 ms] :app:flutterDependenciesRelease [ +700 ms] compiler message: Kernel compilation: [..cut..]/flutter/examples/flutter_gallery/lib/main.dart [+5254 ms] :app:flutterBuildRelease [ ] Skipping AOT snapshot build. Fingerprint match. [+1089 ms] :app:mergeReleaseShaders [ +10 ms] :app:compileReleaseShaders [ ] :app:generateReleaseAssets </code></pre></div> <h2 dir="auto">Flutter Doctor</h2> <p dir="auto">[✓] Flutter (on Linux, locale en_US.UTF-8, channel master)<br> • Flutter version 0.1.3-pre.37 at /usr/local/google/home/alexmarkov/work/flutter<br> • Framework revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/1686b6d56dc0f9489195dc560bb4538bf2a5e720/hovercard" href="https://github.com/flutter/flutter/commit/1686b6d56dc0f9489195dc560bb4538bf2a5e720"><tt>1686b6d</tt></a> (57 minutes ago), 2018-02-16 10:22:52 -0800<br> • Engine revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/19e8d9b2bfb5c7637b2a74058bdbc91edca31405/hovercard" href="https://github.com/flutter/flutter/commit/19e8d9b2bfb5c7637b2a74058bdbc91edca31405"><tt>19e8d9b</tt></a><br> • Dart version 2.0.0-edge.fe96de2858f078e4ad04f8f30640184bf3d8102d</p> <p dir="auto">[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)<br> • Android SDK at /usr/local/google/home/alexmarkov/Android/Sdk<br> • Android NDK location not configured (optional; useful for native profiling support)<br> • Platform android-27, build-tools 27.0.3<br> • ANDROID_HOME = /usr/local/google/home/alexmarkov/Android/Sdk<br> • Java binary at: /opt/android-studio/jre/bin/java<br> • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)</p> <p dir="auto">[✓] Android Studio (version 3.0)<br> • Android Studio at /opt/android-studio<br> • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)</p> <p dir="auto">[✓] Connected devices<br> • Moto G 4 • ZY2245H6M5 • android-arm • Android 6.0.1 (API 23)</p> <p dir="auto">• No issues found!</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aam/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aam">@aam</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mraleph/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mraleph">@mraleph</a></p>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.32.1</li> <li>Operating System: Ubuntu (Github action runner no docker)</li> <li>Browser: WebKit</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;iframe title=&quot;Walls.io&quot; allowFullScreen id=&quot;wallsio-iframe&quot; src={`//my.walls.io/j4z3r?nobackground=1&amp;amp;show_header=0`} style={{ border: 0, height: '800px', width: '600px', }} loading=&quot;lazy&quot; &gt;&lt;/iframe&gt;"><pre class="notranslate"> <span class="pl-c1">&lt;</span><span class="pl-ent">iframe</span> <span class="pl-c1">title</span><span class="pl-c1">=</span><span class="pl-s">"Walls.io"</span> <span class="pl-c1">allowFullScreen</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"wallsio-iframe"</span> <span class="pl-c1">src</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s">`//my.walls.io/j4z3r?nobackground=1&amp;amp;show_header=0`</span><span class="pl-kos">}</span> <span class="pl-c1">style</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span> <span class="pl-c1">border</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-s">'800px'</span><span class="pl-kos">,</span> <span class="pl-c1">width</span>: <span class="pl-s">'600px'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-c1">loading</span><span class="pl-c1">=</span><span class="pl-s">"lazy"</span> <span class="pl-c1">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">iframe</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto"><a href="https://github.com/diginikkari/webkit-issue">https://github.com/diginikkari/webkit-issue</a></p> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test('has title', async ({ page }) =&gt; { await page.goto('http://127.0.0.1:5173/'); // Expect a title &quot;to contain&quot; a substring. await page.frameLocator('#wallsio-iframe').getByText('j4z3r').click(); }); "><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'has title'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <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">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-s">'http://127.0.0.1:5173/'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Expect a title "to contain" a substring.</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">frameLocator</span><span class="pl-kos">(</span><span class="pl-s">'#wallsio-iframe'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-s">'j4z3r'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</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"><strong>Steps</strong></p> <ul dir="auto"> <li>[Run the test]</li> <li>[...]</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Test should pass.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Test is failing in webkit when runned in github actions with <strong>ubuntu-latest</strong> -runner. In trace it is showing: <code class="notranslate">Failed to load resource: Unacceptable TLS certificate</code> error.</p> <p dir="auto">Tests are working fine in MacOs. Tests are also working when using Docker image: <code class="notranslate">mcr.microsoft.com/playwright:v1.32.0-focal</code>. This could be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1295516713" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/15410" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/15410/hovercard" href="https://github.com/microsoft/playwright/issues/15410">#15410</a>.</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.32.3</li> <li>Operating System: Mac</li> <li>Browser: Chromium</li> <li>Other info:</li> </ul> <p dir="auto">It seems that having a screencasted chrome instance of a remote debugging process breaks all actions on the page. In the example below you can change the <code class="notranslate">FIXED</code> variable to <code class="notranslate">true</code> which will disable screencasting on the remote page and the script will run successfully.</p> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>index.js</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const playwright = require('playwright'); const FIXED = false; const PORT = 9299; const REMOTE = `http://localhost:${PORT}`; (async () =&gt; { const browser = await playwright.chromium.launch({ // headless: false, args: [ `--remote-debugging-port=${PORT}`, `--remote-allow-origins=${REMOTE}`, ], }); const page = await browser.newPage(); await page.goto(`${REMOTE}/json`); const list = await page.evaluate(() =&gt; JSON.parse(document.body.innerText)); const debugPage = await browser.newPage(); await debugPage.goto(`${REMOTE}${list[0].devtoolsFrontendUrl}`); await debugPage.locator('canvas').waitFor(); if (FIXED) { await debugPage.getByTitle('Toggle screencast').click(); } await page.locator('body').click({ timeout: 3000 }); await browser.close(); console.log('done'); })(); "><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-kos">;</span> <span class="pl-k">const</span> <span class="pl-c1">FIXED</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-c1">PORT</span> <span class="pl-c1">=</span> <span class="pl-c1">9299</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-c1">REMOTE</span> <span class="pl-c1">=</span> <span class="pl-s">`http://localhost:<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">PORT</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">async</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">browser</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">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c">// headless: false,</span> <span class="pl-c1">args</span>: <span class="pl-kos">[</span> <span class="pl-s">`--remote-debugging-port=<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">PORT</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span> <span class="pl-s">`--remote-allow-origins=<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">REMOTE</span><span class="pl-kos">}</span></span>`</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">browser</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-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-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">REMOTE</span><span class="pl-kos">}</span></span>/json`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">list</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">evaluate</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-c1">JSON</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">.</span><span class="pl-c1">innerText</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">debugPage</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</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-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">debugPage</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">REMOTE</span><span class="pl-kos">}</span></span><span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">list</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-c1">devtoolsFrontendUrl</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">debugPage</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'canvas'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">waitFor</span><span class="pl-kos">(</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-c1">FIXED</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">debugPage</span><span class="pl-kos">.</span><span class="pl-en">getByTitle</span><span class="pl-kos">(</span><span class="pl-s">'Toggle screencast'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</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">await</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">'body'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">3000</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</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">'done'</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"><strong>Steps</strong></p> <ul dir="auto"> <li>Run <code class="notranslate">node index.js</code></li> </ul> <p dir="auto"><strong>Expected</strong><br> The script should run to completion</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">The script errors with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="locator.click: Timeout 3000ms exceeded. =========================== logs =========================== waiting for locator('body') locator resolved to &lt;body&gt;…&lt;/body&gt; attempting click action waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling performing click action"><pre class="notranslate"><code class="notranslate">locator.click: Timeout 3000ms exceeded. =========================== logs =========================== waiting for locator('body') locator resolved to &lt;body&gt;…&lt;/body&gt; attempting click action waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling performing click action </code></pre></div> <p dir="auto">This happens in headless and headful chrome, I suspect that playwright isn't sharing the debug websocket correctly. Note that you can open multiple debug pages on the same page and there's no issue. For example the same <code class="notranslate">${REMOTE}${list[0].devtoolsFrontendUrl}</code> url can be opened in multiple tabs/windows and the casting and debugging still works as expected. It's only Playwright actions (such as <code class="notranslate">.click()</code> in the snippet above) that appear to break</p>
0
<p dir="auto">When running <code class="notranslate">make test_e2e_node</code> on systemd, I get a single failure related to a test that verifies the stats endpoint.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ------------------------------ • Failure [60.090 seconds] Kubelet /home/decarr/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:267 metrics api /home/decarr/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:266 when querying /stats/summary /home/decarr/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:258 it should report resource usage through the stats api [It] /home/decarr/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:257 Expected &lt;[]stats.ContainerStats | len:2, cap:4&gt;: ["><pre class="notranslate"><code class="notranslate"> ------------------------------ • Failure [60.090 seconds] Kubelet /home/decarr/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:267 metrics api /home/decarr/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:266 when querying /stats/summary /home/decarr/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:258 it should report resource usage through the stats api [It] /home/decarr/go/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:257 Expected &lt;[]stats.ContainerStats | len:2, cap:4&gt;: [ </code></pre></div> <p dir="auto">The root is this line:<br> <a href="https://github.com/kubernetes/kubernetes/blob/master/test/e2e_node/kubelet_test.go#L223">https://github.com/kubernetes/kubernetes/blob/master/test/e2e_node/kubelet_test.go#L223</a></p> <p dir="auto">On systemd, I am getting back 2 containers where 1 is expected from my stats endpoint.</p> <p dir="auto">For example, if I run a pod with a single nginx container I get the following summary:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ curl http://127.0.0.1:10255/stats/summary { &quot;node&quot;: { &quot;nodeName&quot;: &quot;127.0.0.1&quot;, &quot;systemContainers&quot;: [ { &quot;name&quot;: &quot;kubelet&quot;, &quot;startTime&quot;: &quot;2016-03-07T14:17:36Z&quot;, &quot;cpu&quot;: { &quot;time&quot;: &quot;2016-03-07T17:55:11Z&quot;, &quot;usageNanoCores&quot;: 221608525, &quot;usageCoreNanoSeconds&quot;: 7174601461254 }, &quot;memory&quot;: { &quot;time&quot;: &quot;2016-03-07T17:55:11Z&quot;, &quot;usageBytes&quot;: 8132644864, &quot;workingSetBytes&quot;: 5518856192, &quot;pageFaults&quot;: 63072461, &quot;majorPageFaults&quot;: 10940 }, &quot;rootfs&quot;: { &quot;availableBytes&quot;: 18328821760, &quot;capacityBytes&quot;: 52710469632 }, &quot;logs&quot;: { &quot;availableBytes&quot;: 18328821760, &quot;capacityBytes&quot;: 52710469632 }, &quot;userDefinedMetrics&quot;: null }, { &quot;name&quot;: &quot;runtime&quot;, &quot;startTime&quot;: &quot;2016-03-07T17:55:16Z&quot;, &quot;cpu&quot;: { &quot;time&quot;: &quot;2016-03-07T17:55:00Z&quot;, &quot;usageNanoCores&quot;: 17139366, &quot;usageCoreNanoSeconds&quot;: 213037971066 }, &quot;memory&quot;: { &quot;time&quot;: &quot;2016-03-07T17:55:00Z&quot;, &quot;usageBytes&quot;: 31969280, &quot;workingSetBytes&quot;: 25382912, &quot;pageFaults&quot;: 9133069, &quot;majorPageFaults&quot;: 14 }, &quot;rootfs&quot;: { &quot;availableBytes&quot;: 18328821760, &quot;capacityBytes&quot;: 52710469632 }, &quot;logs&quot;: { &quot;availableBytes&quot;: 18328821760, &quot;capacityBytes&quot;: 52710469632 }, &quot;userDefinedMetrics&quot;: null } ], &quot;startTime&quot;: &quot;2016-03-07T14:17:36Z&quot;, &quot;cpu&quot;: { &quot;time&quot;: &quot;2016-03-07T17:55:11Z&quot;, &quot;usageNanoCores&quot;: 221608525, &quot;usageCoreNanoSeconds&quot;: 7174601461254 }, &quot;memory&quot;: { &quot;time&quot;: &quot;2016-03-07T17:55:11Z&quot;, &quot;usageBytes&quot;: 8132644864, &quot;workingSetBytes&quot;: 5518856192, &quot;pageFaults&quot;: 63072461, &quot;majorPageFaults&quot;: 10940 }, &quot;fs&quot;: { &quot;availableBytes&quot;: 18328821760, &quot;capacityBytes&quot;: 52710469632, &quot;usedBytes&quot;: 31680516096 } }, &quot;pods&quot;: [ { &quot;podRef&quot;: { &quot;name&quot;: &quot;nginx-2040093540-7uo6d&quot;, &quot;namespace&quot;: &quot;default&quot;, &quot;uid&quot;: &quot;a514f7cf-e48d-11e5-bd2c-28d2444e470d&quot; }, &quot;startTime&quot;: &quot;2016-03-07T17:55:02Z&quot;, &quot;containers&quot;: [ { &quot;name&quot;: &quot;nginx&quot;, &quot;startTime&quot;: &quot;2016-03-07T17:55:04Z&quot;, &quot;cpu&quot;: { &quot;time&quot;: &quot;2016-03-07T17:55:04Z&quot;, &quot;usageCoreNanoSeconds&quot;: 21626484 }, &quot;memory&quot;: { &quot;time&quot;: &quot;2016-03-07T17:55:04Z&quot;, &quot;usageBytes&quot;: 8437760, &quot;workingSetBytes&quot;: 2482176, &quot;pageFaults&quot;: 883, &quot;majorPageFaults&quot;: 48 }, &quot;rootfs&quot;: { &quot;availableBytes&quot;: 18328821760, &quot;capacityBytes&quot;: 52710469632 }, &quot;logs&quot;: { &quot;availableBytes&quot;: 18328821760, &quot;capacityBytes&quot;: 52710469632 }, &quot;userDefinedMetrics&quot;: null }, { &quot;name&quot;: &quot;nginx&quot;, &quot;startTime&quot;: &quot;2016-03-07T17:55:04Z&quot;, &quot;cpu&quot;: { &quot;time&quot;: &quot;2016-03-07T17:55:04Z&quot;, &quot;usageCoreNanoSeconds&quot;: 0 }, &quot;memory&quot;: { &quot;time&quot;: &quot;2016-03-07T17:55:04Z&quot;, &quot;usageBytes&quot;: 0, &quot;workingSetBytes&quot;: 0, &quot;pageFaults&quot;: 0, &quot;majorPageFaults&quot;: 0 }, &quot;rootfs&quot;: { &quot;availableBytes&quot;: 18328821760, &quot;capacityBytes&quot;: 52710469632 }, &quot;logs&quot;: { &quot;availableBytes&quot;: 18328821760, &quot;capacityBytes&quot;: 52710469632 }, &quot;userDefinedMetrics&quot;: null } ], &quot;network&quot;: { &quot;time&quot;: &quot;2016-03-07T17:55:03Z&quot;, &quot;rxBytes&quot;: 90, &quot;rxErrors&quot;: 0, &quot;txBytes&quot;: 168, &quot;txErrors&quot;: 0 } } ] }"><pre class="notranslate"><code class="notranslate">$ curl http://127.0.0.1:10255/stats/summary { "node": { "nodeName": "127.0.0.1", "systemContainers": [ { "name": "kubelet", "startTime": "2016-03-07T14:17:36Z", "cpu": { "time": "2016-03-07T17:55:11Z", "usageNanoCores": 221608525, "usageCoreNanoSeconds": 7174601461254 }, "memory": { "time": "2016-03-07T17:55:11Z", "usageBytes": 8132644864, "workingSetBytes": 5518856192, "pageFaults": 63072461, "majorPageFaults": 10940 }, "rootfs": { "availableBytes": 18328821760, "capacityBytes": 52710469632 }, "logs": { "availableBytes": 18328821760, "capacityBytes": 52710469632 }, "userDefinedMetrics": null }, { "name": "runtime", "startTime": "2016-03-07T17:55:16Z", "cpu": { "time": "2016-03-07T17:55:00Z", "usageNanoCores": 17139366, "usageCoreNanoSeconds": 213037971066 }, "memory": { "time": "2016-03-07T17:55:00Z", "usageBytes": 31969280, "workingSetBytes": 25382912, "pageFaults": 9133069, "majorPageFaults": 14 }, "rootfs": { "availableBytes": 18328821760, "capacityBytes": 52710469632 }, "logs": { "availableBytes": 18328821760, "capacityBytes": 52710469632 }, "userDefinedMetrics": null } ], "startTime": "2016-03-07T14:17:36Z", "cpu": { "time": "2016-03-07T17:55:11Z", "usageNanoCores": 221608525, "usageCoreNanoSeconds": 7174601461254 }, "memory": { "time": "2016-03-07T17:55:11Z", "usageBytes": 8132644864, "workingSetBytes": 5518856192, "pageFaults": 63072461, "majorPageFaults": 10940 }, "fs": { "availableBytes": 18328821760, "capacityBytes": 52710469632, "usedBytes": 31680516096 } }, "pods": [ { "podRef": { "name": "nginx-2040093540-7uo6d", "namespace": "default", "uid": "a514f7cf-e48d-11e5-bd2c-28d2444e470d" }, "startTime": "2016-03-07T17:55:02Z", "containers": [ { "name": "nginx", "startTime": "2016-03-07T17:55:04Z", "cpu": { "time": "2016-03-07T17:55:04Z", "usageCoreNanoSeconds": 21626484 }, "memory": { "time": "2016-03-07T17:55:04Z", "usageBytes": 8437760, "workingSetBytes": 2482176, "pageFaults": 883, "majorPageFaults": 48 }, "rootfs": { "availableBytes": 18328821760, "capacityBytes": 52710469632 }, "logs": { "availableBytes": 18328821760, "capacityBytes": 52710469632 }, "userDefinedMetrics": null }, { "name": "nginx", "startTime": "2016-03-07T17:55:04Z", "cpu": { "time": "2016-03-07T17:55:04Z", "usageCoreNanoSeconds": 0 }, "memory": { "time": "2016-03-07T17:55:04Z", "usageBytes": 0, "workingSetBytes": 0, "pageFaults": 0, "majorPageFaults": 0 }, "rootfs": { "availableBytes": 18328821760, "capacityBytes": 52710469632 }, "logs": { "availableBytes": 18328821760, "capacityBytes": 52710469632 }, "userDefinedMetrics": null } ], "network": { "time": "2016-03-07T17:55:03Z", "rxBytes": 90, "rxErrors": 0, "txBytes": 168, "txErrors": 0 } } ] } </code></pre></div> <p dir="auto">I debugged the issue down to here:<br> <a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/server/stats/summary.go#L202">https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/server/stats/summary.go#L202</a></p> <p dir="auto">After adding more trace to this code block, I saw that nginx was being found twice for duplicate keys in the for loop.</p> <p dir="auto">The first time:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I0307 12:55:16.210107 1856 summary.go:189] STATS buildSummaryPods - key /system.slice/docker-37515a45e527fd66a5ab125f689d0113e2ded24bba6b25453d3d78f66fb1f932.scope I0307 12:55:16.210115 1856 summary.go:196] STATS buildSummaryPods - ref {nginx-2040093540-7uo6d default a514f7cf-e48d-11e5-bd2c-28d2444e470d}"><pre class="notranslate"><code class="notranslate">I0307 12:55:16.210107 1856 summary.go:189] STATS buildSummaryPods - key /system.slice/docker-37515a45e527fd66a5ab125f689d0113e2ded24bba6b25453d3d78f66fb1f932.scope I0307 12:55:16.210115 1856 summary.go:196] STATS buildSummaryPods - ref {nginx-2040093540-7uo6d default a514f7cf-e48d-11e5-bd2c-28d2444e470d} </code></pre></div> <p dir="auto">That makes sense because that is the cgroup for the container as reported by docker.</p> <p dir="auto">The second time it appeared in the same for loop was for the key:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I0307 12:55:16.210413 1856 summary.go:189] STATS buildSummaryPods - key /system.slice/var-lib-docker-devicemapper-mnt-37515a45e527fd66a5ab125f689d0113e2ded24bba6b25453d3d78f66fb1f932.mount I0307 12:55:16.210416 1856 summary.go:196] STATS buildSummaryPods - ref {nginx-2040093540-7uo6d default a514f7cf-e48d-11e5-bd2c-28d2444e470d} I0307 12:55:16.210420 1856 summary.go:205] STATS buildSummaryPods - podStats &amp;{{nginx-2040093540-7uo6d default a514f7cf-e48d-11e5-bd2c-28d2444e470d} 2016-03-07 17:55:02.669481834 +0000 UTC [{nginx 2016-03-07 17:55:04.121735851 +0000 UTC 0xc820e70030 0xc820826100 0xc8208ab7a0 0xc8208ab760 []}] 0xc8208261c0 []} I0307 12:55:16.210429 1856 summary.go:209] STATS containerName nginx"><pre class="notranslate"><code class="notranslate">I0307 12:55:16.210413 1856 summary.go:189] STATS buildSummaryPods - key /system.slice/var-lib-docker-devicemapper-mnt-37515a45e527fd66a5ab125f689d0113e2ded24bba6b25453d3d78f66fb1f932.mount I0307 12:55:16.210416 1856 summary.go:196] STATS buildSummaryPods - ref {nginx-2040093540-7uo6d default a514f7cf-e48d-11e5-bd2c-28d2444e470d} I0307 12:55:16.210420 1856 summary.go:205] STATS buildSummaryPods - podStats &amp;{{nginx-2040093540-7uo6d default a514f7cf-e48d-11e5-bd2c-28d2444e470d} 2016-03-07 17:55:02.669481834 +0000 UTC [{nginx 2016-03-07 17:55:04.121735851 +0000 UTC 0xc820e70030 0xc820826100 0xc8208ab7a0 0xc8208ab760 []}] 0xc8208261c0 []} I0307 12:55:16.210429 1856 summary.go:209] STATS containerName nginx </code></pre></div> <p dir="auto">It appears that we are treating the following as a different container in the pod summary:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/system.slice/var-lib-docker-devicemapper-mnt-37515a45e527fd66a5ab125f689d0113e2ded24bba6b25453d3d78f66fb1f932.mount"><pre class="notranslate"><code class="notranslate">/system.slice/var-lib-docker-devicemapper-mnt-37515a45e527fd66a5ab125f689d0113e2ded24bba6b25453d3d78f66fb1f932.mount </code></pre></div> <p dir="auto">Looking on the file system, I see:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cat /sys/fs/cgroup/cpu/system.slice/var-lib-docker-devicemapper-mnt-37515a45e527fd66a5ab125f689d0113e2ded24bba6b25453d3d78f66fb1f932.mount/"><pre class="notranslate"><code class="notranslate">cat /sys/fs/cgroup/cpu/system.slice/var-lib-docker-devicemapper-mnt-37515a45e527fd66a5ab125f689d0113e2ded24bba6b25453d3d78f66fb1f932.mount/ </code></pre></div> <p dir="auto">Still investigating this some more, but looks like we are getting tripped up in cadvisor by this...</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vishh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vishh">@vishh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dchen1107/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dchen1107">@dchen1107</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ncdc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ncdc">@ncdc</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sjenning/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sjenning">@sjenning</a></p>
<p dir="auto">Right now, we have the concept packing api query parameters into a struct, converting that to the versioned (serialized wire) format struct, then packing that into URL query parameters. This needs some slight adjustment for API groups.</p> <p dir="auto">Options:</p> <ol dir="auto"> <li>Change nothing; every group needs its own e.g. ListOptions struct in the internal and external versions.</li> <li>Move common options (e.g. ListOptions) to unversioned.</li> </ol> <p dir="auto">If we do 2, then we need to modify the code here: <a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/client/unversioned/request.go#L414">https://github.com/kubernetes/kubernetes/blob/master/pkg/client/unversioned/request.go#L414</a></p> <p dir="auto">Options for modifying this code:</p> <ol dir="auto"> <li>RESTClient takes a second "options" codec, which takes a struct, returns JSON, which can be converted to query parameters. (must be a second codec because the codec for the body of the request may be binary.)</li> <li>RESTClient takes a second "options" codec, which takes a struct and returns URL query parameters directly.</li> <li>Develop the concept of internal unversioned vs. external unversioned (UGH).</li> </ol> <p dir="auto">2.1 &amp; 2.2 both have the advantage that RESTClient doesn't need to know about "convertor" at all any more.</p> <p dir="auto">2.1 can be done just by reusing our existing codec, which is nice, but 2.2 is probably clearer? 2.3 is confusing. Option 1 is verbose and error prone.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/smarterclayton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smarterclayton">@smarterclayton</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/krousey/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/krousey">@krousey</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wojtek-t/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wojtek-t">@wojtek-t</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/caesarxuchao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/caesarxuchao">@caesarxuchao</a> please all of you argue about this :)</p>
0
<p dir="auto">Remove 'scrapy deploy' command and instead direct users to the documentation when they try to run it.</p>
<p dir="auto"><code class="notranslate">scrapy deploy</code> command was deprecated a while ago and is no longer maintained. Its functionality has been moved to <code class="notranslate">scrapy-deploy</code> (for scrapyd) and <code class="notranslate">shub deploy</code> (for scrapinghub).</p> <p dir="auto">So I think we should remove <code class="notranslate">deploy</code> command, specially for 1.0.</p>
1
<p dir="auto">I am getting this weird behaviour in <code class="notranslate">jnp.linalg.norm</code> where in when I set <code class="notranslate">ord="fro"</code>, I get different values when I pass input array <code class="notranslate">x</code> having shape as <code class="notranslate">[1,1]</code> instead of <code class="notranslate">[2, 1, 1]</code>. However, it is only the case for <code class="notranslate">fro</code>.<br> For other values of <code class="notranslate">ord</code>, I get consistent values.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate issues.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:</li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.numpy as jnp x = jnp.zeros([2, 1, 1]) x = x.at[0, 0, 0].set(3.4346476e-38) x # DeviceArray([[[3.4346476e-38]], # # [[0.0000000e+00]]], dtype=float32) y = jnp.zeros([1, 1]) y = y.at[0, 0].set(3.4346476e-38) y # DeviceArray([[3.4346476e-38]], dtype=float32) print(jnp.linalg.norm(x, &quot;fro&quot;, (-2, -1))) print(jnp.linalg.norm(y, &quot;fro&quot;, (-2, -1))) # [3.4346476e-38 0.0000000e+00] # 0.0 -------&gt; why is this zero ? and not 3.4346476e-38 ? print(jnp.linalg.norm(x, 1, (-2, -1))) print(jnp.linalg.norm(y, 1, (-2, -1))) # [3.4346476e-38 0.0000000e+00] # 3.4346476e-38 print(jnp.linalg.norm(x, 2, (-2, -1))) print(jnp.linalg.norm(y, 2, (-2, -1))) # [3.4346476e-38 0.0000000e+00] # 3.4346476e-38"><pre class="notranslate"><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-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">zeros</span>([<span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>]) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span>.<span class="pl-s1">at</span>[<span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>].<span class="pl-en">set</span>(<span class="pl-c1">3.4346476e-38</span>) <span class="pl-s1">x</span> <span class="pl-c"># DeviceArray([[[3.4346476e-38]],</span> <span class="pl-c">#</span> <span class="pl-c"># [[0.0000000e+00]]], dtype=float32)</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">zeros</span>([<span class="pl-c1">1</span>, <span class="pl-c1">1</span>]) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">y</span>.<span class="pl-s1">at</span>[<span class="pl-c1">0</span>, <span class="pl-c1">0</span>].<span class="pl-en">set</span>(<span class="pl-c1">3.4346476e-38</span>) <span class="pl-s1">y</span> <span class="pl-c"># DeviceArray([[3.4346476e-38]], dtype=float32)</span> <span class="pl-en">print</span>(<span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">norm</span>(<span class="pl-s1">x</span>, <span class="pl-s">"fro"</span>, (<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>))) <span class="pl-en">print</span>(<span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">norm</span>(<span class="pl-s1">y</span>, <span class="pl-s">"fro"</span>, (<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>))) <span class="pl-c"># [3.4346476e-38 0.0000000e+00]</span> <span class="pl-c"># 0.0 -------&gt; why is this zero ? and not 3.4346476e-38 ?</span> <span class="pl-en">print</span>(<span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">norm</span>(<span class="pl-s1">x</span>, <span class="pl-c1">1</span>, (<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>))) <span class="pl-en">print</span>(<span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">norm</span>(<span class="pl-s1">y</span>, <span class="pl-c1">1</span>, (<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>))) <span class="pl-c"># [3.4346476e-38 0.0000000e+00]</span> <span class="pl-c"># 3.4346476e-38</span> <span class="pl-en">print</span>(<span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">norm</span>(<span class="pl-s1">x</span>, <span class="pl-c1">2</span>, (<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>))) <span class="pl-en">print</span>(<span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">norm</span>(<span class="pl-s1">y</span>, <span class="pl-c1">2</span>, (<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>))) <span class="pl-c"># [3.4346476e-38 0.0000000e+00]</span> <span class="pl-c"># 3.4346476e-38</span></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If applicable, include full error messages/tracebacks.</li> </ul>
<p dir="auto">Simple example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="jnp.linalg.norm(jnp.array([1e-20], jnp.float32))"><pre class="notranslate"><code class="notranslate">jnp.linalg.norm(jnp.array([1e-20], jnp.float32)) </code></pre></div> <p dir="auto">produces 0.</p> <p dir="auto">Denormals are flushed to zero, and 1e-20**2 is smaller than the smallest normal float32.</p> <p dir="auto">It's possible to define a non-underflowing Euclidean norm using variadic reductions:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def norm2(xs): def reducer(xs, ys): (ssq_x, scale_x) = xs (ssq_y, scale_y) = ys scale = lax.max(scale_x, scale_y) scale_is_zero = lax.eq(scale, jnp.float32(0)) ssq = ssq_x * (scale_x/scale)** 2 + ssq_y * (scale_y / scale)**2 return (lax.select(scale_is_zero, jnp.ones_like(ssq), ssq), scale) ssq_y, scale_y = lax.reduce( (np.ones_like(x), jnp.abs(x)), (jnp.float32(1), jnp.float32(0)), reducer, dimensions=(0,)) return scale_y * jnp.sqrt(ssq_y)"><pre class="notranslate"><code class="notranslate">def norm2(xs): def reducer(xs, ys): (ssq_x, scale_x) = xs (ssq_y, scale_y) = ys scale = lax.max(scale_x, scale_y) scale_is_zero = lax.eq(scale, jnp.float32(0)) ssq = ssq_x * (scale_x/scale)** 2 + ssq_y * (scale_y / scale)**2 return (lax.select(scale_is_zero, jnp.ones_like(ssq), ssq), scale) ssq_y, scale_y = lax.reduce( (np.ones_like(x), jnp.abs(x)), (jnp.float32(1), jnp.float32(0)), reducer, dimensions=(0,)) return scale_y * jnp.sqrt(ssq_y) </code></pre></div> <p dir="auto">We should determine whether we want to do this; if so it probably needs to be implemented as a primitive.</p> <p dir="auto">Interestingly <code class="notranslate">numpy.linalg.norm</code> also produces 0 if the CPU <code class="notranslate">ftz</code> flag is set (e.g., via the <code class="notranslate">daz</code> package), but <code class="notranslate">scipy.linalg.norm</code> does not.</p>
1
<h1 dir="auto">It sends an error</h1> <p dir="auto">I was gonna install sqlite3 through npm but suddenly an error occured<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/59103946/72810002-bbfefd00-3c97-11ea-8ca4-17909af74d21.jpg"><img src="https://user-images.githubusercontent.com/59103946/72810002-bbfefd00-3c97-11ea-8ca4-17909af74d21.jpg" alt="Screenshot_20200121-214553" style="max-width: 100%;"></a></p>
<p dir="auto">npm http fetch GET 200 <a href="https://registry.npmjs.org/qs/-/qs-6.9.1.tgz" rel="nofollow">https://registry.npmjs.org/qs/-/qs-6.9.1.tgz</a> 9519ms<br> npm timing npm Completed in 3754889ms<br> <strong>npm ERR! cb() never called!</strong></p> <p dir="auto">npm ERR! This is an error with npm itself. Please report this error at:<br> npm ERR! <a href="https://npm.community" rel="nofollow">https://npm.community</a></p> <p dir="auto">npm ERR! A complete log of this run can be found in:<br> npm ERR! C:\Users\Siva\AppData\Roaming\npm-cache_logs\2019-11-08T14_43_49_232Z-debug.log</p> <p dir="auto">node -v<br> v13.1.0</p> <p dir="auto">npm -v<br> 6.12.1</p> <p dir="auto">This is happening for <strong>v12.13.0</strong> also.</p>
0
<p dir="auto">Given the example code below:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;ul class=&quot;list-group&quot;&gt; &lt;li class=&quot;list-group-item active&quot;&gt; &lt;span class=&quot;badge&quot;&gt;14&lt;/span&gt; &lt;a href=&quot;#&quot;&gt;Cras justo odio&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">ul</span> <span class="pl-c1">class</span>="<span class="pl-s">list-group</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">list-group-item active</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">badge</span>"<span class="pl-kos">&gt;</span>14<span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Cras justo odio<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">When the class of <code class="notranslate">active</code> is applied to <code class="notranslate">li.list-group-item</code> the <code class="notranslate">color</code> of the anchor tag remains blue instead of being changed to <code class="notranslate">@list-group-active-text-color</code>.</p>
<p dir="auto"><a href="http://bootply.com/78668" rel="nofollow">http://bootply.com/78668</a></p>
1
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.9</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new Map&lt;number, number&gt;([1, 2].map(x =&gt; [x, x])); // Error: // Argument of type 'number[][]' is not assignable to parameter of type 'Iterable&lt;[number, number]&gt;'… "><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-smi">Map</span><span class="pl-kos">&lt;</span><span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-smi">number</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</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-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">[</span><span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-s1">x</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">// Error:</span> <span class="pl-c">// Argument of type 'number[][]' is not assignable to parameter of type 'Iterable&lt;[number, number]&gt;'…</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong> types are inferred correctly, no error shown.<br> <strong>Actual behavior:</strong> type error.</p>
<p dir="auto">I have a piece of code with many <code class="notranslate">foo[]</code>s that should really be <code class="notranslate">[foo,foo]</code> -- it would be nicer if <code class="notranslate">map</code> had a type that preserves tuples, so something like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var x: [number, number]; x = [1,2].map(x=&gt;x+1);"><pre class="notranslate"><code class="notranslate">var x: [number, number]; x = [1,2].map(x=&gt;x+1); </code></pre></div> <p dir="auto">would work, even if it's some hack with a union of tuples up to some number of elements (I think that I saw something like that around rest arguments, and I imagine that this in a close neighborhood).</p> <p dir="auto">I thought that this would be common, but didn't find anything about it. Feel free to dismiss if it is.</p>
1
<p dir="auto">Hi everyone :)</p> <p dir="auto">I found a small inaccuracy in the docs for np.clip. There it says</p> <blockquote> <p dir="auto">Equivalent to but faster than <code class="notranslate">np.maximum(a_min, np.minimum(a, a_max))</code><br> <a href="https://github.com/numpy/numpy/blob/master/numpy/core/fromnumeric.py#L2039-L2051">https://github.com/numpy/numpy/blob/master/numpy/core/fromnumeric.py#L2039-L2051</a></p> </blockquote> <p dir="auto">but the function actually seems to behave like <code class="notranslate">np.minimum(a_max, np.maximum(a, a_min))</code></p> <p dir="auto">To be fair: This is only relevant if the user mixes up the order of the inputs.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np def min_max(a, a_min, a_max): return np.minimum(a_max, np.maximum(a, a_min)) def max_min(a, a_min, a_max): return np.maximum(a_min, np.minimum(a, a_max)) print(np.clip(4, 5, 2)) # Returns 2 print(min_max(4, 5, 2)) # Returns 2 print(max_min(4, 5, 2)) # Returns 5"><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-k">def</span> <span class="pl-en">min_max</span>(<span class="pl-s1">a</span>, <span class="pl-s1">a_min</span>, <span class="pl-s1">a_max</span>): <span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">minimum</span>(<span class="pl-s1">a_max</span>, <span class="pl-s1">np</span>.<span class="pl-en">maximum</span>(<span class="pl-s1">a</span>, <span class="pl-s1">a_min</span>)) <span class="pl-k">def</span> <span class="pl-en">max_min</span>(<span class="pl-s1">a</span>, <span class="pl-s1">a_min</span>, <span class="pl-s1">a_max</span>): <span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">maximum</span>(<span class="pl-s1">a_min</span>, <span class="pl-s1">np</span>.<span class="pl-en">minimum</span>(<span class="pl-s1">a</span>, <span class="pl-s1">a_max</span>)) <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">clip</span>(<span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">2</span>)) <span class="pl-c"># Returns 2</span> <span class="pl-en">print</span>(<span class="pl-en">min_max</span>(<span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">2</span>)) <span class="pl-c"># Returns 2</span> <span class="pl-en">print</span>(<span class="pl-en">max_min</span>(<span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">2</span>)) <span class="pl-c"># Returns 5</span></pre></div>
<p dir="auto">It's sometimes hard to tell in numpy whether a given numpy function will also be a method of an array.</p> <p dir="auto">e.g. You can go <code class="notranslate">arr.max()</code> or <code class="notranslate">np.max(arr)</code>, but you can's go <code class="notranslate">arr.abs()</code> (you need to go <code class="notranslate">np.abs(arr)</code>.</p> <p dir="auto">Same goes for most functions: <code class="notranslate">median</code>, <code class="notranslate">sign</code>, <code class="notranslate">exp</code>, etc. It would be nice, because I find it much more readable to look at:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mean_rmse = ((out-targ)**2).mean(axis=1).sqrt().mean(axis=0)"><pre class="notranslate"><code class="notranslate">mean_rmse = ((out-targ)**2).mean(axis=1).sqrt().mean(axis=0) </code></pre></div> <p dir="auto">Than:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mean_rmse = np.mean(np.sqrt(np.mean((out-targ)**2, axis =1)), axis=0)"><pre class="notranslate"><code class="notranslate">mean_rmse = np.mean(np.sqrt(np.mean((out-targ)**2, axis =1)), axis=0) </code></pre></div>
0
<p dir="auto">I tried updating to the latest beta but code won't open now. When trying to open the application it starts to launch then closes itself. Trying to open Code from the command line says there is a segmentation fault. Tried re-installing but that didn't help.</p> <p dir="auto">Once I got the following error.</p> <p dir="auto">Process: Electron [18388]<br> Path: /Users/USER/Downloads/Visual Studio Code.app/Contents/MacOS/Electron<br> Identifier: com.microsoft.VSCode<br> Version: 0.10.1 (0.10.1)<br> Code Type: X86-64 (Native)<br> Parent Process: launchd [213]<br> User ID: 202012426</p> <p dir="auto">Date/Time: 2015-11-19 17:10:33.023 -0500<br> OS Version: Mac OS X 10.8.5 (12F2560)<br> Report Version: 10</p> <p dir="auto">Interval Since Last Report: 21064 sec<br> Crashes Since Last Report: 3<br> Per-App Crashes Since Last Report: 1<br> Anonymous UUID: 693BE91A-CA6B-164B-D570-C9742A79A0A9</p> <p dir="auto">Crashed Thread: 0 Dispatch queue: com.apple.main-thread</p> <p dir="auto">Exception Type: EXC_BAD_ACCESS (SIGSEGV)<br> Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000</p> <p dir="auto">VM Regions Near 0:<br> --&gt;<br> __TEXT 00000001058f0000-00000001058f1000 [ 4K] r-x/rwx SM=COW /Users/USER/Downloads/Visual Studio Code.app/Contents/MacOS/Electron</p> <p dir="auto">Thread 0 Crashed:: Dispatch queue: com.apple.main-thread<br> 0 libsystem_c.dylib 0x00007fff8249e670 strlen + 16<br> 1 com.github.electron.framework 0x00000001075e2e62 0x1058f9000 + 30318178<br> 2 com.github.electron.framework 0x000000010596f5a0 atom::AtomBrowserMainParts::PreMainMessageLoopStart() + 16<br> 3 com.github.electron.framework 0x0000000105f5f2d3 0x1058f9000 + 6709971<br> 4 com.github.electron.framework 0x0000000105f64adc 0x1058f9000 + 6732508<br> 5 com.github.electron.framework 0x0000000105f5eac7 0x1058f9000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/67079113ce33e87c8caa1b2a108e7e682e22c1ca/hovercard" href="https://github.com/microsoft/vscode/commit/67079113ce33e87c8caa1b2a108e7e682e22c1ca"><tt>6707911</tt></a><br> 6 com.github.electron.framework 0x0000000105ee89dc 0x1058f9000 + 6224348<br> 7 com.github.electron.framework 0x0000000105ee8036 0x1058f9000 + 6221878<br> 8 com.github.electron.framework 0x00000001058fb18d AtomMain + 77<br> 9 com.microsoft.VSCode 0x00000001058f0eea main + 58<br> 10 libdyld.dylib 0x00007fff8c46f7e1 start + 1</p> <p dir="auto">Thread 1:<br> 0 libsystem_kernel.dylib 0x00007fff8633c6d6 __workq_kernreturn + 10<br> 1 libsystem_c.dylib 0x00007fff824b2f1c _pthread_workq_return + 25<br> 2 libsystem_c.dylib 0x00007fff824b2ce3 _pthread_wqthread + 412<br> 3 libsystem_c.dylib 0x00007fff8249d191 start_wqthread + 13</p> <p dir="auto">Thread 2:: Dispatch queue: com.apple.libdispatch-manager<br> 0 libsystem_kernel.dylib 0x00007fff8633cd16 kevent + 10<br> 1 libdispatch.dylib 0x00007fff82a50dea _dispatch_mgr_invoke + 883<br> 2 libdispatch.dylib 0x00007fff82a509ee _dispatch_mgr_thread + 54</p> <p dir="auto">Thread 3:<br> 0 libsystem_kernel.dylib 0x00007fff8633c6d6 __workq_kernreturn + 10<br> 1 libsystem_c.dylib 0x00007fff824b2f1c _pthread_workq_return + 25<br> 2 libsystem_c.dylib 0x00007fff824b2ce3 _pthread_wqthread + 412<br> 3 libsystem_c.dylib 0x00007fff8249d191 start_wqthread + 13</p> <p dir="auto">Thread 4:: WorkerPool/13827<br> 0 libsystem_kernel.dylib 0x00007fff8633c0fa __psynch_cvwait + 10<br> 1 libsystem_c.dylib 0x00007fff824b4ff3 _pthread_cond_wait + 927<br> 2 com.github.electron.framework 0x0000000105ab25fb 0x1058f9000 + 1807867<br> 3 com.github.electron.framework 0x0000000105ac49fc 0x1058f9000 + 1882620<br> 4 com.github.electron.framework 0x0000000105ac4eb4 0x1058f9000 + 1883828<br> 5 com.github.electron.framework 0x0000000105abf33b 0x1058f9000 + 1860411<br> 6 libsystem_c.dylib 0x00007fff824b0772 _pthread_start + 327<br> 7 libsystem_c.dylib 0x00007fff8249d1a1 thread_start + 13</p> <p dir="auto">Thread 5:: WorkerPool/12811<br> 0 libnode.dylib 0x0000000109ea284b v8::internal::LAllocator::AllocateRegisters() + 1323<br> 1 libnode.dylib 0x0000000109ea0e04 v8::internal::LAllocator::Allocate(v8::internal::LChunk_) + 468<br> 2 libnode.dylib 0x0000000109ea818f v8::internal::LChunk::NewChunk(v8::internal::HGraph_) + 255<br> 3 libnode.dylib 0x0000000109cdb176 v8::internal::OptimizedCompileJob::OptimizeGraph() + 70<br> 4 libnode.dylib 0x0000000109f0bc01 v8::internal::OptimizingCompileDispatcher::CompileNext(v8::internal::OptimizedCompileJob*) + 33<br> 5 libnode.dylib 0x0000000109f0cbb6 0x109847000 + 7101366<br> 6 com.github.electron.framework 0x0000000105ac4e42 0x1058f9000 + 1883714<br> 7 com.github.electron.framework 0x0000000105abf33b 0x1058f9000 + 1860411<br> 8 libsystem_c.dylib 0x00007fff824b0772 _pthread_start + 327<br> 9 libsystem_c.dylib 0x00007fff8249d1a1 thread_start + 13</p> <p dir="auto">Thread 0 crashed with X86 Thread State (64-bit):<br> rax: 0x00000000ffffffff rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000<br> rdi: 0x0000000000000000 rsi: 0x00007fff8ae53990 rbp: 0x00007fff5a30f970 rsp: 0x00007fff5a30f938<br> r8: 0x00007fd732a003c0 r9: 0x00000000b2fb8644 r10: 0x00007fd732e0fbb0 r11: 0x00007fff82adf0d1<br> r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x00000001091c7e05 r15: 0x00007fd732e13dd8<br> rip: 0x00007fff8249e670 rfl: 0x0000000000010286 cr2: 0x0000000000000000<br> Logical CPU: 6</p> <p dir="auto">Binary Images:<br> 0x1058f0000 - 0x1058f0ff7 +com.microsoft.VSCode (0.10.1 - 0.10.1) &lt;074B4136-D76D-3961-89C9-63A495167516&gt; /Users/USER/Downloads/Visual Studio Code.app/Contents/MacOS/Electron<br> 0x1058f9000 - 0x108f25f97 +com.github.electron.framework (0) &lt;6AE465ED-B1E7-3484-9CE0-AFC35A71CBFF&gt; /Users/USER/Downloads/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework<br> 0x109706000 - 0x10971bff7 +com.github.Squirrel (1.0 - 1) /Users/USER/Downloads/Visual Studio Code.app/Contents/Frameworks/Squirrel.framework/Versions/A/Squirrel<br> 0x10973c000 - 0x10979fff7 +org.reactivecocoa.ReactiveCocoa (1.0 - 1) &lt;701B20DE-3ADD-3643-B52A-E05744C30DB3&gt; /Users/USER/Downloads/Visual Studio Code.app/Contents/Frameworks/ReactiveCocoa.framework/Versions/A/ReactiveCocoa<br> 0x109818000 - 0x10982cfff +org.mantle.Mantle (1.0 - ???) &lt;31915DD6-48E6-3706-A076-C9D4CE17F4F6&gt; /Users/USER/Downloads/Visual Studio Code.app/Contents/Frameworks/Mantle.framework/Versions/A/Mantle<br> 0x109847000 - 0x10a400ff7 +libnode.dylib (0) /Users/USER/Downloads/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib<br> 0x10a7f7000 - 0x10a841ff7 com.apple.audio.midi.CoreMIDI (1.9 - 78) &lt;67E0B007-AE92-337E-A714-3455729EE240&gt; /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI<br> 0x10a870000 - 0x10b20aa97 com.apple.CoreGraphics (1.600.0 - 340.4) &lt;1B66B1D3-C371-329C-92AB-45C262241649&gt; /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics<br> 0x7fff654f0000 - 0x7fff6552493f dyld (210.2.3) &lt;36CAA36E-72BC-3E48-96D9-B96A2DF77730&gt; /usr/lib/dyld<br> 0x7fff806e1000 - 0x7fff8073bff7 com.apple.opencl (2.2.19 - 2.2.19) &lt;3C7DFB2C-B3F9-3447-A1FC-EAAA42181A6E&gt; /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL<br> 0x7fff8073c000 - 0x7fff8075dfff com.apple.Ubiquity (1.2 - 243.15) /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity<br> 0x7fff8075e000 - 0x7fff80766fff liblaunch.dylib (442.26.2) &lt;2F71CAF8-6524-329E-AC56-C506658B4C0C&gt; /usr/lib/system/liblaunch.dylib<br> 0x7fff809dd000 - 0x7fff809f0ff7 com.apple.LangAnalysis (1.7.0 - 1.7.0) &lt;023D909C-3AFA-3438-88EB-05D0BDA5AFFE&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis<br> 0x7fff809f1000 - 0x7fff80a8fff7 com.apple.ink.framework (10.8.2 - 150) &lt;3D8D16A2-7E01-3EA1-B637-83A36D353308&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink<br> 0x7fff80a90000 - 0x7fff80a94fff libCoreVMClient.dylib (32.5) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib<br> 0x7fff80a95000 - 0x7fff80aa2fff com.apple.AppleFSCompression (49 - 1.0) /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression<br> 0x7fff80aa3000 - 0x7fff80acdff7 com.apple.CoreVideo (1.8 - 99.4) /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo<br> 0x7fff80ace000 - 0x7fff80adcff7 libkxld.dylib (2050.48.19) /usr/lib/system/libkxld.dylib<br> 0x7fff80b0f000 - 0x7fff80b14fff com.apple.OpenDirectory (10.8 - 151.10) &lt;1F47EC96-7403-3690-8D8D-C31D3B6FDA0A&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory<br> 0x7fff80b44000 - 0x7fff80bd1ff7 com.apple.SearchKit (1.4.0 - 1.4.0) &lt;54A8069C-E497-3B07-BEA7-D3BC9DB5B649&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit<br> 0x7fff80bd2000 - 0x7fff80d30fef com.apple.MediaControlSender (1.7 - 170.20) &lt;853BE89D-49B0-3922-9ED5-DDBDE9A97356&gt; /System/Library/PrivateFrameworks/MediaControlSender.framework/Versions/A/MediaControlSender<br> 0x7fff80d31000 - 0x7fff80d37fff com.apple.DiskArbitration (2.5.2 - 2.5.2) /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration<br> 0x7fff80d44000 - 0x7fff80f2eff7 com.apple.CoreFoundation (6.8 - 744.19) &lt;0F7403CA-2CB8-3D0A-992B-679701DF27CA&gt; /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation<br> 0x7fff80f2f000 - 0x7fff80fd5ff7 com.apple.CoreServices.OSServices (557.6 - 557.6) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices<br> 0x7fff81031000 - 0x7fff81074ff7 com.apple.RemoteViewServices (2.0 - 80.6) &lt;5CFA361D-4853-3ACC-9EFC-A2AC1F43BA4B&gt; /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices<br> 0x7fff81075000 - 0x7fff8108cfff libGL.dylib (8.10.1) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib<br> 0x7fff8108d000 - 0x7fff81097fff com.apple.speech.recognition.framework (4.1.5 - 4.1.5) &lt;5A4B532E-3428-3F0A-8032-B0AFFF72CA3D&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition<br> 0x7fff81098000 - 0x7fff81098fff com.apple.CoreServices (57 - 57) &lt;45F1466A-8264-3BB7-B0EC-E5E5BFBED143&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices<br> 0x7fff810c8000 - 0x7fff810c9ff7 libremovefile.dylib (23.2) &lt;6763BC8E-18B8-3AD9-8FFA-B43713A7264F&gt; /usr/lib/system/libremovefile.dylib<br> 0x7fff810ca000 - 0x7fff811bffff libiconv.2.dylib (34) /usr/lib/libiconv.2.dylib<br> 0x7fff81210000 - 0x7fff812abff7 com.apple.CoreSymbolication (3.0 - 117.3) &lt;7722470A-2BA5-3526-9D3B-D3B9E5B517A7&gt; /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication<br> 0x7fff812f9000 - 0x7fff81412fff com.apple.ImageIO.framework (3.2.2 - 854) /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO<br> 0x7fff814bb000 - 0x7fff814bfff7 com.apple.CommonPanels (1.2.5 - 94) &lt;5F81D593-4B87-3DCC-B934-625D436B4CB1&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels<br> 0x7fff81d76000 - 0x7fff81dc2fff com.apple.framework.CoreWLAN (3.4 - 340.18) &lt;3735FB49-30C0-3B11-BE25-2ACDD96041B5&gt; /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN<br> 0x7fff81dc3000 - 0x7fff81e5dfff libvMisc.dylib (380.10) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib<br> 0x7fff820cc000 - 0x7fff820ceff7 com.apple.print.framework.Print (8.0 - 258) &lt;8F243E49-021F-3892-B555-3010A7F450A2&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print<br> 0x7fff820cf000 - 0x7fff821a1ff7 com.apple.CoreText (275.18 - 275.18) &lt;1574E725-4AED-3439-B6AA-E30F6BD7A9ED&gt; /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText<br> 0x7fff821a2000 - 0x7fff821f9ff7 com.apple.AppleVAFramework (5.0.19 - 5.0.19) &lt;541A7DBE-F8E4-3023-A3C0-8D5A2A550CFB&gt; /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA<br> 0x7fff821fa000 - 0x7fff82219ff7 com.apple.ChunkingLibrary (2.0 - 133.3) &lt;8BEC9AFB-DCAA-37E8-A5AB-24422B234ECF&gt; /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary<br> 0x7fff8249c000 - 0x7fff82568ff7 libsystem_c.dylib (825.40.1) &lt;543B05AE-CFA5-3EFE-8E58-77225411BA6B&gt; /usr/lib/system/libsystem_c.dylib<br> 0x7fff8266e000 - 0x7fff826bdff7 libFontRegistry.dylib (100.1) &lt;0537E4AD-6CC5-37D1-9846-4F6C46735387&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib<br> 0x7fff8298c000 - 0x7fff82a49ff7 com.apple.ColorSync (4.8.0 - 4.8.0) &lt;73BE495D-8985-3B88-A7D0-23DF0CB50304&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync<br> 0x7fff82a4c000 - 0x7fff82a61ff7 libdispatch.dylib (228.23) /usr/lib/system/libdispatch.dylib<br> 0x7fff82a62000 - 0x7fff82a70ff7 libsystem_network.dylib (77.10) &lt;2AAA67A1-525E-38F0-8028-1D2B64716611&gt; /usr/lib/system/libsystem_network.dylib<br> 0x7fff82a71000 - 0x7fff82dd0fff com.apple.Foundation (6.8 - 945.19) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation<br> 0x7fff82ddf000 - 0x7fff82de1fff libCVMSPluginSupport.dylib (8.10.1) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib<br> 0x7fff82de2000 - 0x7fff82de2fff com.apple.Cocoa (6.7 - 19) &lt;3CFC90D2-2BE9-3E5C-BFDB-5E161A2C2B29&gt; /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa<br> 0x7fff8316f000 - 0x7fff83174fff libcompiler_rt.dylib (30) &lt;08F8731D-5961-39F1-AD00-4590321D24A9&gt; /usr/lib/system/libcompiler_rt.dylib<br> 0x7fff8395c000 - 0x7fff83c00ff7 com.apple.CoreImage (8.4.0 - 1.0.1) /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage<br> 0x7fff83c01000 - 0x7fff83c08fff com.apple.NetFS (5.0 - 4.0) &lt;195D8EC9-72BB-3E04-A64D-E1A89B4850C1&gt; /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS<br> 0x7fff83c0a000 - 0x7fff83c55fff com.apple.CoreMedia (1.0 - 926.107) &lt;405690E6-D857-3136-AC3A-5EDC6C3ABF60&gt; /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia<br> 0x7fff83c5a000 - 0x7fff83cb1ff7 com.apple.ScalableUserInterface (1.0 - 1) &lt;93C14595-6172-37E9-88F2-CBC80A1C54D0&gt; /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/ScalableUserInterface.framework/Versions/A/ScalableUserInterface<br> 0x7fff83cb2000 - 0x7fff83ccfff7 com.apple.openscripting (1.3.6 - 148.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting<br> 0x7fff83d22000 - 0x7fff83d24fff libquarantine.dylib (52.1) &lt;143B726E-DF47-37A8-90AA-F059CFD1A2E4&gt; /usr/lib/system/libquarantine.dylib<br> 0x7fff83da0000 - 0x7fff83da0fff com.apple.vecLib (3.8 - vecLib 3.8) &lt;6CBBFDC4-415C-3910-9558-B67176447789&gt; /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib<br> 0x7fff83db6000 - 0x7fff83e90fff com.apple.backup.framework (1.4.3 - 1.4.3) &lt;6B65C44C-7777-3331-AD9D-438D10AAC777&gt; /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup<br> 0x7fff83e91000 - 0x7fff83f93fff libJP2.dylib (854) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib<br> 0x7fff83f94000 - 0x7fff83f96fff com.apple.securityhi (4.0 - 55002) &lt;26E6D477-EF61-351F-BA8C-67824AA231C6&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI<br> 0x7fff83fa6000 - 0x7fff84009fff com.apple.audio.CoreAudio (4.1.2 - 4.1.2) /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio<br> 0x7fff8400a000 - 0x7fff8400bfff libDiagnosticMessagesClient.dylib (8) &lt;8548E0DC-0D2F-30B6-B045-FE8A038E76D8&gt; /usr/lib/libDiagnosticMessagesClient.dylib<br> 0x7fff8400c000 - 0x7fff8400dff7 libSystem.B.dylib (169.3) &lt;92475A81-385C-32B9-9D6D-38E4BAC90996&gt; /usr/lib/libSystem.B.dylib<br> 0x7fff84293000 - 0x7fff842a0ff7 com.apple.NetAuth (4.0 - 4.0) /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth<br> 0x7fff842a1000 - 0x7fff842f0ff7 libcorecrypto.dylib (106.2) /usr/lib/system/libcorecrypto.dylib<br> 0x7fff84418000 - 0x7fff84480fff libvDSP.dylib (380.10) &lt;3CA154A3-1BE5-3CF4-BE48-F0A719A963BB&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib<br> 0x7fff84731000 - 0x7fff8473ffff libcommonCrypto.dylib (60027) /usr/lib/system/libcommonCrypto.dylib<br> 0x7fff84740000 - 0x7fff8474cfff com.apple.CrashReporterSupport (10.8.3 - 418) /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport<br> 0x7fff8474d000 - 0x7fff84751ff7 com.apple.TCC (1.0 - 1) /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC<br> 0x7fff847a9000 - 0x7fff847aaff7 libdnsinfo.dylib (453.19) &lt;14202FFB-C3CA-3FCC-94B0-14611BF8692D&gt; /usr/lib/system/libdnsinfo.dylib<br> 0x7fff847ab000 - 0x7fff847c5fff com.apple.CoreMediaAuthoring (2.1 - 914) &lt;23F2B9D0-7B73-3C42-8EDC-8ADBF9C7B8C2&gt; /System/Library/PrivateFrameworks/CoreMediaAuthoring.framework/Versions/A/CoreMediaAuthoring<br> 0x7fff847c6000 - 0x7fff847d1ff7 com.apple.bsd.ServiceManagement (2.0 - 2.0) /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement<br> 0x7fff847d7000 - 0x7fff84858fff com.apple.Metadata (10.7.0 - 707.13) &lt;4F3EAB8E-CF5E-320E-A452-6CAFB96CF590&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata<br> 0x7fff84959000 - 0x7fff84b8eff7 com.apple.CoreData (106.1 - 407.7) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData<br> 0x7fff84b8f000 - 0x7fff84bd9ff7 libGLU.dylib (8.10.1) &lt;6699DEA6-9EEB-3B84-A57F-B25AE44EC584&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib<br> 0x7fff84cf5000 - 0x7fff85112fff FaceCoreLight (2.4.1) /System/Library/PrivateFrameworks/FaceCoreLight.framework/Versions/A/FaceCoreLight<br> 0x7fff85170000 - 0x7fff85174fff com.apple.IOSurface (86.0.5 - 86.0.5) &lt;4841B89D-501E-306D-8891-3651AA9326E6&gt; /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface<br> 0x7fff85175000 - 0x7fff851a1fff com.apple.framework.Apple80211 (8.5 - 850.252) &lt;73506CA1-CF76-3A98-A6F2-3DDAC10CB67A&gt; /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211<br> 0x7fff851a8000 - 0x7fff851a8fff com.apple.Carbon (154 - 155) &lt;1B2846B1-384E-3D1C-8999-201215723349&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon<br> 0x7fff851a9000 - 0x7fff851b0fff libGFXShared.dylib (8.10.1) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib<br> 0x7fff85214000 - 0x7fff85260ff7 libauto.dylib (185.4) /usr/lib/libauto.dylib<br> 0x7fff852a8000 - 0x7fff85456fff com.apple.QuartzCore (1.8 - 304.5) &lt;5674D50C-D96C-3A2D-95C5-C93311C7FB56&gt; /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore<br> 0x7fff854b7000 - 0x7fff85525fff com.apple.framework.IOKit (2.0.1 - 755.42.2) &lt;18E64CC5-2671-3C47-B2C6-0EEEDF899461&gt; /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit<br> 0x7fff8556d000 - 0x7fff8566aff7 libxml2.2.dylib (22.3) &lt;7FD09F53-83DA-3ECD-8DD9-870E1A2F0427&gt; /usr/lib/libxml2.2.dylib<br> 0x7fff856a6000 - 0x7fff856e0ff7 com.apple.GSS (3.0 - 2.0) /System/Library/Frameworks/GSS.framework/Versions/A/GSS<br> 0x7fff856e1000 - 0x7fff85998fff com.apple.MediaToolbox (1.0 - 926.107) /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox<br> 0x7fff85999000 - 0x7fff859b0fff com.apple.CFOpenDirectory (10.8 - 151.10) &lt;10F41DA4-AD54-3F52-B898-588D9A117171&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory<br> 0x7fff859f4000 - 0x7fff85a1bfff com.apple.framework.familycontrols (4.1 - 410) &lt;50F5A52C-8FB6-300A-977D-5CFDE4D5796B&gt; /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls<br> 0x7fff85a1c000 - 0x7fff85a4aff7 libsystem_m.dylib (3022.6) &lt;11B6081D-6212-3EAB-9975-BED6234BD6A5&gt; /usr/lib/system/libsystem_m.dylib<br> 0x7fff85a5d000 - 0x7fff85a64ff7 libcopyfile.dylib (89.0.70) &lt;30824A67-6743-3D99-8DC3-92578FA9D7CB&gt; /usr/lib/system/libcopyfile.dylib<br> 0x7fff85aed000 - 0x7fff85aedfff com.apple.Accelerate (1.8 - Accelerate 1.8) &lt;878A6E7E-CB34-380F-8212-47FBF12C7C96&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate<br> 0x7fff85af0000 - 0x7fff85c0892f libobjc.A.dylib (532.2) &lt;90D31928-F48D-3E37-874F-220A51FD9E37&gt; /usr/lib/libobjc.A.dylib<br> 0x7fff85c09000 - 0x7fff85c3ffff libsystem_info.dylib (406.18) &lt;32D9AC7E-3906-3EA7-9FEB-4BD333F14A01&gt; /usr/lib/system/libsystem_info.dylib<br> 0x7fff85c40000 - 0x7fff85ca9fff libstdc++.6.dylib (56) /usr/lib/libstdc++.6.dylib<br> 0x7fff85caa000 - 0x7fff85fdafff com.apple.HIToolbox (2.0 - 626.1) &lt;656D08C2-9068-3532-ABDD-32EC5057CCB2&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox<br> 0x7fff86224000 - 0x7fff8628cff7 libc++.1.dylib (65.1) /usr/lib/libc++.1.dylib<br> 0x7fff8632a000 - 0x7fff86345ff7 libsystem_kernel.dylib (2050.48.19) &lt;81945B94-D6CB-3B77-9E95-0429540B0DF0&gt; /usr/lib/system/libsystem_kernel.dylib<br> 0x7fff865ed000 - 0x7fff865efff7 libunc.dylib (25) &lt;2FDC94A7-3039-3680-85F3-2164E63B464D&gt; /usr/lib/system/libunc.dylib<br> 0x7fff865f0000 - 0x7fff86626fff com.apple.DebugSymbols (98 - 98) &lt;7059F71D-9A82-3D32-99BB-E043DEDA6174&gt; /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols<br> 0x7fff86628000 - 0x7fff86667ff7 com.apple.QD (3.42.1 - 285.1) &lt;77A20C25-EBB5-341C-A05C-5D458B97AD5C&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD<br> 0x7fff8666c000 - 0x7fff8671efff com.apple.Bluetooth (4.1.7 - 4.1.7f6) &lt;2D72C6B0-5317-3004-83A7-F9975E637013&gt; /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth<br> 0x7fff8671f000 - 0x7fff86894fff com.apple.CFNetwork (596.6.4 - 596.6.4) &lt;23B87D38-D2C1-38FE-8407-471F0CEB2748&gt; /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork<br> 0x7fff86895000 - 0x7fff86992fff libsqlite3.dylib (138.1) /usr/lib/libsqlite3.dylib<br> 0x7fff86993000 - 0x7fff86993ffd com.apple.audio.units.AudioUnit (1.9.2 - 1.9.2) &lt;6D314680-7409-3BC7-A807-36341411AF9A&gt; /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit<br> 0x7fff86abf000 - 0x7fff86b3dfff com.apple.ApplicationServices.ATS (341.2 - 341.5) &lt;6B5001BF-101E-3135-9D1A-AD83ECD73C7A&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS<br> 0x7fff86ba6000 - 0x7fff86bd7ff7 com.apple.DictionaryServices (1.2 - 184.4) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices<br> 0x7fff86c20000 - 0x7fff86ca2fff com.apple.Heimdal (3.0 - 2.0) &lt;716C152F-D299-3ACB-BCB0-E51F2D604BD1&gt; /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal<br> 0x7fff86ca3000 - 0x7fff86cb7fff com.apple.speech.synthesis.framework (4.1.12 - 4.1.12) &lt;94EDF2AB-809C-3D15-BED5-7AD45B2A7C16&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis<br> 0x7fff86d00000 - 0x7fff86d06ff7 libunwind.dylib (35.1) &lt;21703D36-2DAB-3D8B-8442-EAAB23C060D3&gt; /usr/lib/system/libunwind.dylib<br> 0x7fff86d1f000 - 0x7fff86e71fff com.apple.audio.toolbox.AudioToolbox (1.9.2 - 1.9.2) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox<br> 0x7fff86e72000 - 0x7fff86ff8fff libBLAS.dylib (1073.4) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib<br> 0x7fff86ff9000 - 0x7fff872d6fff com.apple.security (7.0 - 55719.16.12) /System/Library/Frameworks/Security.framework/Versions/A/Security<br> 0x7fff87312000 - 0x7fff87709fff libLAPACK.dylib (1073.4) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib<br> 0x7fff8770a000 - 0x7fff8772cff7 com.apple.Kerberos (2.0 - 1) &lt;416543F5-E7AF-3269-843F-C8CDA8DD0FFA&gt; /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos<br> 0x7fff8772d000 - 0x7fff87742fff com.apple.ImageCapture (8.0 - 8.0) &lt;71B24609-DEE9-3927-9C82-62E72270299C&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture<br> 0x7fff88173000 - 0x7fff88189fff com.apple.MultitouchSupport.framework (237.4 - 237.4) &lt;0F7FEE29-161B-3D8E-BE91-308CBD354461&gt; /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport<br> 0x7fff8818a000 - 0x7fff884a1ff7 com.apple.CoreServices.CarbonCore (1037.6 - 1037.6) &lt;1E567A52-677F-3168-979F-5FBB0818D52B&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore<br> 0x7fff884a2000 - 0x7fff884dffef libGLImage.dylib (8.10.1) &lt;91E31B9B-4141-36D5-ABDC-20F1D6D1D0CF&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib<br> 0x7fff8851b000 - 0x7fff8851ffff libGIF.dylib (854) &lt;21F4F4A3-6F84-3BC3-A736-AB990CE4AD3C&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib<br> 0x7fff88520000 - 0x7fff8854bfff libxslt.1.dylib (11.3) &lt;441776B8-9130-3893-956F-39C85FFA644F&gt; /usr/lib/libxslt.1.dylib<br> 0x7fff8854e000 - 0x7fff88668fff com.apple.coreavchd (5.6.0 - 5600.4.16) &lt;85670361-96CA-3805-B981-B41B47E99A37&gt; /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD<br> 0x7fff88669000 - 0x7fff886b8fff com.apple.framework.CoreWiFi (1.3 - 130.13) /System/Library/Frameworks/CoreWiFi.framework/Versions/A/CoreWiFi<br> 0x7fff886b9000 - 0x7fff88726ff7 com.apple.datadetectorscore (4.1 - 269.3) &lt;5775F0DB-87D6-310D-8B03-E2AD729EFB28&gt; /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore<br> 0x7fff887b2000 - 0x7fff88803ff7 com.apple.SystemConfiguration (1.12.2 - 1.12.2) &lt;581BF463-C15A-363B-999A-E830222FA925&gt; /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration<br> 0x7fff88804000 - 0x7fff8882cfff libJPEG.dylib (854) &lt;000ADF07-A59C-36F8-9894-CD03F6CFBC1E&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib<br> 0x7fff8882d000 - 0x7fff8884fff7 libxpc.dylib (140.43) &lt;70BC645B-6952-3264-930C-C835010CCEF9&gt; /usr/lib/system/libxpc.dylib<br> 0x7fff88850000 - 0x7fff88853fff com.apple.help (1.3.2 - 42) &lt;418A9A41-BCB4-32A2-97ED-3A388F69CA9D&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help<br> 0x7fff888f8000 - 0x7fff88952fff com.apple.print.framework.PrintCore (8.3 - 387.2) &lt;5BA0CBED-4D80-386A-9646-F835C9805B71&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore<br> 0x7fff88953000 - 0x7fff88953fff libOpenScriptingUtil.dylib (148.3) /usr/lib/libOpenScriptingUtil.dylib<br> 0x7fff88993000 - 0x7fff8899efff com.apple.CommonAuth (3.0 - 2.0) /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth<br> 0x7fff889b7000 - 0x7fff889c3fff com.apple.CoreBluetooth (100.9 - 1) &lt;94C4EAB8-20E6-3892-BD9E-27952318CF32&gt; /System/Library/Frameworks/IOBluetooth.framework/Versions/A/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth<br> 0x7fff889c4000 - 0x7fff889d7ff7 libbsm.0.dylib (32) /usr/lib/libbsm.0.dylib<br> 0x7fff889d8000 - 0x7fff889d9fff libsystem_blocks.dylib (59) /usr/lib/system/libsystem_blocks.dylib<br> 0x7fff889da000 - 0x7fff889dafff com.apple.ApplicationServices (45 - 45) &lt;5302CC85-D534-3FE5-9E56-CA16762177F6&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices<br> 0x7fff88cac000 - 0x7fff88dccfff com.apple.desktopservices (1.7.4 - 1.7.4) /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv<br> 0x7fff88de4000 - 0x7fff88df6ff7 libz.1.dylib (43) &lt;2A1551E8-A272-3DE5-B692-955974FE1416&gt; /usr/lib/libz.1.dylib<br> 0x7fff88df7000 - 0x7fff88dfafff libRadiance.dylib (854) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib<br> 0x7fff88dfb000 - 0x7fff88e08fff libbz2.1.0.dylib (29) /usr/lib/libbz2.1.0.dylib<br> 0x7fff88e0e000 - 0x7fff88e19fff libsystem_notify.dylib (98.6) &lt;1E490CB2-9311-3B36-8372-37D3FB0FD818&gt; /usr/lib/system/libsystem_notify.dylib<br> 0x7fff88ed8000 - 0x7fff88fe4ff7 libFontParser.dylib (84.11) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib<br> 0x7fff8933c000 - 0x7fff898acff7 com.apple.CoreAUC (6.22.03 - 6.22.03) /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC<br> 0x7fff898ad000 - 0x7fff898adfff libkeymgr.dylib (25) /usr/lib/system/libkeymgr.dylib<br> 0x7fff898ae000 - 0x7fff898f2fff libcups.2.dylib (327.9) /usr/lib/libcups.2.dylib<br> 0x7fff8997f000 - 0x7fff89a44ff7 com.apple.coreui (2.0 - 181.1) &lt;83D2C92D-6842-3C9D-9289-39D5B4554C3A&gt; /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI<br> 0x7fff8a037000 - 0x7fff8a096fff libTIFF.dylib (854) &lt;29014639-6085-3F19-AE47-1026F70A3D0D&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib<br> 0x7fff8a097000 - 0x7fff8a09cfff libcache.dylib (57) &lt;65187C6E-3FBF-3EB8-A1AA-389445E2984D&gt; /usr/lib/system/libcache.dylib<br> 0x7fff8a09d000 - 0x7fff8a09eff7 libsystem_sandbox.dylib (220.4) /usr/lib/system/libsystem_sandbox.dylib<br> 0x7fff8a194000 - 0x7fff8a195fff liblangid.dylib (116) &lt;864C409D-D56B-383E-9B44-A435A47F2346&gt; /usr/lib/liblangid.dylib<br> 0x7fff8a196000 - 0x7fff8a198fff com.apple.TrustEvaluationAgent (2.0 - 23) /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent<br> 0x7fff8a19b000 - 0x7fff8a19ffff libpam.2.dylib (20) /usr/lib/libpam.2.dylib<br> 0x7fff8a1ee000 - 0x7fff8a1f4fff libmacho.dylib (829) /usr/lib/system/libmacho.dylib<br> 0x7fff8a31a000 - 0x7fff8a329ff7 libxar.1.dylib (105) /usr/lib/libxar.1.dylib<br> 0x7fff8a32a000 - 0x7fff8a34bff7 libCRFSuite.dylib (33) /usr/lib/libCRFSuite.dylib<br> 0x7fff8a34c000 - 0x7fff8a363fff com.apple.GenerationalStorage (1.1 - 132.3) /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage<br> 0x7fff8a399000 - 0x7fff8a3c0ff7 com.apple.PerformanceAnalysis (1.16 - 16) &lt;1BDA3662-18B7-3F38-94E5-9ACD477A7682&gt; /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis<br> 0x7fff8a3c1000 - 0x7fff8a3d0fff com.apple.opengl (1.8.10 - 1.8.10) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL<br> 0x7fff8a461000 - 0x7fff8a46aff7 com.apple.CommerceCore (1.0 - 26.2) /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore<br> 0x7fff8a476000 - 0x7fff8a47eff7 libsystem_dnssd.dylib (379.38.1) /usr/lib/system/libsystem_dnssd.dylib<br> 0x7fff8a494000 - 0x7fff8a4b4fff libPng.dylib (854) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib<br> 0x7fff8a4d1000 - 0x7fff8b0fefff com.apple.AppKit (6.8 - 1187.40) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit<br> 0x7fff8b3a6000 - 0x7fff8b3f3fff com.apple.CoreMediaIO (309.0 - 4163.1) &lt;8FD1C1A9-25C5-3B9E-A76D-BE813253B358&gt; /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/CoreMediaIO<br> 0x7fff8c3b4000 - 0x7fff8c40afff com.apple.HIServices (1.20 - 417) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices<br> 0x7fff8c433000 - 0x7fff8c44eff7 libexpat.1.dylib (12) &lt;95D59F1F-0A5C-3F33-BA97-26F7D796CE7A&gt; /usr/lib/libexpat.1.dylib<br> 0x7fff8c46d000 - 0x7fff8c470ff7 libdyld.dylib (210.2.3) /usr/lib/system/libdyld.dylib<br> 0x7fff8c4f4000 - 0x7fff8c573ff7 com.apple.securityfoundation (6.0 - 55115.4) &lt;8676E0DF-295F-3690-BDAA-6C9C1D210B88&gt; /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation<br> 0x7fff8c5c8000 - 0x7fff8c60bff7 com.apple.bom (12.0 - 192) &lt;0EFE0F2D-B6DE-3D1E-93C2-EED6D96F70A2&gt; /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom<br> 0x7fff8c685000 - 0x7fff8c685fff com.apple.Accelerate.vecLib (3.8 - vecLib 3.8) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib<br> 0x7fff8c686000 - 0x7fff8c886fff libicucore.A.dylib (491.11.3) &lt;5783D305-04E8-3D17-94F7-1CEAFA975240&gt; /usr/lib/libicucore.A.dylib<br> 0x7fff8c8e3000 - 0x7fff8ca54ff7 com.apple.QTKit (7.7.1 - 2599.54) &lt;12F9CD59-5BCC-3847-BA6F-2002DC865DFE&gt; /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit<br> 0x7fff8cabb000 - 0x7fff8cc56fef com.apple.vImage (6.0 - 6.0) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage<br> 0x7fff8cc57000 - 0x7fff8cd09ff7 com.apple.LaunchServices (539.14 - 539.14) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices<br> 0x7fff8cd0a000 - 0x7fff8cd2fff7 libc++abi.dylib (26) /usr/lib/libc++abi.dylib<br> 0x7fff8cd39000 - 0x7fff8cd95ff7 com.apple.Symbolication (1.3 - 93) /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication<br> 0x7fff8cd96000 - 0x7fff8cdb5ff7 libresolv.9.dylib (51) &lt;0882DC2D-A892-31FF-AD8C-0BB518C48B23&gt; /usr/lib/libresolv.9.dylib<br> 0x7fff8cf10000 - 0x7fff8d34cfff com.apple.VideoToolbox (1.0 - 926.107) &lt;6C851058-5598-3207-87E2-577135587425&gt; /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox<br> 0x7fff8d34d000 - 0x7fff8d3acfff com.apple.AE (645.6 - 645.7) &lt;2F1E192C-DF34-3903-9F30-27B896699CA4&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE</p> <p dir="auto">External Modification Summary:<br> Calls made by other processes targeting this process:<br> task_for_pid: 2<br> thread_create: 0<br> thread_set_state: 0<br> Calls made by this process:<br> task_for_pid: 0<br> thread_create: 0<br> thread_set_state: 0<br> Calls made by all processes on this machine:<br> task_for_pid: 3791<br> thread_create: 0<br> thread_set_state: 0</p> <p dir="auto">VM Region Summary:<br> ReadOnly portion of Libraries: Total=236.9M resident=164.6M(69%) swapped_out_or_unallocated=72.3M(31%)<br> Writable regions: Total=113.0M written=11.9M(11%) resident=12.2M(11%) swapped_out=0K(0%) unallocated=100.8M(89%)</p> <p dir="auto">REGION TYPE VIRTUAL<br> =========== =======<br> CG shared images 96K<br> MALLOC 75.1M<br> MALLOC guard page 48K<br> Memory tag=255 554.1M<br> Memory tag=255 (reserved) 256K reserved VM address space (unallocated)<br> STACK GUARD 56.0M<br> Stack 25.5M<br> VM_ALLOCATE 16K<br> __DATA 16.6M<br> __IMAGE 528K<br> __LINKEDIT 60.8M<br> __TEXT 176.1M<br> __UNICODE 544K<br> mapped file 45.4M<br> shared memory 308K<br> =========== =======<br> TOTAL 1.0G<br> TOTAL, minus reserved VM space 1.0G</p> <p dir="auto">Model: MacBookPro10,1, BootROM MBP101.00EE.B09, 4 processors, Intel Core i7, 2.8 GHz, 16 GB, SMC 2.3f36<br> Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In, 512 MB<br> Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB<br> Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020<br> Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020<br> AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xEF), Broadcom BCM43xx 1.0 (5.106.98.100.17)<br> Bluetooth: Version 6.1.7f5 15859, 3 service, 21 devices, 3 incoming serial ports<br> Network Service: USB Ethernet, Ethernet, en2<br> Network Service: Wi-Fi, AirPort, en0<br> Serial ATA Device: APPLE SSD SM768E, 751.28 GB<br> USB Device: hub_device, 0x8087 (Intel Corporation), 0x0024, 0x1a100000 / 2<br> USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8510, 0x1a110000 / 3<br> USB Device: hub_device, 0x8087 (Intel Corporation), 0x0024, 0x1d100000 / 2<br> USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0x1d110000 / 6<br> USB Device: Microsoft USB Optical Mouse, 0x045e (Microsoft Corporation), 0x00cb, 0x1d113000 / 10<br> USB Device: Apple USB Ethernet Adapter, apple_vendor_id, 0x1402, 0x1d111000 / 9<br> USB Device: Apple Keyboard, apple_vendor_id, 0x024f, 0x1d112000 / 7<br> USB Device: hub_device, 0x0424 (SMSC), 0x2512, 0x1d180000 / 3<br> USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0262, 0x1d182000 / 5<br> USB Device: BRCM20702 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x1d181000 / 4<br> USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8286, 0x1d181300 / 8</p>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117938631" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/296" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/296/hovercard" href="https://github.com/microsoft/vscode/issues/296">microsoft/vscode#296</a> for details. The stacktrace seems to be all in Electron land. Any ideas?</p>
1
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <p dir="auto">test:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class A(Base): __tablename__ = 'a' id = Column(Integer, primary_key=True) b_id = Column(ForeignKey('b.id')) c_id = Column(ForeignKey('c.id')) b = relationship(&quot;B&quot;) c = relationship(&quot;C&quot;) class B(Base): __tablename__ = 'b' id = Column(Integer, primary_key=True) c_id = Column(ForeignKey('c.id')) c = relationship(&quot;C&quot;) class C(Base): __tablename__ = 'c' id = Column(Integer, primary_key=True) d_id = Column(ForeignKey('d.id')) d = relationship(&quot;D&quot;) class D(Base): __tablename__ = 'd' id = Column(Integer, primary_key=True) e = create_engine(&quot;sqlite://&quot;, echo=True) Base.metadata.create_all(e) s = Session(e) c = C(d=D()) s.add( A(b=B(c=c), c=c) ) s.commit() c_alias_1 = aliased(C) c_alias_2 = aliased(C) q = s.query(A) q = q.join(A.b).join(c_alias_1, B.c).join(c_alias_1.d) q = q.options(contains_eager(A.b).contains_eager(B.c, alias=c_alias_1).contains_eager(C.d)) q = q.join(c_alias_2, A.c) q = q.options(contains_eager(A.c, alias=c_alias_2)) a1 = q.all()[0] assert 'd' in a1.c.__dict__ "><pre class="notranslate"><code class="notranslate">from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class A(Base): __tablename__ = 'a' id = Column(Integer, primary_key=True) b_id = Column(ForeignKey('b.id')) c_id = Column(ForeignKey('c.id')) b = relationship("B") c = relationship("C") class B(Base): __tablename__ = 'b' id = Column(Integer, primary_key=True) c_id = Column(ForeignKey('c.id')) c = relationship("C") class C(Base): __tablename__ = 'c' id = Column(Integer, primary_key=True) d_id = Column(ForeignKey('d.id')) d = relationship("D") class D(Base): __tablename__ = 'd' id = Column(Integer, primary_key=True) e = create_engine("sqlite://", echo=True) Base.metadata.create_all(e) s = Session(e) c = C(d=D()) s.add( A(b=B(c=c), c=c) ) s.commit() c_alias_1 = aliased(C) c_alias_2 = aliased(C) q = s.query(A) q = q.join(A.b).join(c_alias_1, B.c).join(c_alias_1.d) q = q.options(contains_eager(A.b).contains_eager(B.c, alias=c_alias_1).contains_eager(C.d)) q = q.join(c_alias_2, A.c) q = q.options(contains_eager(A.c, alias=c_alias_2)) a1 = q.all()[0] assert 'd' in a1.c.__dict__ </code></pre></div> <p dir="auto">this test relies on the order in which we load attributes, and for some reason PYTHONHASHSEED isn't doing the job in all cases, so test with this patch:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/orm/loading.py b/lib/sqlalchemy/orm/loading.py index 50afaf6..8de66de 100644 --- a/lib/sqlalchemy/orm/loading.py +++ b/lib/sqlalchemy/orm/loading.py @@ -295,6 +295,13 @@ def _instance_processor( quick_populators = path.get( context.attributes, &quot;memoized_setups&quot;, _none_set) + import random + props = list(props) + random.shuffle(props) + + print( + &quot;PROPS!!!!&quot;,[p.key for p in props] + ) for prop in props: if prop in quick_populators:"><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/orm/loading.py b/lib/sqlalchemy/orm/loading.py index 50afaf6..8de66de 100644 --- a/lib/sqlalchemy/orm/loading.py +++ b/lib/sqlalchemy/orm/loading.py @@ -295,6 +295,13 @@ def _instance_processor( quick_populators = path.get( context.attributes, "memoized_setups", _none_set) + import random + props = list(props) + random.shuffle(props) + + print( + "PROPS!!!!",[p.key for p in props] + ) for prop in props: if prop in quick_populators: </code></pre></div> <p dir="auto">there's no way to force this loader to happen in all cases because ultimately when the C object is already there, the "isnew" flag is not set and we naturally hit the "existing" loader. However, the "existing" loader <em>can</em> do a check here and populate the key, and we are checking anyway:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py index 78e9293..dff51b9 100644 --- a/lib/sqlalchemy/orm/strategies.py +++ b/lib/sqlalchemy/orm/strategies.py @@ -1559,13 +1559,15 @@ class JoinedLoader(AbstractRelationshipLoader): # call _instance on the row, even though the object has # been created, so that we further descend into properties existing = _instance(row) - if existing is not None \ - and key in dict_ \ - and existing is not dict_[key]: - util.warn( - &quot;Multiple rows returned with &quot; - &quot;uselist=False for eagerly-loaded attribute '%s' &quot; - % self) + if existing is not None: + if key in dict_: + if existing is not dict_[key]: + util.warn( + &quot;Multiple rows returned with &quot; + &quot;uselist=False for eagerly-loaded attribute '%s' &quot; + % self) + else: + dict_[key] = existing def load_scalar_from_joined_exec(state, dict_, row): _instance(row) # this is an inlined path just for column-based attributes."><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py index 78e9293..dff51b9 100644 --- a/lib/sqlalchemy/orm/strategies.py +++ b/lib/sqlalchemy/orm/strategies.py @@ -1559,13 +1559,15 @@ class JoinedLoader(AbstractRelationshipLoader): # call _instance on the row, even though the object has # been created, so that we further descend into properties existing = _instance(row) - if existing is not None \ - and key in dict_ \ - and existing is not dict_[key]: - util.warn( - "Multiple rows returned with " - "uselist=False for eagerly-loaded attribute '%s' " - % self) + if existing is not None: + if key in dict_: + if existing is not dict_[key]: + util.warn( + "Multiple rows returned with " + "uselist=False for eagerly-loaded attribute '%s' " + % self) + else: + dict_[key] = existing def load_scalar_from_joined_exec(state, dict_, row): _instance(row) # this is an inlined path just for column-based attributes. </code></pre></div> <p dir="auto">would need to do the deep thinking here to see if this is right.</p>
<p dir="auto">I have an OAuth 2.0 application that has a database, user data and token data are stored in this database. I have also another application that has its own database and need to connect to OAuth 2.0 database, to check if the user' token is valid or not, and its own database.</p> <p dir="auto">I connect to multiple databases on the second application this way:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# db.py from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() # app.py app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://' + \ app.config['DATABASE_USER'] + ':' + \ app.config['DATABASE_PASSWORD'] + '@' + \ app.config['DATABASE_HOST'] + '/' + \ app.config['DATABASE'] app.config['SQLALCHEMY_BINDS'] = { 'oauth': 'mysql://' + app.config['DATABASE_USER_OAUTH'] + ':' + app.config['DATABASE_PASSWORD_OAUTH'] + '@' + app.config['DATABASE_HOST_OAUTH'] + '/' + app.config['DATABASE_OAUTH'] }"><pre class="notranslate"><span class="pl-c"># db.py</span> <span class="pl-k">from</span> <span class="pl-s1">flask_sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">SQLAlchemy</span> <span class="pl-s1">db</span> <span class="pl-c1">=</span> <span class="pl-v">SQLAlchemy</span>() <span class="pl-c"># app.py</span> <span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'SQLALCHEMY_DATABASE_URI'</span>] <span class="pl-c1">=</span> <span class="pl-s">'mysql://'</span> <span class="pl-c1">+</span> \ <span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'DATABASE_USER'</span>] <span class="pl-c1">+</span> <span class="pl-s">':'</span> <span class="pl-c1">+</span> \ <span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'DATABASE_PASSWORD'</span>] <span class="pl-c1">+</span> <span class="pl-s">'@'</span> <span class="pl-c1">+</span> \ <span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'DATABASE_HOST'</span>] <span class="pl-c1">+</span> <span class="pl-s">'/'</span> <span class="pl-c1">+</span> \ <span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'DATABASE'</span>] <span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'SQLALCHEMY_BINDS'</span>] <span class="pl-c1">=</span> { <span class="pl-s">'oauth'</span>: <span class="pl-s">'mysql://'</span> <span class="pl-c1">+</span> <span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'DATABASE_USER_OAUTH'</span>] <span class="pl-c1">+</span> <span class="pl-s">':'</span> <span class="pl-c1">+</span> <span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'DATABASE_PASSWORD_OAUTH'</span>] <span class="pl-c1">+</span> <span class="pl-s">'@'</span> <span class="pl-c1">+</span> <span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'DATABASE_HOST_OAUTH'</span>] <span class="pl-c1">+</span> <span class="pl-s">'/'</span> <span class="pl-c1">+</span> <span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'DATABASE_OAUTH'</span>] }</pre></div> <p dir="auto">To check if the user' token is valid or not, on the second application I need to duplicate the user and token models (ORM) generated on the OAuth 2.0 application. The problem is that I just need the duplicated models to create a decorator, but when I generate the second application' database, the models (user and token) are tracked by SQLAlchemy and its structure is created on the second application' database. When I send a token to the second application, the OAuth 2.0 database it's used get token information, this causes a weirdo behavior in my application.</p> <p dir="auto">I have set the models to use the OAuth 2.0 connection:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# oauth.py class User(db.Model): __bind_key__ = 'oauth' __tablename__ = 'oauth2_user' # ... class Token(db.Model, OAuth2TokenMixin): __bind_key__ = 'oauth' __tablename__ = 'oauth2_token' # ..."><pre class="notranslate"><span class="pl-c"># oauth.py</span> <span class="pl-k">class</span> <span class="pl-v">User</span>(<span class="pl-s1">db</span>.<span class="pl-v">Model</span>): <span class="pl-s1">__bind_key__</span> <span class="pl-c1">=</span> <span class="pl-s">'oauth'</span> <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'oauth2_user'</span> <span class="pl-c"># ...</span> <span class="pl-k">class</span> <span class="pl-v">Token</span>(<span class="pl-s1">db</span>.<span class="pl-v">Model</span>, <span class="pl-v">OAuth2TokenMixin</span>): <span class="pl-s1">__bind_key__</span> <span class="pl-c1">=</span> <span class="pl-s">'oauth'</span> <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'oauth2_token'</span> <span class="pl-c"># ...</span></pre></div> <p dir="auto">But it doesn't work. I have also read the table configuration <a href="https://docs.sqlalchemy.org/en/latest/orm/extensions/declarative/table_config.html?highlight=__table_args__#table-configuration" rel="nofollow">documentation</a>, but I did not found nothing that can help me.</p> <p dir="auto">MySQL engine, <code class="notranslate">Flask-SQLAlchemy==2.3.2, mysqlclient==1.3.14, SQLAlchemy==1.2.15</code>.</p> <p dir="auto"><strong>Obs</strong>: I don't want to create the user and token table on the second application' database, but I want to have the user and token models available and at the same time use the user and token tables present on OAuth 2.0 database</p>
0
<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.6.4</li> <li>Operating System version: linux</li> <li>Java version: jdk1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li> <p dir="auto">provider提供者自定义loadbalance扩展<br> <code class="notranslate">&lt;dubbo:service interface="com.xxx.XxApi" ref="xxApi"&gt; </code><br> <code class="notranslate">&lt;dubbo:method name="method" loadbalance="hashLoadBalance"&gt; </code><br> <code class="notranslate">&lt;dubbo:parameter key="hash.arguments" value="0,1" /&gt; </code><br> <code class="notranslate">&lt;/dubbo:method&gt; </code><br> <code class="notranslate">&lt;/dubbo:service&gt;</code></p> </li> <li> <p dir="auto">服务提供者文件配置对应扩展<br> src<br> |-main<br> |-java<br> |-com<br> |-xxx<br> |-XxxLoadBalance.java (实现LoadBalance接口)<br> |-resources<br> |-META-INF<br> |-dubbo<br> |-com.alibaba.dubbo.rpc.cluster.LoadBalance (纯文本文件,内容为:hashLoadBalance=com.xxx.HashLoadBalance)</p> </li> </ol> <p dir="auto">3.消费者调用<br> ` <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a><br> private XxApi xxApi;</p> <p dir="auto">public void xx() {<br> xxApi.method()<br> }<br> `</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">消费者调用不能识别提供者方法上配置的自定义hashLoadBalance扩展</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.IllegalStateException: No such extension com.alibaba.dubbo.rpc.cluster.LoadBalance by name hashLoadBalance at com.alibaba.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:482) at com.alibaba.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:489) at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:309) at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:240) at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75) at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52) at com.alibaba.dubbo.common.bytecode.proxy0.measure(proxy0.java) at com.daimler.visual.LbsVssManager.measure(LbsVssManager.java:38) at com.daimler.visual.LbsVssManager$$FastClassBySpringCGLIB$$d6590229.invoke(&lt;generated&gt;) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:747) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689) at com.daimler.visual.LbsVssManager$$EnhancerBySpringCGLIB$$419b98e9.measure(&lt;generated&gt;) at com.daimler.visual.dubbo.CompassApiTest.test_lbs(CompassApiTest.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:73) at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:83) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)"><pre class="notranslate"><code class="notranslate">java.lang.IllegalStateException: No such extension com.alibaba.dubbo.rpc.cluster.LoadBalance by name hashLoadBalance at com.alibaba.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:482) at com.alibaba.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:489) at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:309) at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:240) at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75) at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52) at com.alibaba.dubbo.common.bytecode.proxy0.measure(proxy0.java) at com.daimler.visual.LbsVssManager.measure(LbsVssManager.java:38) at com.daimler.visual.LbsVssManager$$FastClassBySpringCGLIB$$d6590229.invoke(&lt;generated&gt;) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:747) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689) at com.daimler.visual.LbsVssManager$$EnhancerBySpringCGLIB$$419b98e9.measure(&lt;generated&gt;) at com.daimler.visual.dubbo.CompassApiTest.test_lbs(CompassApiTest.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:73) at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:83) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) </code></pre></div>
<ul dir="auto"> <li>[ X] 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>[X ] 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> <p dir="auto">I add one new serialization and there can't find any useage of method Serialization.getContentType() in project.<br> So what string should i return. And if there are some rules of this string value.</p>
0
<p dir="auto">Is there a reason why <code class="notranslate">read_csv</code> has a <code class="notranslate">usecols</code> and <code class="notranslate">skiprows</code> as arguments, but not <code class="notranslate">skipcols</code> and <code class="notranslate">userows</code>? Is this to avoid parameter checks or something more fundamental than that?</p> <p dir="auto">It would be nice to have all four options to avoid clunky inversions of the type <code class="notranslate">usecols = columns.remove(unwanted_col)</code>.</p>
<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="# Your code here import pandas as pd df = pd.DataFrame({'A'=[1,2,3],'B'=[3,2,1]}) Here, I need something like the following, C should be, True = if the row value of A is less than the value of B. Else False. Without a for loop. df.C.tolist() should be [True, False, False]"><pre class="notranslate"><span class="pl-c"># Your code here</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">df</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">=</span>[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>],<span class="pl-s">'B'</span><span class="pl-c1">=</span>[<span class="pl-c1">3</span>,<span class="pl-c1">2</span>,<span class="pl-c1">1</span>]}) <span class="pl-v">Here</span>, <span class="pl-v">I</span> <span class="pl-s1">need</span> <span class="pl-s1">something</span> <span class="pl-s1">like</span> <span class="pl-s1">the</span> <span class="pl-s1">following</span>, <span class="pl-v">C</span> <span class="pl-s1">should</span> <span class="pl-s1">be</span>, <span class="pl-c1">True</span> <span class="pl-c1">=</span> <span class="pl-k">if</span> <span class="pl-s1">the</span> <span class="pl-s1">row</span> <span class="pl-s1">value</span> <span class="pl-s1">of</span> <span class="pl-v">A</span> <span class="pl-c1">is</span> <span class="pl-s1">less</span> <span class="pl-s1">than</span> <span class="pl-s1">the</span> <span class="pl-s1">value</span> <span class="pl-s1">of</span> <span class="pl-v">B</span>. <span class="pl-v">Else</span> <span class="pl-c1">False</span>. <span class="pl-v">Without</span> <span class="pl-s1">a</span> <span class="pl-k">for</span> <span class="pl-s1">loop</span>. <span class="pl-s1">df</span>.<span class="pl-v">C</span>.<span class="pl-en">tolist</span>() <span class="pl-s1">should</span> <span class="pl-s1">be</span> [<span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">False</span>]</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">[this should explain <strong>why</strong> the current behaviour is a problem and why the expected output is a better solution.]</p> <p dir="auto"><strong>Note</strong>: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!</p> <p dir="auto"><strong>Note</strong>: Many problems can be resolved by simply upgrading <code class="notranslate">pandas</code> to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if <code class="notranslate">master</code> addresses this issue, but that is not necessary.</p> <p dir="auto">For documentation-related issues, you can check the latest versions of the docs on <code class="notranslate">master</code> here:</p> <p dir="auto"><a href="https://pandas-docs.github.io/pandas-docs-travis/" rel="nofollow">https://pandas-docs.github.io/pandas-docs-travis/</a></p> <p dir="auto">If the issue has not been resolved there, go ahead and file it in the issue tracker.</p> <h4 dir="auto">Expected Output</h4> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <p dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]</p> </details>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions and Help</h2> <p dir="auto">Hello,</p> <p dir="auto">I'm trying to run pytorch v1.0.0 on aws lambda for object detection inference, and i'm building the package on <code class="notranslate">lambci/lambda:build-python3.6</code> docker image using the following command lines :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RUN git clone --recursive https://github.com/pytorch/pytorch.git --branch=v1.0.0 ENV NO_CUDA=1 ENV NO_TEST=1 ENV NO_NNPACK=1 ENV NO_QNNPACK=1 ENV NO_MKLDNN=1 ENV NO_DISTRIBUTED=1 ENV NO_CUDNN=1 ENV NO_FBGEMM=1 ENV NO_MIOPEN=1 ENV NO_CAFFE2_OPS=1 ENV BUILD_BINARY=0 RUN cd pytorch &amp;&amp; python setup.py install"><pre lang="Docker" class="notranslate"><code class="notranslate">RUN git clone --recursive https://github.com/pytorch/pytorch.git --branch=v1.0.0 ENV NO_CUDA=1 ENV NO_TEST=1 ENV NO_NNPACK=1 ENV NO_QNNPACK=1 ENV NO_MKLDNN=1 ENV NO_DISTRIBUTED=1 ENV NO_CUDNN=1 ENV NO_FBGEMM=1 ENV NO_MIOPEN=1 ENV NO_CAFFE2_OPS=1 ENV BUILD_BINARY=0 RUN cd pytorch &amp;&amp; python setup.py install </code></pre></div> <p dir="auto">the torch package is build successfully and I'm able to upload it on aws lambda, but I get the following errors when I try to run inference :<br> <code class="notranslate">Error in cpuinfo: failed to parse the list of possible procesors in /sys/devices/system/cpu/possible</code><br> <code class="notranslate">Error in cpuinfo: failed to parse the list of present procesors in /sys/devices/system/cpu/present</code></p> <p dir="auto">knowing that I disabled NNPACK, QNNPACK and MKLDNN in the build above (I'm not sure if it's related or not)</p> <p dir="auto">I was able to do the same a couple months back using just caffe2, here is the snippet of code and the commit I was using:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RUN git clone --recursive https://github.com/pytorch/pytorch.git /caffe2 WORKDIR /caffe2 RUN git checkout 8601b33c079545bcd45b37983d2ec355b2215960 RUN git submodule update --init --recursive RUN cp -a -r /caffe2/modules/detectron/*.cu /caffe2/caffe2/operators/ RUN cp -a -r /caffe2/modules/detectron/*.cc /caffe2/caffe2/operators/ RUN cp -a -r /caffe2/modules/detectron/*.h /caffe2/caffe2/operators/ RUN mkdir build &amp;&amp; cd build &amp;&amp; \ cmake -DUSE_GFLAGS=OFF \ -DUSE_GLOG=OFF \ -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_INSTALL_PREFIX=&quot;/cf2/&quot; \ -DCMAKE_PREFIX_PATH=&quot;/cf2/&quot; \ -DUSE_GLOO=OFF \ -DUSE_CUDA=OFF \ -DUSE_MPI=OFF \ -DUSE_METAL=OFF \ -DUSE_NCCL=OFF \ -DUSE_NNPACK=OFF \ -DUSE_MOBILE_OPENGL=OFF \ -DBUILD_CUSTOM_PROTOBUF=OFF \ -DUSE_LEVELDB=OFF \ -DUSE_LMDB=OFF \ -DUSE_NUMA=OFF \ -DUSE_OPENCV=OFF \ -DUSE_NCCL=OFF \ .. \ &amp;&amp; make -j$(nproc) \ &amp;&amp; make install/fast \ &amp;&amp; ldconfig"><pre class="notranslate"><code class="notranslate">RUN git clone --recursive https://github.com/pytorch/pytorch.git /caffe2 WORKDIR /caffe2 RUN git checkout 8601b33c079545bcd45b37983d2ec355b2215960 RUN git submodule update --init --recursive RUN cp -a -r /caffe2/modules/detectron/*.cu /caffe2/caffe2/operators/ RUN cp -a -r /caffe2/modules/detectron/*.cc /caffe2/caffe2/operators/ RUN cp -a -r /caffe2/modules/detectron/*.h /caffe2/caffe2/operators/ RUN mkdir build &amp;&amp; cd build &amp;&amp; \ cmake -DUSE_GFLAGS=OFF \ -DUSE_GLOG=OFF \ -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_INSTALL_PREFIX="/cf2/" \ -DCMAKE_PREFIX_PATH="/cf2/" \ -DUSE_GLOO=OFF \ -DUSE_CUDA=OFF \ -DUSE_MPI=OFF \ -DUSE_METAL=OFF \ -DUSE_NCCL=OFF \ -DUSE_NNPACK=OFF \ -DUSE_MOBILE_OPENGL=OFF \ -DBUILD_CUSTOM_PROTOBUF=OFF \ -DUSE_LEVELDB=OFF \ -DUSE_LMDB=OFF \ -DUSE_NUMA=OFF \ -DUSE_OPENCV=OFF \ -DUSE_NCCL=OFF \ .. \ &amp;&amp; make -j$(nproc) \ &amp;&amp; make install/fast \ &amp;&amp; ldconfig </code></pre></div> <p dir="auto">at that time I was getting the same cpuinfo error when i was building with NNPACK, but no problem once I disabled NNPACK</p> <p dir="auto">Thanks,<br> Bendidi</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">I am running an image classification model with Serverless and AWS Lambda. Receiving following error upon calling the Serverless function; <strong>"Error in cpuinfo: failed to parse the list of present procesors in /sys/devices/system/cpu/present"</strong> - I did not misspell this, the spelling is copied from the error message I received and appear with the same spelling here;<br> <a href="https://github.com/pytorch/cpuinfo/blob/master/src/linux/processors.c">https://github.com/pytorch/cpuinfo/blob/master/src/linux/processors.c</a></p> <p dir="auto">Suspected it might be something with Pytorch 1.0.0 so I switched back to Pytorch 0.4.1 which made it work.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li> <p dir="auto">Run Pytorch in a Lambda with following whl in the requirements.txt;<br> Pillow==5.3.0<br> PyYAML==3.13<br> <strong><a href="https://download.pytorch.org/whl/cpu/torch-1.0.0-cp36-cp36m-linux_x86_64.whl" rel="nofollow">https://download.pytorch.org/whl/cpu/torch-1.0.0-cp36-cp36m-linux_x86_64.whl</a></strong><br> torchvision==0.2.1</p> </li> <li> <p dir="auto">Load optional model and predict an image, this error should arise; <strong>"Error in cpuinfo: failed to parse the list of present procesors in /sys/devices/system/cpu/present"</strong><br> and you will also get a timeout from the Lambda, regardless of how long timeout that is chosen; <strong>"Process exited before completing request"</strong></p> </li> </ol> <p dir="auto">No stack trace available, I only receive <strong>"Error in cpuinfo: failed to parse the list of present procesors in /sys/devices/system/cpu/present"</strong><br> and a timeout error; <strong>"Process exited before completing request"</strong></p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Expected image prediction from the model every time a new image is uploaded.</p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): <strong>1.0.0</strong></li> <li>OS (e.g., Linux): <strong>Linux</strong></li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): <strong>pip3</strong></li> <li>Build command you used (if compiling from source):</li> <li>Python version: <strong>3.6</strong></li> <li>CUDA/cuDNN version: <strong>No CUDA</strong></li> <li>GPU models and configuration: <strong>No GPU</strong></li> <li>Any other relevant information: <strong>Deployed with Serverless and AWS Lambda, 3008 GB memory and 30 second timeout, works with Pytorch 0.4.1</strong></li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Suspected it might be something with Pytorch 1.0.0 so I switched back to Pytorch 0.4.1 which made the image prediction work.</p> <p dir="auto">Let me know if I can provide any additional information.</p>
1
<p dir="auto">A recent update to the React Developer Tools Chrome Extension looks like it has a build issue.</p> <h2 dir="auto">The current behaviour</h2> <p dir="auto">Chrome console is reporting</p> <blockquote> <p dir="auto">DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/injectGlobalHook.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME</p> </blockquote> <p dir="auto">Looking at the map file it contains a lot of references to local paths on <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bvaughn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bvaughn">@bvaughn</a>'s computer.</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{&quot;version&quot;:3,&quot;sources&quot;:[&quot;webpack:///webpack/bootstrap&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react/index.js&quot;,&quot;webpack:///../react-devtools-shared/src/types.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react-is/index.js&quot;,&quot;webpack:///../react-devtools-shared/src/hook.js&quot;,&quot;webpack:///./src/injectGlobalHook.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/clipboard-js/clipboard.js&quot;,&quot;webpack:///../shared/ReactSymbols.js&quot;,&quot;webpack:///../react-devtools-shared/src/utils.js&quot;,&quot;webpack:///../react-devtools-shared/node_modules/semver/semver.js&quot;,&quot;webpack:///../react-devtools-shared/src/constants.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/object-assign/index.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/lru-cache/index.js&quot;,&quot;webpack:///../shared/ConsolePatchingDev.js&quot;,&quot;webpack:///../react-devtools-shared/src/backend/DevToolsComponentStackFrame.js&quot;,&quot;webpack:///../react-devtools-shared/src/backend/DevToolsFiberComponentStack.js&quot;,&quot;webpack:///../react-devtools-shared/src/backend/console.js&quot;,&quot;webpack:///../react-devtools-shared/src/backend/utils.js&quot;,&quot;webpack:///../react-devtools-shared/src/backend/renderer.js&quot;,&quot;webpack:///../react-devtools-shared/src/backend/ReactSymbols.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/process/browser.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/lru-cache/node_modules/yallist/yallist.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/lru-cache/node_modules/yallist/iterator.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react-is/cjs/react-is.production.min.js&quot;,&quot;webpack:///../react-devtools-shared/src/devtools/views/root.css&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react/cjs/react.production.min.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react-debug-tools/index.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react-debug-tools/cjs/react-debug-tools.production.min.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/error-stack-parser/error-stack-parser.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/stackframe/stackframe.js&quot;,&quot;webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/nullthrows/nullthrows.js&quot;,&quot;webpack:///../react-devtools-shared/src/storage.js&quot;,&quot;webpack:///../react-devtools-shared/src/hydration.js&quot;],&quot;names&quot;:[&quot;process&quot;,&quot;module&quot;,&quot;exports&quot;,&quot;require&quot;,&quot;ElementTypeClass&quot;,&quot;ElementTypeContext&quot;,&quot;ElementTypeFunction&quot;,&quot;ElementTypeForwardRef&quot;,&quot;ElementTypeHostComponent&quot;,&quot;ElementTypeMemo&quot;,&quot;ElementTypeOtherOrUnknown&quot;,&quot;ElementTypeProfiler&quot;,&quot;ElementTypeRoot&quot;,&quot;ElementTypeSu "><pre class="notranslate">{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react/index.js","webpack:///../react-devtools-shared/src/types.js","webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react-is/index.js","webpack:///../react-devtools-shared/src/hook.js","webpack:///./src/injectGlobalHook.js","webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/clipboard-js/clipboard.js","webpack:///../shared/ReactSymbols.js","webpack:///../react-devtools-shared/src/utils.js","webpack:///../react-devtools-shared/node_modules/semver/semver.js","webpack:///../react-devtools-shared/src/constants.js","webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/object-assign/index.js","webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/lru-cache/index.js","webpack:///../shared/ConsolePatchingDev.js","webpack:///../react-devtools-shared/src/backend/DevToolsComponentStackFrame.js","webpack:///../react-devtools-shared/src/backend/DevToolsFiberComponentStack.js","webpack:///../react-devtools-shared/src/backend/console.js","webpack:///../react-devtools-shared/src/backend/utils.js","webpack:///../react-devtools-shared/src/backend/renderer.js","webpack:///../react-devtools-shared/src/backend/ReactSymbols.js","webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/process/browser.js","webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/lru-cache/node_modules/yallist/yallist.js","webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/lru-cache/node_modules/yallist/iterator.js","webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react-is/cjs/react-is.production.min.js","webpack:///../react-devtools-shared/src/devtools/views/root.css","webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react/cjs/react.production.min.js","webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react-debug-tools/index.js","webpack:////Users/bvaughn/Documents/git/react.alt2/build/node_modules/react-debug-tools/cjs/react-debug-tools.production.min.js","webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/error-stack-parser/error-stack-parser.js","webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/stackframe/stackframe.js","webpack:////Users/bvaughn/Documents/git/react.alt2/node_modules/nullthrows/nullthrows.js","webpack:///../react-devtools-shared/src/storage.js","webpack:///../react-devtools-shared/src/hydration.js"],"names":["process","module","exports","require","ElementTypeClass","ElementTypeContext","ElementTypeFunction","ElementTypeForwardRef","ElementTypeHostComponent","ElementTypeMemo","ElementTypeOtherOrUnknown","ElementTypeProfiler","ElementTypeRoot","ElementTypeSu </pre></div> <h2 dir="auto">The expected behaviour</h2> <ul dir="auto"> <li>No Chrome message complaining about the SourceMap</li> </ul>
<p dir="auto">In <a href="extjs-reactor">extjs-reactor</a> we use some react internal methods like mountComponent, unmountComponent, and receiveComponent, as well as the ReactMultiChild mixin to defer rendering to Ext JS. This interface was very helpful for anyone looking to make generic JS component libraries work in React (as opposed to those built specifically for React).</p> <p dir="auto">Is there an equivalent/alternative way to control the mounting of a component in the new Fiber architecture?</p> <p dir="auto">If it helps, here is the code that references the React internal methods:</p> <p dir="auto"><a href="https://github.com/sencha/extjs-reactor/blob/master/packages/reactor/src/ExtJSComponent.js">https://github.com/sencha/extjs-reactor/blob/master/packages/reactor/src/ExtJSComponent.js</a></p>
0
<p dir="auto">Here's what atom looks like on my Chromebook Pixel (2015) - running trusty Ubuntu / Gnome.<br> It has a DPI of 239.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6345012/8367395/80fe2052-1b6b-11e5-8f7a-8263ee72b7d8.png"><img src="https://cloud.githubusercontent.com/assets/6345012/8367395/80fe2052-1b6b-11e5-8f7a-8263ee72b7d8.png" alt="screenshot from 2015-06-25 18 48 39" style="max-width: 100%;"></a></p> <p dir="auto">Is there any way to fix this via internal settings?</p>
<p dir="auto">I've just installed Atom from a git checkout on Ubuntu 12.10, and the attached screenshot is what I see (I've shrunk the editor font size). I'm assuming that fonts aren't really meant to be that large.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/362/4632693/3be39dee-53c0-11e4-8e64-4458a73ae4ae.png"><img src="https://cloud.githubusercontent.com/assets/362/4632693/3be39dee-53c0-11e4-8e64-4458a73ae4ae.png" alt="huge-fonts" style="max-width: 100%;"></a></p>
1
<p dir="auto">Hi,<br> I configured my webpack files in order to develop a client project. I have some issues when i run the following command <code class="notranslate">yarn develop</code>. I have no issues in the production mode.<br> Thanks for helping me.</p> <p dir="auto"><em>webpack.dev.js</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const path = require('path') const commonConfig = require('./webpack.common.js') const merge = require('webpack-merge') const MiniCssExtractPlugin = require(&quot;mini-css-extract-plugin&quot;) console.log('Development mode') const devConfig = { mode: 'development', entry: './src/main.js', output: { filename: 'main.bundle.js', path: path.resolve(__dirname, 'dist'), publicPath: '/dist' }, plugins: [ new MiniCssExtractPlugin({ filename: &quot;[name].css&quot;, chunkFilename: &quot;[id].css&quot; }) ], module: { rules: [{ test: /\.(sa|sc|c)ss$/, use: [{ loader: MiniCssExtractPlugin.loader, options: { publicPath: '/dist' } }, &quot;css-loader&quot;, &quot;sass-loader&quot;, ] }] }, module: { rules: [{ test: /\.js$/, exclude: /node_modules/, loader: &quot;babel-loader&quot; }] } } module.exports = merge(commonConfig, devConfig) "><pre class="notranslate"><code class="notranslate">const path = require('path') const commonConfig = require('./webpack.common.js') const merge = require('webpack-merge') const MiniCssExtractPlugin = require("mini-css-extract-plugin") console.log('Development mode') const devConfig = { mode: 'development', entry: './src/main.js', output: { filename: 'main.bundle.js', path: path.resolve(__dirname, 'dist'), publicPath: '/dist' }, plugins: [ new MiniCssExtractPlugin({ filename: "[name].css", chunkFilename: "[id].css" }) ], module: { rules: [{ test: /\.(sa|sc|c)ss$/, use: [{ loader: MiniCssExtractPlugin.loader, options: { publicPath: '/dist' } }, "css-loader", "sass-loader", ] }] }, module: { rules: [{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" }] } } module.exports = merge(commonConfig, devConfig) </code></pre></div> <p dir="auto"><em>webpack.prod.js</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const path = require('path') const commonConfig = require('./webpack.common.js') const merge = require('webpack-merge') const UglifyJsPlugin = require(&quot;uglifyjs-webpack-plugin&quot;) const OptimizeCSSAssetsPlugin = require(&quot;optimize-css-assets-webpack-plugin&quot;) const MiniCssExtractPlugin = require(&quot;mini-css-extract-plugin&quot;) console.log('Production mode') const prodConfig = { mode: 'production', entry: './src/main.js', output: { filename: 'main.bundle.[hash].js', path: path.resolve(__dirname, 'dist'), publicPath: '/dist' }, optimization: { minimizer: [ new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: true // set to true if you want JS source maps }), new OptimizeCSSAssetsPlugin({ cssProcessorOptions: { discardComments: { removeAll: true } }, canPrint: true }) ] }, plugins: [ new MiniCssExtractPlugin({ filename: &quot;[name].[hash].css&quot;, chunkFilename: &quot;[id].[hash].css&quot; }) ], module: { rules: [{ test: /\.(sa|sc|c)ss$/, use: [{ loader: MiniCssExtractPlugin.loader, options: { publicPath: '/dist' } }, &quot;css-loader&quot;, &quot;sass-loader&quot;, ] }] }, optimization: { splitChunks: { cacheGroups: { styles: { name: 'styles', test: /\.css$/, chunks: 'all', enforce: true } } } }, } module.exports = merge(commonConfig, prodConfig)"><pre class="notranslate"><code class="notranslate">const path = require('path') const commonConfig = require('./webpack.common.js') const merge = require('webpack-merge') const UglifyJsPlugin = require("uglifyjs-webpack-plugin") const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin") const MiniCssExtractPlugin = require("mini-css-extract-plugin") console.log('Production mode') const prodConfig = { mode: 'production', entry: './src/main.js', output: { filename: 'main.bundle.[hash].js', path: path.resolve(__dirname, 'dist'), publicPath: '/dist' }, optimization: { minimizer: [ new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: true // set to true if you want JS source maps }), new OptimizeCSSAssetsPlugin({ cssProcessorOptions: { discardComments: { removeAll: true } }, canPrint: true }) ] }, plugins: [ new MiniCssExtractPlugin({ filename: "[name].[hash].css", chunkFilename: "[id].[hash].css" }) ], module: { rules: [{ test: /\.(sa|sc|c)ss$/, use: [{ loader: MiniCssExtractPlugin.loader, options: { publicPath: '/dist' } }, "css-loader", "sass-loader", ] }] }, optimization: { splitChunks: { cacheGroups: { styles: { name: 'styles', test: /\.css$/, chunks: 'all', enforce: true } } } }, } module.exports = merge(commonConfig, prodConfig) </code></pre></div> <p dir="auto"><em>webpack.common.js</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" module.exports = { node: { fs: 'empty' } }"><pre class="notranslate"><code class="notranslate"> module.exports = { node: { fs: 'empty' } } </code></pre></div> <h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ yarn develop yarn run v1.3.2 $ webpack --mode=development --config webpack.dev.js --watch Development mode webpack is watching the files… Hash: 5323eebb9fe7fcf17ac1 Version: webpack 4.28.2 Time: 2380ms Built at: 2018-12-27 09:53:49 Asset Size Chunks Chunk Names main.bundle.js 443 KiB main [emitted] main Entrypoint main = main.bundle.js [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 47 2 bytes {main} [built] [./node_modules/webpack/buildin/harmony-module.js] (webpack)/buildin/harm ony-module.js 573 bytes {main} [built] [./src/main.js] 774 bytes {main} [built] [./src/style.scss] 175 bytes {main} [built] [failed] [1 error] + 11 hidden modules ERROR in ./src/style.scss 1:8 Module parse failed: Unexpected character '#' (1:8) You may need an appropriate loader to handle this file type. &gt; $orange:#e75300; | html, | a { @ ./src/main.js 5:10-33"><pre class="notranslate"><code class="notranslate">$ yarn develop yarn run v1.3.2 $ webpack --mode=development --config webpack.dev.js --watch Development mode webpack is watching the files… Hash: 5323eebb9fe7fcf17ac1 Version: webpack 4.28.2 Time: 2380ms Built at: 2018-12-27 09:53:49 Asset Size Chunks Chunk Names main.bundle.js 443 KiB main [emitted] main Entrypoint main = main.bundle.js [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 47 2 bytes {main} [built] [./node_modules/webpack/buildin/harmony-module.js] (webpack)/buildin/harm ony-module.js 573 bytes {main} [built] [./src/main.js] 774 bytes {main} [built] [./src/style.scss] 175 bytes {main} [built] [failed] [1 error] + 11 hidden modules ERROR in ./src/style.scss 1:8 Module parse failed: Unexpected character '#' (1:8) You may need an appropriate loader to handle this file type. &gt; $orange:#e75300; | html, | a { @ ./src/main.js 5:10-33 </code></pre></div> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">No parsing error.</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 4.23.1<br> Node.js version: 8.11<br> Operating System: windows 10<br> Additional tools: VSCode, Expression Engine CMS</p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-unshift" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-unshift</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">Although the comment conveys the correct message as below<br> <code class="notranslate">// Add "Paul" to the start of myArray</code><br> <code class="notranslate">// Only change code below this line.</code></p> <p dir="auto">The description says the following :<br> <em>Let's take the code we had last time and unshift this value <strong>to the end</strong> : "Paul"</em><br> It should be <strong>to the first</strong></p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-unshift" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-unshift</a> has an issue.<br> Just a little detail that may lead to confusion: in the description of the Waypoint it's written "to the end", when the unshift function adds the new value to the beginning of the array:<br> "Let's take the code we had last time and unshift this value to the 'END': "Paul"". (I've written it in uppercase so you can see it better).<br> That's all. Thanks for the work you're doing! ;)</p>
1
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function f0(): [number, number] { return [1, 2]; // works } interface Some&lt;a&gt; { some: a; } interface None { none: void; } type Optional&lt;a&gt; = Some&lt;a&gt; | None; function f1(): Optional&lt;[number, number]&gt; { return { some: [1, 2] }; // works } function some&lt;a&gt;(value: a) : Some&lt;a&gt; { return { some: value }; } function f2() : Optional&lt;[number, number]&gt; { return some([1, 2]); // doesn't work }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">f0</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-kos">[</span><span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-smi">number</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">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">// works</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">Some</span><span class="pl-c1">&lt;</span><span class="pl-smi">a</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">some</span>: <span class="pl-smi">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">None</span> <span class="pl-kos">{</span> <span class="pl-c1">none</span>: <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">type</span> <span class="pl-smi">Optional</span><span class="pl-c1">&lt;</span><span class="pl-smi">a</span><span class="pl-c1">&gt;</span> <span class="pl-c1">=</span> <span class="pl-smi">Some</span><span class="pl-kos">&lt;</span><span class="pl-smi">a</span><span class="pl-kos">&gt;</span> <span class="pl-c1">|</span> <span class="pl-smi">None</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">f1</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">Optional</span><span class="pl-kos">&lt;</span><span class="pl-kos">[</span><span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-smi">number</span><span class="pl-kos">]</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">some</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-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// works</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">some</span><span class="pl-c1">&lt;</span><span class="pl-smi">a</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">a</span><span class="pl-kos">)</span> : <span class="pl-smi">Some</span><span class="pl-kos">&lt;</span><span class="pl-smi">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">some</span>: <span class="pl-s1">value</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">f2</span><span class="pl-kos">(</span><span class="pl-kos">)</span> : <span class="pl-smi">Optional</span><span class="pl-kos">&lt;</span><span class="pl-kos">[</span><span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-smi">number</span><span class="pl-kos">]</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">some</span><span class="pl-kos">(</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-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// doesn't work</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">Tuple types aren't always inferred when calling generic functions. For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function identity&lt;A&gt;(value: A): A { return value } // works const [a1, b1]: [number, string] = [1, 'a'] // works const [a2, b2]: [number, string] = identity&lt;[number, string]&gt;([1, 'a']) // breaks const [a3, b3]: [number, string] = identity([1, 'a'])"><pre class="notranslate"><code class="notranslate">function identity&lt;A&gt;(value: A): A { return value } // works const [a1, b1]: [number, string] = [1, 'a'] // works const [a2, b2]: [number, string] = identity&lt;[number, string]&gt;([1, 'a']) // breaks const [a3, b3]: [number, string] = identity([1, 'a']) </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo.ts(12,7): error TS2322: Type '(number | string)[]' is not assignable to type '[number, string]'. Property '0' is missing in type '(number | string)[]'."><pre class="notranslate"><code class="notranslate">foo.ts(12,7): error TS2322: Type '(number | string)[]' is not assignable to type '[number, string]'. Property '0' is missing in type '(number | string)[]'. </code></pre></div> <p dir="auto">See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="59609104" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2189" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2189/hovercard" href="https://github.com/microsoft/TypeScript/issues/2189">#2189</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98871819" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4136" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4136/hovercard" href="https://github.com/microsoft/TypeScript/issues/4136">#4136</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121560624" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6037" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6037/hovercard" href="https://github.com/microsoft/TypeScript/issues/6037">#6037</a>.</p>
1
<p dir="auto">I am working in Android app that load images from Amazon S3. The Image URL randomly changes with token and expiry key. For that reason i can't cache the image Glide.</p> <p dir="auto">There is any way to set Glide cache key as any static ID(like image id) not url.</p> <p dir="auto">I attached my code snippet to load image from AWS</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide .with(remoteGalleryAct) .load(photoFinalImageURL) .signature(new StringSignature(getImageUrl(photoFinalImageURL)))// remove AWS keys .error(defaultNoImageDrawable) .placeholder(defaultNoImageDrawable) .dontAnimate() .diskCacheStrategy(DiskCacheStrategy.SOURCE) .into(new ImageViewTarget&lt;GlideDrawable&gt;(photoHolder.photo) { @Override protected void setResource(GlideDrawable resource) { } @Override public void onResourceReady(final GlideDrawable resource, GlideAnimation&lt;? super GlideDrawable&gt; glideAnimation) { //super.onResourceReady(resource, glideAnimation); view.setImageDrawable(resource); } });"><pre class="notranslate"><span class="pl-smi">Glide</span> .<span class="pl-en">with</span>(<span class="pl-s1">remoteGalleryAct</span>) .<span class="pl-en">load</span>(<span class="pl-s1">photoFinalImageURL</span>) .<span class="pl-en">signature</span>(<span class="pl-k">new</span> <span class="pl-smi">StringSignature</span>(<span class="pl-en">getImageUrl</span>(<span class="pl-s1">photoFinalImageURL</span>)))<span class="pl-c">// remove AWS keys</span> .<span class="pl-en">error</span>(<span class="pl-s1">defaultNoImageDrawable</span>) .<span class="pl-en">placeholder</span>(<span class="pl-s1">defaultNoImageDrawable</span>) .<span class="pl-en">dontAnimate</span>() .<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">SOURCE</span>) .<span class="pl-en">into</span>(<span class="pl-k">new</span> <span class="pl-smi">ImageViewTarget</span>&lt;<span class="pl-smi">GlideDrawable</span>&gt;(<span class="pl-s1">photoHolder</span>.<span class="pl-s1">photo</span>) { <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">protected</span> <span class="pl-smi">void</span> <span class="pl-en">setResource</span>(<span class="pl-smi">GlideDrawable</span> <span class="pl-s1">resource</span>) { } <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onResourceReady</span>(<span class="pl-k">final</span> <span class="pl-smi">GlideDrawable</span> <span class="pl-s1">resource</span>, <span class="pl-smi">GlideAnimation</span>&lt;? <span class="pl-en">super</span> <span class="pl-smi">GlideDrawable</span>&gt; <span class="pl-s1">glideAnimation</span>) { <span class="pl-c">//super.onResourceReady(resource, glideAnimation);</span> <span class="pl-s1">view</span>.<span class="pl-en">setImageDrawable</span>(<span class="pl-s1">resource</span>); } });</pre></div> <p dir="auto">Please suggest me there is any way to achieve in Glide.</p>
<p dir="auto">Hi, folks.<br> I need to cache images with dynamic url. I have 2 methods .getImageId() and .getImageUrl();<br> I need to cache my downloaded images with getImageId() key, because this id is unique and image url change all time.<br> How to set custom image id to cache? Please show me a way. Thanks.</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt;4.4</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>Compiler =&gt; Visual Studio 2017</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I tried some models from <a href="https://github.com/AlexeyAB/darknet">https://github.com/AlexeyAB/darknet</a>,as listed bellow:</p> <table role="table"> <thead> <tr> <th>模型</th> <th>模型大小</th> <th>FPS</th> </tr> </thead> <tbody> <tr> <td>YOLOv2</td> <td>194 MB</td> <td>-</td> </tr> <tr> <td>YOLOv2-tiny</td> <td>43MB</td> <td>15.3</td> </tr> <tr> <td>YOLOv3</td> <td>236 MB</td> <td>1.3</td> </tr> <tr> <td>YOLOv3-tiny</td> <td>33.7 MB</td> <td>13.3</td> </tr> <tr> <td>YOLOv3-tiny-prn</td> <td>18.8 MB</td> <td>17.1</td> </tr> <tr> <td>YOLOv3-SPP</td> <td>240 MB</td> <td>-</td> </tr> <tr> <td>csresnext50-panet-spp-original-optimal_final</td> <td>217 MB</td> <td>1.8</td> </tr> <tr> <td>YOLOv4</td> <td>245 MB</td> <td>1.2</td> </tr> <tr> <td>YOLOV4-tiny</td> <td>23.1 MB</td> <td>9.8</td> </tr> <tr> <td>enet-coco</td> <td>18.3 MB</td> <td>4.9</td> </tr> </tbody> </table> <p dir="auto">It failed to load <code class="notranslate">yolov3-spp</code> and <code class="notranslate">yolov2</code> using the same code as other models uesd.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">The code is listed bellow:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import cv2 import matplotlib.pyplot as plt import time import numpy as np coco_names = r&quot;F:\opencv\sources\samples\dnn\coco.names&quot; model_yolov2 = r&quot;F:\opencv\sources\samples\dnn\yolov2.weights&quot; cfg_yolov2 = r&quot;F:\opencv\sources\samples\dnn\yolov2.cfg&quot; model_yolov2_tiny = r&quot;E:\MachineLearning\darknet\yolov2-tiny.weights&quot; cfg_yolov2_tiny = &quot;E:\MachineLearning\darknet\cfg\yolov2-tiny.cfg&quot; model_yolov3 = r&quot;F:\opencv\sources\samples\dnn\yolov3.weights&quot; cfg_yolov3 = r&quot;F:\opencv\sources\samples\dnn\yolov3.cfg&quot; model_yolov3_tiny = r&quot;E:\MachineLearning\darknet\yolov3-tiny.weights&quot; cfg_yolov3_tiny = &quot;E:\MachineLearning\darknet\cfg\yolov3-tiny.cfg&quot; model_yolov3_tiny_prn = r&quot;E:\MachineLearning\darknet\yolov3-tiny-prn.weights&quot; cfg_yolov3_tiny_prn = &quot;E:\MachineLearning\darknet\cfg\yolov3-tiny-prn.cfg&quot; model_yolov3_spp = r&quot;F:\opencv\sources\samples\dnn\yolov3-spp.weights&quot; cfg_yolov3_spp = r&quot;F:\opencv\sources\samples\dnn\yolov3-spp.cfg&quot; csresnext_model = r&quot;E:\MachineLearning\darknet\csresnext50-panet-spp-original-optimal_final.weights&quot; csresnext_cfg = r&quot;E:\MachineLearning\darknet\cfg\csresnext50-panet-spp-original-optimal.cfg&quot; model_yolov4 = r&quot;F:\opencv\sources\samples\dnn\yolov4.weights&quot; cfg_yolov4 = r&quot;F:\opencv\sources\samples\dnn\yolov4.cfg&quot; model_yolov4_tiny = r&quot;E:\MachineLearning\darknet\yolov4-tiny.weights&quot; cfg_yolov4_tiny = &quot;E:\MachineLearning\darknet\cfg\yolov4-tiny.cfg&quot; enet_model = r&quot;E:\MachineLearning\darknet\enetb0-coco_final.weights&quot; enet_cfg = r&quot;E:\MachineLearning\darknet\cfg\enet-coco.cfg&quot; img_file = r&quot;C:\Users\admin\Pictures\car.jpg&quot; video_file = r'F:/opencv-4.4.0/samples/data/vtest.avi' model = model_yolov3_spp cfg = cfg_yolov3_spp with open(coco_names,'rt') as f: names = f.read().rstrip('\n').split('\n') def det_image_v1(model, cfg, img_file, c_threshold=0.5, nms=0.5): classes = names # initialize a list of colors to represent each possible class label COLORS = np.random.randint(0, 255, size=(len(classes), 3),dtype=&quot;uint8&quot;) print(&quot;[INFO] loading model...&quot;) net = cv2.dnn.readNetFromDarknet(cfg, model) # load the input image and construct an input blob for the image # by resizing to a fixed 300x300 pixels and then normalizing it image = cv2.imread(img_file) (H,W) = image.shape[:2] # Get the names of output layers ln = net.getLayerNames() ln = [ln[i[0] - 1] for i in net.getUnconnectedOutLayers()] # generate blob for image input to the network blob = cv2.dnn.blobFromImage(image,1/255,(416,416),swapRB=True, crop=False) net.setInput(blob) start = time.time() layersOutputs = net.forward(ln) print(layersOutputs) boxes = [] confidences = [] classIDs = [] for output in layersOutputs: # loop over each of the detections for detection in output: # extract the class ID and confidence (i.e., probability) of # the current object detection scores = detection[5:] classID = np.argmax(scores) confidence = scores[classID] # filter out weak predictions by ensuring the detected # probability is greater than the minimum probability if confidence &gt; 0.5: box = detection[0:4]* np.array([W, H, W, H]) (centerX, centerY, width, height) = box.astype(&quot;int&quot;) # use the center (x, y)-coordinates to derive the top and # and left corner of the bounding box x = int(centerX - (width / 2)) y = int(centerY - (height / 2)) # update our list of bounding box coordinates, confidences, # and class IDs boxes.append([x, y, int(width), int(height)]) confidences.append(float(confidence)) classIDs.append(classID) # Remove unnecessary boxes using non maximum suppression idxs = cv2.dnn.NMSBoxes(boxes, confidences, c_threshold, nms) if len(idxs) &gt; 0: # loop over the indexes we are keeping for i in idxs.flatten(): # extract the bounding box coordinates (x, y) = (boxes[i][0], boxes[i][1]) (w, h) = (boxes[i][2], boxes[i][3]) # draw a bounding box rectangle and label on the image color = [int(c) for c in COLORS[classIDs[i]]] cv2.rectangle(image, (x, y), (x + w, y + h), color, 2) text = &quot;{}: {:.4f}&quot;.format(classes[classIDs[i]], confidences[i]) cv2.putText(image, text, (x, y - 5), cv2.FONT_HERSHEY_SIMPLEX, 0.4, color, 1) end = time.time() # print the time required print('FPS:', 1/(end- start)) # show the output image cv2.imshow(&quot;Image&quot;, image) cv2.waitKey(0) cv2.destroyAllWindows() det_image_v1(model,cfg, img_file) def det_image_v2(model, cfg, img_file, c_threshold=0.5, nms=0.5): # 加载yolo模型 net = cv2.dnn_DetectionModel(model, cfg) net.setInputSize(512,512) # 设置网络输入尺寸 net.setInputScale(1.0/255) net.setInputSwapRB(True) frame=cv2.imread(img_file) classes, confs, boxes = net.detect(frame, c_threshold, nms) for id, conf, box in zip(classes.flatten(), confs.flatten(), boxes): label = '{}, {:.2f}'.format(names[id], conf) # print(label) labelsize, baseLine= cv2.getTextSize(label, cv2.FONT_HERSHEY_SIMPLEX,0.5,1) left, top, width, height = box top = max(top, labelsize[1]) cv2.rectangle(frame, box, color=(0, 255, 0), thickness=3) cv2.rectangle(frame, (left, top-labelsize[1]), (left+labelsize[0], top+baseLine),(255, 255, 255), cv2.FILLED) cv2.putText (frame, label,(left, top), cv2.FONT_HERSHEY_SIMPLEX, 0.5,(0,0, 0)) # plt.imshow(frame[:,:,::-1]) # plt.show() cv2.imshow('frame', frame) cv2.waitKey(0) cv2.destroyAllWindows() det_image_v2(model, cfg, img_file)"><pre class="notranslate"><code class="notranslate">import cv2 import matplotlib.pyplot as plt import time import numpy as np coco_names = r"F:\opencv\sources\samples\dnn\coco.names" model_yolov2 = r"F:\opencv\sources\samples\dnn\yolov2.weights" cfg_yolov2 = r"F:\opencv\sources\samples\dnn\yolov2.cfg" model_yolov2_tiny = r"E:\MachineLearning\darknet\yolov2-tiny.weights" cfg_yolov2_tiny = "E:\MachineLearning\darknet\cfg\yolov2-tiny.cfg" model_yolov3 = r"F:\opencv\sources\samples\dnn\yolov3.weights" cfg_yolov3 = r"F:\opencv\sources\samples\dnn\yolov3.cfg" model_yolov3_tiny = r"E:\MachineLearning\darknet\yolov3-tiny.weights" cfg_yolov3_tiny = "E:\MachineLearning\darknet\cfg\yolov3-tiny.cfg" model_yolov3_tiny_prn = r"E:\MachineLearning\darknet\yolov3-tiny-prn.weights" cfg_yolov3_tiny_prn = "E:\MachineLearning\darknet\cfg\yolov3-tiny-prn.cfg" model_yolov3_spp = r"F:\opencv\sources\samples\dnn\yolov3-spp.weights" cfg_yolov3_spp = r"F:\opencv\sources\samples\dnn\yolov3-spp.cfg" csresnext_model = r"E:\MachineLearning\darknet\csresnext50-panet-spp-original-optimal_final.weights" csresnext_cfg = r"E:\MachineLearning\darknet\cfg\csresnext50-panet-spp-original-optimal.cfg" model_yolov4 = r"F:\opencv\sources\samples\dnn\yolov4.weights" cfg_yolov4 = r"F:\opencv\sources\samples\dnn\yolov4.cfg" model_yolov4_tiny = r"E:\MachineLearning\darknet\yolov4-tiny.weights" cfg_yolov4_tiny = "E:\MachineLearning\darknet\cfg\yolov4-tiny.cfg" enet_model = r"E:\MachineLearning\darknet\enetb0-coco_final.weights" enet_cfg = r"E:\MachineLearning\darknet\cfg\enet-coco.cfg" img_file = r"C:\Users\admin\Pictures\car.jpg" video_file = r'F:/opencv-4.4.0/samples/data/vtest.avi' model = model_yolov3_spp cfg = cfg_yolov3_spp with open(coco_names,'rt') as f: names = f.read().rstrip('\n').split('\n') def det_image_v1(model, cfg, img_file, c_threshold=0.5, nms=0.5): classes = names # initialize a list of colors to represent each possible class label COLORS = np.random.randint(0, 255, size=(len(classes), 3),dtype="uint8") print("[INFO] loading model...") net = cv2.dnn.readNetFromDarknet(cfg, model) # load the input image and construct an input blob for the image # by resizing to a fixed 300x300 pixels and then normalizing it image = cv2.imread(img_file) (H,W) = image.shape[:2] # Get the names of output layers ln = net.getLayerNames() ln = [ln[i[0] - 1] for i in net.getUnconnectedOutLayers()] # generate blob for image input to the network blob = cv2.dnn.blobFromImage(image,1/255,(416,416),swapRB=True, crop=False) net.setInput(blob) start = time.time() layersOutputs = net.forward(ln) print(layersOutputs) boxes = [] confidences = [] classIDs = [] for output in layersOutputs: # loop over each of the detections for detection in output: # extract the class ID and confidence (i.e., probability) of # the current object detection scores = detection[5:] classID = np.argmax(scores) confidence = scores[classID] # filter out weak predictions by ensuring the detected # probability is greater than the minimum probability if confidence &gt; 0.5: box = detection[0:4]* np.array([W, H, W, H]) (centerX, centerY, width, height) = box.astype("int") # use the center (x, y)-coordinates to derive the top and # and left corner of the bounding box x = int(centerX - (width / 2)) y = int(centerY - (height / 2)) # update our list of bounding box coordinates, confidences, # and class IDs boxes.append([x, y, int(width), int(height)]) confidences.append(float(confidence)) classIDs.append(classID) # Remove unnecessary boxes using non maximum suppression idxs = cv2.dnn.NMSBoxes(boxes, confidences, c_threshold, nms) if len(idxs) &gt; 0: # loop over the indexes we are keeping for i in idxs.flatten(): # extract the bounding box coordinates (x, y) = (boxes[i][0], boxes[i][1]) (w, h) = (boxes[i][2], boxes[i][3]) # draw a bounding box rectangle and label on the image color = [int(c) for c in COLORS[classIDs[i]]] cv2.rectangle(image, (x, y), (x + w, y + h), color, 2) text = "{}: {:.4f}".format(classes[classIDs[i]], confidences[i]) cv2.putText(image, text, (x, y - 5), cv2.FONT_HERSHEY_SIMPLEX, 0.4, color, 1) end = time.time() # print the time required print('FPS:', 1/(end- start)) # show the output image cv2.imshow("Image", image) cv2.waitKey(0) cv2.destroyAllWindows() det_image_v1(model,cfg, img_file) def det_image_v2(model, cfg, img_file, c_threshold=0.5, nms=0.5): # 加载yolo模型 net = cv2.dnn_DetectionModel(model, cfg) net.setInputSize(512,512) # 设置网络输入尺寸 net.setInputScale(1.0/255) net.setInputSwapRB(True) frame=cv2.imread(img_file) classes, confs, boxes = net.detect(frame, c_threshold, nms) for id, conf, box in zip(classes.flatten(), confs.flatten(), boxes): label = '{}, {:.2f}'.format(names[id], conf) # print(label) labelsize, baseLine= cv2.getTextSize(label, cv2.FONT_HERSHEY_SIMPLEX,0.5,1) left, top, width, height = box top = max(top, labelsize[1]) cv2.rectangle(frame, box, color=(0, 255, 0), thickness=3) cv2.rectangle(frame, (left, top-labelsize[1]), (left+labelsize[0], top+baseLine),(255, 255, 255), cv2.FILLED) cv2.putText (frame, label,(left, top), cv2.FONT_HERSHEY_SIMPLEX, 0.5,(0,0, 0)) # plt.imshow(frame[:,:,::-1]) # plt.show() cv2.imshow('frame', frame) cv2.waitKey(0) cv2.destroyAllWindows() det_image_v2(model, cfg, img_file) </code></pre></div> <p dir="auto">I used <code class="notranslate">cv2.dnn.readNetFromDarknet()</code> and <code class="notranslate">cv2.dnn_DetectionModel()</code>, both of them failed. The error is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-2b5g8ysb\opencv\modules\dnn\src\darknet\darknet_importer.cpp:207: error: (-212:Parsing error) Failed to parse NetParameter file: F:\opencv\sources\samples\dnn\yolov3-spp.cfg in function 'cv::dnn::dnn4_v20200609::readNetFromDarknet'"><pre class="notranslate"><code class="notranslate">error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-2b5g8ysb\opencv\modules\dnn\src\darknet\darknet_importer.cpp:207: error: (-212:Parsing error) Failed to parse NetParameter file: F:\opencv\sources\samples\dnn\yolov3-spp.cfg in function 'cv::dnn::dnn4_v20200609::readNetFromDarknet' </code></pre></div> <h5 dir="auto">Issue submission checklist</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I report the issue, it's not a question </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I checked the problem with documentation, FAQ, open issues,<br> answers.opencv.org, Stack Overflow, etc and have not found solution </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I updated to latest OpenCV version and the issue is still there </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> There is reproducer code and related data files: videos, images, onnx, etc </li> </ul>
<p dir="auto">OpenCV 4.2.0</p> <p dir="auto">New models from Alexey Darknet repository</p> <p dir="auto">CFG: <a href="https://raw.githubusercontent.com/AlexeyAB/darknet/master/cfg/csresnext50-panet-spp-original-optimal.cfg" rel="nofollow">https://raw.githubusercontent.com/AlexeyAB/darknet/master/cfg/csresnext50-panet-spp-original-optimal.cfg</a></p> <p dir="auto">WEIGHTS: <a href="https://drive.google.com/open?id=1_NnfVgj0EDtb_WLNoXV8Mo7WKgwdYZCc" rel="nofollow">https://drive.google.com/open?id=1_NnfVgj0EDtb_WLNoXV8Mo7WKgwdYZCc</a></p> <p dir="auto">Testing with the new OPENCV-dnn with cuda support I achieve better performance than using Darknet library (even 2x FPS on a 1060 GTX), but the problem is that this model (which is quite better than the standard yolov3.cfg) causes this error.</p> <p dir="auto"><strong>opencv/modules/dnn/src/dnn.cpp:1428:<br> error: (-204:Requested object was not found) Layer with requested id=-1 not found in function 'getLayerData'</strong></p>
1
<p dir="auto">On 0.7-alpha, out of the 600M, 250M are just the debug libs. I am pretty sure that 99% of the users do not use the debug libs in any way. Would be nice to slim down our download.</p>
<p dir="auto">Going forward, we should stop including the debug build of Julia in the default binaries.</p>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">role inclusion</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.2.0 config file = /home/user/.ansible.cfg configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/user/ansible/lib/python2.7/site-packages/ansible executable location = /home/user/ansible/bin/ansible python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] "><pre class="notranslate"><code class="notranslate">ansible 2.4.2.0 config file = /home/user/.ansible.cfg configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/user/ansible/lib/python2.7/site-packages/ansible executable location = /home/user/ansible/bin/ansible python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">ANSIBLE_SSH_ARGS(/home/user/.ansible.cfg) = -o Protocol=2</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Manager host is RHEL 7.3</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Playbook has a list of roles to execute. If a role is repeated multiple times in the list, it is only executed the first time. If I use dict syntax to invoke the role, and add parameters to the role so that the duplicate invocations are slightly different, then the role gets executed as expected provided there are no exact duplicates in the role arguments.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <ul dir="auto"> <li>Create a role that just prints some debug output. Sample role below.</li> <li>Invoke the role multiple times from a play</li> <li>The role only executes once.</li> <li>Edit the playbook to disambiguate the role invocations (see WORKAROUND below)</li> <li>The role now executes once for each unique invocation</li> </ul> <p dir="auto">Sample role used in test:<br> $ cat roles/do-nothing/tasks/main.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - name: do nothing debug: var: ansible_version"><pre class="notranslate">--- - <span class="pl-ent">name</span>: <span class="pl-s">do nothing</span> <span class="pl-ent">debug</span>: <span class="pl-ent">var</span>: <span class="pl-s">ansible_version</span></pre></div> <p dir="auto">Sample playbook used to reproduce:<br> $ cat nothing1.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: &quot;{{ host_to_upgrade }}&quot; gather_facts: false roles: - do-nothing - do-nothing - do-nothing "><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ host_to_upgrade }}<span class="pl-pds">"</span></span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">false</span> <span class="pl-ent">roles</span>: - <span class="pl-s">do-nothing</span> - <span class="pl-s">do-nothing</span> - <span class="pl-s">do-nothing</span> </pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">We should see the role "do-nothing" get run three times.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-playbook -i ../hosts.test -e host_to_upgrade=njwdev1 nothing1.yml PLAY [njwdev1] ***************************************************************** TASK [do-nothing : do nothing] ************************************************* ok: [njwdev1] =&gt; { &quot;ansible_version&quot;: { &quot;full&quot;: &quot;2.4.2.0&quot;, &quot;major&quot;: 2, &quot;minor&quot;: 4, &quot;revision&quot;: 2, &quot;string&quot;: &quot;2.4.2.0&quot; } } PLAY RECAP ********************************************************************* njwdev1 : ok=1 changed=0 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">$ ansible-playbook -i ../hosts.test -e host_to_upgrade=njwdev1 nothing1.yml PLAY [njwdev1] ***************************************************************** TASK [do-nothing : do nothing] ************************************************* ok: [njwdev1] =&gt; { "ansible_version": { "full": "2.4.2.0", "major": 2, "minor": 4, "revision": 2, "string": "2.4.2.0" } } PLAY RECAP ********************************************************************* njwdev1 : ok=1 changed=0 unreachable=0 failed=0 </code></pre></div> <h4 dir="auto">WORKAROUND</h4> <p dir="auto">This playbook shows how I'm working around the problem:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: &quot;{{ host_to_upgrade }}&quot; gather_facts: false roles: - do-nothing - { role: do-nothing, disambiguate_kludge: 1 } - { role: do-nothing, disambiguate_kludge: 2 }"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ host_to_upgrade }}<span class="pl-pds">"</span></span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">false</span> <span class="pl-ent">roles</span>: - <span class="pl-s">do-nothing</span> - <span class="pl-s">{ role: do-nothing, disambiguate_kludge: 1 }</span> - <span class="pl-s">{ role: do-nothing, disambiguate_kludge: 2 }</span></pre></div> <ul dir="auto"> <li>Note: If "disambiguate_kludge" is set to "1" instead of "2" in the 3rd role line above, then the role only executes twice.</li> </ul>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">$ ansible --version<br> ansible 1.7.2</p> <h5 dir="auto">Environment:</h5> <p dir="auto">MacOS (also occurs on Ubuntu 14.04)</p> <h5 dir="auto">Summary:</h5> <p dir="auto">ssh logins that require sudo passwords can hang indefinitely.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">I think the bug could be be reproduced if you enable sudo passwords and change sudo to a program that runs 'sleep 10' before it executes. Then run a playbook with the "--ask-sudo" parameter with that machine in the inventory.</p> <p dir="auto">Here is what I think is happening:</p> <ol dir="auto"> <li>Ansible attempts to ssh into a machine.</li> <li>Ansible successfully logs in and attempts to run 'sudo'.</li> <li>sudo takes a while and requires a password to be entered.</li> <li>Ansible does a select() on the read socket.</li> <li>The select() times out after 10 seconds. Ansible waits for the SSH process to terminate (from ansible/runner/connection_plugins/ssh.py):</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if not rfd: # timeout. wrap up process communication stdout = p.communicate() raise errors.AnsibleError('ssh connection error waiting for sudo or su password prompt')"><pre class="notranslate"><code class="notranslate"> if not rfd: # timeout. wrap up process communication stdout = p.communicate() raise errors.AnsibleError('ssh connection error waiting for sudo or su password prompt') </code></pre></div> <p dir="auto">However, since Ansible is logged in and sudo is running, the process never terminates. communicate() gets stuck.</p> <p dir="auto">Essentially, I think this is a corner case where the ssh login succeeds, but the time it takes for sudo to execute and ask for a password exceeds the timeout. Since the ssh session was successful, the ssh process will never return, causing Ansible to hang indefinitely.</p> <p dir="auto">I verified this was happening by adding a 'continue', here:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if not rfd: continue # timeout. wrap up process communication stdout = p.communicate()"><pre class="notranslate"><code class="notranslate"> if not rfd: continue # timeout. wrap up process communication stdout = p.communicate() </code></pre></div> <p dir="auto">This worked--essentially a short time later, the select() returned successfully, and Ansible functioned well. To confirm this, I added some debug statements using time.time(). Here is what I saw:</p> <ol dir="auto"> <li>t = 0: start of first select()</li> <li>t = 10.000742: timeout occurs</li> <li>t = 10.000874: second select() returns successfully</li> </ol> <p dir="auto">How to fix this? Ideally, we would have some way of knowing that the ssh session successfully logged in but was waiting for sudo. I don't think there is a foolproof way of knowing this.</p> <p dir="auto">In any case, communicate() should have a timeout, so that if ssh fails to terminate, we either terminate the ssh process or run select() again just to be sure. There are some ideas here for how to implement a timeout:</p> <p dir="auto"><a href="http://stackoverflow.com/questions/1191374/subprocess-with-timeout" rel="nofollow">http://stackoverflow.com/questions/1191374/subprocess-with-timeout</a></p> <p dir="auto">For now, I've worked around the problem by changing timeout = 20, but I think the code still needs to prevent communicate() from getting stuck.</p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">ssh logins and sudo executes fine</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">ssh process never returns and causes Ansible to get stuck</p> <p dir="auto">I think a similar issue was reported in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="37332391" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/8058" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/8058/hovercard" href="https://github.com/ansible/ansible/issues/8058">#8058</a>.</p>
0
<p dir="auto">Windows Terminal 0.4.2382.0<br> Windows 10</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" # Steps to reproduce RUN 'Windows Terminal' with two command-prompts. Run next command in both prompt (simultanuously) for /l %f in (1,1,100000) do @echo abcdefghijklmnopqrstuvwxyz %f In de output of the first screen the 'wrong output' is found. (not neccesarily at the point given in the example) # Expected behavior correct output, 100000 lines containing the alphabet, with a number at the end of the line. # Actual behavior In the first tab, something like this is seen: abcdefghijklmnopqrstuvwxyz 98810 abcdefghijklmnopqrstuvwxyz 98811 abcdefghijklmnopqrstuvwxyz 98812 abcdefghijklmnopqrstuvwxyz 98813 abcdefghijklmnopqrstuvwxyz 98814 abcdefghijklmnopqrstuvwxyz 98815 �]0;CMD - echo abcdefghiz 98816 abcdefghijklmnopqrstuvwxyz 98817 abcdefghijklmnopqrstuvwxyz 98818 abcdefghijklmnopqrstuvwxyz 98819 abcdefghijklmnopqrstuvwxyz 98820 abcdefghijklmnopqrstuvwxyz 98821 abcdefghijklmnopqrstuvwxyz 98822 abcdefghijklmnopqrstuvwxyz 98823 abcdefghijklmnopqrstuvwxyz 98824 abcdefghijklmnopqrstuvwxyz 98825"><pre class="notranslate"><code class="notranslate"> # Steps to reproduce RUN 'Windows Terminal' with two command-prompts. Run next command in both prompt (simultanuously) for /l %f in (1,1,100000) do @echo abcdefghijklmnopqrstuvwxyz %f In de output of the first screen the 'wrong output' is found. (not neccesarily at the point given in the example) # Expected behavior correct output, 100000 lines containing the alphabet, with a number at the end of the line. # Actual behavior In the first tab, something like this is seen: abcdefghijklmnopqrstuvwxyz 98810 abcdefghijklmnopqrstuvwxyz 98811 abcdefghijklmnopqrstuvwxyz 98812 abcdefghijklmnopqrstuvwxyz 98813 abcdefghijklmnopqrstuvwxyz 98814 abcdefghijklmnopqrstuvwxyz 98815 �]0;CMD - echo abcdefghiz 98816 abcdefghijklmnopqrstuvwxyz 98817 abcdefghijklmnopqrstuvwxyz 98818 abcdefghijklmnopqrstuvwxyz 98819 abcdefghijklmnopqrstuvwxyz 98820 abcdefghijklmnopqrstuvwxyz 98821 abcdefghijklmnopqrstuvwxyz 98822 abcdefghijklmnopqrstuvwxyz 98823 abcdefghijklmnopqrstuvwxyz 98824 abcdefghijklmnopqrstuvwxyz 98825 </code></pre></div>
<h1 dir="auto">Description of the new feature/enhancement</h1> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
0
<p dir="auto">Hi everyone,</p> <p dir="auto">I have built the static library for tensorflow with cmake in Windows and I have the error "No session factory registered for the given session options ". This issue is fixed with the flag /Wholearchive, however it seems there is not equivalent flag for Qt creator. So, my question is if someone knows if the static library built with bazel has the same issue (add the flag /wholearchive) in windows? I have read that someone people didin´t have this issue with bazel in Linux, but it would be great if someone can confirm it for Windows.</p> <p dir="auto">Thanks for your help.</p>
<p dir="auto">Hi everyone,</p> <p dir="auto">I have built the static library of tensorflow for C++ in windows. And I am trying to use this library in qtCreator, however I have the issue (no session factory registered for the given options). But, it looks adding these flags in qtCreator doesn´t work so I still have the issue. Does someone know how to build the library in Tensorflow so I can use the library without the flag -whole-archive?</p>
1
<h1 dir="auto">Remap shortcut to support character keys</h1> <h2 dir="auto">Feature Request for Keyboard Manager</h2> <h3 dir="auto">Context</h3> <p dir="auto">Hi, only recently came across PowerToys and already fond of the wealth of utilities present. Many thanks for making these available!</p> <p dir="auto">Due to limited hand mobility, I’m heavily reliant on key-remapping and macros for keyboard interaction. As such, <a href="https://github.com/randyrants/sharpkeys">SharpKeys</a> and <a href="https://github.com/Lexikos/AutoHotkey_L">AutoHotkey</a> are ideal for remapping keys on a registry-level and scripting complex macros, respectively. I don’t expect Keyboard Manager to have feature parity with either of these dedicated solutions; I’m drawing inspiration from them. For example, AutoHotkey supports <a href="https://www.autohotkey.com/docs/KeyList.htm#mouse" rel="nofollow">mouse input</a> which is super-useful to me (worth raising a different feature request? :).</p> <h3 dir="auto">Summary</h3> <p dir="auto">As part of <strong>Remap shortcuts</strong>, I was surprised to find it could only remap to another shortcut starting with a modifier key. What about remapping shortcuts to another key‽ Such as <kbd>Alt</kbd> + <kbd>?</kbd> = <kbd>‽</kbd>. Or <kbd>Alt</kbd> + <kbd>Left | Right</kbd> = <kbd>← | →</kbd>.</p> <p dir="auto">Additionally, as per the examples, I don’t even see any way to map to the chosen Unicode characters. Is there any plans to allow inclusion of the wider Unicode characters range?</p> <p dir="auto">Thanks for your time, really appreciate it.</p>
<p dir="auto">[Power Toys Utility -Choose your layout for this desktop]</p> <p dir="auto">User Impact:<br> Low vision users using resize scaling will not be able to get the proper information as Choose your layout for this desktop utility dialog controls does not adapt resize settings.</p> <p dir="auto">Test Environment:<br> OS Version: 20221.1000<br> App Name: Power Toy Preview<br> App Version: v0.23.0<br> Screen Reader: Narrator</p> <p dir="auto">Pre-Requisites:<br> Set the screen resolution to 1280x768 &gt; Set text size to 225% (Settings -&gt; Ease of access -&gt; Make text bigger)</p> <p dir="auto">Reproe-Steps:</p> <ol dir="auto"> <li>Open Power Toys Settings application.</li> <li>Navigate to Fancy Zone present at the left side of the pane and activate it.</li> <li>Navigate to 'Launch Zone Editor' present at the right side of the pane and activate it.</li> <li>Choose your layout for this desktop utility dialog will get open.</li> <li>Observe the issue.</li> </ol> <p dir="auto">Note:<br> This issue is repro throughout the app.</p> <p dir="auto">Actual Result:<br> Choose your layout for this desktop ' utility dialog does not adapt Resize mode settings.</p> <p dir="auto">Expected Result:<br> Choose your layout for this desktop ' utility dialog should adapt Resize mode settings.</p> <p dir="auto">MAS Reference:<br> <a href="https://microsoft.sharepoint.com/:w:/r/teams/msenable/_layouts/15/WopiFrame.aspx?sourcedoc=%7Bb69e5ccc-dde2-4406-b550-4deb38648f6d%7D&amp;cid=b69d614e-72aa-42df-a6ad-5e3cfd7c4294" rel="nofollow">https://microsoft.sharepoint.com/:w:/r/teams/msenable/_layouts/15/WopiFrame.aspx?sourcedoc=%7Bb69e5ccc-dde2-4406-b550-4deb38648f6d%7D&amp;cid=b69d614e-72aa-42df-a6ad-5e3cfd7c4294</a></p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5328911/54_MAS1.4.4_Choose.your.layout.for.desktop.dialog.not.adapting.resize.mode.setting.zip">54_MAS1.4.4_Choose your layout for desktop dialog not adapting resize mode setting.zip</a></p>
0
<p dir="auto">(sorry if this is a dup, hard to narrow down the search of open issues -- a bunch of ENOENT cases)</p> <p dir="auto">If I want to create a new file with the atom helper, an exception is thrown:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="~/Work/iojs-build ±master $ atom mynewfile"><pre class="notranslate"><span class="pl-k">~</span>/Work/iojs-build ±master $ atom mynewfile</pre></div> <p dir="auto">..throws:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="events.js:141 Hide Stack Trace Error: ENOENT: no such file or directory, open '/Users/jbergstroem/Work/iojs-build/mynewfile' at Error (native)"><pre class="notranslate"><code class="notranslate">events.js:141 Hide Stack Trace Error: ENOENT: no such file or directory, open '/Users/jbergstroem/Work/iojs-build/mynewfile' at Error (native) </code></pre></div>
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>Invoke atom for non-existent file: <code class="notranslate">atom Dockerfile</code></li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.190.0<br> <strong>System</strong>: Mac OS X 10.9.5<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: ENOENT: no such file or directory, open '/Users/arve/Projects/gradlehub/Dockerfile'</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:141 Error: ENOENT: no such file or directory, open '/Users/arve/Projects/gradlehub/Dockerfile' at Error (native) "><pre class="notranslate"><code class="notranslate">At events.js:141 Error: ENOENT: no such file or directory, open '/Users/arve/Projects/gradlehub/Dockerfile' at Error (native) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -0:00.5 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)"><pre class="notranslate"><code class="notranslate"> -0:00.5 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui) </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;.git&quot;, &quot;.svn&quot;, &quot;.DS_Store&quot; ] }, &quot;editor&quot;: { &quot;showIndentGuide&quot;: true, &quot;preferredLineLength&quot;: 110, &quot;tabLength&quot;: 4, &quot;softWrapAtPreferredLineLength&quot;: true, &quot;invisibles&quot;: {}, &quot;fontSize&quot;: 15 } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>.git<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>.svn<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>.DS_Store<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"preferredLineLength"</span>: <span class="pl-c1">110</span>, <span class="pl-ent">"tabLength"</span>: <span class="pl-c1">4</span>, <span class="pl-ent">"softWrapAtPreferredLineLength"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"invisibles"</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 Stylus, v0.7.0 atom-lint, v0.20.1 auto-reveal-in-sidebar, v0.4.0 coffee-refactor, v0.6.2 editorconfig, v0.3.3 language-clojure, v0.14.0 language-docker, v1.1.3 language-gradle, v0.0.3 language-haskell, v1.0.0 language-scala, v1.1.0 refactor, v0.4.1 tabs-to-spaces, v0.9.2 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> Stylus, v0.<span class="pl-ii">7</span>.<span class="pl-ii">0</span> atom<span class="pl-k">-</span>lint, v0.<span class="pl-ii">20</span>.<span class="pl-ii">1</span> auto<span class="pl-k">-</span>reveal<span class="pl-k">-</span><span class="pl-k">in</span><span class="pl-k">-</span>sidebar, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> coffee<span class="pl-k">-</span>refactor, v0.<span class="pl-ii">6</span>.<span class="pl-ii">2</span> editorconfig, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> language<span class="pl-k">-</span>clojure, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> language<span class="pl-k">-</span>docker, v1.<span class="pl-ii">1</span>.<span class="pl-ii">3</span> language<span class="pl-k">-</span>gradle, v0.<span class="pl-ii">0</span>.<span class="pl-ii">3</span> language<span class="pl-k">-</span>haskell, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> language<span class="pl-k">-</span>scala, v1.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> refactor, v0.<span class="pl-ii">4</span>.<span class="pl-ii">1</span> tabs<span class="pl-k">-</span>to<span class="pl-k">-</span>spaces, v0.<span class="pl-ii">9</span>.<span class="pl-ii">2</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">Create a Form Element<br> <a href="https://www.freecodecamp.com/challenges/create-a-form-element#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back.%20%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%3Cul%3E%0A%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%3C%2Ful%3E%0A%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%3Col%3E%0A%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%3C%2Fol%3E%0A%3Cform%20fccfaa%3D%22%22%3E%0A%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%3E%3C%2Fform%3E%0A" rel="nofollow">https://www.freecodecamp.com/challenges/create-a-form-element#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back.%20%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%3Cul%3E%0A%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%3C%2Ful%3E%0A%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%3Col%3E%0A%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%3C%2Fol%3E%0A%3Cform%20fccfaa%3D%22%22%3E%0A%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%3E%3C%2Fform%3E%0A</a></p> <p dir="auto">Chrome blocks the code visualiser<br> This was a very simple nesting exercise but for some reason I cannot see the results of my coding because apparently the form tag is seen as malicious? I tried resetting my code but nothing seems to work.</p> <p dir="auto">Google Chrome, macOS Sierra, Macbook Pro</p> <ul dir="auto"> <li>Browser Name, Version:</li> <li>Operating System:</li> <li>Mobile, Desktop, or Tablet:</li> </ul> <p dir="auto">My Code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;link href=&quot;https://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;smaller-image thick-green-border&quot; alt=&quot;A cute orange cat lying on its back. &quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt;&lt;/a&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt;&lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot;&gt;&lt;/form&gt; "><pre class="notranslate"><code class="notranslate">&lt;link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } &lt;/style&gt; &lt;h2 class="red-text"&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href="#"&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href="#"&gt;&lt;img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back. " src="https://bit.ly/fcc-relaxing-cat"&gt;&lt;/a&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action="/submit-cat-photo"&gt;&lt;input type="text" placeholder="cat photo URL"&gt;&lt;/form&gt; </code></pre></div> <p dir="auto">Screenshot<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/24417739/24832180/0e3dfd0c-1caa-11e7-8b75-6e7c1cb03b5e.png"><img width="1279" alt="screen shot 2017-04-08 at 10 23 30 pm" src="https://cloud.githubusercontent.com/assets/24417739/24832180/0e3dfd0c-1caa-11e7-8b75-6e7c1cb03b5e.png" style="max-width: 100%;"></a></p>
<p dir="auto">Throughout my progressions of the HTML5 &amp; CSS challenges, each time I am asked to add/edit any code within the code editor the cursor within the editor does not show up where intended. I have to begin typing or editing the code via keyboard before the cursor will fix itself and allow me to select the desired location in order to edit or add in the correct spot. While this doesn't prevent users from completing the challenge, it is very stressful constantly having to play "Hide &amp; Seek" with the text cursor when attempting to edit code.</p>
0
<p dir="auto">I wanted to wrap the OpenGL API to create a safer interface. Like many other APIs the OpenGL API gives away integer tokens representing created objects. For example, the call glCreateProgram creates a GLuint token representing a shader program object. These tokens in the OpenGL API (and other similar APIs) are basically the same idea as pointer types. Because these tokens behave similarly to pointers I would like to wrap them in a type which has similar behaviours. For example, the glGetAttribLocation call gets a token representing an attribute, or buffer to fill with data of a shader program. I would like to wrap the token returned by glGetAttribLocation in a structure which has the same lifetime as the program token returned by glCreateProgram, but to do this I have to use an unneeded amount of pointers (to get proper lifetime guarantees.) Basically, I would like my wrapped glGetAttribLocation call to be like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" impl GLContext { fn get_attrib_location &lt;'r&gt; ( &amp;self, program: Program &lt;'r&gt;, name: ~str ) -&gt; Option &lt;AttributeLocation &lt;'r&gt;&gt; { /* Definition Omitted */ }"><pre class="notranslate"><code class="notranslate"> impl GLContext { fn get_attrib_location &lt;'r&gt; ( &amp;self, program: Program &lt;'r&gt;, name: ~str ) -&gt; Option &lt;AttributeLocation &lt;'r&gt;&gt; { /* Definition Omitted */ } </code></pre></div> <p dir="auto">Instead of:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" impl GLContext { fn get_attrib_location &lt;'r&gt; ( &amp;self, program: &amp;'r Program, name: ~str ) -&gt; Option &lt;AttributeLocation &lt;'r&gt;&gt; { /* Definition Omitted */ }"><pre class="notranslate"><code class="notranslate"> impl GLContext { fn get_attrib_location &lt;'r&gt; ( &amp;self, program: &amp;'r Program, name: ~str ) -&gt; Option &lt;AttributeLocation &lt;'r&gt;&gt; { /* Definition Omitted */ } </code></pre></div>
<p dir="auto"><strong>UPDATE:</strong> Updating this issue to reflect current thinking, which is that inference should issue a warning when a lifetime parameter is inferred to be bivariant (which implies that the parameter is unused).</p> <p dir="auto"><strong>ORIGINAL:</strong> It's sometimes necessary to specify a lifetime on an object that <em>doesn't</em> contain borrowed pointers, because lifetime dependencies can be required for safety outside of Rust's borrowed pointer system. A dummy borrowed pointer member is a workaround, but wasteful.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikomatsakis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikomatsakis">@nikomatsakis</a></p>
1
<p dir="auto">I see that it was previously possible to pass-in a prettier configuration file, but it seems that it's no longer possible.</p> <p dir="auto">Is there a way to change:</p> <ul dir="auto"> <li>Indent size</li> <li>Quotes style</li> <li>Semicolons</li> </ul>
<p dir="auto">Tracking issue for flags that were removed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="557102651" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3820" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/3820/hovercard" href="https://github.com/denoland/deno/pull/3820">#3820</a>, but are useful:</p> <blockquote> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nayeemrmn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nayeemrmn">@nayeemrmn</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ry">@ry</a> there are two flags that are not present in this PR that are pretty useful: --stdout and --ignore-path=&lt;FILE...&gt;. Let's do them in follow up PR.</p> </blockquote> <p dir="auto">So probably we'd want to bring back 3 flags in total:</p> <ul dir="auto"> <li><s><code class="notranslate">--stdout</code> print formatted file to stdout instead of writing to disk (mutually exclusive with <code class="notranslate">--check</code>)</s> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="561945230" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3920" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/3920/hovercard" href="https://github.com/denoland/deno/pull/3920">#3920</a>)</li> <li><s><code class="notranslate">--ignore-path</code> - do not format/check files specified in this flag, IMHO <code class="notranslate">--exclude</code> is better (and shorter)</s></li> <li><code class="notranslate">--config</code> - flag to read config from file - AFAIK dprint does not yet support it (ref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="557346893" data-permission-text="Title is private" data-url="https://github.com/dprint/dprint/issues/69" data-hovercard-type="issue" data-hovercard-url="/dprint/dprint/issues/69/hovercard" href="https://github.com/dprint/dprint/issues/69">dprint/dprint#69</a>)</li> </ul>
1
<p dir="auto">I'm using Kube 1.4.5, and AWS storage.</p> <p dir="auto">When I try to attach multiple volumes using PVC's, one of the volumes consistently gets stuck in the attaching state whilst the other is successful.</p> <p dir="auto">Below are the definitions that I used.</p> <p dir="auto"><em>sonar-persistence.yml</em></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- apiVersion: v1 kind: PersistentVolume metadata: name: sonarqube-data spec: capacity: storage: 5Gi accessModes: - ReadWriteOnce awsElasticBlockStore: volumeID: aws://eu-west-1a/vol-XXXXXXX fsType: ext4 --- apiVersion: v1 kind: PersistentVolume metadata: name: sonarqube-extensions spec: capacity: storage: 5Gi accessModes: - ReadWriteOnce awsElasticBlockStore: volumeID: aws://eu-west-1a/vol-XXXXXX fsType: ext4"><pre class="notranslate">--- <span class="pl-ent">apiVersion</span>: <span class="pl-c1">v1</span> <span class="pl-ent">kind</span>: <span class="pl-s">PersistentVolume</span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s">sonarqube-data</span> <span class="pl-ent">spec</span>: <span class="pl-ent">capacity</span>: <span class="pl-ent">storage</span>: <span class="pl-s">5Gi</span> <span class="pl-ent">accessModes</span>: - <span class="pl-s">ReadWriteOnce</span> <span class="pl-ent">awsElasticBlockStore</span>: <span class="pl-ent">volumeID</span>: <span class="pl-s">aws://eu-west-1a/vol-XXXXXXX</span> <span class="pl-ent">fsType</span>: <span class="pl-s">ext4</span> --- <span class="pl-ent">apiVersion</span>: <span class="pl-c1">v1</span> <span class="pl-ent">kind</span>: <span class="pl-s">PersistentVolume</span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s">sonarqube-extensions</span> <span class="pl-ent">spec</span>: <span class="pl-ent">capacity</span>: <span class="pl-ent">storage</span>: <span class="pl-s">5Gi</span> <span class="pl-ent">accessModes</span>: - <span class="pl-s">ReadWriteOnce</span> <span class="pl-ent">awsElasticBlockStore</span>: <span class="pl-ent">volumeID</span>: <span class="pl-s">aws://eu-west-1a/vol-XXXXXX</span> <span class="pl-ent">fsType</span>: <span class="pl-s">ext4</span></pre></div> <p dir="auto"><em>sonar-claim.yml</em></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: sonarqube-data spec: accessModes: - ReadWriteOnce resources: requests: storage: 5Gi --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: sonarqube-extensions spec: accessModes: - ReadWriteOnce resources: requests: storage: 5Gi"><pre class="notranslate">--- <span class="pl-ent">kind</span>: <span class="pl-s">PersistentVolumeClaim</span> <span class="pl-ent">apiVersion</span>: <span class="pl-c1">v1</span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s">sonarqube-data</span> <span class="pl-ent">spec</span>: <span class="pl-ent">accessModes</span>: - <span class="pl-s">ReadWriteOnce</span> <span class="pl-ent">resources</span>: <span class="pl-ent">requests</span>: <span class="pl-ent">storage</span>: <span class="pl-s">5Gi</span> --- <span class="pl-ent">kind</span>: <span class="pl-s">PersistentVolumeClaim</span> <span class="pl-ent">apiVersion</span>: <span class="pl-c1">v1</span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s">sonarqube-extensions</span> <span class="pl-ent">spec</span>: <span class="pl-ent">accessModes</span>: - <span class="pl-s">ReadWriteOnce</span> <span class="pl-ent">resources</span>: <span class="pl-ent">requests</span>: <span class="pl-ent">storage</span>: <span class="pl-s">5Gi</span></pre></div> <p dir="auto"><em>sonar-deployment.yml</em></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: sonar spec: replicas: 1 template: metadata: name: sonar labels: name: sonar spec: containers: - image: sonarqube:lts args: - -Dsonar.web.context=/sonar name: sonar env: - name: SONARQUBE_JDBC_PASSWORD valueFrom: secretKeyRef: name: postgres-pwd key: password - name: SONARQUBE_JDBC_URL value: jdbc:postgresql://sonar:5432/sonar ports: - containerPort: 9000 name: sonar volumeMounts: - name: sonarqube-data mountPath: /opt/sonarqube/data - name: sonarqube-extensions mountPath: /opt/sonarqube/extensions volumes: - name: sonarqube-data persistentVolumeClaim: claimName: sonarqube-data - name: sonarqube-extensions persistentVolumeClaim: claimName: sonarqube-extensions"><pre class="notranslate">--- <span class="pl-ent">apiVersion</span>: <span class="pl-s">extensions/v1beta1</span> <span class="pl-ent">kind</span>: <span class="pl-s">Deployment</span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s">sonar</span> <span class="pl-ent">spec</span>: <span class="pl-ent">replicas</span>: <span class="pl-c1">1</span> <span class="pl-ent">template</span>: <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s">sonar</span> <span class="pl-ent">labels</span>: <span class="pl-ent">name</span>: <span class="pl-s">sonar</span> <span class="pl-ent">spec</span>: <span class="pl-ent">containers</span>: - <span class="pl-ent">image</span>: <span class="pl-s">sonarqube:lts</span> <span class="pl-ent">args</span>: - <span class="pl-s">-Dsonar.web.context=/sonar</span> <span class="pl-ent">name</span>: <span class="pl-s">sonar</span> <span class="pl-ent">env</span>: - <span class="pl-ent">name</span>: <span class="pl-s">SONARQUBE_JDBC_PASSWORD</span> <span class="pl-ent">valueFrom</span>: <span class="pl-ent">secretKeyRef</span>: <span class="pl-ent">name</span>: <span class="pl-s">postgres-pwd</span> <span class="pl-ent">key</span>: <span class="pl-s">password</span> - <span class="pl-ent">name</span>: <span class="pl-s">SONARQUBE_JDBC_URL</span> <span class="pl-ent">value</span>: <span class="pl-s">jdbc:postgresql://sonar:5432/sonar</span> <span class="pl-ent">ports</span>: - <span class="pl-ent">containerPort</span>: <span class="pl-c1">9000</span> <span class="pl-ent">name</span>: <span class="pl-s">sonar</span> <span class="pl-ent">volumeMounts</span>: - <span class="pl-ent">name</span>: <span class="pl-s">sonarqube-data</span> <span class="pl-ent">mountPath</span>: <span class="pl-s">/opt/sonarqube/data</span> - <span class="pl-ent">name</span>: <span class="pl-s">sonarqube-extensions</span> <span class="pl-ent">mountPath</span>: <span class="pl-s">/opt/sonarqube/extensions</span> <span class="pl-ent">volumes</span>: - <span class="pl-ent">name</span>: <span class="pl-s">sonarqube-data</span> <span class="pl-ent">persistentVolumeClaim</span>: <span class="pl-ent">claimName</span>: <span class="pl-s">sonarqube-data</span> - <span class="pl-ent">name</span>: <span class="pl-s">sonarqube-extensions</span> <span class="pl-ent">persistentVolumeClaim</span>: <span class="pl-ent">claimName</span>: <span class="pl-s">sonarqube-extensions</span></pre></div> <p dir="auto">The data volume always appears to be successful, and maybe coincidentally is first in the list. I have tried this multiple times but the result is always the same.</p> <p dir="auto">The error message is as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unable to mount volumes for pod &quot;sonar-3504269494-tnzwo_default(2cc5292c-a5d4-11e6-bd99-0a82a8a86ebf)&quot;: timeout expired waiting for volumes to attach/mount for pod &quot;sonar-3504269494-tnzwo&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[sonarqube-data sonarqube-extensions] Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod &quot;sonar-3504269494-tnzwo&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[sonarqube-data sonarqube-extensions]"><pre class="notranslate"><code class="notranslate">Unable to mount volumes for pod "sonar-3504269494-tnzwo_default(2cc5292c-a5d4-11e6-bd99-0a82a8a86ebf)": timeout expired waiting for volumes to attach/mount for pod "sonar-3504269494-tnzwo"/"default". list of unattached/unmounted volumes=[sonarqube-data sonarqube-extensions] Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "sonar-3504269494-tnzwo"/"default". list of unattached/unmounted volumes=[sonarqube-data sonarqube-extensions] </code></pre></div>
<p dir="auto"><strong>Kubernetes version</strong>:</p> <p dir="auto"><code class="notranslate">Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6+coreos.0", GitCommit:"f6f0055b8e503cbe5fb7b6f1a2ee37d0f160c1cd", GitTreeState:"clean", BuildDate:"2016-08-29T17:01:01Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}</code></p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: AWS</li> <li><strong>OS</strong>: CoreOS</li> <li><strong>Kernel</strong>: 4.6.3-coreos</li> <li><strong>Install tools</strong>: kube-aws</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">Some EBS volumes remain in the attachment state "attaching". These EBS volumes are attached on a device name that was used for a previous attachment.<br> Looking on the worker node, the volume is not visible in the device list (eg by running <code class="notranslate">lsblk</code>). After a reboot of the node the volume is attached successfully. The attachment state then is "attached".</p> <p dir="auto"><strong>Expected behavior</strong>:</p> <p dir="auto">The EBS volumes are attached correctly.</p> <p dir="auto"><strong>How to reproduce it</strong>:</p> <ol dir="auto"> <li>Spin up a worker node</li> <li>Create 20 EBS volumes</li> <li>Create 19 pods with volumes attached on this node</li> <li>Remove the first pod</li> <li>Create a 20th pod with the 20th volume attached</li> </ol> <p dir="auto">Now the 20th volume remains in the attachment state 'attaching'.</p> <p dir="auto">20 is not necessary the lower bound but the issue did not appear with 3 volumes.</p> <p dir="auto"><strong>Additional information</strong>:</p> <p dir="auto">It seems related to the reuse of device names. Only when the device name /dev/xvdXX was already used for a previous attachment, the volume remains in the attachment state "attaching".<br> When using a lower number of volumes, it is still possible to detach-attach. Only when attaching a considerable amount of volumes (about 20), the issue appears.</p> <p dir="auto">According to <a href="https://aws.amazon.com/premiumsupport/knowledge-center/ebs-stuck-attaching/" rel="nofollow">this AWS support article</a> it is possible that the device name was not released by the block device driver after detaching.</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">TkAgg backend plots an empty figure with matplotlib=3.1.1 (python=3.7.3) installed within conda environment on MacOS=10.14.6.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">The following lines return an empty (blank) figure in python shell</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib as mpl mpl.use('TkAgg') import matplotlib.pyplot as plt f = plt.figure() ax = f.add_subplot(1,1,1) ax.plot(range(10)) f.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">as</span> <span class="pl-s1">mpl</span> <span class="pl-s1">mpl</span>.<span class="pl-en">use</span>(<span class="pl-s">'TkAgg'</span>) <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">f</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>) <span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-en">range</span>(<span class="pl-c1">10</span>)) <span class="pl-s1">f</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">Code runs without complaints or error messages but produces an empty figure with no frame or axes</p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">Simple line plot.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: MacOS=10.14.6</li> <li>Matplotlib version: 3.1.1</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): TkAgg</li> <li>Python version: python=3.7.3</li> <li>Jupyter version (if applicable):</li> <li>Other libraries:</li> </ul> <p dir="auto">I have conda=4.7.11 installed and I created en environment:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="conda create -n test_mpl python=3.7 conda activate test_mpl"><pre class="notranslate">conda create -n test_mpl python=3.7 conda activate test_mpl</pre></div> <p dir="auto">Then I installed Matplotlib using conda using the default channel:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="conda install matplotlib"><pre class="notranslate">conda install matplotlib</pre></div> <p dir="auto">which was installed correctly:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib print(matplotlib.__version__)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-en">print</span>(<span class="pl-s1">matplotlib</span>.<span class="pl-s1">__version__</span>)</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="3.1.1"><pre class="notranslate"><code class="notranslate">3.1.1 </code></pre></div>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">When using the latest stable version of matplotlib (v2.2.3), running plt.plot() only displays a blank figure, regardless of chosen backend. However, the .savefig() method correctly stores an image of the plot.</p> <p dir="auto">Switching to an older version (2.0.2) resolves the issue.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib as mpl mpl.use(&quot;TKAgg&quot;) import matplotlib.pyplot as plt plt.plot([1, 2, 3, 4]) plt.ylabel('some numbers') plt.savefig('testfigure.png', dpi=100) plt.show(block=True)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">as</span> <span class="pl-s1">mpl</span> <span class="pl-s1">mpl</span>.<span class="pl-en">use</span>(<span class="pl-s">"TKAgg"</span>) <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">plt</span>.<span class="pl-en">plot</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">plt</span>.<span class="pl-en">ylabel</span>(<span class="pl-s">'some numbers'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'testfigure.png'</span>, <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">100</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>(<span class="pl-s1">block</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d792250a49a55f37bc197231ce87783335baf17ecf9018e823e931ea4b06bfa6/68747470733a2f2f692e696d6775722e636f6d2f666f323461714f2e706e67"><img src="https://camo.githubusercontent.com/d792250a49a55f37bc197231ce87783335baf17ecf9018e823e931ea4b06bfa6/68747470733a2f2f692e696d6775722e636f6d2f666f323461714f2e706e67" alt="Image" data-canonical-src="https://i.imgur.com/fo24aqO.png" style="max-width: 100%;"></a></p> <p dir="auto">No code errors.</p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a4d6f04dc7e3eab2396f130f8d5bc518c90441d7467b10b3a6ffd73d4dfb5bb9/68747470733a2f2f692e696d6775722e636f6d2f776d65724b30422e706e67"><img src="https://camo.githubusercontent.com/a4d6f04dc7e3eab2396f130f8d5bc518c90441d7467b10b3a6ffd73d4dfb5bb9/68747470733a2f2f692e696d6775722e636f6d2f776d65724b30422e706e67" alt="Image" data-canonical-src="https://i.imgur.com/wmerK0B.png" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Matplotlib version</strong><br> 2.2.3 - works on 2.0.2</p> <ul dir="auto"> <li>Operating system: MacOS Mojave (10.14 Beta (18A384a))</li> <li>Matplotlib version: 2.2.3</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): TkAgg</li> <li>Python version: 3.7</li> <li>Jupyter version (if applicable): N/A</li> <li>Other libraries: N/A</li> </ul> <p dir="auto">Installed via <code class="notranslate">pip install matplotlib</code></p>
1
<h3 dir="auto">Describe the bug</h3> <p dir="auto">When trying to compute AgglomerativeClustering with affinity='precomputed', linkage='ward' I get the following error:</p> <p dir="auto"><code class="notranslate">ValueError: precomputed was provided as affinity. Ward can only work with euclidean distances.</code><br> I think this is intended. What is the reason behind it?</p> <h3 dir="auto">Steps/Code to Reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.cluster import AgglomerativeClustering from sklearn.metrics.pairwise import euclidean_distances import numpy as np X = np.random.normal(size=(2,4)) dist=euclidean_distances(X) cluster_dist = AgglomerativeClustering(n_clusters=2, affinity='precomputed', linkage='ward') results_dist = cluster_dist.fit(dist)"><pre class="notranslate"><code class="notranslate">from sklearn.cluster import AgglomerativeClustering from sklearn.metrics.pairwise import euclidean_distances import numpy as np X = np.random.normal(size=(2,4)) dist=euclidean_distances(X) cluster_dist = AgglomerativeClustering(n_clusters=2, affinity='precomputed', linkage='ward') results_dist = cluster_dist.fit(dist) </code></pre></div> <h3 dir="auto">Expected Results</h3> <p dir="auto">The resulting clusters</p> <h3 dir="auto">Actual Results</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- ValueError Traceback (most recent call last) Input In [122], in &lt;module&gt; 2 dist=euclidean_distances(X) 3 cluster_dist = AgglomerativeClustering(n_clusters=n_cluster, affinity='precomputed', linkage='ward') ----&gt; 4 results_dist = cluster_dist.fit(dist) File ~/Documents/technical/xai_cats_dogs/xai_cats_dogs_venv/lib/python3.9/site-packages/sklearn/cluster/_agglomerative.py:918, in AgglomerativeClustering.fit(self, X, y) 900 &quot;&quot;&quot;Fit the hierarchical clustering from features, or distance matrix. 901 902 Parameters (...) 915 Returns the fitted instance. 916 &quot;&quot;&quot; 917 X = self._validate_data(X, ensure_min_samples=2, estimator=self) --&gt; 918 return self._fit(X) File ~/Documents/technical/xai_cats_dogs/xai_cats_dogs_venv/lib/python3.9/site-packages/sklearn/cluster/_agglomerative.py:955, in AgglomerativeClustering._fit(self, X) 950 raise ValueError( 951 &quot;compute_full_tree must be True if distance_threshold is set.&quot; 952 ) 954 if self.linkage == &quot;ward&quot; and self.affinity != &quot;euclidean&quot;: --&gt; 955 raise ValueError( 956 &quot;%s was provided as affinity. Ward can only &quot; 957 &quot;work with euclidean distances.&quot; % (self.affinity,) 958 ) 960 if self.linkage not in _TREE_BUILDERS: 961 raise ValueError( 962 &quot;Unknown linkage type %s. Valid options are %s&quot; 963 % (self.linkage, _TREE_BUILDERS.keys()) 964 ) ValueError: precomputed was provided as affinity. Ward can only work with euclidean distances."><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- ValueError Traceback (most recent call last) Input In [122], in &lt;module&gt; 2 dist=euclidean_distances(X) 3 cluster_dist = AgglomerativeClustering(n_clusters=n_cluster, affinity='precomputed', linkage='ward') ----&gt; 4 results_dist = cluster_dist.fit(dist) File ~/Documents/technical/xai_cats_dogs/xai_cats_dogs_venv/lib/python3.9/site-packages/sklearn/cluster/_agglomerative.py:918, in AgglomerativeClustering.fit(self, X, y) 900 """Fit the hierarchical clustering from features, or distance matrix. 901 902 Parameters (...) 915 Returns the fitted instance. 916 """ 917 X = self._validate_data(X, ensure_min_samples=2, estimator=self) --&gt; 918 return self._fit(X) File ~/Documents/technical/xai_cats_dogs/xai_cats_dogs_venv/lib/python3.9/site-packages/sklearn/cluster/_agglomerative.py:955, in AgglomerativeClustering._fit(self, X) 950 raise ValueError( 951 "compute_full_tree must be True if distance_threshold is set." 952 ) 954 if self.linkage == "ward" and self.affinity != "euclidean": --&gt; 955 raise ValueError( 956 "%s was provided as affinity. Ward can only " 957 "work with euclidean distances." % (self.affinity,) 958 ) 960 if self.linkage not in _TREE_BUILDERS: 961 raise ValueError( 962 "Unknown linkage type %s. Valid options are %s" 963 % (self.linkage, _TREE_BUILDERS.keys()) 964 ) ValueError: precomputed was provided as affinity. Ward can only work with euclidean distances. </code></pre></div> <h3 dir="auto">Versions</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="System: python: 3.9.7 (default, Oct 13 2021, 06:45:31) [Clang 13.0.0 (clang-1300.0.29.3)] executable: /Users/cristianpachon/Documents/technical/xai_cats_dogs/xai_cats_dogs_venv/bin/python machine: macOS-11.4-x86_64-i386-64bit Python dependencies: pip: 21.3.1 setuptools: 60.5.0 sklearn: 1.0.2 numpy: 1.22.2 scipy: 1.8.0 Cython: None pandas: 1.4.1 matplotlib: 3.5.1 joblib: 1.1.0 threadpoolctl: 3.1.0 Built with OpenMP: True"><pre class="notranslate">System: python: 3.9.7 (default, Oct 13 2021, 06:45:31) [Clang 13.0.0 (clang-1300.0.29.3)] executable: /Users/cristianpachon/Documents/technical/xai_cats_dogs/xai_cats_dogs_venv/bin/python machine: macOS-11.4-x86_64-i386-64bit Python dependencies: pip: 21.3.1 setuptools: 60.5.0 sklearn: 1.0.2 numpy: 1.22.2 scipy: 1.8.0 Cython: None pandas: 1.4.1 matplotlib: 3.5.1 joblib: 1.1.0 threadpoolctl: 3.1.0 Built with OpenMP: True</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<h4 dir="auto">Description</h4> <p dir="auto">Precomputed distances are treated as "unsupported" by AgglomerativeClustering, regardless of the provenance. (e.g. sklearn.metrics.euclidean_distances)</p> <p dir="auto">This restriction makes it impossible to pass a off-memory (e.g. memory mapped) precomputed distance matrix, even if it is valid Euclidean distance.</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.metrics import euclidean_distances from sklearn.cluster import AgglomerativeClustering X = np.array([[1, 2], [1, 4], [1, 0],[4, 2], [4, 4], [4, 0]]) c = AgglomerativeClustering(affinity='precomputed') c.fit(euclidean_distances(X))"><pre class="notranslate"><code class="notranslate">import numpy as np from sklearn.metrics import euclidean_distances from sklearn.cluster import AgglomerativeClustering X = np.array([[1, 2], [1, 4], [1, 0],[4, 2], [4, 4], [4, 0]]) c = AgglomerativeClustering(affinity='precomputed') c.fit(euclidean_distances(X)) </code></pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">This probably a bit complicated, as there is no reliable way to determine if the distance matrix actually contains Euclidean distances or is complete nonsense. As precomputed matrices are a somewhat advanced feature, simply relaxing the requirements and assuming users won't pass in invalid distances might be good enough, but that's a decision to be made by the maintainers.</p> <p dir="auto">If the matrix was generated from sklearn.metrics, it might be possible to mark a provenance hint somewhere in the object, while it does feel a bit hacky.</p> <h4 dir="auto">Actual Results</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [21]: c.fit(euclidean_distances(X)) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-21-38e0d7bfcae1&gt; in &lt;module&gt; ----&gt; 1 c.fit(euclidean_distances(X)) ~/anaconda3/lib/python3.7/site-packages/sklearn/cluster/hierarchical.py in fit(self, X, y) 823 raise ValueError(&quot;%s was provided as affinity. Ward can only &quot; 824 &quot;work with euclidean distances.&quot; % --&gt; 825 (self.affinity, )) 826 827 if self.linkage not in _TREE_BUILDERS: ValueError: precomputed was provided as affinity. Ward can only work with euclidean distances."><pre class="notranslate"><code class="notranslate">In [21]: c.fit(euclidean_distances(X)) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-21-38e0d7bfcae1&gt; in &lt;module&gt; ----&gt; 1 c.fit(euclidean_distances(X)) ~/anaconda3/lib/python3.7/site-packages/sklearn/cluster/hierarchical.py in fit(self, X, y) 823 raise ValueError("%s was provided as affinity. Ward can only " 824 "work with euclidean distances." % --&gt; 825 (self.affinity, )) 826 827 if self.linkage not in _TREE_BUILDERS: ValueError: precomputed was provided as affinity. Ward can only work with euclidean distances. </code></pre></div> <h4 dir="auto">Versions</h4> <p dir="auto">System:<br> python: 3.7.3 (default, Mar 27 2019, 22:11:17) [GCC 7.3.0]<br> executable: /home/user/anaconda3/bin/python<br> machine: Linux-5.0.0-31-generic-x86_64-with-debian-buster-sid</p> <p dir="auto">Python deps:<br> pip: 19.1.1<br> setuptools: 41.4.0<br> sklearn: 0.21.3<br> numpy: 1.16.2<br> scipy: 1.2.1<br> Cython: 0.29.12<br> pandas: 0.24.2</p> <p dir="auto">This affects all platforms.</p>
1
<p dir="auto">Halp ticket:</p> <ul dir="auto"> <li>support/99c4b424c63611e397d244a7153df9be</li> </ul> <blockquote> <p dir="auto">Soft wrap is very buggy. Often, the cursor will stop displaying in the right position. Seems to happen more after doing a find and replace. It'll show up about 4 characters away from where it's actually inserted. And some characters will be impossible to select/delete.</p> </blockquote> <p dir="auto">...</p> <blockquote> <p dir="auto">Disabled all my packages. Still having wrapping issues. See line 30 in this screen shot: <a href="https://www.dropbox.com/s/p2416k52npr3sre/Screenshot%202014-04-22%2011.00.33.png" rel="nofollow">https://www.dropbox.com/s/p2416k52npr3sre/Screenshot%202014-04-22%2011.00.33.png</a><br> The end of that data-tooltip-position attribute should have “bottom left”, but bottom is just getting cut off. I’m on version 0.90.0 now.</p> </blockquote> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/38924/2769147/73a0c92a-ca4d-11e3-8be3-0a4feb0958c8.png"><img src="https://cloud.githubusercontent.com/assets/38924/2769147/73a0c92a-ca4d-11e3-8be3-0a4feb0958c8.png" alt="screenshot 2014-04-22 11 00 33" style="max-width: 100%;"></a></p>
<p dir="auto">(discovered in Atom 0.110.0)</p> <p dir="auto">I'm on a <strong>german keyboard</strong> on <strong>windows</strong> right now, and i can't type characters that would involve the right Alt-Key (Labelled AltGr). The key is detected as Ctrl+Alt which is (as far as i know) more or less correct. This key is involved in these characters and triggers the following actions:</p> <ul dir="auto"> <li>AltGr + ß (right of 0, left of backspace): <br> Detected as: Ctrl-Alt-[<br> <code class="notranslate">editor:fold-current-row | .workspace .editor:not(.mini) | \keymaps\win32.json</code></li> <li>AltGr + Q: @<br> Detected as: Ctrl-Alt-Q (so, yeah it is correct)<br> <code class="notranslate">autoflow:reflow-selection | .platform-win32 .editor, .platform-linux .editor | \keymaps\autoflow.json</code></li> </ul> <p dir="auto">These bindings do work just fine:</p> <ul dir="auto"> <li>AltGr + 2: ²</li> <li>AltGr + 3: ³</li> <li>AltGr + 7: {</li> <li>AltGr + 8: [</li> <li>AltGr + 9: ]</li> <li>AltGr + 0: }</li> <li>AltGr + &lt;: |</li> </ul>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=wgorder" rel="nofollow">William Gorder</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9206?redirect=false" rel="nofollow">SPR-9206</a></strong> and commented</p> <p dir="auto">Having to define every annotated class with<br> &lt;oxm:class-to-be-bound<br> is tedious. Would it be possible to add something like the following as part of the framework?</p> <p dir="auto"><a href="http://springinpractice.com/2011/12/29/its-back-the-classpathscanningjaxb2marshaller/" rel="nofollow">http://springinpractice.com/2011/12/29/its-back-the-classpathscanningjaxb2marshaller/</a><br> <a href="http://www.walgemoed.org/2010/12/jaxb2-spring-ws/" rel="nofollow">http://www.walgemoed.org/2010/12/jaxb2-spring-ws/</a></p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.1</p> <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="398116423" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13626" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13626/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13626">#13626</a> Add the ability to Scan Packages for JAXB Marshalling (java example provided) (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tomas_johansson" rel="nofollow">Tomas Johansson</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6788?redirect=false" rel="nofollow">SPR-6788</a></strong> and commented</p> <p dir="auto">For example, if you use these two strings:<br> "text/html; q=0.7; charset=iso-8859-1"<br> "text/html; q=0.7"<br> then the compareTo method will return zero but equals will return false.</p> <p dir="auto">I suggest that a consistent implementation should either be fixed, or otherwise (if necessary for some reason ?) at least it should be mentioned in the javadoc that the natural ordering that is inconsistent with equals.</p> <p dir="auto">Example of JUnit test that I think should pass:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @Test public void verifyConsistentImplementationOf_equals_And_compareTo() { verifyConsistentImplementationOf_equals_And_compareTo( MediaType.parseMediaType(&quot;text/html; q=0.7; charset=iso-8859-1&quot;), MediaType.parseMediaType(&quot;text/html; q=0.7&quot;) ); verifyConsistentImplementationOf_equals_And_compareTo( [add more test cases ...] ); [add more test cases ...] } private void verifyConsistentImplementationOf_equals_And_compareTo(MediaType mediaType1, MediaType mediaType2) { assertEquals(mediaType1.equals(mediaType2), mediaType1.compareTo(mediaType2) == 0); }"><pre class="notranslate"><code class="notranslate"> @Test public void verifyConsistentImplementationOf_equals_And_compareTo() { verifyConsistentImplementationOf_equals_And_compareTo( MediaType.parseMediaType("text/html; q=0.7; charset=iso-8859-1"), MediaType.parseMediaType("text/html; q=0.7") ); verifyConsistentImplementationOf_equals_And_compareTo( [add more test cases ...] ); [add more test cases ...] } private void verifyConsistentImplementationOf_equals_And_compareTo(MediaType mediaType1, MediaType mediaType2) { assertEquals(mediaType1.equals(mediaType2), mediaType1.compareTo(mediaType2) == 0); } </code></pre></div> <p dir="auto">/ Tomas Johansson</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 GA</p>
0
<h3 dir="auto">Bug summary</h3> <p dir="auto">When using plt.savefig() or plt.gcf().savefig() to save an active figure in EPS format, the resulting file is blank. The same commands produce the correct image when saving to PNG format. Error occurs in both Spyder and Jupyter Notebooks.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt plt.figure() plt.plot(1,1,'x') plt.savefig('test.png', fmt='png') plt.savefig('test.eps', fmt='eps')"><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-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-s">'x'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test.png'</span>, <span class="pl-s1">fmt</span><span class="pl-c1">=</span><span class="pl-s">'png'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test.eps'</span>, <span class="pl-s1">fmt</span><span class="pl-c1">=</span><span class="pl-s">'eps'</span>)</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">PNG file:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/56979209/214295963-ec8e2862-51a0-4fca-9632-605a39e1fec9.png"><img src="https://user-images.githubusercontent.com/56979209/214295963-ec8e2862-51a0-4fca-9632-605a39e1fec9.png" alt="test" style="max-width: 100%;"></a></p> <p dir="auto">The EPS file cannot be uploaded, but is just a white rectangle of the same dimensions as the PNG.</p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">EPS file should look identical to the PNG.</p> <h3 dir="auto">Additional information</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Operating system</h3> <p dir="auto">OSX Ventura 13.1</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.1</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">module://matplotlib_inline.backend_inline</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.10.4</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto">3.3.4</p> <h3 dir="auto">Installation</h3> <p dir="auto">conda</p>
<h3 dir="auto">Bug summary</h3> <p dir="auto">Setting 'figure.autolayout' to 'True' removes most of the EPS savefig.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt plt.rcParams['figure.autolayout'] = 'True' plt.plot([1, 2, 3], [1, 2, 3], 'o-') plt.title(r'$\sum_{i=0}^{\infty} x_i$ just a test') plt.savefig('test2.eps', format='eps')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">plt</span>.<span class="pl-s1">rcParams</span>[<span class="pl-s">'figure.autolayout'</span>] <span class="pl-c1">=</span> <span class="pl-s">'True'</span> <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s">'o-'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s">r'$\sum_{i=0}^{\infty} x_i$ just a test'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test2.eps'</span>, <span class="pl-s1">format</span><span class="pl-c1">=</span><span class="pl-s">'eps'</span>)</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">Actual image after being exported from gimp (300dpi)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/30732244/145681524-ace8a931-20c2-4fd3-86f7-4421e003b902.jpeg"><img src="https://user-images.githubusercontent.com/30732244/145681524-ace8a931-20c2-4fd3-86f7-4421e003b902.jpeg" alt="actual" style="max-width: 100%;"></a></p> <p dir="auto">This is the EPS file:<br> <a href="https://we.tl/t-ka6aoUGxKm" rel="nofollow">https://we.tl/t-ka6aoUGxKm</a></p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">Expect the image in ".eps" file like this.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/30732244/145681516-61387c50-b4d5-4e35-9658-12aab0383c7c.jpeg"><img src="https://user-images.githubusercontent.com/30732244/145681516-61387c50-b4d5-4e35-9658-12aab0383c7c.jpeg" alt="expected" style="max-width: 100%;"></a></p> <p dir="auto">This is the EPS file:<br> <a href="https://we.tl/t-Q7WBPMwDcy" rel="nofollow">https://we.tl/t-Q7WBPMwDcy</a></p> <h3 dir="auto">Additional information</h3> <p dir="auto">I found this bug by an accident while using a custom ".mplstyle" on Matplotlib 3.5.0<br> Seems like this rcParam <code class="notranslate">['figure.autolayout'] = 'True'</code> destroys about 2/3 of the eps file.<br> <code class="notranslate">plt.tightlayout()</code> seem to not affect the result, the bug happens only with this rcParam on the latest matplotlib version.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt plt.plot([1, 2, 3], [1, 2, 3], 'o-') plt.title(r'$\sum_{i=0}^{\infty} x_i$ just a test') plt.savefig('test2.eps', format='eps')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s">'o-'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s">r'$\sum_{i=0}^{\infty} x_i$ just a test'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test2.eps'</span>, <span class="pl-s1">format</span><span class="pl-c1">=</span><span class="pl-s">'eps'</span>)</pre></div> <p dir="auto">This is the code for the expected outcome.</p> <h3 dir="auto">Operating system</h3> <p dir="auto">Windows</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">Bug present only on 3.5.0</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">Qt5Agg</p> <h3 dir="auto">Python version</h3> <p dir="auto">Tested with 3.10 and 3.9</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Installation</h3> <p dir="auto">conda</p>
1
<h2 dir="auto">Hi there,<br> I am new to python and machine learning. I am facing the problem for the following code. Can anybody suggest me what should be done to remove the error. Thanks in advance .<br> Seaborn version:0.9.0<br> Python: 3.6.0<br> Code:</h2> <h2 dir="auto">sns.distplot(d_p,color="skyblue", label="Distribution of neighbour image distances in route produced with GD")<br> # plt.savefig('dis_p.png')#distribution of distance of neighbour images(real frames) in route<br> sns.distplot(d_m,color="red", label="Distribution of neighbour image distances in route manually sellected")<br> plt.legend()<br> plt.savefig('disroute.png')#distribution of distance of neighbour images(real frames) in manually selected route<br> plt.clf()<br> sns.distplot(d_p_latent,color="skyblue", label="Distribution of neighbour pair distances in path produced with GD")<br> plt.savefig('distance_p_latent.png')#<br> plt.clf()<br> sns.distplot(d_m_latent,color="red", label="Distribution of neighbour pair distances in path w.r.t. manually selected route")<br> plt.legend(loc=2, fontsize = 'x-small')<br> plt.savefig('dis_m_lnt.png')</h2> <p dir="auto">Error:<br> #########<br> ile "C:\VAE_learning-a-representation-for-navigation-master\navigation_function.py", line 546, in evaluate<br> sns.distplot(d_p,color="skyblue", label="Distribution of neighbour image distances in route produced with GD")<br> File "C:\Users\Anaconda3\envs\reti\lib\site-packages\seaborn\distributions.py", line 231, in distplot<br> kdeplot(a, vertical=vertical, ax=ax, color=kde_color, **kde_kws)<br> File "C:\Users\Anaconda3\envs\reti\lib\site-packages\seaborn\distributions.py", line 691, in kdeplot<br> cumulative=cumulative, **kwargs)<br> File "C:\Users\Anaconda3\envs\reti\lib\site-packages\seaborn\distributions.py", line 294, in _univariate_kdeplot<br> x, y = _scipy_univariate_kde(data, bw, gridsize, cut, clip)<br> File "C:\Users\Anaconda3\envs\reti\lib\site-packages\seaborn\distributions.py", line 366, in _scipy_univariate_kde<br> kde = stats.gaussian_kde(data, bw_method=bw)<br> File "C:\Users\Anaconda3\envs\reti\lib\site-packages\scipy\stats\kde.py", line 172, in <strong>init</strong><br> self.set_bandwidth(bw_method=bw_method)<br> File "C:\Users\Anaconda3\envs\reti\lib\site-packages\scipy\stats\kde.py", line 499, in set_bandwidth<br> self._compute_covariance()<br> File "C:\Users\Anaconda3\envs\reti\lib\site-packages\scipy\stats\kde.py", line 510, in _compute_covariance<br> self._data_inv_cov = linalg.inv(self._data_covariance)<br> File "C:\Users\Anaconda3\envs\reti\lib\site-packages\scipy\linalg\basic.py", line 975, in inv<br> raise LinAlgError("singular matrix")<br> numpy.linalg.LinAlgError: singular matrix</p>
<p dir="auto">'LinAlgError: singular matrix' error pops up when trying to call the pairplot() function.</p>
1
<p dir="auto">When the user tries to access a route needing an user authentication using the Anonymous account, a HTTP 500 error is rose. Why not a 403? Is there any way to rise a 403?</p>
<p dir="auto">ChoiceType should support the options "allow_add" and "allow_delete" in the same fashion as CollectionType does.</p>
0
<p dir="auto">This is a request to add a model viewer example.<br> I think it's a very common need to display a model, pan, rotate and zoom.</p> <p dir="auto">Features:</p> <ul dir="auto"> <li>Load models of different formats with plugable loaders. It can help unify the loaders API if needed.</li> <li>Auto zoom the model to a reasonable initial value. Allow zoom in/out.</li> <li>Use TrackballControls to rotate the model.</li> <li>Allow pan.</li> </ul> <p dir="auto">This example can be used as a base for many other examples.<br> For example, for showing different loaders and controls.</p> <p dir="auto">Thigiview is very nice but it uses an old version of three.js<br> n0r.org/thingiview.js/examples/client_side_ajax.html<br> <a href="https://github.com/tbuser/thingiview.js">https://github.com/tbuser/thingiview.js</a></p> <p dir="auto">Thanks</p>
<p dir="auto"><code class="notranslate">r100</code> has been mentioned as the target release for removing support for rendering <code class="notranslate">THREE.Geometry</code>.</p> <p dir="auto">That means you can instantiate an instance of <code class="notranslate">THREE.Geometry</code>, but you will have to convert it to <code class="notranslate">THREE.BufferGeometry</code> prior to adding it to the scene.</p> <p dir="auto"><del>By my notes, the remaining examples where <code class="notranslate">Geometry</code> is rendered are <code class="notranslate">webgl_materials.html</code> and <code class="notranslate">svg_sandbox.html</code>. I believe in all other examples where <code class="notranslate">Geometry</code> is used, <code class="notranslate">Geometry</code> is instantiated, but not rendered.</del></p> <p dir="auto"><del>Also, to do is <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="346766642" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/14608" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/14608/hovercard" href="https://github.com/mrdoob/three.js/issues/14608">#14608</a> -- an important one.</del></p> <p dir="auto">I would also suggest renaming <code class="notranslate">THREE.Geometry</code> to <code class="notranslate">THREE.LegacyGeometry</code>.</p> <p dir="auto">At some point, <code class="notranslate">THREE.BufferGeometry</code> can become <code class="notranslate">THREE.Geometry</code>, but that would be in the distant future.</p>
0
<h3 dir="auto">Is there an existing issue for this?</h3> <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 existing issues</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Hi there!<br> I going to migrate my monorepo from lerna to npm 7 and faced with the next issue:<br> when I doing npm --workspaces version pach - my packages updated as expected, but dependency in "package-a" still have old dependency version of "package-b"</p> <p dir="auto">how can i solve this issue?</p>
<h3 dir="auto">Is there an existing issue for this?</h3> <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 existing issues</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">The <code class="notranslate">npm --no-git-tag-version --workspaces version &lt;version&gt;</code> command doesn't update package devDependencies or dependencies with the new version. I'd expect that workspace dependencies would be updated to match the new versions that were set.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">npm --no-git-tag-version --workspaces version "2.0.0-alpha1" should update all workspace package versions (currently does) and also update the package dependency versions</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>Setup a new npm workspace</li> <li>Create <code class="notranslate">/packages/packagea</code> :</li> </ol> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;packagea&quot;, &quot;version&quot;: &quot;2.0.0-dev&quot; }"><pre class="notranslate">{ <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>packagea<span class="pl-pds">"</span></span>, <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-dev<span class="pl-pds">"</span></span> }</pre></div> <ol start="3" dir="auto"> <li>Create ``/packages/packageb`:</li> </ol> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;packageb&quot;, &quot;version&quot;: &quot;2.0.0-dev&quot;, &quot;dependencies&quot;: { &quot;packagea&quot;: &quot;2.0.0-dev&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>packageb<span class="pl-pds">"</span></span>, <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-dev<span class="pl-pds">"</span></span>, <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"packagea"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-dev<span class="pl-pds">"</span></span> } }</pre></div> <ol start="3" dir="auto"> <li>Run <code class="notranslate">npm --no-git-tag-version --workspaces version "2.0.0-alpha1"</code></li> <li>notice the package versions are updated but the dependencies are not.</li> </ol> <p dir="auto">I have an existing setup located here: <a href="https://github.com/exceptionless/Exceptionless.JavaScript/tree/feature/workspaces">https://github.com/exceptionless/Exceptionless.JavaScript/tree/feature/workspaces</a> that reproduces it (but package names are changed...)</p> <p dir="auto">I noticed this after getting the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code ETARGET npm ERR! notarget No matching version found for @exceptionless/core@2.0.0-dev. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist."><pre lang="npm" class="notranslate"><code class="notranslate">npm ERR! code ETARGET npm ERR! notarget No matching version found for @exceptionless/core@2.0.0-dev. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist. </code></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: Windows 10 latest</li> <li>Node: v16.1.0</li> <li>npm: 7.17.0</li> </ul>
1
<h3 dir="auto">Images &amp; references</h3> <p dir="auto">--&gt; <a href="http://www.material-ui.com/#/components/text-field" rel="nofollow">http://www.material-ui.com/#/components/text-field</a></p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 0.16.0</li> <li>Browser: Sadari 10.0</li> </ul>
<h3 dir="auto">Problem description</h3> <p dir="auto">A thin border surrounds every input</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6162068/19436814/f1f3b356-947a-11e6-9816-7f00c77aa29f.png"><img width="834" alt="screen shot 2016-10-17 at 14 59 37" src="https://cloud.githubusercontent.com/assets/6162068/19436814/f1f3b356-947a-11e6-9816-7f00c77aa29f.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6162068/19436811/f1efb3c8-947a-11e6-9c22-293fe338d754.png"><img width="174" alt="screen shot 2016-10-17 at 14 59 17" src="https://cloud.githubusercontent.com/assets/6162068/19436811/f1efb3c8-947a-11e6-9c22-293fe338d754.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6162068/19436812/f1f09d2e-947a-11e6-8988-87dc94d3d5af.png"><img width="508" alt="screen shot 2016-10-17 at 14 59 03" src="https://cloud.githubusercontent.com/assets/6162068/19436812/f1f09d2e-947a-11e6-8988-87dc94d3d5af.png" style="max-width: 100%;"></a></p> <p dir="auto">Here, the first input is not a textarea. I think it might have something to do with it.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6162068/19436813/f1f155ca-947a-11e6-9219-88a3b5dc5e4d.png"><img width="501" alt="screen shot 2016-10-17 at 15 02 58" src="https://cloud.githubusercontent.com/assets/6162068/19436813/f1f155ca-947a-11e6-9219-88a3b5dc5e4d.png" style="max-width: 100%;"></a></p> <p dir="auto">I've also noticed that if I change in the browser <code class="notranslate">-webkit-appearance: textfield</code> to <code class="notranslate">-webkit-appearance: none</code> on the <code class="notranslate">&lt;div/&gt;</code> wrapping the text area, the border dissappear.</p> <p dir="auto">The hard part is to make this happen with the code. I wasn't able so far to do this. Someone in EnhancedTextarea overwrites my styles ;(</p> <p dir="auto">Here is the input:<br> <code class="notranslate">&lt;TextField inputStyle={WebkitAppearance: 'none', color: 'blue'} multiLine={true} /&gt;</code></p> <p dir="auto">Here is the real effect:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6162068/19437527/6b4aef5a-947e-11e6-80b3-7fa44c6aa55e.png"><img width="893" alt="screen shot 2016-10-17 at 15 24 51" src="https://cloud.githubusercontent.com/assets/6162068/19437527/6b4aef5a-947e-11e6-80b3-7fa44c6aa55e.png" style="max-width: 100%;"></a></p> <p dir="auto">Notice that the color changes to <code class="notranslate">blue</code>, but <code class="notranslate">-webkit-appearance</code> doesn't.</p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: ^0.16.0</li> <li>React: ^15.3.2</li> <li>Browser: Safari 10.0</li> </ul>
1
<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.3</li> <li>Operating System version: Mac</li> <li>Java version: 1.8</li> <li>Dubbo-admin version: 0.2.0</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">i install the dubbo-admin-0.2.0 for dubbo 2.7.3, but i can't get the metrics in the statics page.</p> <p dir="auto">i want to know how to get the metrics in the page.</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.x</li> <li>Operating System version: win/linux</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">the session config (registry.session) of ZK registry is invalid. When create zookeeper client In AbstractZookeeperTransporter.class there is a filter. It will persist only two parameters for example timeout and backup. And it does not deal session time out with CuratorFrameworkFactory.Builder.<br> Now it only get from System.properties.</p> <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 actually happens?</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>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" obj a() { } let b = obj() { with a() };"><pre class="notranslate"><code class="notranslate"> obj a() { } let b = obj() { with a() }; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rt: 4d8e:main:main: upcall fail 'Assertion !cx.terminated failed', ../src/comp/middle/trans_build.rs:34 rt: 4d8e:main: domain main @0x8999640 root task failed"><pre class="notranslate"><code class="notranslate">rt: 4d8e:main:main: upcall fail 'Assertion !cx.terminated failed', ../src/comp/middle/trans_build.rs:34 rt: 4d8e:main: domain main @0x8999640 root task failed </code></pre></div> <p dir="auto">As opposed to this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" obj a() { } let c = a(); let b = obj() { with c };"><pre class="notranslate"><code class="notranslate"> obj a() { } let c = a(); let b = obj() { with c }; </code></pre></div>
<p dir="auto">Right now, you can get errors like "a type named <code class="notranslate">Primitive</code> has already been imported in this module", which isn't very helpful. The error message would be much more helpful if it would tell you which line the other <code class="notranslate">Primitive</code> type was imported on.</p>
0
<p dir="auto">Leaving aside all arguments about whether a Byte Order Marker is a good thing or a bad thing (I don't much care) there are situations in which software which will be reading the files produced by atom require it to be there. This should be an option in the encodings menu.</p> <p dir="auto">Further if a Byte Order Mark is present in a file, it should not be displayed (it currently is), and should be kept in its current state when saving a file (it can be deleted by an unknowing user who thinks it is an extra space, or mangled by auto-indent).</p>
<p dir="auto">Variants of common Unicode encodings aren't supported, namely, UTF-8 w/ BOM, UTF-16 w/ BOM, etc.</p> <p dir="auto">I feel like Atom should natively support all Unicode encodings, even the most esoteric ones (e.g. UTF-32)</p>
1
<h2 dir="auto">Problem</h2> <p dir="auto">When executing the following snippet of code on matplolib 1.3.1, the month name November will show up twice on plot_date using a timezone with daylight saving time (meaning the second november tick is november 30, 23:00, almost december, but not quite). This is misleading and annoying when interpreting the plot because events after the december tick are already in january.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# -*- coding: utf-8 -*- import matplotlib.pyplot as plt import pytz import datetime from dateutil.rrule import rrule, MONTHLY mytz = pytz.timezone('America/Los_Angeles') startdt = datetime.datetime(2013, 8, 1, 0, 0) # start during DST period # create positions where monthly ticks should be myrule = rrule(MONTHLY, dtstart = startdt, count = 6) localizer = lambda dt: mytz.localize(dt) localized = [localizer(el) for el in myrule] # convert naive to timezone plt.plot_date(localized, [1 for el in localized], '+-') # shows month name November twice plt.grid(color = 'k', which = 'major', linestyle = ':', linewidth = 0.5) plt.tight_layout() plt.show()"><pre class="notranslate"><code class="notranslate"># -*- coding: utf-8 -*- import matplotlib.pyplot as plt import pytz import datetime from dateutil.rrule import rrule, MONTHLY mytz = pytz.timezone('America/Los_Angeles') startdt = datetime.datetime(2013, 8, 1, 0, 0) # start during DST period # create positions where monthly ticks should be myrule = rrule(MONTHLY, dtstart = startdt, count = 6) localizer = lambda dt: mytz.localize(dt) localized = [localizer(el) for el in myrule] # convert naive to timezone plt.plot_date(localized, [1 for el in localized], '+-') # shows month name November twice plt.grid(color = 'k', which = 'major', linestyle = ':', linewidth = 0.5) plt.tight_layout() plt.show() </code></pre></div> <h2 dir="auto">Reason</h2> <p dir="auto">In the example above, the proper tick positions are produced when using a naive datetime as startdt.</p> <p dir="auto">The reason is presumably that dateutil.rrule results in "wrong" dates used as tick locations when startdt is already localized and normalized afterwards. When doing something in the line of</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="myrule = rrule(MONTHLY, dtstart = mytz.localize(startdt), count = 6) print [mytz.normalize(dt) for dt in myrule]"><pre class="notranslate"><code class="notranslate">myrule = rrule(MONTHLY, dtstart = mytz.localize(startdt), count = 6) print [mytz.normalize(dt) for dt in myrule] </code></pre></div> <p dir="auto">the datetimes from November onward will be off by the DST offset (which is not what I would like to have for the ticks position).</p> <p dir="auto">Could this probably also happen in matplotlib?</p>
<h3 dir="auto">Problem</h3> <p dir="auto">To implement scale change on an y-axis I use the axis itself as a button via <code class="notranslate">ax.yaxis.set_picker(true)</code>.<br> Now, unexpectantly, it turns out that both yaxis's are responsive (and not only the left yaxis that seems the active one because of the labels and ticks). Also there seems to be no handle for distinguishing between the left or right yaxis.</p> <p dir="auto">This leads to unexpected scale-changes, that is unintended click-effects when nearby the right yaxis other responsive elements are placed but the yaxis happens to catch the mousepress intended for any of those elements.</p> <p dir="auto">For a consistent user-interface experience in this case, the duplicated yaxis interactivity is not helpful. Alternatives, say the y-label itself as button or the built-in scale-change functionality are not applicable (for reasons how the figure is set up ).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" import numpy as np import matplotlib.pyplot as plt from matplotlib.axis import YAxis,XAxis def onpick(pevent): #PickEvent print(pevent.artist) if isinstance(pevent.artist,YAxis): print(pevent.artist.majorTicks) print(pevent.artist.label) print(pevent.artist.get_majorticklabels()) print(pevent.artist.get_ticks_position()) # only gives 'left', the rcparam setting; not print(pevent.artist.axes.get_ybound()) pevent.artist.axes.set_ylabel('y clicked') if isinstance(pevent.artist,XAxis): pevent.artist.axes.set_ylabel('x clicked') fig.canvas.draw_idle() x = np.linspace(0, 2, 100) # Sample data. # Note that even in the OO-style, we use `.pyplot.figure` to create the Figure. fig, ax = plt.subplots(figsize=(5, 2.7), layout='constrained') ax.plot(x, x, label='linear') # Plot some data on the axes. ax.plot(x, x**2, label='quadratic') # Plot more data on the axes... ax.plot(x, x**3, label='cubic') # ... and some more. ax.set_xlabel('x label') # Add an x-label to the axes. ax.set_ylabel('y label') # Add a y-label to the axes. #ax.set_title(&quot;Simple Plot&quot;) # Add a title to the axes. ax.yaxis.set_picker(True) ax.xaxis.set_picker(True) fig.canvas.mpl_connect('pick_event', onpick) ax.legend() # Add a legend. plt.show()"><pre class="notranslate"><code class="notranslate"> import numpy as np import matplotlib.pyplot as plt from matplotlib.axis import YAxis,XAxis def onpick(pevent): #PickEvent print(pevent.artist) if isinstance(pevent.artist,YAxis): print(pevent.artist.majorTicks) print(pevent.artist.label) print(pevent.artist.get_majorticklabels()) print(pevent.artist.get_ticks_position()) # only gives 'left', the rcparam setting; not print(pevent.artist.axes.get_ybound()) pevent.artist.axes.set_ylabel('y clicked') if isinstance(pevent.artist,XAxis): pevent.artist.axes.set_ylabel('x clicked') fig.canvas.draw_idle() x = np.linspace(0, 2, 100) # Sample data. # Note that even in the OO-style, we use `.pyplot.figure` to create the Figure. fig, ax = plt.subplots(figsize=(5, 2.7), layout='constrained') ax.plot(x, x, label='linear') # Plot some data on the axes. ax.plot(x, x**2, label='quadratic') # Plot more data on the axes... ax.plot(x, x**3, label='cubic') # ... and some more. ax.set_xlabel('x label') # Add an x-label to the axes. ax.set_ylabel('y label') # Add a y-label to the axes. #ax.set_title("Simple Plot") # Add a title to the axes. ax.yaxis.set_picker(True) ax.xaxis.set_picker(True) fig.canvas.mpl_connect('pick_event', onpick) ax.legend() # Add a legend. plt.show() </code></pre></div> <p dir="auto">Is there a way to check which of the two yaxis's has been clicked? I looked around but could not find anything. If not, maybe below suggestion might be valid.</p> <h3 dir="auto">Proposed solution</h3> <p dir="auto">The placement of the ticks and labels on the left or the right axis is governed by rcparams like <code class="notranslate">ytick.left: True</code>.</p> <p dir="auto">Maybe a similar approach is easy to implement that could help to define which yaxis is reponsive (i.e. gets the picker-activity), say with a rcparam <code class="notranslate">yaxis.picker.left: True; yaxis.picker.right: False; </code> in the matplotlibrc.</p> <p dir="auto">For the xaxis comparable additions <code class="notranslate">xaxis.picker.top: True; xaxis.picker.bottom: False; </code> would be relevant too.</p>
0
<p dir="auto">Perhaps this is a right click option within the console itself, or a setting to save and export on exit/closing tab.</p> <p dir="auto">But the option to save/export the console output and input into a txt file</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows NT 10.0.18362.0 Windows Terminal version (if applicable): Version: 0.4.2382.0 Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows NT 10.0.18362.0 Windows Terminal version (if applicable): Version: 0.4.2382.0 Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Highlight text in Windows PowerShell, in Windows Terminal.</li> <li>Press CTRL+C and watch as a new line is generated but realize the selected text is both no longer selected and not on the clipboard.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">CTRL+C should continue to work for copying text out of Windows PowerShell.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">CTRL+C is instead just the typical cancel and new line.</p>
0
<p dir="auto">I am still experiencing issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="12128428" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/7318" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/7318/hovercard" href="https://github.com/twbs/bootstrap/issues/7318">#7318</a>. This is using the latest Firefox, v22. I do not experience the issue with the latest Chrome.</p> <p dir="auto">Bootstrap is version 2.3.1.</p>
<p dir="auto">I posted this issue earlier, but the example that was posted was not fully representative what I was trying to do and I couldn't recreate the error.</p> <p dir="auto">So I created my own JSBin and I have recreated the error where the textarea is not passing via AJAX because there must be some conflict somewhere with vanilla JS, JQUERY or Bootstrap 3.</p> <p dir="auto">It will pass data that is hard-coded into the textarea form, but if you type into the form, it will not pass what you type.</p> <p dir="auto">To duplicate:</p> <p dir="auto">Update: I ran this again and actually saw some of the replies get passed but it is not consistent.</p> <ol dir="auto"> <li>run this JSBin <a href="http://jsbin.com/lovahaxu/1/edit?html,js,output" rel="nofollow">http://jsbin.com/lovahaxu/1/edit?html,js,output</a> (you should see styled output)</li> <li>Hit reply with one of the responses</li> <li>You will see some default text, type more text into the form and hit send.</li> <li>You will receive an alert that displays all the data that is being passed.</li> <li>Observe the "message=" variable and notice the text you typed is not sent.</li> <li>Repeat with other replies because I have seen this work a couple of times, but it's not consistent.</li> </ol> <p dir="auto">I fully admit that my js might be wrong, but I have used this without Bootstrap without problems.</p>
0
<p dir="auto">Bringing up a cluster using the new Multiple-AZ Support fails on AWS. The first part of the cluster comes up but we fail on bringing up the second set of nodes. Below is the config to start up:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# this part succeeds export KUBERNETES_PROVIDER=aws KUBE_AWS_ZONE=us-west-2a kube-up.sh # this command fails with: Could not detect Kubernetes master node IP. Make sure you've launched a cluster with 'kube-up.sh' KUBE_AWS_ZONE=us-west-2b KUBE_SUBNET_CIDR=172.20.1.0/24 KUBE_USE_EXISTING_MASTER=true kube-up.sh"><pre class="notranslate"><code class="notranslate"># this part succeeds export KUBERNETES_PROVIDER=aws KUBE_AWS_ZONE=us-west-2a kube-up.sh # this command fails with: Could not detect Kubernetes master node IP. Make sure you've launched a cluster with 'kube-up.sh' KUBE_AWS_ZONE=us-west-2b KUBE_SUBNET_CIDR=172.20.1.0/24 KUBE_USE_EXISTING_MASTER=true kube-up.sh </code></pre></div> <p dir="auto">And here is the log of the failure to bring up the second set of nodes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Creating autoscaling group 0 minions started; waiting 0 minions started; waiting 0 minions started; waiting 0 minions started; waiting 2 minions started; ready Sanity checking cluster... Attempt 1 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 2 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 3 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 4 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 5 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 6 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 7 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 8 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 9 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 10 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 11 to check Docker on node @ &lt;someIP&gt; ...not working yet Your cluster is unlikely to work correctly. Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"><pre class="notranslate"><code class="notranslate">Creating autoscaling group 0 minions started; waiting 0 minions started; waiting 0 minions started; waiting 0 minions started; waiting 2 minions started; ready Sanity checking cluster... Attempt 1 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 2 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 3 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 4 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 5 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 6 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 7 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 8 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 9 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 10 to check Docker on node @ &lt;someIP&gt; ...not working yet Attempt 11 to check Docker on node @ &lt;someIP&gt; ...not working yet Your cluster is unlikely to work correctly. Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!) </code></pre></div>
<p dir="auto">The Kubernetes 1.3 release tarball is 1.4G. That is insane. While we know that much of this is due to the fact that we include all architectures, it make kubernetes feel heavier than it is.</p> <p dir="auto">Much of the space is the fact that 4 server platforms are now created and packaged with everything else. Each target is a ~325M tarball. These tarballs include both individual binaries along with Docker images that include those binaries. They include kubectl (which is available naked in the release).</p> <p dir="auto">We also have 9 copies of kubectl for various targets totaling 450MB.</p> <p dir="auto">Things we can do to slim this down:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Start building release tars per-architecture. Either include non-arch specific stuff in every tar or break that out too. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164399443" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28629" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28629/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28629">#28629</a>, owner?)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Finish transition to hyperkube and deprecate the individual binaries. . We could move the individual binaries into a different tar for those that still need them. For <code class="notranslate">amd64</code> hyperkube is 132M uncompressed and 26M compressed. This means we could go from a 350M compressed tar for the amd64 target down to 26M. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="114091814" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/16508" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/16508/hovercard" href="https://github.com/kubernetes/kubernetes/issues/16508">#16508</a>, owner?)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Have the ability to build the Docker images on the fly. It should be easy to automate (as part of the binary) creating a Dockerfile, referencing the running binary and driving docker. <code class="notranslate">hyperkube admin create-container-image</code> could do this. We could also support <code class="notranslate">hyperkube admin create-container-image --aci</code> and <code class="notranslate">hyperkube admin create-container-image --docker --just-dockerfile</code>. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164399974" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28630" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28630/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28630">#28630</a>, owner?) <ul dir="auto"> <li>I understand that gzip does a decent job of de-duping stuff here. But the uncompressed footprint balloons and looks bad.</li> </ul> </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Break out kubectl as a separate download from the server components. <code class="notranslate">gcloud</code> already ships it separately. The user cases here differ dramatically. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164400426" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28631" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28631/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28631">#28631</a>, owner?)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Reevaluate all of our targets. Do we really need 32bit Windows? (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164400843" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28632" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28632/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28632">#28632</a>, owner?)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Why are the federation targets new binaries? They add 150M uncompressed for amd64. (I don't know enough to say here but could these be folded in to hyperkube? I'm guessing they could.) (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164401146" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28633" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28633/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28633">#28633</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/madhusudancs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/madhusudancs">@madhusudancs</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Don't ship binaries that we don't really need. We included <code class="notranslate">kubemark</code> here. No end users will actually use that. This is 100M uncompressed. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164401535" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28635" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28635/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28635">#28635</a>, owner?)</li> </ul> <p dir="auto">Also related: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="160465886" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27444" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27444/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27444">#27444</a> (Builds are taking too long)</p>
0
<p dir="auto">A number of examples spread across various documentation pages still speak of replication controllers where they should instead say replica sets. Many of these are of an introductory nature and thus tend to confuse Kubernetes newcomers in particular (as determined anecdotally by the number of Slack questions I personally see getting posted in this regard). One particular use case is the application of the <code class="notranslate">kubectl run</code> command which is often accompanied by telling the reader to run <code class="notranslate">kubectl get rc</code> to see the created replication controllers afterwards where instead it should be <code class="notranslate">kubectl get rs</code> these days to list replica sets.</p> <p dir="auto">All such occurrences should be updated accordingly. Specifically, I came across</p> <ul dir="auto"> <li><a href="http://kubernetes.io/docs/user-guide/simple-nginx/" rel="nofollow">http://kubernetes.io/docs/user-guide/simple-nginx/</a></li> <li><a href="http://kubernetes.io/docs/user-guide/pods/multi-container/" rel="nofollow">http://kubernetes.io/docs/user-guide/pods/multi-container/</a></li> <li><a href="http://kubernetes.io/docs/user-guide/walkthrough/k8s201/" rel="nofollow">http://kubernetes.io/docs/user-guide/walkthrough/k8s201/</a></li> </ul> <p dir="auto">There may be additional pages though that I'm not aware of.</p> <p dir="auto">I'd be happy to provide a PR to update the pages above and any others people point out.</p> <p dir="auto">Thanks.</p>
<p dir="auto">After creating a simple pod on an empty cluster I wan't able to delete it.</p> <p dir="auto">Way to reproduce:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl run example --image=nginx kubectl get rc # empty kubectl get pods NAME READY STATUS RESTARTS AGE example-1934187764-swmqv 1/1 Running 0 38s kubectl delete pod example-1934187764-swmqv kubectl get pods NAME READY STATUS RESTARTS AGE example-1934187764-l36b7 0/1 ContainerCreating 0 2s example-1934187764-swmqv 1/1 Terminating 0 57s kubectl get pods NAME READY STATUS RESTARTS AGE example-1934187764-l36b7 1/1 Running 0 6s"><pre class="notranslate"><code class="notranslate">kubectl run example --image=nginx kubectl get rc # empty kubectl get pods NAME READY STATUS RESTARTS AGE example-1934187764-swmqv 1/1 Running 0 38s kubectl delete pod example-1934187764-swmqv kubectl get pods NAME READY STATUS RESTARTS AGE example-1934187764-l36b7 0/1 ContainerCreating 0 2s example-1934187764-swmqv 1/1 Terminating 0 57s kubectl get pods NAME READY STATUS RESTARTS AGE example-1934187764-l36b7 1/1 Running 0 6s </code></pre></div> <p dir="auto">Tested with GKE 1.2 and local vagrant (Mac) 1.2.</p>
1
<p dir="auto">GET request to an API returned a response with broken encoding.<br> More specifically, the response body was encoded in ASCII even though the data sent via API is encoded in UTF-8.<br> The result is escaped non-ASCII characters in the response body.<br> This behaviour can be observed on r.content, r.text, and r.json().</p> <p dir="auto">Following the quickstart guide, I tried to "force encoding" with <code class="notranslate">r.encoding = 'UTF-8'</code> but it had no effect.<br> I made sure to include <code class="notranslate">charset=UTF-8</code> in request header, which also didn't help.</p> <p dir="auto">What ended up working was <code class="notranslate">json.loads(r.text)</code>.</p> <p dir="auto">Very simple I know, but locating the problem was difficult,<br> not to mention I had to be absolutely sure the API was sending a data that was encoded in UTF-8.<br> This problem is not mentioned or, at least, not easily found on Stackoverflow.<br> I thought I would mention it here, so that others can find it.</p> <p dir="auto">issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="693330603" data-permission-text="Title is private" data-url="https://github.com/psf/requests/issues/5577" data-hovercard-type="issue" data-hovercard-url="/psf/requests/issues/5577/hovercard" href="https://github.com/psf/requests/issues/5577">#5577</a> seems to be similar in nature, which only proves that Encoding is an issue that seems to pop up every now and then.<br> The answer given for that issue seems to be "there is an easy solution so there's no need to fix it on our ends".<br> But nonetheless, a bug is a bug.<br> Besides, it would be nice to mention how to troubleshoot encoding on the quickstart guide.</p> <p dir="auto">Sorry it's not so much of a "summary", but things had to be said.</p> <h2 dir="auto">Expected Result</h2> <p dir="auto">A response body properly encoded in UTF-8.<br> Like so, <code class="notranslate">{'body': '상품등록'}</code></p> <h2 dir="auto">Actual Result</h2> <p dir="auto">A response body encoded in ASCII even though it's supposed to be UTF-8.<br> <code class="notranslate">{'body': '\uc0c1\ud488\ub4f1\ub85'}</code></p> <h2 dir="auto">Reproduction Steps</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests url = 'https://www.sorryicannottellyoutheactualapi.com/api' headers = {'Content-Type': 'application/json;charset=UTF-8'} r = requests.get(url, headers=headers) print(r.content) print(r.text) print(r.json()) "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span> <span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s">'https://www.sorryicannottellyoutheactualapi.com/api'</span> <span class="pl-s1">headers</span> <span class="pl-c1">=</span> {<span class="pl-s">'Content-Type'</span>: <span class="pl-s">'application/json;charset=UTF-8'</span>} <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s1">url</span>, <span class="pl-s1">headers</span><span class="pl-c1">=</span><span class="pl-s1">headers</span>) <span class="pl-en">print</span>(<span class="pl-s1">r</span>.<span class="pl-s1">content</span>) <span class="pl-en">print</span>(<span class="pl-s1">r</span>.<span class="pl-s1">text</span>) <span class="pl-en">print</span>(<span class="pl-s1">r</span>.<span class="pl-en">json</span>())</pre></div> <h2 dir="auto">System Information</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="chardet 3.0.4 cryptography 2.8 idna 2.9 implementation CPython 3.6.7 platform Linux 4.15.0-101-generic pyOpenSSL 19.1.0 (openssl 1010101f) requests 2.23.0 system_ssl 1010104f urllib3 1.25.7 using_pyopenssl True python 3.6.7"><pre class="notranslate"><code class="notranslate">chardet 3.0.4 cryptography 2.8 idna 2.9 implementation CPython 3.6.7 platform Linux 4.15.0-101-generic pyOpenSSL 19.1.0 (openssl 1010101f) requests 2.23.0 system_ssl 1010104f urllib3 1.25.7 using_pyopenssl True python 3.6.7 </code></pre></div>
<p dir="auto">The location header in a 302 redirect response is not being parsed correctly when it has special characters in it.</p> <p dir="auto"><code class="notranslate">/Login.aspx?ReturnUrl=%2f</code> becomes <code class="notranslate">/Login.aspx%3FReturnUrl%3D/</code></p> <p dir="auto">When followed, this results in a 404 because it's not correct.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import requests &gt;&gt;&gt; r = requests.get('http://affiliatenetwork.ist-apps.com') &gt;&gt;&gt; r.status_code 404 &gt;&gt;&gt; print r.headers {'content-length': '1245', 'x-powered-by': 'ASP.NET', 'date': 'Tue, 18 Oct 2011 09:15:08 GMT', 'content-type': 'text/html', 'connection': 'close', 'server': 'Microsoft-IIS/7.0'} &gt;&gt;&gt; r.url 'http://affiliatenetwork.ist-apps.com/Login.aspx%3FReturnUrl%3D/' &gt;&gt;&gt; r.history [&lt;Response [302]&gt;] &gt;&gt;&gt; r.history[0].headers {'content-length': '142', 'x-powered-by': 'ASP.NET', 'x-aspnet-version': '4.0.30319', 'server': 'Microsoft-IIS/7.0', 'connection': 'close', 'location': '/Login.aspx?ReturnUrl=%2f', 'cache-control': 'private', 'date': 'Tue, 18 Oct 2011 10:56:08 GMT', 'content-type': 'text/html; charset=utf-8'}"><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">requests</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s">'http://affiliatenetwork.ist-apps.com'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">r</span>.<span class="pl-s1">status_code</span> <span class="pl-c1">404</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">print</span> <span class="pl-s1">r</span>.<span class="pl-s1">headers</span> {<span class="pl-s">'content-length'</span>: <span class="pl-s">'1245'</span>, <span class="pl-s">'x-powered-by'</span>: <span class="pl-s">'ASP.NET'</span>, <span class="pl-s">'date'</span>: <span class="pl-s">'Tue, 18 Oct 2011 09:15:08 GMT'</span>, <span class="pl-s">'content-type'</span>: <span class="pl-s">'text/html'</span>, <span class="pl-s">'connection'</span>: <span class="pl-s">'close'</span>, <span class="pl-s">'server'</span>: <span class="pl-s">'Microsoft-IIS/7.0'</span>} <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">r</span>.<span class="pl-s1">url</span> <span class="pl-s">'http://affiliatenetwork.ist-apps.com/Login.aspx%3FReturnUrl%3D/'</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">r</span>.<span class="pl-s1">history</span> [<span class="pl-c1">&lt;</span><span class="pl-v">Response</span> [<span class="pl-c1">302</span>]<span class="pl-c1">&gt;</span>] <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">r</span>.<span class="pl-s1">history</span>[<span class="pl-c1">0</span>].<span class="pl-s1">headers</span> {<span class="pl-s">'content-length'</span>: <span class="pl-s">'142'</span>, <span class="pl-s">'x-powered-by'</span>: <span class="pl-s">'ASP.NET'</span>, <span class="pl-s">'x-aspnet-version'</span>: <span class="pl-s">'4.0.30319'</span>, <span class="pl-s">'server'</span>: <span class="pl-s">'Microsoft-IIS/7.0'</span>, <span class="pl-s">'connection'</span>: <span class="pl-s">'close'</span>, <span class="pl-s">'location'</span>: <span class="pl-s">'/Login.aspx?ReturnUrl=%2f'</span>, <span class="pl-s">'cache-control'</span>: <span class="pl-s">'private'</span>, <span class="pl-s">'date'</span>: <span class="pl-s">'Tue, 18 Oct 2011 10:56:08 GMT'</span>, <span class="pl-s">'content-type'</span>: <span class="pl-s">'text/html; charset=utf-8'</span>}</pre></div> <p dir="auto">curl parses this correctly:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="david@Shibuya ~: curl -v http://affiliatenetwork.ist-apps.com * About to connect() to affiliatenetwork.ist-apps.com port 80 (#0) * Trying 94.236.92.60... connected * Connected to affiliatenetwork.ist-apps.com (94.236.92.60) port 80 (#0) &gt; GET / HTTP/1.1 &gt; User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5 &gt; Host: affiliatenetwork.ist-apps.com &gt; Accept: */* &gt; &lt; HTTP/1.1 302 Found &lt; Cache-Control: private &lt; Content-Type: text/html; charset=utf-8 &lt; Location: /Login.aspx?ReturnUrl=%2f &lt; Server: Microsoft-IIS/7.0 &lt; X-AspNet-Version: 4.0.30319 &lt; X-Powered-By: ASP.NET &lt; Date: Tue, 18 Oct 2011 11:26:34 GMT &lt; Content-Length: 142 &lt; &lt;html&gt;&lt;head&gt;&lt;title&gt;Object moved&lt;/title&gt;&lt;/head&gt;&lt;body&gt; &lt;h2&gt;Object moved to &lt;a href=&quot;/Login.aspx?ReturnUrl=%2f&quot;&gt;here&lt;/a&gt;.&lt;/h2&gt; &lt;/body&gt;&lt;/html&gt; * Connection #0 to host affiliatenetwork.ist-apps.com left intact * Closing connection #0"><pre class="notranslate">david@Shibuya <span class="pl-k">~</span>: curl -v http://affiliatenetwork.ist-apps.com <span class="pl-k">*</span> About to <span class="pl-en">connect</span>() to affiliatenetwork.ist-apps.com port 80 (<span class="pl-c"><span class="pl-c">#</span>0)</span> <span class="pl-k">*</span> Trying 94.236.92.60... connected <span class="pl-k">*</span> Connected to affiliatenetwork.ist-apps.com (94.236.92.60) port 80 (<span class="pl-c"><span class="pl-c">#</span>0)</span> <span class="pl-k">&gt;</span> GET / HTTP/1.1 <span class="pl-k">&gt;</span> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5 <span class="pl-k">&gt;</span> Host: affiliatenetwork.ist-apps.com <span class="pl-k">&gt;</span> Accept: <span class="pl-k">*</span>/<span class="pl-k">*</span> <span class="pl-k">&gt;</span> <span class="pl-k">&lt;</span> HTTP/1.1 302 Found <span class="pl-k">&lt;</span> Cache-Control: private <span class="pl-k">&lt;</span> Content-Type: text/html<span class="pl-k">;</span> charset=utf-8 <span class="pl-k">&lt;</span> Location: /Login.aspx<span class="pl-k">?</span>ReturnUrl=%2f <span class="pl-k">&lt;</span> Server: Microsoft-IIS/7.0 <span class="pl-k">&lt;</span> X-AspNet-Version: 4.0.30319 <span class="pl-k">&lt;</span> X-Powered-By: ASP.NET <span class="pl-k">&lt;</span> Date: Tue, 18 Oct 2011 11:26:34 GMT <span class="pl-k">&lt;</span> Content-Length: 142 <span class="pl-k">&lt;</span> <span class="pl-k">&lt;</span>html&gt;&lt;head&gt;&lt;title<span class="pl-k">&gt;</span>Object moved<span class="pl-k">&lt;</span>/title&gt;&lt;/head&gt;&lt;body<span class="pl-k">&gt;</span> <span class="pl-k">&lt;</span>h<span class="pl-k">2&gt;</span>Object moved to <span class="pl-k">&lt;</span>a href=<span class="pl-s"><span class="pl-pds">"</span>/Login.aspx?ReturnUrl=%2f<span class="pl-pds">"</span></span><span class="pl-k">&gt;</span>here<span class="pl-k">&lt;</span>/a<span class="pl-k">&gt;</span>.<span class="pl-k">&lt;</span>/h<span class="pl-k">2&gt;</span> <span class="pl-k">&lt;</span>/body&gt;&lt;/html<span class="pl-k">&gt;</span> <span class="pl-k">*</span> Connection <span class="pl-c"><span class="pl-c">#</span>0 to host affiliatenetwork.ist-apps.com left intact</span> <span class="pl-k">*</span> Closing connection <span class="pl-c"><span class="pl-c">#</span>0</span></pre></div> <p dir="auto">httplib also parses this correctly:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; conn = httplib.HTTPConnection('affiliatenetwork.ist-apps.com') &gt;&gt;&gt; conn.request(&quot;GET&quot;,&quot;/&quot;) &gt;&gt;&gt; res = conn.getresponse() &gt;&gt;&gt; print res.status 302 &gt;&gt;&gt; print res.reason Found &gt;&gt;&gt; print res.getheaders() [('content-length', '142'), ('x-powered-by', 'ASP.NET'), ('x-aspnet-version', '4.0.30319'), ('server', 'Microsoft-IIS/7.0'), ('location', '/Login.aspx?ReturnUrl=%2f'), ('cache-control', 'private'), ('date', 'Tue, 18 Oct 2011 10:35:20 GMT'), ('content-type', 'text/html; charset=utf-8')]"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">conn</span> <span class="pl-c1">=</span> <span class="pl-s1">httplib</span>.<span class="pl-v">HTTPConnection</span>(<span class="pl-s">'affiliatenetwork.ist-apps.com'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">conn</span>.<span class="pl-en">request</span>(<span class="pl-s">"GET"</span>,<span class="pl-s">"/"</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">conn</span>.<span class="pl-en">getresponse</span>() <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">print</span> <span class="pl-s1">res</span>.<span class="pl-s1">status</span> <span class="pl-c1">302</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">print</span> <span class="pl-s1">res</span>.<span class="pl-s1">reason</span> <span class="pl-v">Found</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">print</span> <span class="pl-s1">res</span>.<span class="pl-en">getheaders</span>() [(<span class="pl-s">'content-length'</span>, <span class="pl-s">'142'</span>), (<span class="pl-s">'x-powered-by'</span>, <span class="pl-s">'ASP.NET'</span>), (<span class="pl-s">'x-aspnet-version'</span>, <span class="pl-s">'4.0.30319'</span>), (<span class="pl-s">'server'</span>, <span class="pl-s">'Microsoft-IIS/7.0'</span>), (<span class="pl-s">'location'</span>, <span class="pl-s">'/Login.aspx?ReturnUrl=%2f'</span>), (<span class="pl-s">'cache-control'</span>, <span class="pl-s">'private'</span>), (<span class="pl-s">'date'</span>, <span class="pl-s">'Tue, 18 Oct 2011 10:35:20 GMT'</span>), (<span class="pl-s">'content-type'</span>, <span class="pl-s">'text/html; charset=utf-8'</span>)]</pre></div> <p dir="auto">Looks like the problem is caused by <a href="https://github.com/kennethreitz/requests/blob/master/requests/models.py#L237">https://github.com/kennethreitz/requests/blob/master/requests/models.py#L237</a></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; url = '/Login.aspx?ReturnUrl=%2f' &gt;&gt;&gt; o = urlparse.urlparse(url) &gt;&gt;&gt; print o ParseResult(scheme='', netloc='', path='/Login.aspx', params='', query='ReturnUrl=%2f', fragment='') &gt;&gt;&gt; import urllib &gt;&gt;&gt; urllib.quote(urllib.unquote(url)) '/Login.aspx%3FReturnUrl%3D/' &gt;&gt;&gt; urllib.unquote(url) '/Login.aspx?ReturnUrl=/'"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s">'/Login.aspx?ReturnUrl=%2f'</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">o</span> <span class="pl-c1">=</span> <span class="pl-s1">urlparse</span>.<span class="pl-en">urlparse</span>(<span class="pl-s1">url</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">print</span> <span class="pl-s1">o</span> <span class="pl-v">ParseResult</span>(<span class="pl-s1">scheme</span><span class="pl-c1">=</span><span class="pl-s">''</span>, <span class="pl-s1">netloc</span><span class="pl-c1">=</span><span class="pl-s">''</span>, <span class="pl-s1">path</span><span class="pl-c1">=</span><span class="pl-s">'/Login.aspx'</span>, <span class="pl-s1">params</span><span class="pl-c1">=</span><span class="pl-s">''</span>, <span class="pl-s1">query</span><span class="pl-c1">=</span><span class="pl-s">'ReturnUrl=%2f'</span>, <span class="pl-s1">fragment</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">urllib</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">urllib</span>.<span class="pl-en">quote</span>(<span class="pl-s1">urllib</span>.<span class="pl-en">unquote</span>(<span class="pl-s1">url</span>)) <span class="pl-s">'/Login.aspx%3FReturnUrl%3D/'</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">urllib</span>.<span class="pl-en">unquote</span>(<span class="pl-s1">url</span>) <span class="pl-s">'/Login.aspx?ReturnUrl=/'</span></pre></div>
0
<p dir="auto"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter" rel="nofollow"><code class="notranslate">Intl.Segmenter</code></a> is available at runtime, but usage creates a compiler error in Deno v<code class="notranslate">1.20.4</code>:</p> <p dir="auto"><code class="notranslate">example.ts</code>:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const segmenter = new Intl.Segmenter(&quot;en&quot;, { granularity: &quot;grapheme&quot; }); console.log({ denoVersion: Deno.version.deno, segmenter }); "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">segmenter</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Intl</span><span class="pl-kos">.</span><span class="pl-c1">Segmenter</span><span class="pl-kos">(</span><span class="pl-s">"en"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">granularity</span>: <span class="pl-s">"grapheme"</span> <span class="pl-kos">}</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-kos">{</span> <span class="pl-c1">denoVersion</span>: <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">version</span><span class="pl-kos">.</span><span class="pl-c1">deno</span><span class="pl-kos">,</span> segmenter <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno run example.ts Check file:///Users/deno/example.ts error: TS2339 [ERROR]: Property 'Segmenter' does not exist on type 'typeof Intl'. const segmenter = new Intl.Segmenter(&quot;en&quot;, { granularity: &quot;grapheme&quot; }); ~~~~~~~~~ at file:///Users/deno/example.ts:1:28"><pre class="notranslate"><code class="notranslate">$ deno run example.ts Check file:///Users/deno/example.ts error: TS2339 [ERROR]: Property 'Segmenter' does not exist on type 'typeof Intl'. const segmenter = new Intl.Segmenter("en", { granularity: "grapheme" }); ~~~~~~~~~ at file:///Users/deno/example.ts:1:28 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno run --no-check example.ts { denoVersion: &quot;1.20.4&quot;, segmenter: Intl.Segmenter {} }"><pre class="notranslate"><code class="notranslate">$ deno run --no-check example.ts { denoVersion: "1.20.4", segmenter: Intl.Segmenter {} } </code></pre></div>
<p dir="auto">What are the interactions between these methods:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Process#close() Process#kill(signal) Process#status()"><pre class="notranslate"><code class="notranslate">Process#close() Process#kill(signal) Process#status() </code></pre></div> <p dir="auto">The existing docs or a quick read of the source say that:</p> <ol dir="auto"> <li> <p dir="auto">calling <code class="notranslate">status()</code> after <code class="notranslate">Process#kill(signal)</code> should still be ok (and is).</p> </li> <li> <p dir="auto">calling <code class="notranslate">status()</code> after <code class="notranslate">Process#close()</code> will fail with <code class="notranslate">BadResource: bad resource id</code>. So too will calling <code class="notranslate">close()</code> after <code class="notranslate">close()</code>.</p> </li> <li> <p dir="auto">Because of 1 and 2, presumably <code class="notranslate">Process#kill</code> doesn't (and shouldn't) implicitly invoke <code class="notranslate">Process#close</code>.</p> </li> <li> <p dir="auto">What if <code class="notranslate">Process#close</code> is invoked, and the process is still running? Would we expect this to <code class="notranslate">kill</code> the Process, or not? Currently it doesn't seem to do so, and perhaps that's the right design. Just wanted to make the behavior explicit.</p> </li> <li> <p dir="auto">Currently nothing stops us from <code class="notranslate">Process#kill</code>ing a Process that has already exited. If you're lucky, your OS will complain. If you're unlucky, the <code class="notranslate">pid</code> may have been recycled, and you'll be signaling some unknown new process. Wouldn't it be nicer for Deno to verify that if you call <code class="notranslate">Process#kill</code>, the Process hasn't already exited (either naturally, or because you or someone else killed it)?</p> <p dir="auto">One way to do that would be to run the <code class="notranslate">sendAsync(dispatch.OP_RUN_STATUS, {rid})</code> on every Process right after it's started, and have the resulting Promise set a flag, which blocks <code class="notranslate">Process#kill</code>. If that seems too resource-intensive to do across the board, perhaps there's a way to make sure it's at least been done first, in those cases the user requests to <code class="notranslate">kill</code> the Process (or queries its status)?</p> </li> </ol> <p dir="auto">Next, what are the interactions of the above methods with these:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Process#output() Process#stderrOutput() Process#stdin|stdout|stderr.close()"><pre class="notranslate"><code class="notranslate">Process#output() Process#stderrOutput() Process#stdin|stdout|stderr.close() </code></pre></div> <ol start="6" dir="auto"> <li> <p dir="auto">The docs say that calling <code class="notranslate">output()</code> and <code class="notranslate">stderrOutput()</code> schedule a <code class="notranslate">stdout.close()</code> and <code class="notranslate">stderr.close()</code>, respectively, after the pipes have been read.</p> </li> <li> <p dir="auto">What if <code class="notranslate">Process#close</code> is invoked, the Process has piped stdio, but <code class="notranslate">output()</code> and <code class="notranslate">stderrOutput()</code> haven't been invoked, and perhaps never will be? Do the stdio pipes get closed? If so, when: only when they're garbage collected?</p> </li> <li> <p dir="auto">In general, what is appropriate clean-up for a Process? Should one always explicitly <code class="notranslate">close()</code> it? (I expect it will be <code class="notranslate">closed()</code> automatically when GC'd; though that doesn't mean we shouldn't close it ourselves when we know we're done with it.) If it has open stdio pipes that we haven't read --- perhaps because we killed the Process --- do we need to explicitly <code class="notranslate">close()</code> them before closing the Process?</p> </li> </ol>
0
<p dir="auto">see discussion here:</p> <p dir="auto"><a href="https://groups.google.com/group/symfony-devs/browse_thread/thread/92ae24eafd13e29e?hl=en" rel="nofollow">https://groups.google.com/group/symfony-devs/browse_thread/thread/92ae24eafd13e29e?hl=en</a></p>
<p dir="auto">Is there a reason why Request class doesn't have a setUrl method? I really wish to do this:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$request = Request::createFromGlobals(); $request-&gt;setUrl(&quot;http://www.yahoo.com&quot;);"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>request</span> = <span class="pl-v">Request</span>::<span class="pl-en">createFromGlobals</span>(); <span class="pl-s1"><span class="pl-c1">$</span>request</span>-&gt;<span class="pl-en">setUrl</span>("<span class="pl-s">http://www.yahoo.com</span>");</pre></div> <p dir="auto">but I can't without creating another instance of Request and copying all of its data minus the URL into the new.</p>
0
<p dir="auto">I'm on Arch Linux x86_64, I configured the compiler with plain <code class="notranslate">./configure</code>, on commit <code class="notranslate">6d8342f5e9f7093694548e761ee7df4f55243f3f</code>. While the build is on this step:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc: x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin/rustc"><pre class="notranslate"><code class="notranslate">rustc: x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin/rustc </code></pre></div> <p dir="auto">I get this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: Type metadata for unique id '{&amp;{&amp;[]{struct dbb1b1faf5a54dab/2157e}}}' is already in the TypeMap!`"><pre class="notranslate"><code class="notranslate">error: internal compiler error: Type metadata for unique id '{&amp;{&amp;[]{struct dbb1b1faf5a54dab/2157e}}}' is already in the TypeMap!` </code></pre></div> <p dir="auto">With this backtrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stack backtrace: 1: 0x7f4f637f4030 - rt::backtrace::imp::write::hd68321808750660aVJp::v0.11.0.pre 2: 0x7f4f637face0 - failure::on_fail::h154edd018f1bf2ddb5p::v0.11.0.pre 3: 0x7f4f63f94990 - unwind::begin_unwind_inner::hd705cb6b794f80b52Sd::v0.11.0.pre 4: 0x7f4f628f9900 - unwind::begin_unwind::h9854036616545136218::v0.11.0.pre 5: 0x7f4f628fa380 - diagnostic::Handler::bug::hf4942befc9aaa08ae4b::v0.11.0.pre 6: 0x7f4f6466b9b0 - driver::session::Session::bug::h62d28c74abdced97a9w::v0.11.0.pre 7: 0x7f4f647bce50 - middle::trans::debuginfo::TypeMap::register_unique_id_with_metadata::ha322802a27d8506auxB::v0.11.0.pre 8: 0x7f4f647c85e0 - middle::trans::debuginfo::type_metadata::ha6587b278ab9472c87D::v0.11.0.pre 9: 0x7f4f647d1db0 - middle::trans::debuginfo::MemberDescriptionFactory::create_member_descriptions::hbb82ea95bc203ed8S2C::v0.11.0.pre 10: 0x7f4f647d4770 - middle::trans::debuginfo::RecursiveTypeDescription::finalize::h172a9c81d3fa73fb14C::v0.11.0.pre 11: 0x7f4f647c85e0 - middle::trans::debuginfo::type_metadata::ha6587b278ab9472c87D::v0.11.0.pre 12: 0x7f4f647c85e0 - middle::trans::debuginfo::type_metadata::ha6587b278ab9472c87D::v0.11.0.pre 13: 0x7f4f647dd760 - middle::trans::debuginfo::subroutine_type_metadata::hab304051bb4931acO3D::v0.11.0.pre 14: 0x7f4f647c85e0 - middle::trans::debuginfo::type_metadata::ha6587b278ab9472c87D::v0.11.0.pre 15: 0x7f4f64756650 - middle::trans::debuginfo::create_function_debug_context::h551395b1c8ceede8BmC::v0.11.0.pre 16: 0x7f4f646bd4f0 - middle::trans::base::new_fn_ctxt::h14929bd3a73789b8Naq::v0.11.0.pre 17: 0x7f4f6475b340 - middle::trans::base::trans_closure::h65a687f94d00498fSoq::v0.11.0.pre 18: 0x7f4f6466cd40 - middle::trans::base::trans_fn::hdc8f7c61ccd79580Vwq::v0.11.0.pre 19: 0x7f4f64666010 - middle::trans::base::trans_item::h0d2beb0c7408fa1fnNq::v0.11.0.pre 20: 0x7f4f646a1500 - visit::Visitor::visit_block::h10191743604182817780::v0.11.0.pre 21: 0x7f4f646a1500 - visit::Visitor::visit_block::h10191743604182817780::v0.11.0.pre 22: 0x7f4f646a0460 - visit::walk_expr::h17947220027483757976::v0.11.0.pre 23: 0x7f4f646a1500 - visit::Visitor::visit_block::h10191743604182817780::v0.11.0.pre 24: 0x7f4f646a1fe0 - visit::Visitor::visit_fn::h2285760730414270531::v0.11.0.pre 25: 0x7f4f647610f0 - middle::trans::meth::trans_impl::h6256bcdcefe94055Rtw::v0.11.0.pre 26: 0x7f4f64666010 - middle::trans::base::trans_item::h0d2beb0c7408fa1fnNq::v0.11.0.pre 27: 0x7f4f64666010 - middle::trans::base::trans_item::h0d2beb0c7408fa1fnNq::v0.11.0.pre 28: 0x7f4f64666010 - middle::trans::base::trans_item::h0d2beb0c7408fa1fnNq::v0.11.0.pre 29: 0x7f4f6476b520 - middle::trans::base::trans_crate::ha8449dece161a4f80Gr::v0.11.0.pre 30: 0x7f4f64f650f0 - driver::driver::phase_4_translate_to_llvm::h3205c42d1e774d83Hjw::v0.11.0.pre 31: 0x7f4f64f59d70 - driver::driver::compile_input::h9565f67bca8cc63dLYv::v0.11.0.pre 32: 0x7f4f65019ef0 - driver::run_compiler::h3c56844536e03c3cLGy::v0.11.0.pre 33: 0x7f4f65019df0 - driver::main_args::closure.117369 34: 0x7f4f65033d30 - driver::monitor::closure.118564 35: 0x7f4f6502eef0 - task::TaskBuilder::try::closure.118289 36: 0x7f4f6700dff0 - task::spawn_opts::closure.7590 37: 0x7f4f63f914f0 - task::Task::run::closure.5350 38: 0x7f4f64004cc0 - rust_try 39: 0x7f4f63f93f20 - unwind::try::he7a8528ce77e1217oHd::v0.11.0.pre 40: 0x7f4f63f91350 - task::Task::run::hb15978d9de89989eHWc::v0.11.0.pre 41: 0x7f4f6700ddb0 - task::spawn_opts::closure.7561 42: 0x7f4f63f93580 - thread::thread_start::h3040a1afbabdead5bed::v0.11.0.pre 43: 0x7f4f63276060 - start_thread 44: 0x7f4f63c68489 - __clone 45: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">stack backtrace: 1: 0x7f4f637f4030 - rt::backtrace::imp::write::hd68321808750660aVJp::v0.11.0.pre 2: 0x7f4f637face0 - failure::on_fail::h154edd018f1bf2ddb5p::v0.11.0.pre 3: 0x7f4f63f94990 - unwind::begin_unwind_inner::hd705cb6b794f80b52Sd::v0.11.0.pre 4: 0x7f4f628f9900 - unwind::begin_unwind::h9854036616545136218::v0.11.0.pre 5: 0x7f4f628fa380 - diagnostic::Handler::bug::hf4942befc9aaa08ae4b::v0.11.0.pre 6: 0x7f4f6466b9b0 - driver::session::Session::bug::h62d28c74abdced97a9w::v0.11.0.pre 7: 0x7f4f647bce50 - middle::trans::debuginfo::TypeMap::register_unique_id_with_metadata::ha322802a27d8506auxB::v0.11.0.pre 8: 0x7f4f647c85e0 - middle::trans::debuginfo::type_metadata::ha6587b278ab9472c87D::v0.11.0.pre 9: 0x7f4f647d1db0 - middle::trans::debuginfo::MemberDescriptionFactory::create_member_descriptions::hbb82ea95bc203ed8S2C::v0.11.0.pre 10: 0x7f4f647d4770 - middle::trans::debuginfo::RecursiveTypeDescription::finalize::h172a9c81d3fa73fb14C::v0.11.0.pre 11: 0x7f4f647c85e0 - middle::trans::debuginfo::type_metadata::ha6587b278ab9472c87D::v0.11.0.pre 12: 0x7f4f647c85e0 - middle::trans::debuginfo::type_metadata::ha6587b278ab9472c87D::v0.11.0.pre 13: 0x7f4f647dd760 - middle::trans::debuginfo::subroutine_type_metadata::hab304051bb4931acO3D::v0.11.0.pre 14: 0x7f4f647c85e0 - middle::trans::debuginfo::type_metadata::ha6587b278ab9472c87D::v0.11.0.pre 15: 0x7f4f64756650 - middle::trans::debuginfo::create_function_debug_context::h551395b1c8ceede8BmC::v0.11.0.pre 16: 0x7f4f646bd4f0 - middle::trans::base::new_fn_ctxt::h14929bd3a73789b8Naq::v0.11.0.pre 17: 0x7f4f6475b340 - middle::trans::base::trans_closure::h65a687f94d00498fSoq::v0.11.0.pre 18: 0x7f4f6466cd40 - middle::trans::base::trans_fn::hdc8f7c61ccd79580Vwq::v0.11.0.pre 19: 0x7f4f64666010 - middle::trans::base::trans_item::h0d2beb0c7408fa1fnNq::v0.11.0.pre 20: 0x7f4f646a1500 - visit::Visitor::visit_block::h10191743604182817780::v0.11.0.pre 21: 0x7f4f646a1500 - visit::Visitor::visit_block::h10191743604182817780::v0.11.0.pre 22: 0x7f4f646a0460 - visit::walk_expr::h17947220027483757976::v0.11.0.pre 23: 0x7f4f646a1500 - visit::Visitor::visit_block::h10191743604182817780::v0.11.0.pre 24: 0x7f4f646a1fe0 - visit::Visitor::visit_fn::h2285760730414270531::v0.11.0.pre 25: 0x7f4f647610f0 - middle::trans::meth::trans_impl::h6256bcdcefe94055Rtw::v0.11.0.pre 26: 0x7f4f64666010 - middle::trans::base::trans_item::h0d2beb0c7408fa1fnNq::v0.11.0.pre 27: 0x7f4f64666010 - middle::trans::base::trans_item::h0d2beb0c7408fa1fnNq::v0.11.0.pre 28: 0x7f4f64666010 - middle::trans::base::trans_item::h0d2beb0c7408fa1fnNq::v0.11.0.pre 29: 0x7f4f6476b520 - middle::trans::base::trans_crate::ha8449dece161a4f80Gr::v0.11.0.pre 30: 0x7f4f64f650f0 - driver::driver::phase_4_translate_to_llvm::h3205c42d1e774d83Hjw::v0.11.0.pre 31: 0x7f4f64f59d70 - driver::driver::compile_input::h9565f67bca8cc63dLYv::v0.11.0.pre 32: 0x7f4f65019ef0 - driver::run_compiler::h3c56844536e03c3cLGy::v0.11.0.pre 33: 0x7f4f65019df0 - driver::main_args::closure.117369 34: 0x7f4f65033d30 - driver::monitor::closure.118564 35: 0x7f4f6502eef0 - task::TaskBuilder::try::closure.118289 36: 0x7f4f6700dff0 - task::spawn_opts::closure.7590 37: 0x7f4f63f914f0 - task::Task::run::closure.5350 38: 0x7f4f64004cc0 - rust_try 39: 0x7f4f63f93f20 - unwind::try::he7a8528ce77e1217oHd::v0.11.0.pre 40: 0x7f4f63f91350 - task::Task::run::hb15978d9de89989eHWc::v0.11.0.pre 41: 0x7f4f6700ddb0 - task::spawn_opts::closure.7561 42: 0x7f4f63f93580 - thread::thread_start::h3040a1afbabdead5bed::v0.11.0.pre 43: 0x7f4f63276060 - start_thread 44: 0x7f4f63c68489 - __clone 45: 0x0 - &lt;unknown&gt; </code></pre></div>
<p dir="auto">Compiling libcore with -g leads to the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: Type metadata for ty::t '&amp;[core::fmt::rt::Piece&lt;&gt;]' is already in the TypeMap!"><pre class="notranslate"><code class="notranslate">error: internal compiler error: Type metadata for ty::t '&amp;[core::fmt::rt::Piece&lt;&gt;]' is already in the TypeMap! </code></pre></div> <p dir="auto">This is due to the vec slice in question occurring multiple times along a type reference chain and the code path for vec slices doesn't take that possibility into account. This is also a potential problem for other kinds of types, e.g. fixed length vector types or function types. For regular pointer types this is already handled correctly.</p>
1
<p dir="auto">The drawer doesn't slide back into its original position when closed, it just disappears (unmounts?) instead</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/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">The drawer should slide back into the hidden position</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The slider just unmounts / gets hidden without any animation</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Go to <a href="https://material-ui.com/demos/drawers/" rel="nofollow">https://material-ui.com/demos/drawers/</a> click on open left, then click anywhere to dismiss it.</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>latest beta</td> </tr> <tr> <td>React</td> <td>16</td> </tr> <tr> <td>browser</td> <td>Chrome 63</td> </tr> <tr> <td>etc</td> <td>TS 2.6.2</td> </tr> </tbody> </table>
<p dir="auto">To reproduce:</p> <ul dir="auto"> <li>Open your browser to full width. This is to cause the responsive styling to leave the left nav panel open after clicking on something.</li> <li>Open <a href="https://material-ui.com/" rel="nofollow">https://material-ui.com/</a>.</li> <li>Click on hamburger at top left.</li> <li>Click on "Component Demos".</li> <li>Scroll to bottom.</li> <li>Click on (Component Demos/) "Tooltips".</li> </ul> <p dir="auto">Bad behavior: the left nav panel scrolls to top, hiding the currently selected item.</p> <p dir="auto">This is particularly annoying in the "Component Demos", since one is likely to try to walk through them sequentially to see what's there.</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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">I'm on latest Chrome on OSX.</p>
0
<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 read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</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/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-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"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</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/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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 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"> 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"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</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>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</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> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <h1 dir="auto">Actual Behavior</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29030022/66460601-d1b23300-eaa9-11e9-99ed-ba83965e58a9.png"><img src="https://user-images.githubusercontent.com/29030022/66460601-d1b23300-eaa9-11e9-99ed-ba83965e58a9.png" alt="image" style="max-width: 100%;"></a><br> After the cancel operation, the task continues to run without stopping</p>
<p dir="auto">Dispatch the same task many times from multiple processes and have 1 celery worker. The messages to ack upon completion are tracked using the <code class="notranslate">delivery_tag</code> attribute in the <code class="notranslate">properties</code> section of a celery message. Per the <a href="http://docs.celeryproject.org/en/latest/userguide/routing.html#hands-on-with-the-api" rel="nofollow">API section of the docs</a> the delivery tag is an integer and is described as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Note the delivery tag listed in the structure above; Within a connection channel, every received message has a unique delivery tag, This tag is used to acknowledge the message. Also note that delivery tags are not unique across connections, so in another client the delivery tag 1 might point to a different message than in this channel."><pre class="notranslate"><code class="notranslate">Note the delivery tag listed in the structure above; Within a connection channel, every received message has a unique delivery tag, This tag is used to acknowledge the message. Also note that delivery tags are not unique across connections, so in another client the delivery tag 1 might point to a different message than in this channel. </code></pre></div> <p dir="auto">The 1 celery worker will read in many messages and if it receives two of the same values for <code class="notranslate">delivery_tag</code> before the first one has acked, the first one will not be acked by celery. Even if celery did ack it, many transports likely store the original message so it can be acked and likely track that by <code class="notranslate">delivery_tag</code> also.</p> <p dir="auto">The easiest thing to do is to have the message acking be tracked by uuid (I think). That change should be safe for all transports right?</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ask/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ask">@ask</a> What do you recommend?</p>
0
<p dir="auto">In <a href="https://github.com/twitter/bootstrap/blob/master/less/type.less#L119">type.less</a>, I've found it would be useful for the <strong>unstyled</strong> and <strong>inline</strong> to be mixins, rather than developers having to reimplement such things when using LESS.</p> <p dir="auto">For example, I'm styling a horizontal navigation bar but I have to reimplement the stylings of <strong>ul.inline</strong> from <em>type.less</em> into my LESS file, which could easily be replaced with a mixin.</p>
<p dir="auto">I originally opened this as a <a href="http://stackoverflow.com/questions/26042591/black-box-flashes-across-bootstrap-carousel-on-firefox-for-android" rel="nofollow">question on SO</a>, but I've since found several other instance in the wild where this happens, so it's not specific to my site. Wondering if it's a bug in Bootstrap, though interestingly I can't replicate this on the carousel example on getbootstrap.com.</p> <p dir="auto">From the SO post:</p> <blockquote> <p dir="auto">We're doing some final testing on a responsive design and we've discovered an issue on our homepage carousel, but it's only happening on Firefox for Android - not Chrome for Android, not Firefox desktop (not even in responsive design mode), and not on any iOS devices.</p> <p dir="auto">Anytime the carousel rotates, either automatically or manually, a black box flashes across the middle after the new slide appears. It is only there for less then a second, then it disappears.</p> <p dir="auto">I know it's occurring at some point in the Carousel.prototype.slide function (somewhere between line 144 and line 164 in the source on Github), but I have no idea what element it's occurring on or what specific line is triggering it. I've tried stepping through it in Firefox's remote debugger to no avail.</p> <p dir="auto">FWIW, the black box does not occur when viewing the stock Bootstrap carousel demo in Firefox for Android.</p> <p dir="auto">We are using the latest version of Bootstrap (3.2.0).</p> </blockquote> <p dir="auto">Example 1: <a href="https://dl.dropboxusercontent.com/u/9530717/firefox-android-black-box/index.html" rel="nofollow">https://dl.dropboxusercontent.com/u/9530717/firefox-android-black-box/index.html</a></p> <p dir="auto">Example 2: <a href="http://www.tutorialrepublic.com/codelab.php?topic=bootstrap&amp;file=carousel" rel="nofollow">http://www.tutorialrepublic.com/codelab.php?topic=bootstrap&amp;file=carousel</a> (you can only see it if you click the button that opens the output in a new window)</p> <p dir="auto">Example 3: <a href="http://www.bootply.com/render/ErniW7HVND" rel="nofollow">http://www.bootply.com/render/ErniW7HVND</a></p> <p dir="auto">Example 4: <a href="http://jsfiddle.net/mattdlockyer/gjPVJ/4/embedded/result/" rel="nofollow">http://jsfiddle.net/mattdlockyer/gjPVJ/4/embedded/result/</a></p>
0
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Currently, ObjectLoader doesn't load the specified background texture or environment of a scene's JSON object.</p> <p dir="auto">I've outlined a solution below that would import a CubeTexture or Texture for the scene background, and a CubeTexture for environment (since that's the only type of texture environment supports). This involved passing textures into <code class="notranslate">parseObject()</code> and then added them to the scene object.</p> <p dir="auto">I could make a PR if looks good, but I'm also not sure if this conflicts with some of the plans outlined in existing issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="488790819" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/17420" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/17420/hovercard" href="https://github.com/mrdoob/three.js/issues/17420">#17420</a>. Either way this seems like a desirable feature of ObjectLoader.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="parseObject: function ( data, geometries, materials, textures ) { var object; ... function getTexture( name ) { if ( textures[ name ] === undefined ) { console.warn( 'THREE.ObjectLoader: Undefined texture', name ); } return textures[ name ]; } switch ( data.type ) { case 'Scene': object = new Scene(); if ( data.background !== undefined ) { if ( Number.isInteger( data.background ) ) { object.background = new Color( data.background ); } else { object.background = getTexture( data.background ); } } if ( data.environment !== undefined ) { var texture = getTexture ( data.environment ); if ( texture instanceof CubeTexture ) { object.environment = texture; } } if ( data.fog !== undefined ) { if ( data.fog.type === 'Fog' ) { object.fog = new Fog( data.fog.color, data.fog.near, data.fog.far ); } else if ( data.fog.type === 'FogExp2' ) { object.fog = new FogExp2( data.fog.color, data.fog.density ); } } break; ..."><pre class="notranslate"><span class="pl-s1">parseObject</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-s1">geometries</span><span class="pl-kos">,</span> <span class="pl-s1">materials</span><span class="pl-kos">,</span> <span class="pl-s1">textures</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">object</span><span class="pl-kos">;</span> ... <span class="pl-k">function</span> <span class="pl-en">getTexture</span><span class="pl-kos">(</span> <span class="pl-s1">name</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">textures</span><span class="pl-kos">[</span> <span class="pl-s1">name</span> <span class="pl-kos">]</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</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">warn</span><span class="pl-kos">(</span> <span class="pl-s">'THREE.ObjectLoader: Undefined texture'</span><span class="pl-kos">,</span> <span class="pl-s1">name</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">textures</span><span class="pl-kos">[</span> <span class="pl-s1">name</span> <span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">switch</span> <span class="pl-kos">(</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">type</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">case</span> <span class="pl-s">'Scene'</span>: <span class="pl-s1">object</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Scene</span><span class="pl-kos">(</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">data</span><span class="pl-kos">.</span><span class="pl-c1">background</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</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">Number</span><span class="pl-kos">.</span><span class="pl-en">isInteger</span><span class="pl-kos">(</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">background</span> <span class="pl-kos">)</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">object</span><span class="pl-kos">.</span><span class="pl-c1">background</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Color</span><span class="pl-kos">(</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">background</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-s1">object</span><span class="pl-kos">.</span><span class="pl-c1">background</span> <span class="pl-c1">=</span> <span class="pl-en">getTexture</span><span class="pl-kos">(</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">background</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">if</span> <span class="pl-kos">(</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">environment</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">texture</span> <span class="pl-c1">=</span> <span class="pl-en">getTexture</span> <span class="pl-kos">(</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">environment</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">texture</span> <span class="pl-k">instanceof</span> <span class="pl-v">CubeTexture</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">object</span><span class="pl-kos">.</span><span class="pl-c1">environment</span> <span class="pl-c1">=</span> <span class="pl-s1">texture</span><span class="pl-kos">;</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">data</span><span class="pl-kos">.</span><span class="pl-c1">fog</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</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">data</span><span class="pl-kos">.</span><span class="pl-c1">fog</span><span class="pl-kos">.</span><span class="pl-c1">type</span> <span class="pl-c1">===</span> <span class="pl-s">'Fog'</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">object</span><span class="pl-kos">.</span><span class="pl-c1">fog</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Fog</span><span class="pl-kos">(</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">fog</span><span class="pl-kos">.</span><span class="pl-c1">color</span><span class="pl-kos">,</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">fog</span><span class="pl-kos">.</span><span class="pl-c1">near</span><span class="pl-kos">,</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">fog</span><span class="pl-kos">.</span><span class="pl-c1">far</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-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">fog</span><span class="pl-kos">.</span><span class="pl-c1">type</span> <span class="pl-c1">===</span> <span class="pl-s">'FogExp2'</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">object</span><span class="pl-kos">.</span><span class="pl-c1">fog</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">FogExp2</span><span class="pl-kos">(</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">fog</span><span class="pl-kos">.</span><span class="pl-c1">color</span><span class="pl-kos">,</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">fog</span><span class="pl-kos">.</span><span class="pl-c1">density</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">break</span><span class="pl-kos">;</span> ...</pre></div> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r113</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> </ul>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">When loading a scene, the background of the editor is not set to the background of the scene. This causes an issue when exporting because the scene's background will be overwritten to the Editor's default gray.</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r103</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul>
1
<p dir="auto"><strong>Steps to recreate</strong></p> <ol dir="auto"> <li>Run Android emulator with app open</li> <li>In Android Studio open <code class="notranslate">Flutter Inspector</code></li> <li>Click <code class="notranslate">Toggle Platform Mode</code> twice</li> </ol> <p dir="auto"><strong>Error message</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I/flutter (15306): The following assertion was thrown building _CupertinoBackGestureDetector&lt;dynamic&gt;(state: I/flutter (15306): _CupertinoBackGestureDetectorState&lt;dynamic&gt;#72c3a): I/flutter (15306): 'package:flutter/src/rendering/object.dart': Failed assertion: line 1792 pos 12: '() { I/flutter (15306): final AbstractNode parent = this.parent; I/flutter (15306): if (parent is RenderObject) I/flutter (15306): return parent._needsCompositing; I/flutter (15306): return true; I/flutter (15306): }()': is not true."><pre class="notranslate"><code class="notranslate">I/flutter (15306): The following assertion was thrown building _CupertinoBackGestureDetector&lt;dynamic&gt;(state: I/flutter (15306): _CupertinoBackGestureDetectorState&lt;dynamic&gt;#72c3a): I/flutter (15306): 'package:flutter/src/rendering/object.dart': Failed assertion: line 1792 pos 12: '() { I/flutter (15306): final AbstractNode parent = this.parent; I/flutter (15306): if (parent is RenderObject) I/flutter (15306): return parent._needsCompositing; I/flutter (15306): return true; I/flutter (15306): }()': is not true. </code></pre></div> <p dir="auto"><strong>Stack trace snippet</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I/flutter (15306): #2 RenderObject.markNeedsCompositingBitsUpdate (package:flutter/src/rendering/object.dart) I/flutter (15306): #3 RenderObject.attach (package:flutter/src/rendering/object.dart:1232:7) I/flutter (15306): #4 _RenderProxyBox&amp;RenderBox&amp;RenderObjectWithChildMixin.attach (package:flutter/src/rendering/object.dart:2631:11) I/flutter (15306): #5 AbstractNode.adoptChild (package:flutter/src/foundation/node.dart:128:13) I/flutter (15306): #6 RenderObject.adoptChild (package:flutter/src/rendering/object.dart:1077:11) I/flutter (15306): #7 _RenderProxyBox&amp;RenderBox&amp;RenderObjectWithChildMixin.child= (package:flutter/src/rendering/object.dart:2626:7) I/flutter (15306): #8 SingleChildRenderObjectElement.insertChildRenderObject (package:flutter/src/widgets/framework.dart:4669:18) I/flutter (15306): #9 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4513:35) I/flutter (15306): #10 Element._activateWithParent (package:flutter/src/widgets/framework.dart:2974:5)"><pre class="notranslate"><code class="notranslate">I/flutter (15306): #2 RenderObject.markNeedsCompositingBitsUpdate (package:flutter/src/rendering/object.dart) I/flutter (15306): #3 RenderObject.attach (package:flutter/src/rendering/object.dart:1232:7) I/flutter (15306): #4 _RenderProxyBox&amp;RenderBox&amp;RenderObjectWithChildMixin.attach (package:flutter/src/rendering/object.dart:2631:11) I/flutter (15306): #5 AbstractNode.adoptChild (package:flutter/src/foundation/node.dart:128:13) I/flutter (15306): #6 RenderObject.adoptChild (package:flutter/src/rendering/object.dart:1077:11) I/flutter (15306): #7 _RenderProxyBox&amp;RenderBox&amp;RenderObjectWithChildMixin.child= (package:flutter/src/rendering/object.dart:2626:7) I/flutter (15306): #8 SingleChildRenderObjectElement.insertChildRenderObject (package:flutter/src/widgets/framework.dart:4669:18) I/flutter (15306): #9 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4513:35) I/flutter (15306): #10 Element._activateWithParent (package:flutter/src/widgets/framework.dart:2974:5) </code></pre></div>
<p dir="auto">I am able to trigger a reproducible assertion when adding (or removing) a <code class="notranslate">padding</code> argument to a <code class="notranslate">Container</code> and doing a hot-reload. Note that the assertion happens only during a hot-reload, not during a hot-restart nor when doing the initial <code class="notranslate">flutter run</code>.</p> <p dir="auto">I've tried to distill the reproduction case to be as small as possible. Note that the use of a <code class="notranslate">GlobalKey</code>, a <code class="notranslate">GridView</code>, and the <code class="notranslate">BoxConstraints</code> all seem to be relevant.</p> <h2 dir="auto">The failure</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter run Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with &quot;--enable-software-rendering&quot;. Launching lib/main.dart on Android SDK built for x86 in debug mode... Initializing gradle... 0.7s Resolving dependencies... 1.8s Gradle task 'assembleDebug'... 3.8s Built build/app/outputs/apk/debug/app-debug.apk. Installing build/app/outputs/apk/app.apk... 0.8s Syncing files to device Android SDK built for x86... D/ (16785): HostConnection::get() New Host Connection established 0xde8a9fc0, tid 16811 D/EGL_emulation(16785): eglMakeCurrent: 0xe1205ca0: ver 2 0 (tinfo 0xcd0cf9e0) 2.5s 🔥 To hot reload changes while running, press &quot;r&quot;. To hot restart (and rebuild state), press &quot;R&quot;. An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:46673/ For a more detailed help message, press &quot;h&quot;. To detach, press &quot;d&quot;; to quit, press &quot;q&quot;. Initializing hot reload... I/flutter (16785): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ I/flutter (16785): The following assertion was thrown building Container(constraints: BoxConstraints(0.0&lt;=w&lt;=Infinity, I/flutter (16785): h=200.0)): I/flutter (16785): 'package:flutter/src/rendering/object.dart': Failed assertion: line 1854 pos 12: '() { I/flutter (16785): final AbstractNode parent = this.parent; I/flutter (16785): if (parent is RenderObject) I/flutter (16785): return parent._needsCompositing; I/flutter (16785): return true; I/flutter (16785): }()': is not true. I/flutter (16785): I/flutter (16785): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (16785): more information in this error message to help you determine and fix the underlying cause. I/flutter (16785): In either case, please report this assertion by filing a bug on GitHub: I/flutter (16785): https://github.com/flutter/flutter/issues/new I/flutter (16785): I/flutter (16785): When the exception was thrown, this was the stack: I/flutter (16785): #2 RenderObject.markNeedsCompositingBitsUpdate (package:flutter/src/rendering/object.dart:1854:12) I/flutter (16785): #3 RenderObject.attach (package:flutter/src/rendering/object.dart:1294:7) I/flutter (16785): #4 _RenderProxyBox&amp;RenderBox&amp;RenderObjectWithChildMixin.attach (package:flutter/src/rendering/object.dart:2720:11) I/flutter (16785): #5 AbstractNode.adoptChild (package:flutter/src/foundation/node.dart:132:13) I/flutter (16785): #6 RenderObject.adoptChild (package:flutter/src/rendering/object.dart:1139:11) I/flutter (16785): #7 _RenderProxyBox&amp;RenderBox&amp;RenderObjectWithChildMixin.child= (package:flutter/src/rendering/object.dart:2715:7) I/flutter (16785): #8 SingleChildRenderObjectElement.insertChildRenderObject (package:flutter/src/widgets/framework.dart:4815:18) I/flutter (16785): #9 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4659:35) I/flutter (16785): #10 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2856:13) I/flutter (16785): #11 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14) I/flutter (16785): #12 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5) I/flutter (16785): #13 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2856:13) I/flutter (16785): #14 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14) I/flutter (16785): #15 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5) I/flutter (16785): #16 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2856:13) I/flutter (16785): #17 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14) I/flutter (16785): #18 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5) I/flutter (16785): #19 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2856:13) I/flutter (16785): #20 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14) I/flutter (16785): #21 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5) I/flutter (16785): #22 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2856:13) I/flutter (16785): #23 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14) I/flutter (16785): #24 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5) I/flutter (16785): #25 Element._activateWithParent (package:flutter/src/widgets/framework.dart:3003:5) I/flutter (16785): #26 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2928:18) I/flutter (16785): #27 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12) I/flutter (16785): #28 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14) I/flutter (16785): #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14) I/flutter (16785): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12) I/flutter (16785): #31 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #32 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #33 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5) I/flutter (16785): #34 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5) I/flutter (16785): #35 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14) I/flutter (16785): #36 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12) I/flutter (16785): #37 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14) I/flutter (16785): #38 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14) I/flutter (16785): #39 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12) I/flutter (16785): #40 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #41 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #42 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5) I/flutter (16785): #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #44 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #45 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #46 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5) I/flutter (16785): #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #48 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #49 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #51 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #52 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5) I/flutter (16785): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #54 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #56 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #58 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #59 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #60 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #62 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #63 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #64 StatefulElement.update (package:flutter/src/widgets/framework.dart:3839:5) I/flutter (16785): #65 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #66 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #67 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #68 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5) I/flutter (16785): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #72 StatefulElement.update (package:flutter/src/widgets/framework.dart:3839:5) I/flutter (16785): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #74 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #75 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #76 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #77 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #78 ProxyElement.update (package:flutter/src/widgets/framework.dart:3951:5) I/flutter (16785): #79 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #80 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #83 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #84 StatefulElement.update (package:flutter/src/widgets/framework.dart:3839:5) I/flutter (16785): #85 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #87 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #88 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5) I/flutter (16785): #89 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #90 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #91 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #92 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #93 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #94 ProxyElement.update (package:flutter/src/widgets/framework.dart:3951:5) I/flutter (16785): #95 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #96 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #97 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #98 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2272:33) I/flutter (16785): #99 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:673:20) I/flutter (16785): #100 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5) I/flutter (16785): #101 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter (16785): #102 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter (16785): #103 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) I/flutter (16785): #105 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) I/flutter (16785): #106 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) I/flutter (16785): #107 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) I/flutter (16785): (elided 3 frames from class _AssertionError and package dart:async) I/flutter (16785): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3532 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Reloaded 1 of 416 libraries in 674ms. I/flutter (16785): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3532 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter (16785): Another exception was thrown: NoSuchMethodError: The method '_enableMutationsToDirtySubtrees' was called on null. I/flutter (16785): Another exception was thrown: NoSuchMethodError: The setter 'offset=' was called on null. I/flutter (16785): Another exception was thrown: RenderBox was not laid out: RenderPadding#3ac5e NEEDS-PAINT DETACHED I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1493 pos 18: 'debugDoingThisResize || debugDoingThisLayout || I/chatty (16785): uid=10080(com.example.visibilitydetectorsample) Thread-2 identical 2 lines I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1493 pos 18: 'debugDoingThisResize || debugDoingThisLayout || I/flutter (16785): Another exception was thrown: NoSuchMethodError: The getter 'offset' was called on null. Application finished."><pre class="notranslate"><code class="notranslate">$ flutter run Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering". Launching lib/main.dart on Android SDK built for x86 in debug mode... Initializing gradle... 0.7s Resolving dependencies... 1.8s Gradle task 'assembleDebug'... 3.8s Built build/app/outputs/apk/debug/app-debug.apk. Installing build/app/outputs/apk/app.apk... 0.8s Syncing files to device Android SDK built for x86... D/ (16785): HostConnection::get() New Host Connection established 0xde8a9fc0, tid 16811 D/EGL_emulation(16785): eglMakeCurrent: 0xe1205ca0: ver 2 0 (tinfo 0xcd0cf9e0) 2.5s 🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R". An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:46673/ For a more detailed help message, press "h". To detach, press "d"; to quit, press "q". Initializing hot reload... I/flutter (16785): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ I/flutter (16785): The following assertion was thrown building Container(constraints: BoxConstraints(0.0&lt;=w&lt;=Infinity, I/flutter (16785): h=200.0)): I/flutter (16785): 'package:flutter/src/rendering/object.dart': Failed assertion: line 1854 pos 12: '() { I/flutter (16785): final AbstractNode parent = this.parent; I/flutter (16785): if (parent is RenderObject) I/flutter (16785): return parent._needsCompositing; I/flutter (16785): return true; I/flutter (16785): }()': is not true. I/flutter (16785): I/flutter (16785): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (16785): more information in this error message to help you determine and fix the underlying cause. I/flutter (16785): In either case, please report this assertion by filing a bug on GitHub: I/flutter (16785): https://github.com/flutter/flutter/issues/new I/flutter (16785): I/flutter (16785): When the exception was thrown, this was the stack: I/flutter (16785): #2 RenderObject.markNeedsCompositingBitsUpdate (package:flutter/src/rendering/object.dart:1854:12) I/flutter (16785): #3 RenderObject.attach (package:flutter/src/rendering/object.dart:1294:7) I/flutter (16785): #4 _RenderProxyBox&amp;RenderBox&amp;RenderObjectWithChildMixin.attach (package:flutter/src/rendering/object.dart:2720:11) I/flutter (16785): #5 AbstractNode.adoptChild (package:flutter/src/foundation/node.dart:132:13) I/flutter (16785): #6 RenderObject.adoptChild (package:flutter/src/rendering/object.dart:1139:11) I/flutter (16785): #7 _RenderProxyBox&amp;RenderBox&amp;RenderObjectWithChildMixin.child= (package:flutter/src/rendering/object.dart:2715:7) I/flutter (16785): #8 SingleChildRenderObjectElement.insertChildRenderObject (package:flutter/src/widgets/framework.dart:4815:18) I/flutter (16785): #9 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4659:35) I/flutter (16785): #10 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2856:13) I/flutter (16785): #11 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14) I/flutter (16785): #12 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5) I/flutter (16785): #13 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2856:13) I/flutter (16785): #14 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14) I/flutter (16785): #15 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5) I/flutter (16785): #16 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2856:13) I/flutter (16785): #17 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14) I/flutter (16785): #18 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5) I/flutter (16785): #19 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2856:13) I/flutter (16785): #20 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14) I/flutter (16785): #21 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5) I/flutter (16785): #22 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2856:13) I/flutter (16785): #23 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14) I/flutter (16785): #24 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5) I/flutter (16785): #25 Element._activateWithParent (package:flutter/src/widgets/framework.dart:3003:5) I/flutter (16785): #26 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2928:18) I/flutter (16785): #27 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12) I/flutter (16785): #28 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14) I/flutter (16785): #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14) I/flutter (16785): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12) I/flutter (16785): #31 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #32 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #33 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5) I/flutter (16785): #34 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5) I/flutter (16785): #35 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14) I/flutter (16785): #36 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12) I/flutter (16785): #37 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14) I/flutter (16785): #38 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14) I/flutter (16785): #39 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12) I/flutter (16785): #40 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #41 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #42 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5) I/flutter (16785): #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #44 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #45 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #46 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5) I/flutter (16785): #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #48 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #49 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #51 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #52 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5) I/flutter (16785): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #54 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #56 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #58 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #59 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #60 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #62 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #63 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #64 StatefulElement.update (package:flutter/src/widgets/framework.dart:3839:5) I/flutter (16785): #65 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #66 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #67 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #68 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5) I/flutter (16785): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #72 StatefulElement.update (package:flutter/src/widgets/framework.dart:3839:5) I/flutter (16785): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #74 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #75 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #76 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #77 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #78 ProxyElement.update (package:flutter/src/widgets/framework.dart:3951:5) I/flutter (16785): #79 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #80 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #83 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #84 StatefulElement.update (package:flutter/src/widgets/framework.dart:3839:5) I/flutter (16785): #85 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #87 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #88 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5) I/flutter (16785): #89 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #90 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14) I/flutter (16785): #91 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #92 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #93 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #94 ProxyElement.update (package:flutter/src/widgets/framework.dart:3951:5) I/flutter (16785): #95 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15) I/flutter (16785): #96 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16) I/flutter (16785): #97 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5) I/flutter (16785): #98 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2272:33) I/flutter (16785): #99 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:673:20) I/flutter (16785): #100 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5) I/flutter (16785): #101 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter (16785): #102 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter (16785): #103 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) I/flutter (16785): #105 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) I/flutter (16785): #106 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) I/flutter (16785): #107 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) I/flutter (16785): (elided 3 frames from class _AssertionError and package dart:async) I/flutter (16785): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true. I/flutter (16785): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3532 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Reloaded 1 of 416 libraries in 674ms. I/flutter (16785): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3532 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter (16785): Another exception was thrown: NoSuchMethodError: The method '_enableMutationsToDirtySubtrees' was called on null. I/flutter (16785): Another exception was thrown: NoSuchMethodError: The setter 'offset=' was called on null. I/flutter (16785): Another exception was thrown: RenderBox was not laid out: RenderPadding#3ac5e NEEDS-PAINT DETACHED I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1493 pos 18: 'debugDoingThisResize || debugDoingThisLayout || I/chatty (16785): uid=10080(com.example.visibilitydetectorsample) Thread-2 identical 2 lines I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1493 pos 18: 'debugDoingThisResize || debugDoingThisLayout || I/flutter (16785): Another exception was thrown: NoSuchMethodError: The getter 'offset' was called on null. Application finished. </code></pre></div> <h2 dir="auto">The code</h2> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart'; void main() { return runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: MyHomePage(), ); } } class MyHomePage extends StatelessWidget { MyHomePage({Key key}) : super(key: key); @override Widget build(BuildContext context) { return Container( // XXX: Removing (or adding) the following line and doing a hot-reload // triggers a framework assertion. Hot restart is fine. padding: const EdgeInsets.all(5), child: Container( constraints: const BoxConstraints(minHeight: 200, maxHeight: 200), child: GridView.count( key: _myKey, crossAxisCount: 2, children: &lt;Widget&gt;[Placeholder(), Placeholder()], ), ), ); } } final _myKey = LabeledGlobalKey('MyKey');"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>; <span class="pl-k">void</span> <span class="pl-en">main</span>() { <span class="pl-k">return</span> <span class="pl-en">runApp</span>(<span class="pl-c1">MyApp</span>()); } <span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-c1">MaterialApp</span>( home<span class="pl-k">:</span> <span class="pl-c1">MyHomePage</span>(), ); } } <span class="pl-k">class</span> <span class="pl-c1">MyHomePage</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-c1">MyHomePage</span>({<span class="pl-c1">Key</span> key}) <span class="pl-k">:</span> <span class="pl-c1">super</span>(key<span class="pl-k">:</span> key); <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-c1">Container</span>( <span class="pl-c">// XXX: Removing (or adding) the following line and doing a hot-reload</span> <span class="pl-c">// triggers a framework assertion. Hot restart is fine.</span> padding<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">all</span>(<span class="pl-c1">5</span>), child<span class="pl-k">:</span> <span class="pl-c1">Container</span>( constraints<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">BoxConstraints</span>(minHeight<span class="pl-k">:</span> <span class="pl-c1">200</span>, maxHeight<span class="pl-k">:</span> <span class="pl-c1">200</span>), child<span class="pl-k">:</span> <span class="pl-c1">GridView</span>.<span class="pl-en">count</span>( key<span class="pl-k">:</span> _myKey, crossAxisCount<span class="pl-k">:</span> <span class="pl-c1">2</span>, children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[<span class="pl-c1">Placeholder</span>(), <span class="pl-c1">Placeholder</span>()], ), ), ); } } <span class="pl-k">final</span> _myKey <span class="pl-k">=</span> <span class="pl-c1">LabeledGlobalKey</span>(<span class="pl-s">'MyKey'</span>);</pre></div> <h2 dir="auto">Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter doctor -v [✓] Flutter (Channel unknown, v0.10.2-pre.81, on Linux, locale en_US.UTF-8) • Flutter version 0.10.2-pre.81 at /home/jamesdlin/git/flutter/flutter • Framework revision 26131d917a (2 weeks ago), 2018-10-23 17:36:25 -0700 • Engine revision 3236b49cea • Dart version 2.1.0 (build 2.1.0-dev.8.0 bf26f760b1) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at /home/jamesdlin/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: /home/jamesdlin/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] Android Studio (version 3.2) • Android Studio at /home/jamesdlin/android-studio ✗ 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-1136-b06) [✓] VS Code (version 1.28.1) • VS Code at /usr/share/code • Flutter extension version 2.19.0 [✓] Connected device (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator) • No issues found!"><pre class="notranslate"><code class="notranslate">$ flutter doctor -v [✓] Flutter (Channel unknown, v0.10.2-pre.81, on Linux, locale en_US.UTF-8) • Flutter version 0.10.2-pre.81 at /home/jamesdlin/git/flutter/flutter • Framework revision 26131d917a (2 weeks ago), 2018-10-23 17:36:25 -0700 • Engine revision 3236b49cea • Dart version 2.1.0 (build 2.1.0-dev.8.0 bf26f760b1) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at /home/jamesdlin/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: /home/jamesdlin/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] Android Studio (version 3.2) • Android Studio at /home/jamesdlin/android-studio ✗ 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-1136-b06) [✓] VS Code (version 1.28.1) • VS Code at /usr/share/code • Flutter extension version 2.19.0 [✓] Connected device (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator) • No issues found! </code></pre></div>
1
<p dir="auto">I'm not sure this is a bug because the error message seems to be arising at the conditional </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/neo4j/neo4j/blob/4fe5e8b568b8f399193e2c8e74e56f8fb17ca82a/community/record-storage-engine/src/main/java/org/neo4j/internal/batchimport/RelationshipGroupCache.java#L201">neo4j/community/record-storage-engine/src/main/java/org/neo4j/internal/batchimport/RelationshipGroupCache.java</a> </p> <p class="mb-0 color-fg-muted"> Line 201 in <a data-pjax="true" class="commit-tease-sha" href="/neo4j/neo4j/commit/4fe5e8b568b8f399193e2c8e74e56f8fb17ca82a">4fe5e8b</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L201" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="201"></td> <td id="LC201" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"Tried to put multiple groups with same type "</span> + <span class="pl-s1">type</span> + <span class="pl-s">" for node "</span> + <span class="pl-s1">owningNodeId</span> ); </td> </tr> </tbody></table> </div> </div> <p></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="IMPORT FAILED in 44m 50s 527ms. 3559494 nodes 500726004 relationships 4997255236 properties Peak memory usage: 652.6MiB Import error: Tried to put multiple groups with same type 5 for node 2506441 Caused by:Tried to put multiple groups with same type 5 for node 2506441 java.lang.IllegalStateException: Tried to put multiple groups with same type 5 for node 2506441 at org.neo4j.internal.batchimport.RelationshipGroupCache.scanForFreeFrom(RelationshipGroupCache.java:200) at org.neo4j.internal.batchimport.RelationshipGroupCache.put(RelationshipGroupCache.java:170) at org.neo4j.internal.batchimport.CacheGroupsStep.process(CacheGroupsStep.java:54) at org.neo4j.internal.batchimport.CacheGroupsStep.process(CacheGroupsStep.java:33) at org.neo4j.internal.batchimport.staging.ProcessorStep.lambda$receive$1(ProcessorStep.java:84) at org.neo4j.internal.batchimport.executor.DynamicTaskExecutor$Processor.run(DynamicTaskExecutor.java:220) at java.base/java.lang.Thread.run(Thread.java:829)"><pre class="notranslate"><code class="notranslate">IMPORT FAILED in 44m 50s 527ms. 3559494 nodes 500726004 relationships 4997255236 properties Peak memory usage: 652.6MiB Import error: Tried to put multiple groups with same type 5 for node 2506441 Caused by:Tried to put multiple groups with same type 5 for node 2506441 java.lang.IllegalStateException: Tried to put multiple groups with same type 5 for node 2506441 at org.neo4j.internal.batchimport.RelationshipGroupCache.scanForFreeFrom(RelationshipGroupCache.java:200) at org.neo4j.internal.batchimport.RelationshipGroupCache.put(RelationshipGroupCache.java:170) at org.neo4j.internal.batchimport.CacheGroupsStep.process(CacheGroupsStep.java:54) at org.neo4j.internal.batchimport.CacheGroupsStep.process(CacheGroupsStep.java:33) at org.neo4j.internal.batchimport.staging.ProcessorStep.lambda$receive$1(ProcessorStep.java:84) at org.neo4j.internal.batchimport.executor.DynamicTaskExecutor$Processor.run(DynamicTaskExecutor.java:220) at java.base/java.lang.Thread.run(Thread.java:829) </code></pre></div> <p dir="auto">However I am at a loss at what is causing the issue and since there's ~70GB of the relationship TYPE I was trying to import I'm not sure where to start other than the Exception message.</p> <p dir="auto"><strong>Neo4j Version:</strong> Docker- neo4j:4.3.7<br> <strong>Operating System:</strong> Ubuntu 20.04.3 LTS<br> <strong>RAM:</strong> 62.7 GiB<br> <strong>Processor:</strong> AMD® Ryzen 9 3900xt 12-core processor × 24<br> <strong>API:</strong> Docker</p> <p dir="auto">Using admin import (node and relationship lines removed in code below):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="docker run --interactive --rm \ --publish=7474:7474 --publish=7687:7687 \ --volume=&quot;${1}/data:/var/lib/neo4j/data&quot; \ --volume=&quot;${1}/import:/var/lib/neo4j/import&quot; \ --volume=&quot;${1}/plugins:/var/lib/neo4j/plugins&quot; \ --volume=&quot;${1}/import.report:/var/lib/neo4j/import.report&quot; \ --user=$(id -u):$(id -g) \ neo4j:4.3.7 \ neo4j-admin import \ ... \ --delimiter=&quot;\t&quot; \ --high-io=true \ --processors=20 \ --database=neo4j \ --ignore-empty-strings=true \ --ignore-extra-columns=true \ --skip-bad-relationships \ --skip-duplicate-nodes"><pre class="notranslate"><code class="notranslate">docker run --interactive --rm \ --publish=7474:7474 --publish=7687:7687 \ --volume="${1}/data:/var/lib/neo4j/data" \ --volume="${1}/import:/var/lib/neo4j/import" \ --volume="${1}/plugins:/var/lib/neo4j/plugins" \ --volume="${1}/import.report:/var/lib/neo4j/import.report" \ --user=$(id -u):$(id -g) \ neo4j:4.3.7 \ neo4j-admin import \ ... \ --delimiter="\t" \ --high-io=true \ --processors=20 \ --database=neo4j \ --ignore-empty-strings=true \ --ignore-extra-columns=true \ --skip-bad-relationships \ --skip-duplicate-nodes </code></pre></div> <p dir="auto">Currently running import again with ~half the data of that relationship type...</p>
<p dir="auto">We have upgraded our Neo4j instances from 4.1.3 to 4.2.2 and since then MERGE no longer prevents duplication of Nodes while concurrent queries are being executed. It is as if the MERGE operation can no longer hold a write lock with the specified condition.</p> <p dir="auto">Example query that trigger the problem:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MERGE (s:Tenant:Service{identity:'683b0e50-debf-4e69-b3df-8b22b4068f4c'}) SET s.name = 'myservice' WITH * UNWIND [{ identity: '94b96bd1-63f1-4f11-876a-d36ddc23d42d', pipelineName: 'pipeline1' }, { identity: '1098ae63-0148-48b7-a3a1-97706c47f8a5', pipelineName: 'pipeline2' }, { identity: 'a17d96f5-53e9-4648-a56b-3cb280f0f252', pipelineName: 'pipeline3' }] as pipeline MERGE (s)-[:provides]-&gt;(p:Tenant:Pipeline{identity:pipeline.identity}) SET p.name = pipeline.name WITH * RETURN p"><pre class="notranslate"><code class="notranslate">MERGE (s:Tenant:Service{identity:'683b0e50-debf-4e69-b3df-8b22b4068f4c'}) SET s.name = 'myservice' WITH * UNWIND [{ identity: '94b96bd1-63f1-4f11-876a-d36ddc23d42d', pipelineName: 'pipeline1' }, { identity: '1098ae63-0148-48b7-a3a1-97706c47f8a5', pipelineName: 'pipeline2' }, { identity: 'a17d96f5-53e9-4648-a56b-3cb280f0f252', pipelineName: 'pipeline3' }] as pipeline MERGE (s)-[:provides]-&gt;(p:Tenant:Pipeline{identity:pipeline.identity}) SET p.name = pipeline.name WITH * RETURN p </code></pre></div> <p dir="auto">I am not sure what changed, but since our upgrade it can be consistently reproduced in every single attempt. If we try to reproduce using 4.1.3, it never happens. We have a quick way to launch a clean environment with either of the versions of Neo4j. And for our scenario it's not possible to create an index at the moment these queries are executed and until now, it hasn't been a problem.</p> <p dir="auto">The source of the queries are replicated NodeJS applications in a Kubernetes clusters. We run a standalone instance of Neo4j so all replicas execute those queries to the same Neo4j core server.</p> <h3 dir="auto">Additional information:</h3> <ul dir="auto"> <li>Neo4j version: 4.2.2 Enterprise</li> <li>Operating system: neo4j enterprise docker image</li> <li>API/Driver: javascript driver. Tried with both 4.0.2 and 4.2.2 versions.</li> </ul> <h2 dir="auto"><strong>Steps to reproduce</strong>:</h2> <p dir="auto">Unfortunately there is no easy way to provide the reproducible environment as it involves our code and infrastructure. I am assuming Neo4j team is able to create parallel execution scenarios. Using the provided query should be enough to reproduce as we can reproduce it in a blank database.</p> <p dir="auto">Please let me know if there is anything else that could help determine the problem or if you're having issues to reproduce the problem.</p> <h3 dir="auto">Expected behavior:</h3> <p dir="auto">Merge prevents the duplication of the Pipeline node that is created in this section of the cypher query<br> <code class="notranslate">MERGE (s)-[:provides]-&gt;(p:Pipeline{identity:pipeline.identity})</code></p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Usually end up having on set of duplicated Pipeline nodes (same value for identity property)</p>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Target only a specific keyboard-model with the remappings.</h2> <p dir="auto"><em>Use case<br> I have not been able to find a keyboard with a Windows keyboard-layout having the same (or better) mechanical feel as the Apple keyboard (USB with numeric keys) , hence I thought I could "just" remap the keys and re-label the Apple keyboard resulting in (EG ALT-&gt;WIN, CMD-&gt; ALT etc).</em></p> <p dir="auto"><em>For my labtop usage I only need the remapping when I am using the PC in my docking station (with the Apple keyboard attached), when I am using the built-in keyboard I need the not-remapped functionality, thus I need a method to differentiate between the different keyboards attached to the PC.</em></p> <p dir="auto">I have read all the current opened issues and am not able to see this request<br> NB.: Using PT v0.20.1</p> <hr> <p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.18363.778] PowerToys version: 0.17.0 PowerToy module for which you are reporting the bug (if applicable): Fancy Zones"><pre class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.18363.778] PowerToys version: 0.17.0 PowerToy module for which you are reporting the bug (if applicable): Fancy Zones </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">There's no specific trigger for this issue. Fancy Zones will work as intended and I will randomly move windows around the zones and the zones do not appear.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">I use the shift+mouse to move a window into a zone. I have 3 zones on my monitor that appear as choices</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">I hold shift, move the window around and my zone options do not appear. I need to restart PowerToys for the functionality to return. Fancy Zones will stop working again several minutes later.</p> <p dir="auto">This started when I upgraded to 0.17.0</p> <h1 dir="auto">Screenshots</h1>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [1.26]</li> <li>Operating System: [Ubuntu 20]</li> <li>Browser: [Firefox]</li> <li>Other info:</li> <li>Also with latest version of browser and playwright, also in another machine with the same settings</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test, expect } from '@playwright/test'; test('firefox-test', async ({ page }) =&gt; { const contentHtml = `&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;refresh&quot; content=&quot;0; URL='https://www.google.com'&quot; /&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Redirecting to Google...&lt;/h1&gt; &lt;/body&gt; &lt;/html&gt;`; await page.setContent(contentHtml, { waitUntil: 'domcontentloaded', }); await page.pause(); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'firefox-test'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <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">contentHtml</span> <span class="pl-c1">=</span> <span class="pl-s">`&lt;!DOCTYPE html&gt;</span> <span class="pl-s"> &lt;html&gt;</span> <span class="pl-s"> &lt;head&gt;</span> <span class="pl-s"> &lt;meta http-equiv="refresh" content="0; URL='https://www.google.com'" /&gt;</span> <span class="pl-s"> &lt;/head&gt;</span> <span class="pl-s"> &lt;body&gt;</span> <span class="pl-s"> &lt;h1&gt;Redirecting to Google...&lt;/h1&gt;</span> <span class="pl-s"> &lt;/body&gt;</span> <span class="pl-s"> &lt;/html&gt;`</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">setContent</span><span class="pl-kos">(</span><span class="pl-s1">contentHtml</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">waitUntil</span>: <span class="pl-s">'domcontentloaded'</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">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">pause</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"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts // @ts-check const { devices } = require('@playwright/test'); /** * Read environment variables from file. * https://github.com/motdotla/dotenv */ // require('dotenv').config(); /** * @see https://playwright.dev/docs/test-configuration * @type {import('@playwright/test').PlaywrightTestConfig} */ const config = { testDir: './tests', /* Maximum time one test can run for. */ timeout: 30 * 1000, expect: { /** * Maximum time expect() should wait for the condition to be met. * For example in `await expect(locator).toHaveText();` */ timeout: 5000, }, /* Run tests in files in parallel */ fullyParallel: true, /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, /* Retry on CI only */ retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: 'html', /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */ actionTimeout: 0, /* Base URL to use in actions like `await page.goto('/')`. */ // baseURL: 'http://localhost:3000', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', headless: false, }, /* Configure projects for major browsers */ projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], }, }, { name: 'firefox', use: { ...devices['Desktop Firefox'], }, }, { name: 'webkit', use: { ...devices['Desktop Safari'], }, }, ], }; module.exports = config; "><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-c">// <span class="pl-k">@ts</span>-check</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> devices <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">'@playwright/test'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">/**</span> <span class="pl-c"> * Read environment variables from file.</span> <span class="pl-c"> * https://github.com/motdotla/dotenv</span> <span class="pl-c"> */</span> <span class="pl-c">// require('dotenv').config();</span> <span class="pl-c">/**</span> <span class="pl-c"> * <span class="pl-k">@see</span> https://playwright.dev/docs/test-configuration</span> <span class="pl-c"> * <span class="pl-k">@type</span> {import('@playwright/test').PlaywrightTestConfig}</span> <span class="pl-c"> */</span> <span class="pl-k">const</span> <span class="pl-s1">config</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">testDir</span>: <span class="pl-s">'./tests'</span><span class="pl-kos">,</span> <span class="pl-c">/* Maximum time one test can run for. */</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">30</span> <span class="pl-c1">*</span> <span class="pl-c1">1000</span><span class="pl-kos">,</span> <span class="pl-c1">expect</span>: <span class="pl-kos">{</span> <span class="pl-c">/**</span> <span class="pl-c"> * Maximum time expect() should wait for the condition to be met.</span> <span class="pl-c"> * For example in `await expect(locator).toHaveText();`</span> <span class="pl-c"> */</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">5000</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">/* Run tests in files in parallel */</span> <span class="pl-c1">fullyParallel</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c">/* Fail the build on CI if you accidentally left test.only in the source code. */</span> <span class="pl-c1">forbidOnly</span>: <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span><span class="pl-kos">,</span> <span class="pl-c">/* Retry on CI only */</span> <span class="pl-c1">retries</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span> ? <span class="pl-c1">2</span> : <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c">/* Opt out of parallel tests on CI. */</span> <span class="pl-c1">workers</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span> ? <span class="pl-c1">1</span> : <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-c">/* Reporter to use. See https://playwright.dev/docs/test-reporters */</span> <span class="pl-c1">reporter</span>: <span class="pl-s">'html'</span><span class="pl-kos">,</span> <span class="pl-c">/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c">/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */</span> <span class="pl-c1">actionTimeout</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c">/* Base URL to use in actions like `await page.goto('/')`. */</span> <span class="pl-c">// baseURL: 'http://localhost:3000',</span> <span class="pl-c">/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */</span> <span class="pl-c1">trace</span>: <span class="pl-s">'on-first-retry'</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-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">/* Configure projects for major browsers */</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</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-c1">name</span>: <span class="pl-s">'firefox'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Firefox'</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-c1">name</span>: <span class="pl-s">'webkit'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Safari'</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> <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">config</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test, expect } from '@playwright/test'; test('firefox-test', async ({ page }) =&gt; { const contentHtml = `&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;refresh&quot; content=&quot;0; URL='https://www.google.com'&quot; /&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Redirecting to Google...&lt;/h1&gt; &lt;/body&gt; &lt;/html&gt;`; await page.setContent(contentHtml, { waitUntil: 'domcontentloaded', }); await page.pause(); }); "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'firefox-test'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <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">contentHtml</span> <span class="pl-c1">=</span> <span class="pl-s">`&lt;!DOCTYPE html&gt;</span> <span class="pl-s"> &lt;html&gt;</span> <span class="pl-s"> &lt;head&gt;</span> <span class="pl-s"> &lt;meta http-equiv="refresh" content="0; URL='https://www.google.com'" /&gt;</span> <span class="pl-s"> &lt;/head&gt;</span> <span class="pl-s"> &lt;body&gt;</span> <span class="pl-s"> &lt;h1&gt;Redirecting to Google...&lt;/h1&gt;</span> <span class="pl-s"> &lt;/body&gt;</span> <span class="pl-s"> &lt;/html&gt;`</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">setContent</span><span class="pl-kos">(</span><span class="pl-s1">contentHtml</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">waitUntil</span>: <span class="pl-s">'domcontentloaded'</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">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">pause</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"><strong>Steps</strong></p> <ul dir="auto"> <li>npx playwright uninstall --all</li> <li>npm install @playwright/test@1.26</li> <li>npx playwright install firefox chromium</li> <li>npx playwright test --project=firefox</li> </ul> <p dir="auto"><strong>Expected</strong><br> See Google's page</p> <p dir="auto">[Describe expected behavior]<br> <strong>See google's page with active javascript</strong></p> <p dir="auto">[Describe actual behavior]</p> <ul dir="auto"> <li>blank page with the html and JS code visible through inspection tool,</li> <li>title with the correct page</li> <li>content blank<br> <a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/5399875/253279730-718ab7c7-1035-4c0c-80f8-475ad0c49d71.png"><img src="https://user-images.githubusercontent.com/5399875/253279730-718ab7c7-1035-4c0c-80f8-475ad0c49d71.png" alt="immagine" style="max-width: 100%;"></a></li> </ul> <p dir="auto">With Chromium and WebKit expected behavior is satisfied</p>
<p dir="auto">Checked for duplicate but all other issues with this error have been closed with no resolution.<br> Whenever I attempt to run a test using "npx playwright test .\practiceTests\FirstTest.js" an error is given that no tests are found.<br> The test directory and file location have been verified and is correct. The file doesn't even appear in the testing folder, however when looking in my C drive files, the files exist.<br> If I attempt to create a test file with "xxx.spec.js" it still doesn't find it. If the ".spec" is added, it at least appears in the testing menu with the play buttons and I can run from there, but the tests fail immediately with a browser closed error.</p> <h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v. 1.6.2</li> <li>Operating System: Windows 11</li> <li>Browser: All</li> <li>Other info:<br> new installation of playwright</li> </ul> <h3 dir="auto">Source code</h3> <p dir="auto">Code used<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44308197/224229811-d3d89c1a-5867-40ed-8b41-1748796c225d.png"><img src="https://user-images.githubusercontent.com/44308197/224229811-d3d89c1a-5867-40ed-8b41-1748796c225d.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Correct testDir in config file<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44308197/224230453-a8b282e2-bf7b-40a6-8441-0697a9adf3c9.png"><img src="https://user-images.githubusercontent.com/44308197/224230453-a8b282e2-bf7b-40a6-8441-0697a9adf3c9.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Error:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44308197/224230512-8925ab78-4409-4214-be3c-eb594bf98b2d.png"><img src="https://user-images.githubusercontent.com/44308197/224230512-8925ab78-4409-4214-be3c-eb594bf98b2d.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Test only appears in Testing section of VS code if the ".spec" is added to the file name<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44308197/224232098-f1dc706e-ef1f-4c6f-b000-04c21aee01e8.png"><img src="https://user-images.githubusercontent.com/44308197/224232098-f1dc706e-ef1f-4c6f-b000-04c21aee01e8.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">The files are in the correct location, the correct file path is being used so the tests should be found.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Error given that no test files found</p>
0
<p dir="auto">When using <code class="notranslate">tf.identity()</code> it seems like a proper implementation to pass through the input tensor without copying. However, when the input is the value of a variable it might change later, leading to surprising behavior:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var = tf.Variable(1) old = tf.identity(var.value()) with tf.control_dependencies([old]): with tf.control_dependencies([var.assign_add(1)]): new = tf.identity(var.value()) sess = tf.Session() sess.run(tf.global_variables_initializer()) print(sess.run([old, new])) # Unexpected: [2, 2]"><pre class="notranslate"><span class="pl-s1">var</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">1</span>) <span class="pl-s1">old</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">identity</span>(<span class="pl-s1">var</span>.<span class="pl-en">value</span>()) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">old</span>]): <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">var</span>.<span class="pl-en">assign_add</span>(<span class="pl-c1">1</span>)]): <span class="pl-s1">new</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">identity</span>(<span class="pl-s1">var</span>.<span class="pl-en">value</span>()) <span class="pl-s1">sess</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>()) <span class="pl-en">print</span>(<span class="pl-s1">sess</span>.<span class="pl-en">run</span>([<span class="pl-s1">old</span>, <span class="pl-s1">new</span>])) <span class="pl-c"># Unexpected: [2, 2]</span></pre></div> <p dir="auto">I would think this code should be equivalent to the following workaround that uses a second variable to remember the previous value:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var = tf.Variable(1) old = tf.Variable(var.initialized_value()) with tf.control_dependencies([old.assign(var.value())]): with tf.control_dependencies([var.assign_add(1)]): new = tf.identity(var.value()) sess = tf.Session() sess.run(tf.global_variables_initializer()) print(sess.run([old, new])) # Expected: [1, 2]"><pre class="notranslate"><span class="pl-s1">var</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">1</span>) <span class="pl-s1">old</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-s1">var</span>.<span class="pl-en">initialized_value</span>()) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">old</span>.<span class="pl-en">assign</span>(<span class="pl-s1">var</span>.<span class="pl-en">value</span>())]): <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">var</span>.<span class="pl-en">assign_add</span>(<span class="pl-c1">1</span>)]): <span class="pl-s1">new</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">identity</span>(<span class="pl-s1">var</span>.<span class="pl-en">value</span>()) <span class="pl-s1">sess</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>()) <span class="pl-en">print</span>(<span class="pl-s1">sess</span>.<span class="pl-en">run</span>([<span class="pl-s1">old</span>, <span class="pl-s1">new</span>])) <span class="pl-c"># Expected: [1, 2]</span></pre></div> <p dir="auto">Can we make <code class="notranslate">tf.identity()</code> aware of whether its input is static or varying, to always return the value from the time it's executed?</p>
<p dir="auto">I'm running Tensorflow 0.10.</p> <p dir="auto">The following code</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf x = tf.Variable(0, dtype=tf.int32) old_val = tf.identity(x) with tf.control_dependencies([old_val]): new_val = tf.assign(x, x + 1) with tf.Session() as sess: sess.run(tf.initialize_all_variables()) for i in xrange(3): print sess.run([old_val, new_val, x])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">0</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">int32</span>) <span class="pl-s1">old_val</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">identity</span>(<span class="pl-s1">x</span>) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">old_val</span>]): <span class="pl-s1">new_val</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">assign</span>(<span class="pl-s1">x</span>, <span class="pl-s1">x</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">tf</span>.<span class="pl-en">initialize_all_variables</span>()) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">xrange</span>(<span class="pl-c1">3</span>): <span class="pl-k">print</span> <span class="pl-s1">sess</span>.<span class="pl-en">run</span>([<span class="pl-s1">old_val</span>, <span class="pl-s1">new_val</span>, <span class="pl-s1">x</span>])</pre></div> <p dir="auto">outputs</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[1, 1, 1] [2, 2, 2] [3, 3, 3]"><pre class="notranslate"><code class="notranslate">[1, 1, 1] [2, 2, 2] [3, 3, 3] </code></pre></div> <p dir="auto">From reading the docs on <code class="notranslate">control_dependencies</code> and <code class="notranslate">identity</code> as well as StackOverflow, I expected output</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[0, 1, ?] [1, 2, ?] [2, 3, ?]"><pre class="notranslate"><code class="notranslate">[0, 1, ?] [1, 2, ?] [2, 3, ?] </code></pre></div> <p dir="auto">where <code class="notranslate">?</code> indicates that the variable value is unspecified.</p> <p dir="auto">Is this a bug? If this is not a bug, what is the correct way to refer to the value of variable before and after assignment in a single graph?</p>
1
<h3 dir="auto">Vue.js version</h3> <p dir="auto">2.1.6</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="https://jsfiddle.net/xzhwbb1o/2/" rel="nofollow">https://jsfiddle.net/xzhwbb1o/2/</a></p> <h3 dir="auto">What is Expected?</h3> <p dir="auto">I want to get the component <code class="notranslate">item</code> up component <code class="notranslate">choice</code>, but when <code class="notranslate">functional </code> , the parent is the <code class="notranslate">#app</code>, remove the <code class="notranslate">functional</code> is <code class="notranslate">choice</code>, is the default of this? I have read the document <a href="cn.vuejs.org/v2/guide/render-function.html#%E5%87%BD%E6%95%B0%E5%8C%96%E7%BB%84%E4%BB%B6">render</a>, but did not find the relevant tips.</p>
<p dir="auto">Let's say I have the following template:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div id=&quot;app&quot;&gt; &lt;parent-component&gt; &lt;functional-child-component /&gt; &lt;normal-child-component /&gt; &lt;/ parent-component&gt; &lt;/div&gt; "><pre class="notranslate"><code class="notranslate">&lt;div id="app"&gt; &lt;parent-component&gt; &lt;functional-child-component /&gt; &lt;normal-child-component /&gt; &lt;/ parent-component&gt; &lt;/div&gt; </code></pre></div> <p dir="auto">If I use <code class="notranslate">this.$parent</code> inside the <code class="notranslate">normal-child-component</code> I get access to the <code class="notranslate">parent-component</code>, as expected.</p> <p dir="auto">If I use the same logic inside a functional child component, however, the behavior is different. <code class="notranslate">context.parent</code> gives me access to the root instance, similar to if I was using <code class="notranslate">this.$root</code> in a normal component. Is this the intended behavior? If it is, how can I get access to actual <code class="notranslate">$parent</code> instance inside a functional child component?</p>
1
<p dir="auto">Ok, this is a new one as not sure I've seen it in another product but it is a good alternative to just pure scoring and pushing docs to the top.</p> <p dir="auto">When searching, I should be able to ask that I get back a "variety" of results by type, or a field value and a min/max count of each. So for example, I get the best ranked results but I want 5 books, 5 pictures, 5 songs, and 5 movies total rather than 15 books, 5 songs eating up my first page. NOTE: I am not asking that they be grouped together, but that there is a limit to how many of each can make that response to avoiding flooding out the other docs of various types (this is a perfect job for a VarietyConstrainedHitCollector which I'm sure doesn't exist).</p> <p dir="auto">Basically a variety constraint on what is returned.</p> <p dir="auto">You can implement this client-side but it would be more efficient down in the server. And doing multiple queries by types is wasteful as well and doesn't allow them to be scored together by relevancy.</p> <p dir="auto">I'm not sure yet what to do about paging or scrolling or even if those would be supported. This is more of a first-page type of feature, but if you CAN solve paging and scrolling it would be interesting. I'm thinking on those more now but recording this before I forget.</p> <p dir="auto">It's also similar to some searches we built in the past that show a summary page of the first 10 and last 10 of the sort order (show me the least and most expensive of matching items) which is a similar variety constraint and more efficiently done in the engine while it has things in memory; rather than doing follow-on queries.</p>
<p dir="auto">Ability to collapse on a field. For example, I want the most relevant result from all different report types. Or similarly, the most recent result of each report type. Or maybe, I want to de-dup on headline.</p> <p dir="auto">So, the sort order would dictate which one from the group is returned. Similar to what is discussed here:<br> <a href="http://blog.jteam.nl/2009/10/20/result-grouping-field-collapsing-with-solr/" rel="nofollow">http://blog.jteam.nl/2009/10/20/result-grouping-field-collapsing-with-solr/</a></p> <p dir="auto">From my understanding, it seems that in order for field collapsing to be efficient, the result set must be relatively small.</p> <p dir="auto">This is also referred to as "Combine" on some other search products.</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">Our autodiff infrastructure have bugs on double backward for early expiration of grad_accumulator for some formulas (i.e. layer_norm, linear).</p> <p dir="auto">It gives error like below</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File &quot;test/test_jit.py&quot;, line 659, in checkTrace grads2_ge = torch.autograd.grad(l2_ge, flattened_recording_inputs, allow_unused=allow_unused) File &quot;/scratch/wanchaol/local/pytorch/torch/autograd/__init__.py&quot;, line 149, in grad inputs, allow_unused) RuntimeError: No grad accumulator for a saved leaf!"><pre class="notranslate"><code class="notranslate"> File "test/test_jit.py", line 659, in checkTrace grads2_ge = torch.autograd.grad(l2_ge, flattened_recording_inputs, allow_unused=allow_unused) File "/scratch/wanchaol/local/pytorch/torch/autograd/__init__.py", line 149, in grad inputs, allow_unused) RuntimeError: No grad accumulator for a saved leaf! </code></pre></div> <p dir="auto">This is happening on master now, the bug is kinda complicated to trigger: when we add an non-trivial AD formula, sometimes non-trivial models will throw the above error, while in pure Autograd mode it runs fine.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">I noticed this problem appears in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="441906213" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/20284" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/20284/hovercard" href="https://github.com/pytorch/pytorch/pull/20284">#20284</a> , after I added an AD formula for <code class="notranslate">linear</code> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="439389008" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/20039" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/20039/hovercard" href="https://github.com/pytorch/pytorch/pull/20039">#20039</a>.</p> <ol dir="auto"> <li>git fetch origin; git checkout gh/wanchaol/5/origin</li> <li>python setup.py develop</li> <li>python test/test_jit.py TestEndToEndHybridFrontendModels.test_vae</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">The test will test in autograd mode and in JIT Autodiff mode, the autograd mode works fine, but the JIT autodiff second derivative gives the above error, which I think it related to our autodiff infrastructure early release one of the leaf Variable</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2> <p dir="auto">Hello,</p> <p dir="auto">This feature is related to a thread from <a href="https://discuss.pytorch.org/t/prepare-qat-on-module-removes-hooks/72137" rel="nofollow">discuss forum</a></p> <p dir="auto">I would like to propose mechanism of saving <code class="notranslate">_forward_pre_hooks</code> and <code class="notranslate">_forward_hooks</code> while model is preparing for quantization.</p> <h2 dir="auto">Motivation</h2> <p dir="auto">There are cases that depend on such functionality. Here I duplicate what I said about it in the forum</p> <blockquote> <p dir="auto">Have a look at this example of pre forward hook run. Here’s EfficientNet implementation that assumes it can be integrated as backbone to FPN (<a href="https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/efficientnet.py#L471">https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/efficientnet.py#L471</a>)<br> So here we can see that during forward blocks are called sequentially than we collect input features from specific layers.</p> </blockquote> <h2 dir="auto">Pitch</h2> <p dir="auto">We can add several lines here <a href="https://github.com/pytorch/pytorch/blob/master/torch/quantization/quantize.py#L337">https://github.com/pytorch/pytorch/blob/master/torch/quantization/quantize.py#L337</a><br> to preserve <code class="notranslate">mod</code>'s hooks in <code class="notranslate">new_mod</code></p> <h2 dir="auto">Additional context</h2> <p dir="auto">Additionally it is needed to discuss the possibilities of preserving hooks while fusing modules</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jerryzh168/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jerryzh168">@jerryzh168</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jianyuh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jianyuh">@jianyuh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dzhulgakov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dzhulgakov">@dzhulgakov</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raghuramank100/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raghuramank100">@raghuramank100</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jamesr66a/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jamesr66a">@jamesr66a</a></p>
0
<p dir="auto">This is using a up-to-date master as of now.</p> <p dir="auto">Output from running via Atom:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter run --no-checked --debug-port=16204 --start-paused --device-id b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb • flutter logs map/ • debug Running 'pub get' in map... -�\�|�/�-�\�|�/�-�\�|�/����1.1s Running lib/main.dart on iPad... Unzipping Xcode project to local directory... Xcode project created in /Users/sethladd/flutter/map/ios/. [....] Waiting for iOS device to be connected [....] Using J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb). ------ Install phase ------ [ 0%] Found J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb) connected through USB, beginning install [ 5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/ to device [ 5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/com.apple.ZipMetadata.plist to device [ 6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/ to device [ 6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/CodeResources to device [ 7%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x.png to device [ 8%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x~ipad.png to device [ 8%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@3x.png to device [ 9%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29~ipad.png to device [ 10%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x.png to device [ 10%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x~ipad.png to device [ 11%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@3x.png to device [ 12%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40~ipad.png to device [ 12%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@2x.png to device [ 13%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@3x.png to device [ 14%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76@2x~ipad.png to device [ 14%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76~ipad.png to device [ 15%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon83.5x83.5@2x~ipad.png to device [ 16%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/embedded.mobileprovision to device [ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/ to device [ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/ to device [ 18%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/ to device [ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/CodeResources to device [ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/app.flx to device [ 21%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/FlutterApplication to device [ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/Info.plist to device [ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/icudtl.dat to device [ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Info.plist to device [ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/ to device [ 35%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to device [ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/Info.plist to device [ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to device [ 37%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/PkgInfo to device [ 38%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Runner to device [ 49%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/ServiceDefinitions.json to device [ 52%] CreatingStagingDirectory [ 57%] ExtractingPackage [ 60%] InspectingPackage [ 60%] TakingInstallLock [ 65%] PreflightingApplication [ 65%] InstallingEmbeddedProfile [ 70%] VerifyingApplication 2016-04-19 13:11:46.177 ios-deploy[27388:2809344] [ !! ] Error 0xe8008015: · Qyˇˇ� AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0) Could not install ios/.generated/build/Release-iphoneos/Runner.app on b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb. Error running application on iPad."><pre class="notranslate"><code class="notranslate">flutter run --no-checked --debug-port=16204 --start-paused --device-id b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb • flutter logs map/ • debug Running 'pub get' in map... -�\�|�/�-�\�|�/�-�\�|�/����1.1s Running lib/main.dart on iPad... Unzipping Xcode project to local directory... Xcode project created in /Users/sethladd/flutter/map/ios/. [....] Waiting for iOS device to be connected [....] Using J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb). ------ Install phase ------ [ 0%] Found J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb) connected through USB, beginning install [ 5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/ to device [ 5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/com.apple.ZipMetadata.plist to device [ 6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/ to device [ 6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/CodeResources to device [ 7%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x.png to device [ 8%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x~ipad.png to device [ 8%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@3x.png to device [ 9%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29~ipad.png to device [ 10%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x.png to device [ 10%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x~ipad.png to device [ 11%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@3x.png to device [ 12%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40~ipad.png to device [ 12%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@2x.png to device [ 13%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@3x.png to device [ 14%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76@2x~ipad.png to device [ 14%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76~ipad.png to device [ 15%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon83.5x83.5@2x~ipad.png to device [ 16%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/embedded.mobileprovision to device [ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/ to device [ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/ to device [ 18%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/ to device [ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/CodeResources to device [ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/app.flx to device [ 21%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/FlutterApplication to device [ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/Info.plist to device [ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/icudtl.dat to device [ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Info.plist to device [ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/ to device [ 35%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to device [ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/Info.plist to device [ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to device [ 37%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/PkgInfo to device [ 38%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Runner to device [ 49%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/ServiceDefinitions.json to device [ 52%] CreatingStagingDirectory [ 57%] ExtractingPackage [ 60%] InspectingPackage [ 60%] TakingInstallLock [ 65%] PreflightingApplication [ 65%] InstallingEmbeddedProfile [ 70%] VerifyingApplication 2016-04-19 13:11:46.177 ios-deploy[27388:2809344] [ !! ] Error 0xe8008015: · Qyˇˇ� AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0) Could not install ios/.generated/build/Release-iphoneos/Runner.app on b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb. Error running application on iPad. </code></pre></div> <p dir="auto">Output running via command line:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/flutter/map $ flutter -d iPad run Uploading .generated package contents... DONE. Installing '(null)' - CreatingStagingDirectory (5%) - ExtractingPackage (15%) - InspectingPackage (20%) - Error occurred: PackageInspectionFailed Running lib/main.dart on iPad... [....] Waiting for iOS device to be connected [....] Using J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb). ------ Install phase ------ [ 0%] Found J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb) connected through USB, beginning install [ 5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/ to device [ 5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/com.apple.ZipMetadata.plist to device [ 6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/ to device [ 6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/CodeResources to device [ 7%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x.png to device [ 8%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x~ipad.png to device [ 8%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@3x.png to device [ 9%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29~ipad.png to device [ 10%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x.png to device [ 10%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x~ipad.png to device [ 11%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@3x.png to device [ 12%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40~ipad.png to device [ 12%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@2x.png to device [ 13%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@3x.png to device [ 14%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76@2x~ipad.png to device [ 14%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76~ipad.png to device [ 15%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon83.5x83.5@2x~ipad.png to device [ 16%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/embedded.mobileprovision to device [ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/ to device [ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/ to device [ 18%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/ to device [ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/CodeResources to device [ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/app.flx to device [ 21%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/FlutterApplication to device [ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/Info.plist to device [ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/icudtl.dat to device [ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Info.plist to device [ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/ to device [ 35%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to device [ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/Info.plist to device [ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to device [ 37%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/PkgInfo to device [ 38%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Runner to device [ 49%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/ServiceDefinitions.json to device [ 52%] CreatingStagingDirectory [ 57%] ExtractingPackage [ 60%] InspectingPackage [ 60%] TakingInstallLock [ 65%] PreflightingApplication [ 65%] InstallingEmbeddedProfile [ 70%] VerifyingApplication 2016-04-19 14:53:52.618 ios-deploy[46157:2890534] [ !! ] Error 0xe8008015: · Qyˇˇ AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0) Could not install ios/.generated/build/Release-iphoneos/Runner.app on b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb. Error running application on iPad."><pre class="notranslate"><code class="notranslate">~/flutter/map $ flutter -d iPad run Uploading .generated package contents... DONE. Installing '(null)' - CreatingStagingDirectory (5%) - ExtractingPackage (15%) - InspectingPackage (20%) - Error occurred: PackageInspectionFailed Running lib/main.dart on iPad... [....] Waiting for iOS device to be connected [....] Using J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb). ------ Install phase ------ [ 0%] Found J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb) connected through USB, beginning install [ 5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/ to device [ 5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/com.apple.ZipMetadata.plist to device [ 6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/ to device [ 6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/CodeResources to device [ 7%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x.png to device [ 8%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x~ipad.png to device [ 8%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@3x.png to device [ 9%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29~ipad.png to device [ 10%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x.png to device [ 10%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x~ipad.png to device [ 11%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@3x.png to device [ 12%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40~ipad.png to device [ 12%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@2x.png to device [ 13%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@3x.png to device [ 14%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76@2x~ipad.png to device [ 14%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76~ipad.png to device [ 15%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon83.5x83.5@2x~ipad.png to device [ 16%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/embedded.mobileprovision to device [ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/ to device [ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/ to device [ 18%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/ to device [ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/CodeResources to device [ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/app.flx to device [ 21%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/FlutterApplication to device [ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/Info.plist to device [ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/icudtl.dat to device [ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Info.plist to device [ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/ to device [ 35%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to device [ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/Info.plist to device [ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to device [ 37%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/PkgInfo to device [ 38%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Runner to device [ 49%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/ServiceDefinitions.json to device [ 52%] CreatingStagingDirectory [ 57%] ExtractingPackage [ 60%] InspectingPackage [ 60%] TakingInstallLock [ 65%] PreflightingApplication [ 65%] InstallingEmbeddedProfile [ 70%] VerifyingApplication 2016-04-19 14:53:52.618 ios-deploy[46157:2890534] [ !! ] Error 0xe8008015: · Qyˇˇ AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0) Could not install ios/.generated/build/Release-iphoneos/Runner.app on b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb. Error running application on iPad. </code></pre></div>
<p dir="auto">Unfortunately, it's not clear what action I can take, as a developer. Can we give more guidance about what I should do now?</p> <p dir="auto">I'm trying to run the gallery app on my iPad, and I got this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/Code/flutter/examples/material_gallery[master*] $ flutter -d ipad run Running 'pub get' in /Users/sethladd/Code/flutter/examples/material_gallery/... Uploading .generated package contents... DONE. Installing '(null)' - CreatingStagingDirectory (5%) - ExtractingPackage (15%) - InspectingPackage (20%) - Error occurred: PackageInspectionFailed Running lib/main.dart on iPad... Unzipping Xcode project to local directory... Xcode project created in /Users/sethladd/Code/flutter/examples/material_gallery/ios/. [....] Waiting for iOS device to be connected [....] Using J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb). ------ Install phase ------ [ 0%] Found J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb) connected through USB, beginning install [ 5%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/ to device [ 5%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/com.apple.ZipMetadata.plist to device [ 6%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/ to device [ 6%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/CodeResources to device [ 7%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x.png to device [ 8%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x~ipad.png to device [ 8%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@3x.png to device [ 9%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29~ipad.png to device [ 10%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x.png to device [ 10%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x~ipad.png to device [ 11%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@3x.png to device [ 12%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40~ipad.png to device [ 12%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@2x.png to device [ 13%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@3x.png to device [ 14%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76@2x~ipad.png to device [ 14%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76~ipad.png to device [ 15%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon83.5x83.5@2x~ipad.png to device [ 16%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/embedded.mobileprovision to device [ 17%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/ to device [ 17%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/ to device [ 18%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/ to device [ 19%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/CodeResources to device [ 19%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/app.flx to device [ 24%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/FlutterApplication to device [ 33%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/Info.plist to device [ 33%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/icudtl.dat to device [ 37%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Info.plist to device [ 37%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/ to device [ 38%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to device [ 39%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/Info.plist to device [ 39%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to device [ 40%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/PkgInfo to device [ 40%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Runner to device [ 49%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/ServiceDefinitions.json to device [ 52%] CreatingStagingDirectory [ 57%] ExtractingPackage [ 60%] InspectingPackage [ 60%] TakingInstallLock [ 65%] PreflightingApplication [ 65%] InstallingEmbeddedProfile [ 70%] VerifyingApplication 2016-03-28 10:56:42.066 ios-deploy[34409:491933] [ !! ] Error 0xe8008015: ·ú7zˇˇ AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0) Could not install ios/.generated/build/Release-iphoneos/Runner.app on b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb. Error running application on iPad."><pre class="notranslate"><code class="notranslate">~/Code/flutter/examples/material_gallery[master*] $ flutter -d ipad run Running 'pub get' in /Users/sethladd/Code/flutter/examples/material_gallery/... Uploading .generated package contents... DONE. Installing '(null)' - CreatingStagingDirectory (5%) - ExtractingPackage (15%) - InspectingPackage (20%) - Error occurred: PackageInspectionFailed Running lib/main.dart on iPad... Unzipping Xcode project to local directory... Xcode project created in /Users/sethladd/Code/flutter/examples/material_gallery/ios/. [....] Waiting for iOS device to be connected [....] Using J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb). ------ Install phase ------ [ 0%] Found J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb) connected through USB, beginning install [ 5%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/ to device [ 5%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/com.apple.ZipMetadata.plist to device [ 6%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/ to device [ 6%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/CodeResources to device [ 7%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x.png to device [ 8%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@2x~ipad.png to device [ 8%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29@3x.png to device [ 9%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29~ipad.png to device [ 10%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x.png to device [ 10%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@2x~ipad.png to device [ 11%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40@3x.png to device [ 12%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40~ipad.png to device [ 12%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@2x.png to device [ 13%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon60x60@3x.png to device [ 14%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76@2x~ipad.png to device [ 14%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76~ipad.png to device [ 15%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon83.5x83.5@2x~ipad.png to device [ 16%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/embedded.mobileprovision to device [ 17%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/ to device [ 17%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/ to device [ 18%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/ to device [ 19%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/CodeResources to device [ 19%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/app.flx to device [ 24%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/FlutterApplication to device [ 33%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/Info.plist to device [ 33%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/icudtl.dat to device [ 37%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Info.plist to device [ 37%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/ to device [ 38%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to device [ 39%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/Info.plist to device [ 39%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to device [ 40%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/PkgInfo to device [ 40%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/Runner to device [ 49%] Copying /Users/sethladd/Code/flutter/examples/material_gallery/ios/.generated/build/Release-iphoneos/Runner.app/ServiceDefinitions.json to device [ 52%] CreatingStagingDirectory [ 57%] ExtractingPackage [ 60%] InspectingPackage [ 60%] TakingInstallLock [ 65%] PreflightingApplication [ 65%] InstallingEmbeddedProfile [ 70%] VerifyingApplication 2016-03-28 10:56:42.066 ios-deploy[34409:491933] [ !! ] Error 0xe8008015: ·ú7zˇˇ AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0) Could not install ios/.generated/build/Release-iphoneos/Runner.app on b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb. Error running application on iPad. </code></pre></div>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows Version: Windows 10 Education 1903 OS Build: 18362.10005 Windows Terminal version: 0.3.2142.0 Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows Version: Windows 10 Education 1903 OS Build: 18362.10005 Windows Terminal version: 0.3.2142.0 Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Opening more than certain tabs breaks the tab management. There are several issues faced:</p> <ul dir="auto"> <li> <p dir="auto">Multiple tabs become hidden and there is no way to know how many tabs are open and way to access them.</p> </li> <li> <p dir="auto">Tab text/label is partially hidden along with the close button for each tab after the first tab.</p> </li> </ul> <p dir="auto">Unless the window is maximized, there is no way to even find the new tabs opened. The configuration used is default.</p> <p dir="auto">To reproduce:</p> <ol dir="auto"> <li> <p dir="auto">Open Windows Terminal</p> </li> <li> <p dir="auto">Open many tabs</p> </li> </ol> <p dir="auto">The following GIF demonstrates the issue:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/9ea08b2a335ce7ffde47e58c06e8a5ff00bd3f4f4e945a965c497a56d6c1a5a0/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f5a45666b41624d3648644e666c4b663752312f67697068792e676966"><img src="https://camo.githubusercontent.com/9ea08b2a335ce7ffde47e58c06e8a5ff00bd3f4f4e945a965c497a56d6c1a5a0/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f5a45666b41624d3648644e666c4b663752312f67697068792e676966" alt="Broken Tab Management" data-animated-image="" data-canonical-src="https://media.giphy.com/media/ZEfkAbM6HdNflKf7R1/giphy.gif" style="max-width: 100%;"></a></p> <h1 dir="auto">Expected behavior</h1> <ul dir="auto"> <li> <p dir="auto">Tab text/label and close button is not hidden</p> </li> <li> <p dir="auto">There is a way to know the number of tabs open and a way to access each one</p> </li> </ul> <h1 dir="auto">Actual behavior</h1> <ul dir="auto"> <li> <p dir="auto">Multiple tabs become hidden and there is no way to know how many tabs are open and way to access them.</p> </li> <li> <p dir="auto">Tab text/label is partially hidden along with the close button for each tab after the first tab.</p> </li> </ul> <p dir="auto">GIF image above showcases the bug.</p>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">When watching logs, or build processes, similar lines being shown repeatedly can often make it hard to determine if anythings happening (as each new page of data looks the same as the previous one)</p> <p dir="auto">Smooth scrolling would help this.</p>
0
<p dir="auto"><strong>Apache Airflow version</strong>: 1.10.12</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: Google Cloud Composer (tweaked environment running Airflow RBAC UI)</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">In Airflow RBAC UI, when switching between pages, 'Access is Denied' error message actually indicates missing permissions on the previously visited page.</p> <p dir="auto">I understand the basic scenario for which this behavior has been designed:</p> <ul dir="auto"> <li>I try to go to a page to which I don't have access, I am redirected to the home page, which shows 'Access is Denied', so I conclude that I don't have access to the page that I tried to open.</li> </ul> <p dir="auto">But the interactions which end up in showing 'Access is Denied' are not always that simple, and this is where it gets confusing to show the message on a different page than the one to which the user had no access:</p> <ul dir="auto"> <li>When I'm an Admin and go to List Users, click Edit record on my user, change my role from Admin to Viewer, click Save, I am redirected to the home page, which shows a green 'Changed Row' message and a red 'Access is Denied'. <ul dir="auto"> <li>This is a confusing signal. Did the role assignment succeed or not? Which access was denied if I didn't try to open any page? (I know the messages come from successful user record update and unsuccessful load of List Users page to which I'm redirected after clicking Save - but not every user may realize this.)</li> </ul> </li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12511618/98655992-6e47a400-2340-11eb-9eae-a903e4f1a8c0.png"><img src="https://user-images.githubusercontent.com/12511618/98655992-6e47a400-2340-11eb-9eae-a903e4f1a8c0.png" alt="Changed Row - Access is Denied" style="max-width: 100%;"></a></p> <ul dir="auto"> <li> <p dir="auto">When I don't have <code class="notranslate">can varimport on VariableModelView</code> permission and go to Variables page, choose a file, click Import Variables, I am redirected to the home page, which shows 'Access is Denied'.</p> <ul dir="auto"> <li>How do I know which permissions I was missing? I might think that I didn't have permission to the file, which is not the case.</li> </ul> </li> <li> <p dir="auto">In Airflow 1.10.10 we've also observed a situation in which removing some permissions (from the current user's role) required for asynchronous work on the homepage, loading the homepage, and going to an unrelated page (like List Roles) resulted in showing a completely unexpected 'Access is Denied' message in that unrelated page.</p> <ul dir="auto"> <li>This was the most confusing behavior but I'm not able to reproduce it in Airflow 1.10.12. Here, the asynchronous work on one page resulted in accumulating 'Access is Denied' message in the background, and showing it on the next page visited, no matter what the next page was.</li> </ul> </li> </ul> <p dir="auto">I guess this behavior may be built deeply into Flask-AppBuilder and hard to change. But it's still a UX concern for Airflow.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">'Access is Denied' error should clearly indicate which page or its fragment it refers to.</p> <p dir="auto"><strong>How to reproduce it</strong>:</p> <p dir="auto">Follow the setup and steps described in 'What happened' section.</p> <p dir="auto">+cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ryanahamilton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ryanahamilton">@ryanahamilton</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/k-jakub/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/k-jakub">@k-jakub</a></p>
<p dir="auto"><strong>Apache Airflow version</strong>: 2.0.1</p> <p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>): 1.19</p> <p dir="auto"><strong>Environment</strong>: Kubernetes Executor, Okta OIDC</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: EKS 1.19, RDS Postrgres DB</li> <li><strong>OS</strong> (e.g. from /etc/os-release): Centos inside docker</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>: helm</li> <li><strong>Others</strong>: using official docker image apache/airflow:2.0.1-python3.7, flask-oidc, fab-oidc2</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> We have integrated airflow 2 with Okta OIDC authentication/authorization using flask-oidc and fab-oidc2. When user login to Airflow console, user will be redirected to Okta login. Once user successful login to Okta, it will redirect back to airflow. On the airflow home page, there is an alert "Access is denied". If you refresh the page, the Alert will disappear. Even though the alert says access is denied, but the user can do everything. Self registration is enabled, all users have admin privileges. I've checked the user table and role table, both looks right to me and user should have admin privilege. The alert is just a false alarm and it only appears at user login.</p> <p dir="auto"><strong>What you expected to happen</strong>: User login successful without alert</p> <p dir="auto"><strong>How to reproduce it</strong>: Airflow 2.0.1 Integrate with Okta OIDC, login to airflow console. After user successfully login to airflow, the landing page will have "Access is denied".</p> <p dir="auto"><strong>Anything else we need to know</strong>:</p>
1
<p dir="auto">org.springframework.transaction.TransactionSystemException: Could not commit JDBC transaction; nested exception is java.sql.SQLException at org.springframework.jdbc.datasource.DataSourceTransactionManager.doCommit(DataSourceTransactionManager.java:270) ~[spring-jdbc-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754) ~[spring-tx-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723) ~[spring-tx-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.jd.finsetts.common.frame.BaseService.commitTransactionManager(BaseService.java:50) ~[finsettsJsf-common-2.0.0.jar:na] at com.jd.finsetts.service.settBizHandler2.DefaultSettHandler2.saveFinSettInfo(DefaultSettHandler2.java:326) ~[finsettsJsf-service-2.0.0.jar:na] at com.jd.finsetts.service.settBizHandler2.settBiz.Sett103Handler.execute(Sett103Handler.java:67) [finsettsJsf-service-2.0.0.jar:na] at com.jd.finsetts.service.settBizHandler2.settBiz.Sett103Handler$$FastClassByCGLIB$$823e1aa4.invoke() [spring-core-3.2.0.RELEASE.jar:na] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) [spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.alibaba.druid.support.spring.stat.DruidStatInterceptor.invoke(DruidStatInterceptor.java:72) [druid-1.0.29.jar:1.0.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.jd.finsetts.service.settBizHandler2.settBiz.Sett103AHandler$$EnhancerByCGLIB$$1274000f.execute() [spring-core-3.2.0.RELEASE.jar:na] at com.jd.finsetts.jsf.impl.FinAutoSettApiServiceImpl.autoSett2(FinAutoSettApiServiceImpl.java:120) [finsettsJsf-service-2.0.0.jar:na] at com.jd.finsetts.jsf.impl.FinAutoSettApiServiceImpl$$FastClassByCGLIB$$72020d5b.invoke() [spring-core-3.2.0.RELEASE.jar:na] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) [spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.jd.ump.annotation.JAnnotation.execJAnnotation(JAnnotation.java:96) [jannotation-2.1.0.jar:na] at sun.reflect.GeneratedMethodAccessor1462.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_71] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_71] at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.alibaba.druid.support.spring.stat.DruidStatInterceptor.invoke(DruidStatInterceptor.java:72) [druid-1.0.29.jar:1.0.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.jd.finsetts.jsf.impl.FinAutoSettApiServiceImpl$$EnhancerByCGLIB$$1ac9bf89.autoSett2() [spring-core-3.2.0.RELEASE.jar:na] at com.jd.finsetts.jsf.impl.settGeneralApiHandler.handler.SettGeneralApiMainHandler.autoSett4JSFAPI(SettGeneralApiMainHandler.java:99) [finsettsJsf-service-2.0.0.jar:na] at com.jd.finsetts.jsf.impl.settGeneralApiHandler.handler.SettGeneralApiMainHandler$$FastClassByCGLIB$$2b3c0d35.invoke() [spring-core-3.2.0.RELEASE.jar:na] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) [spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.alibaba.druid.support.spring.stat.DruidStatInterceptor.invoke(DruidStatInterceptor.java:72) [druid-1.0.29.jar:1.0.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.jd.finsetts.jsf.impl.settGeneralApiHandler.handler.SettGeneralApiMainHandler$$EnhancerByCGLIB$$cd19d6f5.autoSett4JSFAPI() [spring-core-3.2.0.RELEASE.jar:na] at com.jd.finsetts.jsf.impl.FinSettGeneralApiImpl.autoSett4JSFAPI(FinSettGeneralApiImpl.java:190) [finsettsJsf-service-2.0.0.jar:na] at com.jd.finsetts.jsf.impl.FinSettGeneralApiImpl$$FastClassByCGLIB$$72dde223.invoke() [spring-core-3.2.0.RELEASE.jar:na] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) [spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.alibaba.druid.support.spring.stat.DruidStatInterceptor.invoke(DruidStatInterceptor.java:72) [druid-1.0.29.jar:1.0.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.jd.finsetts.jsf.impl.FinSettGeneralApiImpl$$EnhancerByCGLIB$$c56dac23.autoSett4JSFAPI() [spring-core-3.2.0.RELEASE.jar:na] at com.jdd.finsetts.controller.FinFeeDetailController.applySett(FinFeeDetailController.java:837) [FinFeeDetailController.class:na] at com.jdd.finsetts.controller.FinFeeDetailController$$FastClassByCGLIB$$4491ca73.invoke() [spring-core-3.2.0.RELEASE.jar:na] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) [spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631) [spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.jdd.finsetts.controller.FinFeeDetailController$$EnhancerByCGLIB$$9656e24e.applySett() [spring-core-3.2.0.RELEASE.jar:na] at sun.reflect.GeneratedMethodAccessor4285.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_71] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_71] at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219) [spring-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132) [spring-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) [spring-webmvc-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:746) [spring-webmvc-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:687) [spring-webmvc-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) [spring-webmvc-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925) [spring-webmvc-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) [spring-webmvc-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915) [spring-webmvc-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:822) [spring-webmvc-3.2.0.RELEASE.jar:3.2.0.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) [servlet-api.jar:na] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796) [spring-webmvc-3.2.0.RELEASE.jar:3.2.0.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) [servlet-api.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) [catalina.jar:7.0.61] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.61] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat7-websocket.jar:7.0.61] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.61] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.61] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239) [javamelody-core-1.74.0.jar:1.74.0] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215) [javamelody-core-1.74.0.jar:1.74.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.61] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.61] at com.jdd.finsetts.controller.interceptor.CorsFilter.doFilter(CorsFilter.java:39) [CorsFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.61] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.61] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) [spring-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.61] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.61] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [catalina.jar:7.0.61] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [catalina.jar:7.0.61] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) [catalina.jar:7.0.61] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) [catalina.jar:7.0.61] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [catalina.jar:7.0.61] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) [catalina.jar:7.0.61] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [catalina.jar:7.0.61] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) [catalina.jar:7.0.61] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) [tomcat-coyote.jar:7.0.61] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620) [tomcat-coyote.jar:7.0.61] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) [tomcat-coyote.jar:7.0.61] at com.alibaba.mtc.MtContextRunnable.run(MtContextRunnable.java:46) [multithread.context-1.2.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_71] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_71] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-coyote.jar:7.0.61] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71] Caused by: java.sql.SQLException: null at org.apache.shardingsphere.shardingjdbc.jdbc.adapter.executor.ForceExecuteTemplate.throwSQLExceptionIfNecessary(ForceExecuteTemplate.java:56) ~[sharding-jdbc-core-4.0.1.jar:4.0.1] at org.apache.shardingsphere.shardingjdbc.jdbc.adapter.executor.ForceExecuteTemplate.execute(ForceExecuteTemplate.java:49) ~[sharding-jdbc-core-4.0.1.jar:4.0.1] at org.apache.shardingsphere.shardingjdbc.jdbc.adapter.AbstractConnectionAdapter.commit(AbstractConnectionAdapter.java:184) ~[sharding-jdbc-core-4.0.1.jar:4.0.1] at org.apache.shardingsphere.shardingjdbc.jdbc.core.connection.ShardingConnection.commit(ShardingConnection.java:164) ~[sharding-jdbc-core-4.0.1.jar:4.0.1] at org.springframework.jdbc.datasource.DataSourceTransactionManager.doCommit(DataSourceTransactionManager.java:267) ~[spring-jdbc-3.2.0.RELEASE.jar:3.2.0.RELEASE] ... 114 common frames omitted</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Cause: java.sql.SQLException: Invalid argument value: java.io.NotSerializableException ; SQL []; Invalid argument value: java.io.NotSerializableException; nested exception is java.sql.SQLException: Invalid argument value: java.io.NotSerializableException at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:108) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:82) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:82) at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446) at com.sun.proxy.$Proxy20.insert(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:278) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:58) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59) at com.sun.proxy.$Proxy22.insertSelective(Unknown Source) at com.sanxiang.order.dal.repository.OrderRepository.save(OrderRepository.java:20) at com.sanxiang.order.services.OrderCoreServiceImpl.createOrder(OrderCoreServiceImpl.java:78) at com.alibaba.dubbo.common.bytecode.Wrapper1.invokeMethod(Wrapper1.java) at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:46) at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:72) at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53) at brave.dubbo.rpc.TracingFilter.invoke(TracingFilter.java:76) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:64) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:60) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:112) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:108) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:84) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:170) at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:52) at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:82) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.sql.SQLException: Invalid argument value: java.io.NotSerializableException at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860) at com.mysql.jdbc.PreparedStatement.setSerializableObject(PreparedStatement.java:3825) at com.mysql.jdbc.PreparedStatement.setObject(PreparedStatement.java:3555) at com.mysql.jdbc.JDBC42PreparedStatement.setObject(JDBC42PreparedStatement.java:68) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_setObject(FilterChainImpl.java:3401) at com.alibaba.druid.filter.FilterAdapter.preparedStatement_setObject(FilterAdapter.java:1320) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_setObject(FilterChainImpl.java:3398) at com.alibaba.druid.filter.FilterAdapter.preparedStatement_setObject(FilterAdapter.java:1320) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_setObject(FilterChainImpl.java:3398) at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.setObject(PreparedStatementProxyImpl.java:460) at com.alibaba.druid.pool.DruidPooledPreparedStatement.setObject(DruidPooledPreparedStatement.java:481) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.shardingsphere.shardingjdbc.jdbc.adapter.invocation.JdbcMethodInvocation.invoke(JdbcMethodInvocation.java:47) at org.apache.shardingsphere.shardingjdbc.jdbc.adapter.AbstractShardingPreparedStatementAdapter.replaySetParameter(AbstractShardingPreparedStatementAdapter.java:265) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.setParametersForStatements(ShardingPreparedStatement.java:204) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.initPreparedStatementExecutor(ShardingPreparedStatement.java:199) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.execute(ShardingPreparedStatement.java:171) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59) at com.sun.proxy.$Proxy30.execute(Unknown Source) at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:46) at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74) at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50) at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117) at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:63) at com.sun.proxy.$Proxy28.update(Unknown Source) at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:198) at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:185) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433) ... 37 more Caused by: java.io.NotSerializableException: java.io.StringReader at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at com.mysql.jdbc.PreparedStatement.setSerializableObject(PreparedStatement.java:3814) ... 79 more org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) javax.servlet.http.HttpServlet.service(HttpServlet.java:660) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)"><pre class="notranslate"><code class="notranslate">Cause: java.sql.SQLException: Invalid argument value: java.io.NotSerializableException ; SQL []; Invalid argument value: java.io.NotSerializableException; nested exception is java.sql.SQLException: Invalid argument value: java.io.NotSerializableException at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:108) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:82) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:82) at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446) at com.sun.proxy.$Proxy20.insert(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:278) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:58) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59) at com.sun.proxy.$Proxy22.insertSelective(Unknown Source) at com.sanxiang.order.dal.repository.OrderRepository.save(OrderRepository.java:20) at com.sanxiang.order.services.OrderCoreServiceImpl.createOrder(OrderCoreServiceImpl.java:78) at com.alibaba.dubbo.common.bytecode.Wrapper1.invokeMethod(Wrapper1.java) at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:46) at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:72) at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53) at brave.dubbo.rpc.TracingFilter.invoke(TracingFilter.java:76) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:64) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:60) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:112) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:108) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:84) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:170) at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:52) at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:82) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.sql.SQLException: Invalid argument value: java.io.NotSerializableException at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860) at com.mysql.jdbc.PreparedStatement.setSerializableObject(PreparedStatement.java:3825) at com.mysql.jdbc.PreparedStatement.setObject(PreparedStatement.java:3555) at com.mysql.jdbc.JDBC42PreparedStatement.setObject(JDBC42PreparedStatement.java:68) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_setObject(FilterChainImpl.java:3401) at com.alibaba.druid.filter.FilterAdapter.preparedStatement_setObject(FilterAdapter.java:1320) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_setObject(FilterChainImpl.java:3398) at com.alibaba.druid.filter.FilterAdapter.preparedStatement_setObject(FilterAdapter.java:1320) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_setObject(FilterChainImpl.java:3398) at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.setObject(PreparedStatementProxyImpl.java:460) at com.alibaba.druid.pool.DruidPooledPreparedStatement.setObject(DruidPooledPreparedStatement.java:481) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.shardingsphere.shardingjdbc.jdbc.adapter.invocation.JdbcMethodInvocation.invoke(JdbcMethodInvocation.java:47) at org.apache.shardingsphere.shardingjdbc.jdbc.adapter.AbstractShardingPreparedStatementAdapter.replaySetParameter(AbstractShardingPreparedStatementAdapter.java:265) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.setParametersForStatements(ShardingPreparedStatement.java:204) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.initPreparedStatementExecutor(ShardingPreparedStatement.java:199) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.execute(ShardingPreparedStatement.java:171) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59) at com.sun.proxy.$Proxy30.execute(Unknown Source) at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:46) at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74) at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50) at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117) at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:63) at com.sun.proxy.$Proxy28.update(Unknown Source) at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:198) at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:185) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433) ... 37 more Caused by: java.io.NotSerializableException: java.io.StringReader at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at com.mysql.jdbc.PreparedStatement.setSerializableObject(PreparedStatement.java:3814) ... 79 more org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) javax.servlet.http.HttpServlet.service(HttpServlet.java:660) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) </code></pre></div>
0
<p dir="auto">It is my first application with Next.js and I am facing problems to deploy the project to Heroku.<br> I am using Express server and a external .babelrc file.</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?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">No errors building/running project in Heroku.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I am running <code class="notranslate">yarn build</code> and then <code class="notranslate">git init / add / commit / push</code> in <code class="notranslate">.next/dist</code> folder and copying <code class="notranslate">package.json</code> into it too.</p> <h2 dir="auto">Context</h2> <p dir="auto">This is my scripts from <code class="notranslate">package.json</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;scripts&quot;: { &quot;start&quot;: &quot;NODE_ENV=production node server/server.js&quot;, &quot;dev&quot;: &quot;nodemon -w server server/server.js --exec babel-node&quot;, &quot;build&quot;: &quot;next build &amp;&amp; babel server -d .next/dist/server&quot;, &quot;lint&quot;: &quot;eslint --fix components lib pages server **/*.js&quot;, &quot;snyk&quot;: &quot;snyk test&quot;, &quot;heroku-postbuild&quot;: &quot;next build &amp;&amp; babel server -d .next/dist/server&quot; }"><pre class="notranslate"><code class="notranslate">"scripts": { "start": "NODE_ENV=production node server/server.js", "dev": "nodemon -w server server/server.js --exec babel-node", "build": "next build &amp;&amp; babel server -d .next/dist/server", "lint": "eslint --fix components lib pages server **/*.js", "snyk": "snyk test", "heroku-postbuild": "next build &amp;&amp; babel server -d .next/dist/server" } </code></pre></div> <p dir="auto"><code class="notranslate">next.config.js</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module.exports = { webpack: (config, { dev }) =&gt; { // For the development version, we'll use React. // Because, it support react hot loading and so on. if (dev) { return config; } config.resolve.alias = { react: 'inferno-compat', 'react-dom': 'inferno-compat' }; return config; } };"><pre class="notranslate"><code class="notranslate">module.exports = { webpack: (config, { dev }) =&gt; { // For the development version, we'll use React. // Because, it support react hot loading and so on. if (dev) { return config; } config.resolve.alias = { react: 'inferno-compat', 'react-dom': 'inferno-compat' }; return config; } }; </code></pre></div> <p dir="auto">And the <code class="notranslate">.babelrc</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [ [ &quot;next/babel&quot;, { &quot;preset-env&quot;: { &quot;modules&quot;: &quot;commonjs&quot; } } ] ], &quot;env&quot;: { &quot;development&quot;: { &quot;plugins&quot;: [&quot;inline-dotenv&quot;] }, &quot;production&quot;: { &quot;plugins&quot;: [&quot;transform-inline-environment-variables&quot;] } } } "><pre class="notranslate"><code class="notranslate">{ "presets": [ [ "next/babel", { "preset-env": { "modules": "commonjs" } } ] ], "env": { "development": { "plugins": ["inline-dotenv"] }, "production": { "plugins": ["transform-inline-environment-variables"] } } } </code></pre></div> <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>6.0.1</td> </tr> <tr> <td>node</td> <td>9.5.0</td> </tr> <tr> <td>@babe/*</td> <td>^7</td> </tr> </tbody> </table>
<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 expected behavior is that of the online demo.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Unfortunately, when you clone the repo, npm install and run it gives an error when you navigate client-side to the Home:<br> <em>TypeError: Cannot read property 'data' of undefined at new WithData (<a href="http://localhost:3000/_next/1509705233244/page/:19478:79" rel="nofollow">http://localhost:3000/_next/1509705233244/page/:19478:79</a>)</em></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">The steps of the example installation guide:</p> <ol dir="auto"> <li>curl <a href="https://codeload.github.com/zeit/next.js/tar.gz/master">https://codeload.github.com/zeit/next.js/tar.gz/master</a> | tar -xz --strip=2 next.js-master/examples/with-apollo</li> <li>cd with-apollo</li> <li>npm install</li> <li>npm run dev</li> <li>navigate from home to /about</li> <li>Navigate back to Home</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I tried to clone the repo because I found the issue on my project after upgrading to React Apollo 2 and copying the /lib code of the example (initApollo and withData).</p> <p dir="auto">On my project I see another issue: I see always the client-side network call even on refresh. I fear that it has to do with some confusion with Apollo 2 InMemoryCache, sometimes found imported from apollo-cache-inmemory and sometimes from apollo-client-preset.</p> <p dir="auto">Thank you,<br> Matteo</p>
0
<h1 dir="auto">Non-nullable types (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134699594" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/7140" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/7140/hovercard" href="https://github.com/microsoft/TypeScript/pull/7140">#7140</a>)</h1> <h2 dir="auto">Question marks on types</h2> <p dir="auto">Let's start the bike-shedding! What does <code class="notranslate">T?</code> mean?</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo(x?: string) { // x: string | undefined } function foo(x: string?) { // ????? } function foo(x?: string?) { // x: string | undefined | ????? }"><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-smi">string</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// x: string | undefined</span> <span class="pl-kos">}</span> <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-smi">string</span>?<span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// ?????</span> <span class="pl-kos">}</span> <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-smi">string</span>?<span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// x: string | undefined | ?????</span> <span class="pl-kos">}</span></pre></div> <ul dir="auto"> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ahejlsberg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ahejlsberg">@ahejlsberg</a>: It's hard to imagine a world where <code class="notranslate">T?</code> means <em>only</em> <code class="notranslate">T | null</code> or <em>only</em> <code class="notranslate">T | undefined</code>.</li> <li>There is a school of thought that says "neither - this just doesn't need to exist". <ul dir="auto"> <li>Just ship two type aliases for <code class="notranslate">T | null</code> and <code class="notranslate">T | undefined</code> in <code class="notranslate">lib.d.ts</code></li> <li>We can sort of see that. It's not crazy.</li> <li>We can't satisfy everyone - we're going to piss someone off.</li> <li>But if we ship this without a <code class="notranslate">?</code> type modifier, it's the first thing we're going to hear, and we're going to hear it for the rest of our lives.</li> </ul> </li> <li>What's crazy about <code class="notranslate">T | null</code>? <ul dir="auto"> <li>You have an optional accessor that returns <code class="notranslate">number? | undefined</code>. <ul dir="auto"> <li>You end up with these awkward, funny-looking types.</li> </ul> </li> <li>Lack of symmetry between optional members and nullish types. <ul dir="auto"> <li>Becomes like the <code class="notranslate">const</code> modifier in C++.</li> <li>Nobody understands where the heck to put <code class="notranslate">const</code> (before <code class="notranslate">*</code>, after <code class="notranslate">*</code>, at the end of a signature), and the differences are hard for people to grasp. <ul dir="auto"> <li>We understand it, but our users will get tripped up <em>a lot</em>.</li> </ul> </li> </ul> </li> <li>People will definitely be confused about which to do. <ul dir="auto"> <li>Users on GitHub did not seem to be concerned with it - they understood very well. <ul dir="auto"> <li>Confirmation bias - these are people who are interested in language design to begin with.</li> </ul> </li> </ul> </li> </ul> </li> <li>Too many people are doing <code class="notranslate">null</code> to ignore that scenario. <ul dir="auto"> <li>Ultimately the question becomes is this disjoint or does it combine with the "other" use of <code class="notranslate">?</code> on optional parameters/properties.</li> </ul> </li> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RyanCavanaugh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RyanCavanaugh">@RyanCavanaugh</a>: Extremely against <code class="notranslate">T?</code> meaning <code class="notranslate">T | null | undefined</code> because it muddies waters - So if we can't come to a conclusion, I think we should hold off on it.</li> <li>We want to lead people to a pit of success, and we can't repeat the problem we have with modules.</li> <li>Only consistency in discussion on thread is that there is no consistency.</li> <li>We don't feel confident that we can do the "right" thing here out of the gate.</li> <li>If people go out and fix type definitions and inappropriately use <code class="notranslate">?</code>, then you've made the ecosystem worse - we need to wary of this possibility.</li> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Aleksey-Bykov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Aleksey-Bykov">@Aleksey-Bykov</a> you get a ⭐</li> <li>Consensus: come back to this, since this is not a blocker for non-nullable types anyway. <ul dir="auto"> <li>Also, look into supplying type aliases in <code class="notranslate">lib.d.ts</code>.</li> </ul> </li> </ul> <h2 dir="auto">Optional members on new members</h2> <ul dir="auto"> <li>Considering adding question marks on other members (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139097459" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/7426" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/7426/hovercard?comment_id=195392211&amp;comment_type=issue_comment" href="https://github.com/microsoft/TypeScript/issues/7426#issuecomment-195392211">#7426 (comment)</a>) <ul dir="auto"> <li>On local variable names (e.g. <code class="notranslate">let x?: number</code>).</li> <li>On property declarations in classes (e.g. <code class="notranslate">class Foo { x?: number }</code>).</li> <li>On call signatures (e.g. <code class="notranslate">function val(x?: string)?: number</code>).</li> <li>On index signatures (e.g. <code class="notranslate">[x: string]?: Entity</code>).</li> </ul> </li> <li>We said it wasn't necessary because classes always have <code class="notranslate">undefined</code> by default, but non-nullable types make the world quite different.</li> <li>Variables are more of a <em>questionable</em> (pun intended) case - not entirely certain. <ul dir="auto"> <li>It seems like this would actually give you a case to say that your variable can be <code class="notranslate">undefined</code> and reflects that in the type.</li> <li>Can we use that to model the dual of this on <code class="notranslate">?</code> in types? <ul dir="auto"> <li>Let's not go down that rabbit-hole.</li> </ul> </li> </ul> </li> <li>Call signatures would have an awkward syntax.</li> <li>Consensus: do it for properties, keep the rest this in mind, but come back to it.</li> </ul> <h2 dir="auto">Control-flow based type checking</h2> <ul dir="auto"> <li>We're going to need to do it.</li> <li>We think we can do it with no significant perf hit.</li> <li>Get perfect definite assignment errors.</li> <li>Type guards should work perfectly.</li> <li>We'll keep people posted.</li> </ul> <h1 dir="auto">UMD module support (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="136830403" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/7264" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/7264/hovercard" href="https://github.com/microsoft/TypeScript/pull/7264">#7264</a>)</h1> <ul dir="auto"> <li>Idea with UMD modules is you write a declaration file.</li> <li>In that same file, you write <code class="notranslate">export as namespace Foo</code> where <code class="notranslate">Foo</code> is some arbitrary identifier.</li> <li>In a module, only if you use a <code class="notranslate">/// &lt;reference path="..." /&gt;</code>, is <code class="notranslate">Foo</code> visible.</li> <li>In a script context, <code class="notranslate">Foo</code> is always visible if the <code class="notranslate">.d.ts</code> is in the compilation context. <ul dir="auto"> <li>Idea is that you're in a script/"non-module" context.</li> </ul> </li> <li>This is the new, better, way to write type definitions that need to be shared between old script-style code and modules. <ul dir="auto"> <li>The problem is that you always needed to duplicate your definitions across two different definition files, one which used an <code class="notranslate">export =</code>.</li> </ul> </li> <li>Problem: how do you reflect the type of the module itself? <ul dir="auto"> <li> <p dir="auto">Sometimes modules have members that refer to themselves.</p> </li> <li> <p dir="auto">We're still flexible here!</p> </li> <li> <p dir="auto">Continue using some value, use <code class="notranslate">export =</code>, and then use an <code class="notranslate">export namespace as Foo</code>.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface jQueryStatic { foo: jQueryStatic } let jQuery: jQueryStatic; export = jQuery; export as namespace jQuery;"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">jQueryStatic</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span>: <span class="pl-smi">jQueryStatic</span> <span class="pl-kos">}</span> <span class="pl-k">let</span> <span class="pl-s1">jQuery</span>: <span class="pl-smi">jQueryStatic</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-s1">jQuery</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">as</span> <span class="pl-k">namespace</span> <span class="pl-s1">jQuery</span><span class="pl-kos">;</span></pre></div> </li> </ul> </li> <li> <h2 dir="auto">Why does <code class="notranslate">/// &lt;reference path="..." /&gt;</code> affect things? Why not just use a global module augmentation?</h2> </li> </ul> <h1 dir="auto">Library include directives (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="136830217" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/7263" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/7263/hovercard" href="https://github.com/microsoft/TypeScript/pull/7263">#7263</a>)</h1> <ul dir="auto"> <li>Answer to the question of "How do we easily resolve types for script/global code?" <ul dir="auto"> <li>Need to avoid situations where users have duplicate definitions due to "global code" being treated as conflicting even though they might refer to the same entities.</li> </ul> </li> <li>Syntax: <code class="notranslate">/// &lt;reference library="jquery" /&gt;</code></li> <li>What is the order of resolution for declaration files? <ul dir="auto"> <li>Take <code class="notranslate">/// &lt;reference library="jquery" /&gt;</code>.</li> <li>Start from current module location.</li> <li>Look for files walking up the spine of directories. For each directory: <ol dir="auto"> <li>If you see a file named <code class="notranslate">jquery.d.ts</code>, use that.</li> <li>If you see a directory named <code class="notranslate">typings</code>, look in there.</li> <li>If you see a directory named <code class="notranslate">node_modules</code> <ol dir="auto"> <li>Try to resolve in <code class="notranslate">node_modules/jquery/package.json</code> or use the <code class="notranslate">node_modules/jquery/index.d.ts</code>.</li> <li>Try to resolve in <code class="notranslate">node_modules/jquery/package.json</code> or use the <code class="notranslate">node_modules/@types/jquery/index.d.ts</code> (or something similar).</li> </ol> </li> </ol> </li> </ul> </li> <li>Meeting cut short - may be more to the algorithm.</li> </ul>
<p dir="auto">The following TypeScript with async/await...</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public async get(from: number, to: number): Promise&lt;Array&lt;M&gt;&gt; { let models: Array&lt;M&gt; = await this.persistant_repo.get(from, to);"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-s1">async</span> <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">from</span>: <span class="pl-s1">number</span><span class="pl-kos">,</span> <span class="pl-s1">to</span>: <span class="pl-s1">number</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-c1">&lt;</span><span class="pl-smi">Array</span><span class="pl-c1">&lt;</span><span class="pl-smi">M</span><span class="pl-c1">&gt;&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">let</span> <span class="pl-c1">models</span>: <span class="pl-smi">Array</span><span class="pl-kos">&lt;</span><span class="pl-smi">M</span><span class="pl-kos">&gt;</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">persistant_repo</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">from</span><span class="pl-kos">,</span> <span class="pl-s1">to</span><span class="pl-kos">)</span><span class="pl-kos"></span><span class="pl-kos">;</span></pre></div> <p dir="auto">produces the following JavaScript with a yield outside of a generator...</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ModelsRepoDecorator.prototype.get = function (from, to) { var _this = this; var models = yield this.persistant_repo.get(from, to);"><pre class="notranslate"><span class="pl-v">ModelsRepoDecorator</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">get</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">from</span><span class="pl-kos">,</span> <span class="pl-s1">to</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">_this</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">models</span> <span class="pl-c1">=</span> <span class="pl-k">yield</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">persistant_repo</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">from</span><span class="pl-kos">,</span> <span class="pl-s1">to</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-kos"></span></pre></div> <p dir="auto">I'm not certain, but I don't think <code class="notranslate">yield</code> should work outside of a generator. I'm running <code class="notranslate">tsc src/**/*.ts --outDir dist --sourceMap</code> and my tsconfig looks like this...</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;module&quot;: &quot;commonjs&quot;, &quot;target&quot;: &quot;ES6&quot;, &quot;noImplicitAny&quot;: true, &quot;removeComments&quot;: true, &quot;preserveConstEnums&quot;: true, &quot;sourceMap&quot;: true, &quot;jsx&quot;: &quot;react&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"compilerOptions"</span>: { <span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>commonjs<span class="pl-pds">"</span></span>, <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>ES6<span class="pl-pds">"</span></span>, <span class="pl-ent">"noImplicitAny"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"removeComments"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"preserveConstEnums"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"sourceMap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"jsx"</span>: <span class="pl-s"><span class="pl-pds">"</span>react<span class="pl-pds">"</span></span> } }</pre></div> <p dir="auto">I think this may be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98861332" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4135" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4135/hovercard" href="https://github.com/microsoft/TypeScript/issues/4135">#4135</a>, but I'm not sure how the solution there can be applied here.</p>
0
<p dir="auto">I have an app with a framework very similar to Om where I always render from the top component.<br> There is no Flux store with components listening to a single Flux store event, just a single global json state managed outside of React.</p> <p dir="auto">I ask this question as a follow-up to this issue, as I just noticed that React.render takes a callback: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="38751908" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/1931" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/1931/hovercard" href="https://github.com/facebook/react/issues/1931">#1931</a></p> <p dir="auto">My former Perf code looked like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// 1st render React.addons.Perf.start(); React.render(&lt;App state=globalState/&gt;, document.body); React.addons.Perf.stop(); React.addons.Perf.printWasted(); // 2nd render React.addons.Perf.start(); React.render(&lt;App state=globalState/&gt;, document.body); React.addons.Perf.stop(); React.addons.Perf.printWasted(); // ... next renders"><pre class="notranslate"><span class="pl-c">// 1st render</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">start</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">App</span> <span class="pl-c1">state</span><span class="pl-c1">=</span><span class="pl-c1">globalState</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">stop</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">printWasted</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// 2nd render</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">start</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">App</span> <span class="pl-c1">state</span><span class="pl-c1">=</span><span class="pl-c1">globalState</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">stop</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">printWasted</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// ... next renders</span></pre></div> <p dir="auto">So as Render takes a callback it seems to make sens to use it instead of considering React.render synchronous.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// 1st render React.addons.Perf.start(); React.render(&lt;App state=globalState/&gt;, document.body),function() { React.addons.Perf.stop(); React.addons.Perf.printWasted(); }); // 2nd render React.addons.Perf.start(); React.render(&lt;App state=globalState/&gt;, document.body),function() { React.addons.Perf.stop(); React.addons.Perf.printWasted(); }); // ... next renders"><pre class="notranslate"><span class="pl-c">// 1st render</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">start</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">App</span> <span class="pl-c1">state</span><span class="pl-c1">=</span><span class="pl-c1">globalState</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</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-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">stop</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">printWasted</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">// 2nd render</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">start</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">App</span> <span class="pl-c1">state</span><span class="pl-c1">=</span><span class="pl-c1">globalState</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</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-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">stop</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">Perf</span><span class="pl-kos">.</span><span class="pl-en">printWasted</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">// ... next renders</span></pre></div> <p dir="auto">The question that directly comes to mind is what would be the behavior if the 2nd rendering is triggered before the 1st rendering callback has been called?</p> <p dir="auto">In an ideal world we would have <code class="notranslate">start / stop / printWasted / start / stop / printWasted</code> but it seem to me that we could also have <code class="notranslate">start / start / stop / printWasted / stop / printWasted</code> which could lead to bad or duplicated mesures, or even worse a failure if Perf does not allow to be started twice for example...</p> <p dir="auto">I think my usecase is pretty common for those using React in a really pure way, and it would be nice to explain and document how this can be achieved without expecting weird side effects</p>
<p dir="auto">React version: 17.0.1</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>Use latest react and check chrome console</li> </ol> <h2 dir="auto">Issue</h2> <p dir="auto">[Deprecation] SharedArrayBuffer will require cross-origin isolation as of M91, around May 2021. See <a href="https://developer.chrome.com/blog/enabling-shared-array-buffer/" rel="nofollow">https://developer.chrome.com/blog/enabling-shared-array-buffer/</a> for more details.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="scheduler.development.js:298 [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M91, around May 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details. (anonymous) @ scheduler.development.js:298 ./node_modules/scheduler/cjs/scheduler.development.js @ scheduler.development.js:843 __webpack_require__ @ bootstrap:24 fn @ hot module replacement:61 ./node_modules/scheduler/index.js @ index.js:6 __webpack_require__ @ bootstrap:24 fn @ hot module replacement:61 (anonymous) @ react-dom.development.js:18 ./node_modules/react-dom/cjs/react-dom.development.js @ react-dom.development.js:26261 __webpack_require__ @ bootstrap:24 fn @ hot module replacement:61 ./node_modules/react-dom/index.js @ index.js:37 __webpack_require__ @ bootstrap:24 fn @ hot module replacement:61 ./src/app.jsx @ main.f06688de3ff4e6385b93.js:12 __webpack_require__ @ bootstrap:24 __webpack_exec__ @ main.f06688de3ff4e6385b93.js:1490 (anonymous) @ main.f06688de3ff4e6385b93.js:1491 __webpack_require__.O @ chunk loaded:25 (anonymous) @ main.f06688de3ff4e6385b93.js:1492 webpackJsonpCallback @ jsonp chunk loading:522 (anonymous) @ main.f06688de3ff4e6385b93.js:1 log.js:24 [HMR] Waiting for update signal from WDS..."><pre class="notranslate"><code class="notranslate">scheduler.development.js:298 [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M91, around May 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details. (anonymous) @ scheduler.development.js:298 ./node_modules/scheduler/cjs/scheduler.development.js @ scheduler.development.js:843 __webpack_require__ @ bootstrap:24 fn @ hot module replacement:61 ./node_modules/scheduler/index.js @ index.js:6 __webpack_require__ @ bootstrap:24 fn @ hot module replacement:61 (anonymous) @ react-dom.development.js:18 ./node_modules/react-dom/cjs/react-dom.development.js @ react-dom.development.js:26261 __webpack_require__ @ bootstrap:24 fn @ hot module replacement:61 ./node_modules/react-dom/index.js @ index.js:37 __webpack_require__ @ bootstrap:24 fn @ hot module replacement:61 ./src/app.jsx @ main.f06688de3ff4e6385b93.js:12 __webpack_require__ @ bootstrap:24 __webpack_exec__ @ main.f06688de3ff4e6385b93.js:1490 (anonymous) @ main.f06688de3ff4e6385b93.js:1491 __webpack_require__.O @ chunk loaded:25 (anonymous) @ main.f06688de3ff4e6385b93.js:1492 webpackJsonpCallback @ jsonp chunk loading:522 (anonymous) @ main.f06688de3ff4e6385b93.js:1 log.js:24 [HMR] Waiting for update signal from WDS... </code></pre></div>
0
<p dir="auto">It should be possible to pull down from the top of the persistent bottom sheet to make it disappear, but it seems to have a very small hitbox to make that happen?</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11857803/23090740/1c87b528-f55a-11e6-9f78-dfec46c46f26.gif"><img src="https://cloud.githubusercontent.com/assets/11857803/23090740/1c87b528-f55a-11e6-9f78-dfec46c46f26.gif" alt="hard_dismiss mov" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Trying to figure out why this is occurring but currently no idea. I just came across the issue in the console.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter: When the exception was thrown, this was the stack: flutter: #2 MultiChildRenderObjectElement.forgetChild (package:flutter/src/widgets/framework.dart) flutter: #3 Element._retakeInactiveElement (package:flutter/src/widgets/framework.dart:2868:14) flutter: #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2895:32) flutter: #5 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4759:32) flutter: #6 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) flutter: #7 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) flutter: #8 _TheatreElement.mount (package:flutter/src/widgets/overlay.dart:493:16) flutter: #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) flutter: #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) flutter: #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #12 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #13 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #14 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #15 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #16 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #17 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #18 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #19 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) flutter: #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #21 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #22 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #23 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #24 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #25 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) flutter: #26 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #27 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) flutter: #28 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #29 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #30 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #31 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #32 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #33 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #34 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #35 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #36 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #37 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #38 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #39 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5) flutter: #40 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #41 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #42 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #43 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #44 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #45 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #46 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #47 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #49 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) flutter: #50 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #51 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #52 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #53 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #54 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #55 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #56 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #57 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #58 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #59 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #60 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #61 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #62 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #63 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #64 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #65 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #66 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #67 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #68 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #69 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #73 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5) flutter: #74 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #75 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #76 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #77 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #78 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #79 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #80 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #81 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #82 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #83 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #84 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #85 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2242:33) flutter: #86 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:626:20) flutter: #87 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) flutter: #88 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) flutter: #89 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) flutter: #90 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) flutter: #92 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) flutter: #93 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) flutter: #94 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12) flutter: (elided 3 frames from class _AssertionError and package dart:async) flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════ flutter: Another exception was thrown: Duplicate GlobalKey detected in widget tree. Reloaded 2 of 423 libraries in 394ms."><pre class="notranslate"><code class="notranslate">flutter: When the exception was thrown, this was the stack: flutter: #2 MultiChildRenderObjectElement.forgetChild (package:flutter/src/widgets/framework.dart) flutter: #3 Element._retakeInactiveElement (package:flutter/src/widgets/framework.dart:2868:14) flutter: #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2895:32) flutter: #5 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4759:32) flutter: #6 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) flutter: #7 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) flutter: #8 _TheatreElement.mount (package:flutter/src/widgets/overlay.dart:493:16) flutter: #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) flutter: #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) flutter: #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #12 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #13 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #14 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #15 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #16 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #17 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #18 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #19 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) flutter: #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #21 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #22 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #23 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #24 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #25 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) flutter: #26 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #27 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) flutter: #28 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #29 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #30 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #31 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #32 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #33 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #34 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #35 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #36 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #37 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #38 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #39 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5) flutter: #40 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #41 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #42 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #43 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #44 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #45 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #46 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #47 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #49 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) flutter: #50 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #51 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #52 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #53 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #54 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #55 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #56 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #57 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #58 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #59 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #60 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #61 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #62 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #63 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #64 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #65 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #66 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #67 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #68 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #69 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #73 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5) flutter: #74 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #75 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #76 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #77 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) flutter: #78 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #79 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #80 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #81 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) flutter: #82 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) flutter: #83 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) flutter: #84 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) flutter: #85 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2242:33) flutter: #86 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:626:20) flutter: #87 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) flutter: #88 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) flutter: #89 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) flutter: #90 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) flutter: #92 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) flutter: #93 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) flutter: #94 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12) flutter: (elided 3 frames from class _AssertionError and package dart:async) flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════ flutter: Another exception was thrown: Duplicate GlobalKey detected in widget tree. Reloaded 2 of 423 libraries in 394ms. </code></pre></div>
0
<p dir="auto">Hello,</p> <p dir="auto">I am using the latest version of google chrome (29.0.1547.57 m) on Windows 8.<br> I am reproducing the same bug on the 28 version.</p> <p dir="auto">Open the Justified nav example in large size.<br> <a href="http://getbootstrap.com/examples/justified-nav/" rel="nofollow">http://getbootstrap.com/examples/justified-nav/</a></p> <p dir="auto">Reduce the window to the XS size and re-extend it to the large size.<br> Nav bar menu is glitched.</p> <p dir="auto">Seb.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d2dcd43629d8cccfea7101bc93be67128c5ff89c14cdd2ec1871d1cc68835db9/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3931353237332f3939383332332f31616336653335362d303966622d313165332d383966342d3130633131393138383831302e706e67"><img src="https://camo.githubusercontent.com/d2dcd43629d8cccfea7101bc93be67128c5ff89c14cdd2ec1871d1cc68835db9/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3931353237332f3939383332332f31616336653335362d303966622d313165332d383966342d3130633131393138383831302e706e67" alt="justified-nav-bug" data-canonical-src="https://f.cloud.github.com/assets/915273/998323/1ac6e356-09fb-11e3-89f4-10c119188810.png" style="max-width: 100%;"></a></p>
<p dir="auto">The justified nav example (<a href="http://getbootstrap.com/examples/justified-nav" rel="nofollow">http://getbootstrap.com/examples/justified-nav</a>) collapses perfectly when the screen is narrowed, but when the screen is expanded it get wonky.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/db69ca8e316e013e7709351d88ecf7d585b87ae58bdeb880ad477c8bc93e6608/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f38333730382f3938323439352f33383763663635362d303766382d313165332d393330382d6363376238306661653266642e706e67"><img src="https://camo.githubusercontent.com/db69ca8e316e013e7709351d88ecf7d585b87ae58bdeb880ad477c8bc93e6608/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f38333730382f3938323439352f33383763663635362d303766382d313165332d393330382d6363376238306661653266642e706e67" alt="justified nav" data-canonical-src="https://f.cloud.github.com/assets/83708/982495/387cf656-07f8-11e3-9308-cc7b80fae2fd.png" style="max-width: 100%;"></a><br> expanded</p>
1
<p dir="auto">Currently the file is only used to detect the virtual project. Now that we have tsconfig.json support we can use the language service bound to a tsconfig.json file to find navto items. I would propose the following handling in case of the absense of a file:</p> <ul dir="auto"> <li>no tsconfig project. Command return no content message</li> <li>all projects are tsconfig project: return the nav to items (filter duplicates)</li> <li>there is a mix: the response contains a flag indicating that the result might be incomplete.</li> </ul>
<p dir="auto">Example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function f(T:{new (...args:any[]):any}) { return class extends T {} }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-smi">T</span>:<span class="pl-kos">{</span><span class="pl-k">new</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>:<span class="pl-smi">any</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>:<span class="pl-smi">any</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-k">class</span> <span class="pl-k">extends</span> <span class="pl-smi">T</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="src/test.ts(2,23): error TS2509: Base constructor return type 'any' is not a class or interface type."><pre class="notranslate"><code class="notranslate">src/test.ts(2,23): error TS2509: Base constructor return type 'any' is not a class or interface type. </code></pre></div> <p dir="auto">Seemingly arbitrary fix:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface I {} function f(T:{new (...args:any[]):I}) { return class extends T {} }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">I</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-smi">T</span>:<span class="pl-kos">{</span><span class="pl-k">new</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>:<span class="pl-smi">any</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>:<span class="pl-smi">I</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-k">class</span> <span class="pl-k">extends</span> <span class="pl-smi">T</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Afaik <code class="notranslate">any</code> should be an acceptable type here?</p>
0
<h3 dir="auto">Version</h3> <p dir="auto">2.6.6</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsfiddle.net/azg65dsv/3/" rel="nofollow">https://jsfiddle.net/azg65dsv/3/</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Click the "Push" button and you will see that the focus of the window is now on the top input. Wait a few seconds, and should now see that the focus has been lost from the input.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">The first input should still be focused.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">The entire DOM is shifted around, new elements are created for no reason and changed, while the input ends up unfocused.</p> <hr> <p dir="auto">My setup is pretty similar to the fiddle, I have a loading bar at the top and an information box at the bottom. When testing it, however, a lot of weird things happened:</p> <ul dir="auto"> <li>My custom directive didn't work properly because the underlying element was changed (this was actually my fault, I have now fixed it)</li> <li>If I selected the input before data came, it lost focus</li> <li>My custom button ripple animation got shifted around to a button at the bottom of the screen</li> </ul> <p dir="auto">After debugging a little bit, I found the issue. Vue thought that those divs were the same element when calling <code class="notranslate">sameVnode(oldEndVnode, newEndVnode)</code>. Adding a custom key into the second div works wonderfully, and no more DOM shifting, but I would like to be warned by the template compiler if something like this could happen (or maybe key all divs?).</p> <h3 dir="auto">Workaround</h3> <p dir="auto">Add a <code class="notranslate">key</code> to the first div that is not toggled.</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.6.10</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codepen.io/timbenniks/pen/yPOLej" rel="nofollow">https://codepen.io/timbenniks/pen/yPOLej</a></p> <h3 dir="auto">Steps to reproduce</h3> <ul dir="auto"> <li>Add a <em>noscript</em> tag inside the DOM node that is given to the Vue constructor.</li> <li>In that <em>noscript</em> tag, add an image tag.</li> <li>Open the network tab of the developer tools.</li> <li>Load the page.</li> </ul> <h3 dir="auto">What is expected?</h3> <p dir="auto">The expected result would be that Vue.js ignores whatever is found in the <em>noscript</em> tag.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">That is actually happening: observe that Vue.js loads the image inside the <em>noscript</em> tag. Hence, Vue.js parses the <em>noscript</em> tag and whatever is found within it.</p> <hr> <p dir="auto">We found this issue as we are using Vue.js not in SPA mode but sprinkling it on top of existing HTML. When turning off the JS the page still renders HTML. The goal is to have lazy loading images and without JS we still want to see the images. Hence an image tag in a <em>noscript</em> element.</p> <p dir="auto">This sounds like an edge case but in fact this is common usage for big e-commerce systems and cms' like Sitecore and Adobe AEM.</p>
0