text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">The following characters not working with the Hungarian keyboard:</p> <p dir="auto">\ =&gt; Alt Gr + q<br> [ =&gt; Alt Gr + f<br> € =&gt; Alt Gr + u =&gt; This key also uploading the sync settings with the "sync-settings" plugin.</p> <p dir="auto">2 of these 3 keys ar urgent for code editing.</p>
<p dir="auto">Original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28529842" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/1625" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/1625/hovercard" href="https://github.com/atom/atom/issues/1625">atom/atom#1625</a></p> <hr> <p dir="auto">Use <a href="https://atom.io/packages/keyboard-localization" rel="nofollow">https://atom.io/packages/keyboard-localization</a> until this issue gets fixed (should be in the Blink upstream).</p>
1
<p dir="auto">Hey guys,</p> <p dir="auto">Wondering can you bring out a package for print(Printing to paper)</p>
<p dir="auto">Would be nice to have a Print feature. Unless I'm mistaken, there is no such menu option or plugin.</p>
1
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open Any JS File</li> <li>Define multiple variables using single var. i.e.<br> <code class="notranslate">var a = 0, b = 1, c = 3;</code></li> <li>Syntax highlighting for b,c will be broken. (Tested on multiple themes)</li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2222702/13905695/0007b90c-eee9-11e5-827d-e655b6309b5c.PNG"><img src="https://cloud.githubusercontent.com/assets/2222702/13905695/0007b90c-eee9-11e5-827d-e655b6309b5c.PNG" alt="capture" style="max-width: 100%;"></a></p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vsccarl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vsccarl">@vsccarl</a> on March 10, 2016 1:2</em></p> <p dir="auto">When defining multiple var in JavaScript the colorization is not working properly after the first defined variable if they are on separate lines.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12900364/13656001/3a3e5a38-e618-11e5-8e29-f01b87bf83cc.JPG"><img src="https://cloud.githubusercontent.com/assets/12900364/13656001/3a3e5a38-e618-11e5-8e29-f01b87bf83cc.JPG" alt="varcolor" style="max-width: 100%;"></a><br> <code class="notranslate">var wm1 = new WeakMap(), wm2 = new WeakMap(), wm3 = new WeakMap();</code></p> <p dir="auto">On the same line they are correctly colorized<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12900364/13656046/80e0f5f4-e618-11e5-82a2-f729c81ce286.JPG"><img src="https://cloud.githubusercontent.com/assets/12900364/13656046/80e0f5f4-e618-11e5-82a2-f729c81ce286.JPG" alt="varcolorworking" style="max-width: 100%;"></a></p> <p dir="auto">Expected: wm2 and wm3 should be the same color as wm1 regardless of the line they are on.</p> <p dir="auto">Version 0.10.12-alpha<br> Commit e8d5a7932b99f6b7559d48536bfc84732bfc8582<br> Date 2016-03-09T09:53:18.387Z<br> Shell 0.35.6<br> Renderer 45.0.2454.85<br> Node 4.1.1</p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139750442" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3940" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3940/hovercard" href="https://github.com/microsoft/vscode/issues/3940">microsoft/vscode#3940</a></em></p>
1
<h4 dir="auto">A small, complete example of the issue</h4> <p dir="auto">Apologies if this is already a known issue: I've not found anything similar in my googling, but my google-fu may have let me down.</p> <p dir="auto">When adding a single time delta to a time column with non-naive TZs, in pandas 0.19.0 this produces an array which still has the correct timezone. However, if adding an array of time deltas, the timezone is dropped and a dtype of &lt;M8 is returned.</p> <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(pd.date_range(start=pd.Timestamp('2016-01-01 00:00:00+00'), end=pd.Timestamp('2016-01-01 23:59:59+00'), freq='H')) df.columns = ['a'] df.a.dtype # Both 0.19.0 and 0.18.1 here return datetime64[ns, UTC] df.a # Here, the +00 is visible. df['b'] = df['a'].subtract(pd.Timedelta(seconds=60*60)) df['b'].dtype # Here, 0.18.1 returns dtype('&lt;M8[ns]'), while 0.19.0 returns datetime64[ns, UTC] df.b # Here, 0.19.0 will display the +00 while 0.18.1 will drop the TZ alteration df['c'] = df['a'].subtract(df['b'] - df['a']) # Here, pandas 0.18.1 Fails due to trying to subtract a known timezone from a timezone-naive datetime. df.c.dtype # Here, 0.19.0 returns dtype('&lt;M8[ns]') df.c # Here, 0.19.0 will not show the +00 TZ alteration."><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-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s1">start</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-01-01 00:00:00+00'</span>), <span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-01-01 23:59:59+00'</span>), <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'H'</span>)) <span class="pl-s1">df</span>.<span class="pl-s1">columns</span> <span class="pl-c1">=</span> [<span class="pl-s">'a'</span>] <span class="pl-s1">df</span>.<span class="pl-s1">a</span>.<span class="pl-s1">dtype</span> <span class="pl-c"># Both 0.19.0 and 0.18.1 here return datetime64[ns, UTC]</span> <span class="pl-s1">df</span>.<span class="pl-s1">a</span> <span class="pl-c"># Here, the +00 is visible.</span> <span class="pl-s1">df</span>[<span class="pl-s">'b'</span>] <span class="pl-c1">=</span> <span class="pl-s1">df</span>[<span class="pl-s">'a'</span>].<span class="pl-en">subtract</span>(<span class="pl-s1">pd</span>.<span class="pl-v">Timedelta</span>(<span class="pl-s1">seconds</span><span class="pl-c1">=</span><span class="pl-c1">60</span><span class="pl-c1">*</span><span class="pl-c1">60</span>)) <span class="pl-s1">df</span>[<span class="pl-s">'b'</span>].<span class="pl-s1">dtype</span> <span class="pl-c"># Here, 0.18.1 returns dtype('&lt;M8[ns]'), while 0.19.0 returns datetime64[ns, UTC]</span> <span class="pl-s1">df</span>.<span class="pl-s1">b</span> <span class="pl-c"># Here, 0.19.0 will display the +00 while 0.18.1 will drop the TZ alteration</span> <span class="pl-s1">df</span>[<span class="pl-s">'c'</span>] <span class="pl-c1">=</span> <span class="pl-s1">df</span>[<span class="pl-s">'a'</span>].<span class="pl-en">subtract</span>(<span class="pl-s1">df</span>[<span class="pl-s">'b'</span>] <span class="pl-c1">-</span> <span class="pl-s1">df</span>[<span class="pl-s">'a'</span>]) <span class="pl-c"># Here, pandas 0.18.1 Fails due to trying to subtract a known timezone from a timezone-naive datetime.</span> <span class="pl-s1">df</span>.<span class="pl-s1">c</span>.<span class="pl-s1">dtype</span> <span class="pl-c"># Here, 0.19.0 returns dtype('&lt;M8[ns]')</span> <span class="pl-s1">df</span>.<span class="pl-s1">c</span> <span class="pl-c"># Here, 0.19.0 will not show the +00 TZ alteration.</span></pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">I am not sure what the expected output should be. From my point of view, subtracting a Timedelta from a TZ specific timestamp should maintain the TZ. This is what appears to have happened between version 0.18.1 and 0.19.0 for single time deltas. However, I also think that the behaviour between the two cases above (single timedeltas and series of timedeltas) should be consistent.</p> <p dir="auto">Please clarify if I've understood this correctly!</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt; df.a.dtype datetime64[ns, UTC] &gt;&gt; df.a 0 2016-01-01 00:00:00+00:00 1 2016-01-01 01:00:00+00:00 2 2016-01-01 02:00:00+00:00 3 2016-01-01 03:00:00+00:00 4 2016-01-01 04:00:00+00:00 5 2016-01-01 05:00:00+00:00 6 2016-01-01 06:00:00+00:00 7 2016-01-01 07:00:00+00:00 8 2016-01-01 08:00:00+00:00 9 2016-01-01 09:00:00+00:00 10 2016-01-01 10:00:00+00:00 11 2016-01-01 11:00:00+00:00 12 2016-01-01 12:00:00+00:00 13 2016-01-01 13:00:00+00:00 14 2016-01-01 14:00:00+00:00 15 2016-01-01 15:00:00+00:00 16 2016-01-01 16:00:00+00:00 17 2016-01-01 17:00:00+00:00 18 2016-01-01 18:00:00+00:00 19 2016-01-01 19:00:00+00:00 20 2016-01-01 20:00:00+00:00 21 2016-01-01 21:00:00+00:00 22 2016-01-01 22:00:00+00:00 23 2016-01-01 23:00:00+00:00 Name: a, dtype: datetime64[ns, UTC] &gt;&gt; df.b.dtype datetime64[ns, UTC] &gt;&gt; df.b 0 2015-12-31 23:00:00+00:00 1 2016-01-01 00:00:00+00:00 2 2016-01-01 01:00:00+00:00 3 2016-01-01 02:00:00+00:00 4 2016-01-01 03:00:00+00:00 5 2016-01-01 04:00:00+00:00 6 2016-01-01 05:00:00+00:00 7 2016-01-01 06:00:00+00:00 8 2016-01-01 07:00:00+00:00 9 2016-01-01 08:00:00+00:00 10 2016-01-01 09:00:00+00:00 11 2016-01-01 10:00:00+00:00 12 2016-01-01 11:00:00+00:00 13 2016-01-01 12:00:00+00:00 14 2016-01-01 13:00:00+00:00 15 2016-01-01 14:00:00+00:00 16 2016-01-01 15:00:00+00:00 17 2016-01-01 16:00:00+00:00 18 2016-01-01 17:00:00+00:00 19 2016-01-01 18:00:00+00:00 20 2016-01-01 19:00:00+00:00 21 2016-01-01 20:00:00+00:00 22 2016-01-01 21:00:00+00:00 23 2016-01-01 22:00:00+00:00 Name: b, dtype: datetime64[ns, UTC] &gt;&gt; df.c.dtype datetime64[ns, UTC] &gt;&gt; df.c 0 2016-01-01 01:00:00+00 1 2016-01-01 02:00:00+00 2 2016-01-01 03:00:00+00 3 2016-01-01 04:00:00+00 4 2016-01-01 05:00:00+00 5 2016-01-01 06:00:00+00 6 2016-01-01 07:00:00+00 7 2016-01-01 08:00:00+00 8 2016-01-01 09:00:00+00 9 2016-01-01 10:00:00+00 10 2016-01-01 11:00:00+00 11 2016-01-01 12:00:00+00 12 2016-01-01 13:00:00+00 13 2016-01-01 14:00:00+00 14 2016-01-01 15:00:00+00 15 2016-01-01 16:00:00+00 16 2016-01-01 17:00:00+00 17 2016-01-01 18:00:00+00 18 2016-01-01 19:00:00+00 19 2016-01-01 20:00:00+00 20 2016-01-01 21:00:00+00 21 2016-01-01 22:00:00+00 22 2016-01-01 23:00:00+00 23 2016-01-02 00:00:00+00 Name: c, dtype: datetime64[ns, UTC]"><pre class="notranslate"><code class="notranslate">&gt;&gt; df.a.dtype datetime64[ns, UTC] &gt;&gt; df.a 0 2016-01-01 00:00:00+00:00 1 2016-01-01 01:00:00+00:00 2 2016-01-01 02:00:00+00:00 3 2016-01-01 03:00:00+00:00 4 2016-01-01 04:00:00+00:00 5 2016-01-01 05:00:00+00:00 6 2016-01-01 06:00:00+00:00 7 2016-01-01 07:00:00+00:00 8 2016-01-01 08:00:00+00:00 9 2016-01-01 09:00:00+00:00 10 2016-01-01 10:00:00+00:00 11 2016-01-01 11:00:00+00:00 12 2016-01-01 12:00:00+00:00 13 2016-01-01 13:00:00+00:00 14 2016-01-01 14:00:00+00:00 15 2016-01-01 15:00:00+00:00 16 2016-01-01 16:00:00+00:00 17 2016-01-01 17:00:00+00:00 18 2016-01-01 18:00:00+00:00 19 2016-01-01 19:00:00+00:00 20 2016-01-01 20:00:00+00:00 21 2016-01-01 21:00:00+00:00 22 2016-01-01 22:00:00+00:00 23 2016-01-01 23:00:00+00:00 Name: a, dtype: datetime64[ns, UTC] &gt;&gt; df.b.dtype datetime64[ns, UTC] &gt;&gt; df.b 0 2015-12-31 23:00:00+00:00 1 2016-01-01 00:00:00+00:00 2 2016-01-01 01:00:00+00:00 3 2016-01-01 02:00:00+00:00 4 2016-01-01 03:00:00+00:00 5 2016-01-01 04:00:00+00:00 6 2016-01-01 05:00:00+00:00 7 2016-01-01 06:00:00+00:00 8 2016-01-01 07:00:00+00:00 9 2016-01-01 08:00:00+00:00 10 2016-01-01 09:00:00+00:00 11 2016-01-01 10:00:00+00:00 12 2016-01-01 11:00:00+00:00 13 2016-01-01 12:00:00+00:00 14 2016-01-01 13:00:00+00:00 15 2016-01-01 14:00:00+00:00 16 2016-01-01 15:00:00+00:00 17 2016-01-01 16:00:00+00:00 18 2016-01-01 17:00:00+00:00 19 2016-01-01 18:00:00+00:00 20 2016-01-01 19:00:00+00:00 21 2016-01-01 20:00:00+00:00 22 2016-01-01 21:00:00+00:00 23 2016-01-01 22:00:00+00:00 Name: b, dtype: datetime64[ns, UTC] &gt;&gt; df.c.dtype datetime64[ns, UTC] &gt;&gt; df.c 0 2016-01-01 01:00:00+00 1 2016-01-01 02:00:00+00 2 2016-01-01 03:00:00+00 3 2016-01-01 04:00:00+00 4 2016-01-01 05:00:00+00 5 2016-01-01 06:00:00+00 6 2016-01-01 07:00:00+00 7 2016-01-01 08:00:00+00 8 2016-01-01 09:00:00+00 9 2016-01-01 10:00:00+00 10 2016-01-01 11:00:00+00 11 2016-01-01 12:00:00+00 12 2016-01-01 13:00:00+00 13 2016-01-01 14:00:00+00 14 2016-01-01 15:00:00+00 15 2016-01-01 16:00:00+00 16 2016-01-01 17:00:00+00 17 2016-01-01 18:00:00+00 18 2016-01-01 19:00:00+00 19 2016-01-01 20:00:00+00 20 2016-01-01 21:00:00+00 21 2016-01-01 22:00:00+00 22 2016-01-01 23:00:00+00 23 2016-01-02 00:00:00+00 Name: c, dtype: datetime64[ns, UTC] </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <p dir="auto">(I have tested in two virtualenvs, the only difference between the two being the python version)</p> <details> # Paste the output here ## INSTALLED VERSIONS <p dir="auto">commit: None<br> python: 2.7.10.final.0<br> python-bits: 64<br> OS: Darwin<br> OS-release: 14.5.0<br> machine: x86_64<br> processor: i386<br> byteorder: little<br> LC_ALL: None<br> LANG: en_GB.UTF-8<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.19.0<br> nose: 1.3.7<br> pip: 8.1.2<br> setuptools: 28.6.0<br> Cython: None<br> numpy: 1.11.2<br> scipy: None<br> statsmodels: None<br> xarray: None<br> IPython: None<br> sphinx: None<br> patsy: None<br> dateutil: 2.5.3<br> pytz: 2016.7<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: None<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: None<br> boto: None<br> pandas_datareader: None</p> </details>
<p dir="auto">When I add a time delta to a DatetimeIndex which is tz-aware, the results appear as UTC, but sometimes claim to be in the original non-UTC timezone.</p> <h4 dir="auto">Code</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd index = pd.DatetimeIndex(['2016-06-28 05:30', '2016-06-28 05:31'], dtype='datetime64[ns, America/Chicago]') offset = pd.Series(['00:00:05', '00:00:05'], dtype='timedelta64[ns]', index=index) print(index + offset) print(index + offset.values)"><pre class="notranslate"><code class="notranslate">import pandas as pd index = pd.DatetimeIndex(['2016-06-28 05:30', '2016-06-28 05:31'], dtype='datetime64[ns, America/Chicago]') offset = pd.Series(['00:00:05', '00:00:05'], dtype='timedelta64[ns]', index=index) print(index + offset) print(index + offset.values) </code></pre></div> <h4 dir="auto">Actual Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2016-06-28 05:30:00-05:00 2016-06-28 10:30:05 2016-06-28 05:31:00-05:00 2016-06-28 10:31:05 dtype: datetime64[ns] DatetimeIndex(['2016-06-28 10:30:05-05:00', '2016-06-28 10:31:05-05:00'], dtype='datetime64[ns, America/Chicago]', freq=None)"><pre class="notranslate"><code class="notranslate">2016-06-28 05:30:00-05:00 2016-06-28 10:30:05 2016-06-28 05:31:00-05:00 2016-06-28 10:31:05 dtype: datetime64[ns] DatetimeIndex(['2016-06-28 10:30:05-05:00', '2016-06-28 10:31:05-05:00'], dtype='datetime64[ns, America/Chicago]', freq=None) </code></pre></div> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2016-06-28 05:30:00-05:00 2016-06-28 05:30:05-05:00 2016-06-28 05:31:00-05:00 2016-06-28 05:31:05-05:00 dtype: datetime64[ns] DatetimeIndex(['2016-06-28 05:30:05-05:00', '2016-06-28 05:31:05-05:00'], dtype='datetime64[ns, America/Chicago]', freq=None)"><pre class="notranslate"><code class="notranslate">2016-06-28 05:30:00-05:00 2016-06-28 05:30:05-05:00 2016-06-28 05:31:00-05:00 2016-06-28 05:31:05-05:00 dtype: datetime64[ns] DatetimeIndex(['2016-06-28 05:30:05-05:00', '2016-06-28 05:31:05-05:00'], dtype='datetime64[ns, America/Chicago]', freq=None) </code></pre></div> <p dir="auto">Note however that this does print the expected result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print(index + pd.to_timedelta('00:00:05'))"><pre class="notranslate"><code class="notranslate">print(index + pd.to_timedelta('00:00:05')) </code></pre></div> <p dir="auto">I'm using Pandas 0.18.1.</p>
1
<p dir="auto">Is it possible to <strong>sort by stars or the number of downloads</strong> when searching packages &amp; themes ?</p> <p dir="auto">It would be nice to have this feature for atom and also on the webpage...</p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/boustanihani/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/boustanihani">@boustanihani</a> on February 17, 2015 11:4</em></p> <p dir="auto">Could you please <strong>allow sorting</strong> search results on <a href="https://atom.io/packages" rel="nofollow">https://atom.io/packages</a> &amp; <a href="https://atom.io/themes" rel="nofollow">https://atom.io/themes</a> by the <strong>number of downloads</strong> and the <strong>number of stars</strong> ?</p> <p dir="auto">And maybe also inside the Atom Editor...</p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57910632" data-permission-text="Title is private" data-url="https://github.com/atom/apm/issues/303" data-hovercard-type="issue" data-hovercard-url="/atom/apm/issues/303/hovercard" href="https://github.com/atom/apm/issues/303">atom/apm#303</a></em></p>
1
<p dir="auto">First of all, congratulations for such a nice integration in package.json, with Schema Store support and server packages autocomplete.</p> <p dir="auto">I noted <a href="https://github.com/Microsoft/vscode/blob/master/extensions/javascript/src/features/packageJSONContribution.ts#L118">here</a> that NPM's default registry is hardcoded, even if a custom registry was set by <code class="notranslate">npm config set registry</code>.</p> <p dir="auto">Is there any possible way to use a registry provided by the user instead of the default one? Does JavaScript extension even provide any extensibility or customization at this point?</p>
<p dir="auto">vscode 0.10.8, windows 10.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9464825/13053819/770be720-d441-11e5-92ea-7d9c3f2232da.gif"><img src="https://cloud.githubusercontent.com/assets/9464825/13053819/770be720-d441-11e5-92ea-7d9c3f2232da.gif" alt="animation" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">like in the video, branch status updated only when clicking git panel.<br> if auto tracking is not possible, how about update status when clicking the sync button in the status bar?</p>
0
<p dir="auto">I discovered that when I use the LIMIT operator in the RETURN, the database returns invalid results sometimes (non-deterministic) - but only on large size patterns/quiers. I.e: Altough there are 4 matches in the database, the database returns no matches when using LIMIT 1 (or 2,3), but 4 when using LIMIT 4. After restarting the database the error disappears sometimes - but sometimes not.</p> <p dir="auto">Has this issue been fixed in recent releases? If not, please use the following steps to reproduce the problem: Note: be advised, that the problem occures only sporadic.</p> <ul dir="auto"> <li>Neo4j version: 3.5.2</li> <li>Operating system: Win10 x64</li> <li>API/Driver: Neo4j Browser or JavaAPI</li> </ul> <p dir="auto">Steps:</p> <ol dir="auto"> <li>Initiate Database, run the following queries. The query create a game board with 4x4 fields( label <em>:Field</em>), which are connected by <em>:right</em> and <em>:bottom</em> edges to their neighbors, and a node <em>:Board</em>, with edges to every <em>:Field</em>.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE (f00: Field {name: &quot;f00&quot;})-[:right]-&gt;(f01: Field {name: &quot;f01&quot;})-[:right]-&gt;(f02: Field {name: &quot;f02&quot;})-[:right]-&gt;(f03:Field {name: &quot;f03&quot;}), (f10: Field {name: &quot;f10&quot;})-[:right]-&gt;(f11: Field {name: &quot;f11&quot;})-[:right]-&gt;(f12: Field {name: &quot;f12&quot;})-[:right]-&gt;(f13:Field {name: &quot;f13&quot;}), (f20: Field {name: &quot;f20&quot;})-[:right]-&gt;(f21: Field {name: &quot;f21&quot;})-[:right]-&gt;(f22: Field {name: &quot;f22&quot;})-[:right]-&gt;(f23:Field {name: &quot;f23&quot;}), (f30: Field {name: &quot;f30&quot;})-[:right]-&gt;(f31: Field {name: &quot;f31&quot;})-[:right]-&gt;(f32: Field {name: &quot;f32&quot;})-[:right]-&gt;(f33:Field {name: &quot;f33&quot;}), (f00)-[:bottom]-&gt;(f10)-[:bottom]-&gt;(f20)-[:bottom]-&gt;(f30), (f01)-[:bottom]-&gt;(f11)-[:bottom]-&gt;(f21)-[:bottom]-&gt;(f31), (f02)-[:bottom]-&gt;(f12)-[:bottom]-&gt;(f22)-[:bottom]-&gt;(f32), (f03)-[:bottom]-&gt;(f13)-[:bottom]-&gt;(f23)-[:bottom]-&gt;(f33), (b:Board)"><pre class="notranslate"><code class="notranslate">CREATE (f00: Field {name: "f00"})-[:right]-&gt;(f01: Field {name: "f01"})-[:right]-&gt;(f02: Field {name: "f02"})-[:right]-&gt;(f03:Field {name: "f03"}), (f10: Field {name: "f10"})-[:right]-&gt;(f11: Field {name: "f11"})-[:right]-&gt;(f12: Field {name: "f12"})-[:right]-&gt;(f13:Field {name: "f13"}), (f20: Field {name: "f20"})-[:right]-&gt;(f21: Field {name: "f21"})-[:right]-&gt;(f22: Field {name: "f22"})-[:right]-&gt;(f23:Field {name: "f23"}), (f30: Field {name: "f30"})-[:right]-&gt;(f31: Field {name: "f31"})-[:right]-&gt;(f32: Field {name: "f32"})-[:right]-&gt;(f33:Field {name: "f33"}), (f00)-[:bottom]-&gt;(f10)-[:bottom]-&gt;(f20)-[:bottom]-&gt;(f30), (f01)-[:bottom]-&gt;(f11)-[:bottom]-&gt;(f21)-[:bottom]-&gt;(f31), (f02)-[:bottom]-&gt;(f12)-[:bottom]-&gt;(f22)-[:bottom]-&gt;(f32), (f03)-[:bottom]-&gt;(f13)-[:bottom]-&gt;(f23)-[:bottom]-&gt;(f33), (b:Board) </code></pre></div> <p dir="auto">and</p> <p dir="auto"><code class="notranslate">MATCH (f:Field), (b:Board) CREATE (b)-[:fields]-&gt;(f)</code></p> <ol start="2" dir="auto"> <li>Execute the pattern matching query.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MATCH (b:Board)-[b_fields_0_field11:fields]-&gt;(field11:Field), (b:Board)-[b_fields_1_field12:fields]-&gt;(field12:Field), (b:Board)-[b_fields_2_field13:fields]-&gt;(field13:Field), (b:Board)-[b_fields_3_field21:fields]-&gt;(field21:Field), (b:Board)-[b_fields_4_field22:fields]-&gt;(field22:Field), (b:Board)-[b_fields_5_field23:fields]-&gt;(field23:Field), (b:Board)-[b_fields_6_field31:fields]-&gt;(field31:Field), (b:Board)-[b_fields_7_field32:fields]-&gt;(field32:Field), (b:Board)-[b_fields_8_field33:fields]-&gt;(field33:Field), (field11:Field)-[field11_right_0_field12:right]-&gt;(field12:Field), (field11:Field)-[field11_bottom_1_field21:bottom]-&gt;(field21:Field), (field12:Field)-[field12_right_0_field13:right]-&gt;(field13:Field), (field12:Field)-[field12_bottom_1_field22:bottom]-&gt;(field22:Field), (field13:Field)-[field13_bottom_0_field23:bottom]-&gt;(field23:Field), (field21:Field)-[field21_right_0_field22:right]-&gt;(field22:Field), (field21:Field)-[field21_bottom_1_field31:bottom]-&gt;(field31:Field), (field22:Field)-[field22_right_0_field23:right]-&gt;(field23:Field), (field22:Field)-[field22_bottom_1_field32:bottom]-&gt;(field32:Field), (field23:Field)-[field23_bottom_0_field33:bottom]-&gt;(field33:Field), (field31:Field)-[field31_right_0_field32:right]-&gt;(field32:Field), (field32:Field)-[field32_right_0_field33:right]-&gt;(field33:Field), (field33:Field) WHERE NOT id(field11) = id(field12) AND NOT id(field11) = id(field13) AND NOT id(field11) = id(field21) AND NOT id(field11) = id(field22) AND NOT id(field11) = id(field23) AND NOT id(field11) = id(field31) AND NOT id(field11) = id(field32) AND NOT id(field11) = id(field33) AND NOT id(field12) = id(field13) AND NOT id(field12) = id(field21) AND NOT id(field12) = id(field22) AND NOT id(field12) = id(field23) AND NOT id(field12) = id(field31) AND NOT id(field12) = id(field32) AND NOT id(field12) = id(field33) AND NOT id(field13) = id(field21) AND NOT id(field13) = id(field22) AND NOT id(field13) = id(field23) AND NOT id(field13) = id(field31) AND NOT id(field13) = id(field32) AND NOT id(field13) = id(field33) AND NOT id(field21) = id(field22) AND NOT id(field21) = id(field23) AND NOT id(field21) = id(field31) AND NOT id(field21) = id(field32) AND NOT id(field21) = id(field33) AND NOT id(field22) = id(field23) AND NOT id(field22) = id(field31) AND NOT id(field22) = id(field32) AND NOT id(field22) = id(field33) AND NOT id(field23) = id(field31) AND NOT id(field23) = id(field32) AND NOT id(field23) = id(field33) AND NOT id(field31) = id(field32) AND NOT id(field31) = id(field33) AND NOT id(field32) = id(field33) RETURN id(b_fields_0_field11) AS b_fields_0_field11, id(b_fields_1_field12) AS b_fields_1_field12, id(b_fields_2_field13) AS b_fields_2_field13, id(b_fields_3_field21) AS b_fields_3_field21, id(b_fields_4_field22) AS b_fields_4_field22, id(b_fields_5_field23) AS b_fields_5_field23, id(b_fields_6_field31) AS b_fields_6_field31, id(b_fields_7_field32) AS b_fields_7_field32, id(b_fields_8_field33) AS b_fields_8_field33, id(field11_right_0_field12) AS field11_right_0_field12, id(field11_bottom_1_field21) AS field11_bottom_1_field21, id(field12_right_0_field13) AS field12_right_0_field13, id(field12_bottom_1_field22) AS field12_bottom_1_field22, id(field13_bottom_0_field23) AS field13_bottom_0_field23, id(field21_right_0_field22) AS field21_right_0_field22, id(field21_bottom_1_field31) AS field21_bottom_1_field31, id(field22_right_0_field23) AS field22_right_0_field23, id(field22_bottom_1_field32) AS field22_bottom_1_field32, id(field23_bottom_0_field33) AS field23_bottom_0_field33, id(field31_right_0_field32) AS field31_right_0_field32, id(field32_right_0_field33) AS field32_right_0_field33, id(field33) AS field33 LIMIT 1"><pre class="notranslate"><code class="notranslate">MATCH (b:Board)-[b_fields_0_field11:fields]-&gt;(field11:Field), (b:Board)-[b_fields_1_field12:fields]-&gt;(field12:Field), (b:Board)-[b_fields_2_field13:fields]-&gt;(field13:Field), (b:Board)-[b_fields_3_field21:fields]-&gt;(field21:Field), (b:Board)-[b_fields_4_field22:fields]-&gt;(field22:Field), (b:Board)-[b_fields_5_field23:fields]-&gt;(field23:Field), (b:Board)-[b_fields_6_field31:fields]-&gt;(field31:Field), (b:Board)-[b_fields_7_field32:fields]-&gt;(field32:Field), (b:Board)-[b_fields_8_field33:fields]-&gt;(field33:Field), (field11:Field)-[field11_right_0_field12:right]-&gt;(field12:Field), (field11:Field)-[field11_bottom_1_field21:bottom]-&gt;(field21:Field), (field12:Field)-[field12_right_0_field13:right]-&gt;(field13:Field), (field12:Field)-[field12_bottom_1_field22:bottom]-&gt;(field22:Field), (field13:Field)-[field13_bottom_0_field23:bottom]-&gt;(field23:Field), (field21:Field)-[field21_right_0_field22:right]-&gt;(field22:Field), (field21:Field)-[field21_bottom_1_field31:bottom]-&gt;(field31:Field), (field22:Field)-[field22_right_0_field23:right]-&gt;(field23:Field), (field22:Field)-[field22_bottom_1_field32:bottom]-&gt;(field32:Field), (field23:Field)-[field23_bottom_0_field33:bottom]-&gt;(field33:Field), (field31:Field)-[field31_right_0_field32:right]-&gt;(field32:Field), (field32:Field)-[field32_right_0_field33:right]-&gt;(field33:Field), (field33:Field) WHERE NOT id(field11) = id(field12) AND NOT id(field11) = id(field13) AND NOT id(field11) = id(field21) AND NOT id(field11) = id(field22) AND NOT id(field11) = id(field23) AND NOT id(field11) = id(field31) AND NOT id(field11) = id(field32) AND NOT id(field11) = id(field33) AND NOT id(field12) = id(field13) AND NOT id(field12) = id(field21) AND NOT id(field12) = id(field22) AND NOT id(field12) = id(field23) AND NOT id(field12) = id(field31) AND NOT id(field12) = id(field32) AND NOT id(field12) = id(field33) AND NOT id(field13) = id(field21) AND NOT id(field13) = id(field22) AND NOT id(field13) = id(field23) AND NOT id(field13) = id(field31) AND NOT id(field13) = id(field32) AND NOT id(field13) = id(field33) AND NOT id(field21) = id(field22) AND NOT id(field21) = id(field23) AND NOT id(field21) = id(field31) AND NOT id(field21) = id(field32) AND NOT id(field21) = id(field33) AND NOT id(field22) = id(field23) AND NOT id(field22) = id(field31) AND NOT id(field22) = id(field32) AND NOT id(field22) = id(field33) AND NOT id(field23) = id(field31) AND NOT id(field23) = id(field32) AND NOT id(field23) = id(field33) AND NOT id(field31) = id(field32) AND NOT id(field31) = id(field33) AND NOT id(field32) = id(field33) RETURN id(b_fields_0_field11) AS b_fields_0_field11, id(b_fields_1_field12) AS b_fields_1_field12, id(b_fields_2_field13) AS b_fields_2_field13, id(b_fields_3_field21) AS b_fields_3_field21, id(b_fields_4_field22) AS b_fields_4_field22, id(b_fields_5_field23) AS b_fields_5_field23, id(b_fields_6_field31) AS b_fields_6_field31, id(b_fields_7_field32) AS b_fields_7_field32, id(b_fields_8_field33) AS b_fields_8_field33, id(field11_right_0_field12) AS field11_right_0_field12, id(field11_bottom_1_field21) AS field11_bottom_1_field21, id(field12_right_0_field13) AS field12_right_0_field13, id(field12_bottom_1_field22) AS field12_bottom_1_field22, id(field13_bottom_0_field23) AS field13_bottom_0_field23, id(field21_right_0_field22) AS field21_right_0_field22, id(field21_bottom_1_field31) AS field21_bottom_1_field31, id(field22_right_0_field23) AS field22_right_0_field23, id(field22_bottom_1_field32) AS field22_bottom_1_field32, id(field23_bottom_0_field33) AS field23_bottom_0_field33, id(field31_right_0_field32) AS field31_right_0_field32, id(field32_right_0_field33) AS field32_right_0_field33, id(field33) AS field33 LIMIT 1 </code></pre></div> <p dir="auto">The query returns all 3x3 size sub boards. Hence the expected result in a 4x4 board is 4. Using the LIMIT opertor at the end, we limit the return to 1 sub board, such that the expected result size is 1. But sometimes the database returns no matches. Same behavior when using LIMIT 1, LIMIT 2 or LIMIT 3. Using LIMIT 4 the database return the 4 matches.</p>
<p dir="auto">Neo4j version: 3.5.8 community<br> Operating system: Debian 9<br> API/Driver: Neo4j desktop</p> <p dir="auto">Steps to reproduce<br> Create 1 fulltext index with duplicate labels :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CALL db.index.fulltext.createNodeIndex( &quot;SysDesignationIndex2&quot;, ['toto','tata','toto'], [&quot;sys_designation1&quot;], { analyzer: &quot;french&quot;, eventually_consistent: &quot;true&quot; } )"><pre class="notranslate"><code class="notranslate">CALL db.index.fulltext.createNodeIndex( "SysDesignationIndex2", ['toto','tata','toto'], ["sys_designation1"], { analyzer: "french", eventually_consistent: "true" } ) </code></pre></div> <p dir="auto">Expected behavior<br> The index is created, and I can drop it without a problem</p> <p dir="auto">Actual behavior<br> The index is created, but I can't remove it.</p> <p dir="auto">I get this message when I try to drop it :<br> <code class="notranslate">call db.index.fulltext.drop('SysDesignationIndex2')</code></p> <p dir="auto"><code class="notranslate">Neo.DatabaseError.Transaction.TransactionCommitFailed: Could not apply the transaction to the store after written to log</code></p> <p dir="auto">And into the log I get :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-09-05 14:57:31.281+0000 ERROR [o.n.b.v.r.ErrorReporter] Client triggered an unexpected error [Neo.DatabaseError.Transaction.TransactionStartFailed]: The database has encountered a critical error, and needs to be restarted. Please see database logs for more details., reference 61c1e5d7-0d12-4602-8283-a20cd7804c28. The database has encountered a critical error, and needs to be restarted. Please see database logs for more details. org.neo4j.graphdb.TransactionFailureException: The database has encountered a critical error, and needs to be restarted. Please see database logs for more details. at org.neo4j.graphdb.facade.spi.ClassicCoreSPI.beginTransaction(ClassicCoreSPI.java:193) at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.beginTransactionInternal(GraphDatabaseFacade.java:691) at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.beginTransaction(GraphDatabaseFacade.java:375) at org.neo4j.bolt.v1.runtime.TransactionStateMachineV1SPI.beginTransaction(TransactionStateMachineV1SPI.java:139) at org.neo4j.bolt.v1.runtime.TransactionStateMachineV1SPI.beginTransaction(TransactionStateMachineV1SPI.java:98) at org.neo4j.bolt.v1.runtime.TransactionStateMachine$State$1.execute(TransactionStateMachine.java:293) at org.neo4j.bolt.v1.runtime.TransactionStateMachine$State$1.run(TransactionStateMachine.java:269) at org.neo4j.bolt.v1.runtime.TransactionStateMachine.run(TransactionStateMachine.java:110) at org.neo4j.bolt.v3.runtime.ReadyState.processRunMessage(ReadyState.java:85) at org.neo4j.bolt.v3.runtime.ReadyState.processUnsafe(ReadyState.java:56) at org.neo4j.bolt.v3.runtime.FailSafeBoltStateMachineState.process(FailSafeBoltStateMachineState.java:48) at org.neo4j.bolt.v1.runtime.BoltStateMachineV1.nextState(BoltStateMachineV1.java:144) at org.neo4j.bolt.v1.runtime.BoltStateMachineV1.process(BoltStateMachineV1.java:92) at org.neo4j.bolt.messaging.BoltRequestMessageReader.lambda$doRead$1(BoltRequestMessageReader.java:89) at org.neo4j.bolt.runtime.DefaultBoltConnection.processNextBatch(DefaultBoltConnection.java:191) at org.neo4j.bolt.runtime.DefaultBoltConnection.processNextBatch(DefaultBoltConnection.java:139) at org.neo4j.bolt.runtime.ExecutorBoltScheduler.executeBatch(ExecutorBoltScheduler.java:171) at org.neo4j.bolt.runtime.ExecutorBoltScheduler.lambda$scheduleBatchOrHandleError$2(ExecutorBoltScheduler.java:154) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590) 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: org.neo4j.internal.kernel.api.exceptions.TransactionFailureException: The database has encountered a critical error, and needs to be restarted. Please see database logs for more details. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.neo4j.kernel.internal.DatabaseHealth.assertHealthy(DatabaseHealth.java:61) at org.neo4j.kernel.impl.api.KernelImpl.beginTransaction(KernelImpl.java:88) at org.neo4j.graphdb.facade.spi.ClassicCoreSPI.beginTransaction(ClassicCoreSPI.java:186) ... 21 more Caused by: org.neo4j.kernel.api.exceptions.TransactionApplyKernelException: Failed to apply transaction: Transaction #340 at log position LogPosition{logVersion=0, byteOffset=20807} {started 2019-09-05 14:57:24.896+0000, committed 2019-09-05 14:57:24.905+0000, with 1 commands in this transaction, authored by -1, with master id -1, lock session 138, latest committed transaction id when started was 339, additional header bytes: 15 DA 21 68 9A 33 E2 23} at org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.apply(RecordStorageEngine.java:301) at org.neo4j.kernel.impl.api.TransactionRepresentationCommitProcess.applyToStore(TransactionRepresentationCommitProcess.java:78) at org.neo4j.kernel.impl.api.TransactionRepresentationCommitProcess.commit(TransactionRepresentationCommitProcess.java:51) at org.neo4j.kernel.impl.api.KernelTransactionImplementation.commit(KernelTransactionImplementation.java:716) at org.neo4j.kernel.impl.api.KernelTransactionImplementation.closeTransaction(KernelTransactionImplementation.java:586) at org.neo4j.internal.kernel.api.Transaction.close(Transaction.java:178) at org.neo4j.bolt.v1.runtime.TransactionStateMachine$State.closeTransaction(TransactionStateMachine.java:469) at org.neo4j.bolt.v1.runtime.TransactionStateMachine$State$1.streamResult(TransactionStateMachine.java:329) at org.neo4j.bolt.v1.runtime.TransactionStateMachine.streamResult(TransactionStateMachine.java:128) at org.neo4j.bolt.v3.runtime.StreamingState.processStreamResultMessage(StreamingState.java:40) at org.neo4j.bolt.v3.runtime.AbstractStreamingState.processUnsafe(AbstractStreamingState.java:44) ... 12 more Caused by: java.lang.NullPointerException at org.neo4j.kernel.impl.api.store.SchemaCache$SchemaCacheState.removeSchemaRule(SchemaCache.java:372) at org.neo4j.kernel.impl.api.store.SchemaCache.removeSchemaRule(SchemaCache.java:164) at org.neo4j.kernel.impl.cache.BridgingCacheAccess.removeSchemaRuleFromCache(BridgingCacheAccess.java:51) at org.neo4j.kernel.impl.transaction.command.NeoStoreTransactionApplier.visitSchemaRuleCommand(NeoStoreTransactionApplier.java:183) at org.neo4j.kernel.impl.transaction.command.Command$SchemaRuleCommand.handle(Command.java:647) at org.neo4j.kernel.impl.api.TransactionApplierFacade.visit(TransactionApplierFacade.java:61) at org.neo4j.kernel.impl.api.TransactionApplierFacade.visit(TransactionApplierFacade.java:35) at org.neo4j.kernel.impl.transaction.log.PhysicalTransactionRepresentation.accept(PhysicalTransactionRepresentation.java:70) at org.neo4j.kernel.impl.api.TransactionToApply.accept(TransactionToApply.java:130) at org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.apply(RecordStorageEngine.java:294) ... 22 more"><pre class="notranslate"><code class="notranslate">2019-09-05 14:57:31.281+0000 ERROR [o.n.b.v.r.ErrorReporter] Client triggered an unexpected error [Neo.DatabaseError.Transaction.TransactionStartFailed]: The database has encountered a critical error, and needs to be restarted. Please see database logs for more details., reference 61c1e5d7-0d12-4602-8283-a20cd7804c28. The database has encountered a critical error, and needs to be restarted. Please see database logs for more details. org.neo4j.graphdb.TransactionFailureException: The database has encountered a critical error, and needs to be restarted. Please see database logs for more details. at org.neo4j.graphdb.facade.spi.ClassicCoreSPI.beginTransaction(ClassicCoreSPI.java:193) at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.beginTransactionInternal(GraphDatabaseFacade.java:691) at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.beginTransaction(GraphDatabaseFacade.java:375) at org.neo4j.bolt.v1.runtime.TransactionStateMachineV1SPI.beginTransaction(TransactionStateMachineV1SPI.java:139) at org.neo4j.bolt.v1.runtime.TransactionStateMachineV1SPI.beginTransaction(TransactionStateMachineV1SPI.java:98) at org.neo4j.bolt.v1.runtime.TransactionStateMachine$State$1.execute(TransactionStateMachine.java:293) at org.neo4j.bolt.v1.runtime.TransactionStateMachine$State$1.run(TransactionStateMachine.java:269) at org.neo4j.bolt.v1.runtime.TransactionStateMachine.run(TransactionStateMachine.java:110) at org.neo4j.bolt.v3.runtime.ReadyState.processRunMessage(ReadyState.java:85) at org.neo4j.bolt.v3.runtime.ReadyState.processUnsafe(ReadyState.java:56) at org.neo4j.bolt.v3.runtime.FailSafeBoltStateMachineState.process(FailSafeBoltStateMachineState.java:48) at org.neo4j.bolt.v1.runtime.BoltStateMachineV1.nextState(BoltStateMachineV1.java:144) at org.neo4j.bolt.v1.runtime.BoltStateMachineV1.process(BoltStateMachineV1.java:92) at org.neo4j.bolt.messaging.BoltRequestMessageReader.lambda$doRead$1(BoltRequestMessageReader.java:89) at org.neo4j.bolt.runtime.DefaultBoltConnection.processNextBatch(DefaultBoltConnection.java:191) at org.neo4j.bolt.runtime.DefaultBoltConnection.processNextBatch(DefaultBoltConnection.java:139) at org.neo4j.bolt.runtime.ExecutorBoltScheduler.executeBatch(ExecutorBoltScheduler.java:171) at org.neo4j.bolt.runtime.ExecutorBoltScheduler.lambda$scheduleBatchOrHandleError$2(ExecutorBoltScheduler.java:154) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590) 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: org.neo4j.internal.kernel.api.exceptions.TransactionFailureException: The database has encountered a critical error, and needs to be restarted. Please see database logs for more details. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.neo4j.kernel.internal.DatabaseHealth.assertHealthy(DatabaseHealth.java:61) at org.neo4j.kernel.impl.api.KernelImpl.beginTransaction(KernelImpl.java:88) at org.neo4j.graphdb.facade.spi.ClassicCoreSPI.beginTransaction(ClassicCoreSPI.java:186) ... 21 more Caused by: org.neo4j.kernel.api.exceptions.TransactionApplyKernelException: Failed to apply transaction: Transaction #340 at log position LogPosition{logVersion=0, byteOffset=20807} {started 2019-09-05 14:57:24.896+0000, committed 2019-09-05 14:57:24.905+0000, with 1 commands in this transaction, authored by -1, with master id -1, lock session 138, latest committed transaction id when started was 339, additional header bytes: 15 DA 21 68 9A 33 E2 23} at org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.apply(RecordStorageEngine.java:301) at org.neo4j.kernel.impl.api.TransactionRepresentationCommitProcess.applyToStore(TransactionRepresentationCommitProcess.java:78) at org.neo4j.kernel.impl.api.TransactionRepresentationCommitProcess.commit(TransactionRepresentationCommitProcess.java:51) at org.neo4j.kernel.impl.api.KernelTransactionImplementation.commit(KernelTransactionImplementation.java:716) at org.neo4j.kernel.impl.api.KernelTransactionImplementation.closeTransaction(KernelTransactionImplementation.java:586) at org.neo4j.internal.kernel.api.Transaction.close(Transaction.java:178) at org.neo4j.bolt.v1.runtime.TransactionStateMachine$State.closeTransaction(TransactionStateMachine.java:469) at org.neo4j.bolt.v1.runtime.TransactionStateMachine$State$1.streamResult(TransactionStateMachine.java:329) at org.neo4j.bolt.v1.runtime.TransactionStateMachine.streamResult(TransactionStateMachine.java:128) at org.neo4j.bolt.v3.runtime.StreamingState.processStreamResultMessage(StreamingState.java:40) at org.neo4j.bolt.v3.runtime.AbstractStreamingState.processUnsafe(AbstractStreamingState.java:44) ... 12 more Caused by: java.lang.NullPointerException at org.neo4j.kernel.impl.api.store.SchemaCache$SchemaCacheState.removeSchemaRule(SchemaCache.java:372) at org.neo4j.kernel.impl.api.store.SchemaCache.removeSchemaRule(SchemaCache.java:164) at org.neo4j.kernel.impl.cache.BridgingCacheAccess.removeSchemaRuleFromCache(BridgingCacheAccess.java:51) at org.neo4j.kernel.impl.transaction.command.NeoStoreTransactionApplier.visitSchemaRuleCommand(NeoStoreTransactionApplier.java:183) at org.neo4j.kernel.impl.transaction.command.Command$SchemaRuleCommand.handle(Command.java:647) at org.neo4j.kernel.impl.api.TransactionApplierFacade.visit(TransactionApplierFacade.java:61) at org.neo4j.kernel.impl.api.TransactionApplierFacade.visit(TransactionApplierFacade.java:35) at org.neo4j.kernel.impl.transaction.log.PhysicalTransactionRepresentation.accept(PhysicalTransactionRepresentation.java:70) at org.neo4j.kernel.impl.api.TransactionToApply.accept(TransactionToApply.java:130) at org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.apply(RecordStorageEngine.java:294) ... 22 more </code></pre></div> <p dir="auto">And when I try to query the database I get :<br> <code class="notranslate">call db.indexes()</code></p> <p dir="auto"><code class="notranslate">Neo.DatabaseError.Transaction.TransactionStartFailed: The database has encountered a critical error, and needs to be restarted. Please see database logs for more details.</code></p> <p dir="auto">We know it makes no sense to have duplicate labels into an index, but it can happen does something wrong.</p> <p dir="auto">To avoid this issue, We have added checks into the code to prevent this.</p> <p dir="auto">best regards</p>
0
<p dir="auto">I have successfully installed Ansible 1.8.1 and 1.9 without difficulty. When I attempt to install Ansible 2.0 on linux, I get the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lrmk225:~/shared-webstorage/storage/hdfssvc/playbooks/build # ansible-galaxy install -r requirements.txt -f ERROR! Could not open readme: [Errno 2] No such file or directory: '/usr/local/lib64/python2.6/site-packages/ansible-2.0.0-py2.6.egg/ansible/galaxy/data/readme'"><pre class="notranslate"><code class="notranslate">lrmk225:~/shared-webstorage/storage/hdfssvc/playbooks/build # ansible-galaxy install -r requirements.txt -f ERROR! Could not open readme: [Errno 2] No such file or directory: '/usr/local/lib64/python2.6/site-packages/ansible-2.0.0-py2.6.egg/ansible/galaxy/data/readme' </code></pre></div> <p dir="auto">I tried creating an empty readme in this location, but that just shifts the error to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lrmk225:~/shared-webstorage/storage/hdfssvc/playbooks/build # ansible-galaxy install -r requirements.txt -f ERROR! Could not open metadata_template.j2: [Errno 2] No such file or directory: '/usr/local/lib64/python2.6/site-packages/ansible-2.0.0-py2.6.egg/ansible/galaxy/data/metadata_template.j2'"><pre class="notranslate"><code class="notranslate">lrmk225:~/shared-webstorage/storage/hdfssvc/playbooks/build # ansible-galaxy install -r requirements.txt -f ERROR! Could not open metadata_template.j2: [Errno 2] No such file or directory: '/usr/local/lib64/python2.6/site-packages/ansible-2.0.0-py2.6.egg/ansible/galaxy/data/metadata_template.j2' </code></pre></div> <p dir="auto">Is this a known issue? This was reported to me by another individual in my organization, and I duplicated it on a different system.</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">include_role</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.14 (default, Sep 23 2017, 22:06:14) [GCC 7.2.0]"><pre lang="ansible" class="notranslate"><code class="notranslate"> config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.14 (default, Sep 23 2017, 22:06:14) [GCC 7.2.0] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">forks=16 (the rest is unchanged)</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 17.10</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When role is included inside role with with_items loop it uses variables from one host as variables for other host. (See example below).</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">cat inventory:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[all] host1 ansible_connection=local host2 ansible_connection=local"><pre class="notranslate"><code class="notranslate">[all] host1 ansible_connection=local host2 ansible_connection=local </code></pre></div> <p dir="auto">cat host_vars/host1.yaml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- foo_list: - host1_only - host1_only_n2"><pre class="notranslate"><code class="notranslate">--- foo_list: - host1_only - host1_only_n2 </code></pre></div> <p dir="auto">cat host_vars/host2.yaml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- foo_list: - host2_only - host2_only_n2"><pre class="notranslate"><code class="notranslate">--- foo_list: - host2_only - host2_only_n2 </code></pre></div> <p dir="auto">cat all.yaml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- - hosts: all gather_facts: no roles: - role1"><pre class="notranslate"><code class="notranslate">--- - hosts: all gather_facts: no roles: - role1 </code></pre></div> <p dir="auto">cat roles/role1/tasks/main.yml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- # tasks file for role1 - name: Test include_role: name: role2 vars: foo: &quot;{{item}}&quot; with_items: '{{foo_list}}'"><pre class="notranslate"><code class="notranslate">--- # tasks file for role1 - name: Test include_role: name: role2 vars: foo: "{{item}}" with_items: '{{foo_list}}' </code></pre></div> <p dir="auto">cat roles/role2/tasks/main.yml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- # tasks file for role2 - debug: msg=&quot;{{foo}}&quot;"><pre class="notranslate"><code class="notranslate">--- # tasks file for role2 - debug: msg="{{foo}}" </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] ******************************************************************************************************************************************************************************************************************************************************************************* TASK [role1 : Test] ********************************************************************************************************************************************************************************************************************************************************************** TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host1] =&gt; { &quot;msg&quot;: &quot;host1_only&quot; } ok: [host1] =&gt; { &quot;msg&quot;: &quot;host1_only_n2&quot; } TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host2] =&gt; { &quot;msg&quot;: &quot;host2_only&quot; } ok: [host2] =&gt; { &quot;msg&quot;: &quot;host2_only_n2&quot; }"><pre class="notranslate"><code class="notranslate">PLAY [all] ******************************************************************************************************************************************************************************************************************************************************************************* TASK [role1 : Test] ********************************************************************************************************************************************************************************************************************************************************************** TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host1] =&gt; { "msg": "host1_only" } ok: [host1] =&gt; { "msg": "host1_only_n2" } TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host2] =&gt; { "msg": "host2_only" } ok: [host2] =&gt; { "msg": "host2_only_n2" } </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] ******************************************************************************************************************************************************************************************************************************************************************************* TASK [role1 : Test] ********************************************************************************************************************************************************************************************************************************************************************** TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host1] =&gt; { &quot;msg&quot;: &quot;host1_only&quot; } ok: [host2] =&gt; { &quot;msg&quot;: &quot;host1_only&quot; } TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host1] =&gt; { &quot;msg&quot;: &quot;host1_only_n2&quot; } ok: [host2] =&gt; { &quot;msg&quot;: &quot;host1_only_n2&quot; } TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host1] =&gt; { &quot;msg&quot;: &quot;host2_only&quot; } ok: [host2] =&gt; { &quot;msg&quot;: &quot;host2_only&quot; } TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host1] =&gt; { &quot;msg&quot;: &quot;host2_only_n2&quot; } ok: [host2] =&gt; { &quot;msg&quot;: &quot;host2_only_n2&quot; } "><pre class="notranslate"><code class="notranslate">PLAY [all] ******************************************************************************************************************************************************************************************************************************************************************************* TASK [role1 : Test] ********************************************************************************************************************************************************************************************************************************************************************** TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host1] =&gt; { "msg": "host1_only" } ok: [host2] =&gt; { "msg": "host1_only" } TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host1] =&gt; { "msg": "host1_only_n2" } ok: [host2] =&gt; { "msg": "host1_only_n2" } TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host1] =&gt; { "msg": "host2_only" } ok: [host2] =&gt; { "msg": "host2_only" } TASK [role2 : debug] ********************************************************************************************************************************************************************************************************************************************************************* ok: [host1] =&gt; { "msg": "host2_only_n2" } ok: [host2] =&gt; { "msg": "host2_only_n2" } </code></pre></div> <h4 dir="auto">Conclusion</h4> <p dir="auto">host2 uses variables of host1, and host1 uses variables for host2. This causes madness.</p>
0
<p dir="auto">I have noticed that a bound CssClass value is not updated after router navigation. The old value is not replaced by the new value during data binding. Instead it leaves the existing one behind and adds the new one next to it when it's rebound.</p> <p dir="auto">I am updating the class via a function which works ok on click, but for some reason the class is not replaced when navigating using the new router.</p> <p dir="auto">Element:<br> <code class="notranslate">&lt;a (click)="selectComponent('grid')" [class]="getActiveClass('grid')" class="list-group-item"&gt;Link&lt;/a&gt;</code><br> //Class is updated correctly when initiated via click, but not via router navigation.</p> <p dir="auto">You can see the behavior here: <a href="http://www.syntaxsuccess.com/angular-2-samples" rel="nofollow">http://www.syntaxsuccess.com/angular-2-samples</a></p> <p dir="auto">Repro steps:</p> <p dir="auto">Successful:<br> Click the left nav and see the active link update correctly (bootstrap blue active clas).</p> <p dir="auto">Failure:<br> Select any of the left nav links other than the first element<br> Click the 'About' link in the top navigation<br> Click the 'Demo' link in the top navigation<br> Observe that there are two highlighted links in the left nav.<br> After debugging it I noticed that the correct functions fire, but the class property is not overwritten by the binding.</p> <p dir="auto">Source code can be found here: <a href="https://github.com/thelgevold/angular-2-samples">https://github.com/thelgevold/angular-2-samples</a></p>
<p dir="auto">Smallish reproduction case:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component(selector: 'example') @View( directives: const [NgFor, CSSClass], template: ''' &lt;button (click)=&quot;increment()&quot;&gt;Increment&lt;/button&gt; &lt;div *ng-for=&quot;var item of items&quot; [class]=&quot;item&quot;&gt; &lt;div [class]=&quot;item&quot;&gt; {{item}} &lt;/div&gt; &lt;/div&gt; ''') class ExampleComponent { var next = 0; var items = ['0']; void increment() { items = ['${++next}']; } }"><pre class="notranslate"><span class="pl-k">@Component</span>(selector<span class="pl-k">:</span> <span class="pl-s">'example'</span>) <span class="pl-k">@View</span>( directives<span class="pl-k">:</span> <span class="pl-k">const</span> [<span class="pl-c1">NgFor</span>, <span class="pl-c1">CSSClass</span>], template<span class="pl-k">:</span> <span class="pl-s">'''</span> <span class="pl-s">&lt;button (click)="increment()"&gt;Increment&lt;/button&gt;</span> <span class="pl-s">&lt;div *ng-for="var item of items" [class]="item"&gt;</span> <span class="pl-s"> &lt;div [class]="item"&gt;</span> <span class="pl-s"> {{item}}</span> <span class="pl-s"> &lt;/div&gt;</span> <span class="pl-s">&lt;/div&gt;</span> <span class="pl-s">'''</span>) <span class="pl-k">class</span> <span class="pl-c1">ExampleComponent</span> { <span class="pl-k">var</span> next <span class="pl-k">=</span> <span class="pl-c1">0</span>; <span class="pl-k">var</span> items <span class="pl-k">=</span> [<span class="pl-s">'0'</span>]; <span class="pl-k">void</span> <span class="pl-en">increment</span>() { items <span class="pl-k">=</span> [<span class="pl-s">'<span class="pl-s">${++<span class="pl-v">next</span>}</span>'</span>]; } }</pre></div> <p dir="auto">What happens in this example is that if you click the "Increment" button 10 times, the resulting DOM is:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div *ng-for=&quot;var item of items&quot; [class]=&quot;item&quot; class=&quot;ng-binding 0 1 2 3 4 5 6 7 8 9 10&quot;&gt; &lt;div [class]=&quot;item&quot; class=&quot;ng-binding 0 1 2 3 4 5 6 7 8 9 10&quot;&gt; 10 &lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">*ng-for</span>="<span class="pl-s">var item of items</span>" <span class="pl-c1">[class]</span>="<span class="pl-s">item</span>" <span class="pl-c1">class</span>="<span class="pl-s">ng-binding 0 1 2 3 4 5 6 7 8 9 10</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">[class]</span>="<span class="pl-s">item</span>" <span class="pl-c1">class</span>="<span class="pl-s">ng-binding 0 1 2 3 4 5 6 7 8 9 10</span>"<span class="pl-kos">&gt;</span> 10 <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Instead, I'd expect each div's class to contain only 10, instead of all the numbers up to 10.</p>
1
<p dir="auto">There doesn't appear to be a way to configure <code class="notranslate">deno fmt</code>, and its <code class="notranslate">--help</code> output mentions nothing about config files (apart from <code class="notranslate">tsconfig.json</code>).</p> <p dir="auto">I ran <code class="notranslate">deno fmt .</code> from a directory with a <code class="notranslate">.prettierrc.json</code> file containing:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;tabWidth&quot;: 4, &quot;useTabs&quot;: true, &quot;semi&quot;: true, &quot;singleQuote&quot;: false, &quot;trailingComma&quot;: &quot;es5&quot;, &quot;bracketSpacing&quot;: false, &quot;arrowParens&quot;: &quot;avoid&quot; }"><pre class="notranslate">{ <span class="pl-ent">"tabWidth"</span>: <span class="pl-c1">4</span>, <span class="pl-ent">"useTabs"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"semi"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"singleQuote"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"trailingComma"</span>: <span class="pl-s"><span class="pl-pds">"</span>es5<span class="pl-pds">"</span></span>, <span class="pl-ent">"bracketSpacing"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"arrowParens"</span>: <span class="pl-s"><span class="pl-pds">"</span>avoid<span class="pl-pds">"</span></span> }</pre></div> <p dir="auto">Which <code class="notranslate">deno</code> completely ignored.</p>
<p dir="auto">It would be great to have a way to set <a href="https://prettier.io/docs/en/options.html" rel="nofollow">prettier options</a> when using <code class="notranslate">deno fmt</code>. Up until a recent release (I'm guessing 0.18, but didn't notice till 0.19) I was able to run <code class="notranslate">deno fmt files -- --prettier-option-1 true</code>, though this was still a less than ideal process. My prefered method would be to have a <a href="https://prettier.io/docs/en/configuration.html" rel="nofollow">prettier config file</a> and for deno to either pick it up automatically or allow a flag to pass in a path to said file.</p>
1
<p dir="auto">Currently we have "GCEPersistentDisk", and this name is exposed via the API. I am working on adding support for AWS EBS, which is very similar to GCEPersistentDisk.</p> <p dir="auto">Should I add another type AWSPersistentDisk, or should we try to make GCEPersistentDisk work for any PD/EBS/Cinder style cloud-block device? (And presumably rename GCEPersistentDisk to CloudPersistentDisk or something similar)</p> <p dir="auto">On EC2, EBS volumes are bound to a specific AZ, so I think we'll likely have a "cloud location" specifier even if we have AWSPersistentDisk (cloudLocation: us-west-2b). I'm thinking if we're going to do that, we might as well have "cloudLocation: aws/us-west-2b", in which case there seems less reason to have the different types.</p> <p dir="auto">My personal preference would be to have one PersistentDisk type for all the clouds, to avoid code duplication; it also feels like a simpler API to consume.</p>
<h3 dir="auto">Bug Report</h3> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): v1.4.6, v1.5.0-beta.2</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: OpenStack</li> <li><strong>OS</strong> (e.g. from /etc/os-release): Centos7</li> </ul> <p dir="auto"><strong>What happened</strong>: When kubernetes relocates a pod that has a persistent volume from cinder, the pod will never start because the volume cannot be attached as it is already attached to another node.</p> <p dir="auto"><strong>What you expected to happen</strong>: Kubernetes should detach the volume from old node and attach it to new node and then start the pod.</p> <p dir="auto"><strong>How to reproduce it</strong>: Have 2 nodes in the same AZ. Create a pod with a cinder volume. Shut down the node where the pod is running. Pod relocates to another node but fails to start as volume never detaches from the original node.</p> <p dir="auto"><strong>Anything else do we need to know</strong>: Pod relocation can happen for failed nodes or if a pod is deleted on a perfectly functional node. Thus, detach should occur if required, no matter what state the original node is in. Attach is handled in: pkg/cloudprovider/providers/openstack/openstack_volumes.go. Volume detach is never attempted if disk is attached to a different compute, leading to an infinite failure loop (even if failed node recovers):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if len(disk.Attachments) &gt; 0 &amp;&amp; disk.Attachments[0][&quot;server_id&quot;] != nil { if instanceID == disk.Attachments[0][&quot;server_id&quot;] { glog.V(4).Infof(&quot;Disk: %q is already attached to compute: %q&quot;, diskName, instanceID) return disk.ID, nil } else { errMsg := fmt.Sprintf(&quot;Disk %q is attached to a different compute: %q, should be detached before proceeding&quot;, diskName, disk.Attachments[0][&quot;server_id&quot;]) glog.Errorf(errMsg) return &quot;&quot;, errors.New(errMsg) } }"><pre class="notranslate"><code class="notranslate">if len(disk.Attachments) &gt; 0 &amp;&amp; disk.Attachments[0]["server_id"] != nil { if instanceID == disk.Attachments[0]["server_id"] { glog.V(4).Infof("Disk: %q is already attached to compute: %q", diskName, instanceID) return disk.ID, nil } else { errMsg := fmt.Sprintf("Disk %q is attached to a different compute: %q, should be detached before proceeding", diskName, disk.Attachments[0]["server_id"]) glog.Errorf(errMsg) return "", errors.New(errMsg) } } </code></pre></div>
0
<p dir="auto">Traceback (most recent call last):<br> File "C:\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper<br> return importlib.import_module(mname)<br> File "C:\python36\lib\importlib_<em>init</em>_.py", line 126, in import_module<br> return _bootstrap._gcd_import(name[level:], package, level)<br> File "", line 978, in _gcd_import<br> File "", line 961, in _find_and_load<br> File "", line 950, in _find_and_load_unlocked<br> File "", line 648, in _load_unlocked<br> File "", line 560, in module_from_spec<br> File "", line 922, in create_module<br> File "", line 205, in _call_with_frames_removed<br> ImportError: DLL load failed: The specified module could not be found.</p> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File "C:\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "C:\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "C:\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper<br> return importlib.import_module('<em>pywrap_tensorflow_internal')<br> File "C:\python36\lib\importlib_<em>init</em></em>.py", line 126, in import_module<br> return _bootstrap._gcd_import(name[level:], package, level)<br> ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'</p> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File "H:/tst.py", line 1, in <br> import tensorflow<br> File "C:\python36\lib\site-packages\tensorflow_<em>init</em>_.py", line 24, in <br> from tensorflow.python import *<br> File "C:\python36\lib\site-packages\tensorflow\python_<em>init</em>_.py", line 49, in <br> from tensorflow.python import pywrap_tensorflow<br> File "C:\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 52, in <br> raise ImportError(msg)<br> ImportError: Traceback (most recent call last):<br> File "C:\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper<br> return importlib.import_module(mname)<br> File "C:\python36\lib\importlib_<em>init</em>_.py", line 126, in import_module<br> return _bootstrap._gcd_import(name[level:], package, level)<br> File "", line 978, in _gcd_import<br> File "", line 961, in _find_and_load<br> File "", line 950, in _find_and_load_unlocked<br> File "", line 648, in _load_unlocked<br> File "", line 560, in module_from_spec<br> File "", line 922, in create_module<br> File "", line 205, in _call_with_frames_removed<br> ImportError: DLL load failed: The specified module could not be found.</p> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File "C:\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "C:\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "C:\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper<br> return importlib.import_module('<em>pywrap_tensorflow_internal')<br> File "C:\python36\lib\importlib_<em>init</em></em>.py", line 126, in import_module<br> return _bootstrap._gcd_import(name[level:], package, level)<br> ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'</p> <p dir="auto">Failed to load the native TensorFlow runtime.</p> <p dir="auto">See <a href="https://www.tensorflow.org/install/install_sources#common_installation_problems" rel="nofollow">https://www.tensorflow.org/install/install_sources#common_installation_problems</a></p>
<p dir="auto">Hi - Thanks for all your hard work on this! - I've been having a problem getting Tensorflow-GPU to work on my Windows 10 notebook with a GTX 1080. I've tried to make sure all the paths are correct, etc. and have followed all the tips I can find.</p> <p dir="auto">I ran the tensorflow_self_check.py script and got the following result:</p> <p dir="auto">PS D:\Users\Frank Davidson\Documents\python&gt; python .\tensorflow_self_check.py<br> ERROR: Failed to import the TensorFlow module.</p> <ul dir="auto"> <li> <p dir="auto">Python version is 3.6.</p> </li> <li> <p dir="auto">TensorFlow is installed at: C:\Program Files\Python36\lib\site-packages\tensorflow</p> </li> <li> <p dir="auto">All required DLLs appear to be present. Please open an issue on the<br> TensorFlow GitHub page: <a href="https://github.com/tensorflow/tensorflow/issues">https://github.com/tensorflow/tensorflow/issues</a><br> PS D:\Users\Frank Davidson\Documents\python&gt;</p> </li> </ul> <p dir="auto">Here is the full stack trace when I try to import tensorflow:</p> <p dir="auto">PS C:\Users\Frank Davidson&gt; python<br> Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32<br> Type "help", "copyright", "credits" or "license" for more information.</p> <blockquote> <blockquote> <blockquote> <p dir="auto">import tensorflow as tf<br> Traceback (most recent call last):<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_i<br> mport_helper<br> return importlib.import_module(mname)<br> File "C:\Program Files\Python36\lib\importlib_<em>init</em>_.py", line 126, in import_module<br> return _bootstrap._gcd_import(name[level:], package, level)<br> File "", line 978, in _gcd_import<br> File "", line 961, in _find_and_load<br> File "", line 950, in _find_and_load_unlocked<br> File "", line 648, in _load_unlocked<br> File "", line 560, in module_from_spec<br> File "", line 922, in create_module<br> File "", line 205, in _call_with_frames_removed<br> ImportError: DLL load failed: The specified module could not be found.</p> </blockquote> </blockquote> </blockquote> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_i<br> mport_helper<br> return importlib.import_module('<em>pywrap_tensorflow_internal')<br> File "C:\Program Files\Python36\lib\importlib_<em>init</em></em>.py", line 126, in import_module<br> return _bootstrap._gcd_import(name[level:], package, level)<br> ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'</p> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File "", line 1, in <br> File "C:\Program Files\Python36\lib\site-packages\tensorflow_<em>init</em>_.py", line 24, in <br> from tensorflow.python import *<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python_<em>init</em>_.py", line 49, in <br> from tensorflow.python import pywrap_tensorflow<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 52, in <br> raise ImportError(msg)<br> ImportError: Traceback (most recent call last):<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_i<br> mport_helper<br> return importlib.import_module(mname)<br> File "C:\Program Files\Python36\lib\importlib_<em>init</em>_.py", line 126, in import_module<br> return _bootstrap._gcd_import(name[level:], package, level)<br> File "", line 978, in _gcd_import<br> File "", line 961, in _find_and_load<br> File "", line 950, in _find_and_load_unlocked<br> File "", line 648, in _load_unlocked<br> File "", line 560, in module_from_spec<br> File "", line 922, in create_module<br> File "", line 205, in _call_with_frames_removed<br> ImportError: DLL load failed: The specified module could not be found.</p> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_i<br> mport_helper<br> return importlib.import_module('<em>pywrap_tensorflow_internal')<br> File "C:\Program Files\Python36\lib\importlib_<em>init</em></em>.py", line 126, in import_module<br> return _bootstrap._gcd_import(name[level:], package, level)<br> ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'</p> <p dir="auto">Failed to load the native TensorFlow runtime.</p> <p dir="auto">See <a href="https://www.tensorflow.org/install/install_sources#common_installation_problems" rel="nofollow">https://www.tensorflow.org/install/install_sources#common_installation_problems</a></p> <p dir="auto">for some common reasons and solutions. Include the entire stack trace<br> above this error message when asking for help.</p> <p dir="auto">Any help is greatly appreciated!</p> <p dir="auto">Frank</p>
1
<p dir="auto">Stolen from Python but with some differences:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function jabberwock() &quot;&quot;&quot; 'Twas brillig, and the slithy toves Did gyre and gimble in the wabe; All mimsy were the borogoves, And the mome raths outgrabe. &quot;&quot;&quot; end julia&gt; print(jabberwock()) 'Twas brillig, and the slithy toves Did gyre and gimble in the wabe; All mimsy were the borogoves, And the mome raths outgrabe. "><pre class="notranslate"><code class="notranslate">function jabberwock() """ 'Twas brillig, and the slithy toves Did gyre and gimble in the wabe; All mimsy were the borogoves, And the mome raths outgrabe. """ end julia&gt; print(jabberwock()) 'Twas brillig, and the slithy toves Did gyre and gimble in the wabe; All mimsy were the borogoves, And the mome raths outgrabe. </code></pre></div> <p dir="auto">The point of the <code class="notranslate">"""</code> construct is to make it easy to embed snippets of text or code in a readable, nice way inside of Julia code. To that end, it is similar to here documents as well as Python's multiline strings, which use the same delimiters. However, a couple of semantics make these easier to use:</p> <ul dir="auto"> <li>If the initial <code class="notranslate">"""</code> is on a line followed only by whitespace, that whitespace (including newline) will be stripped.</li> <li>Lines following the opening <code class="notranslate">"""</code> token must begin with the same indentation sequence (identical whitespace characters).</li> <li>The common indentation will be stripped from each follow-up line.</li> </ul> <p dir="auto">After these transformations are applied, all normal string interpretation is performed. Moreover, you can prefix <code class="notranslate">"""</code> with an identifier as you can with <code class="notranslate">"</code> strings to invoke macro-based custom-string forms. Thus, a <code class="notranslate">Q"""</code> multiline string has no interpolation performed and a <code class="notranslate">r"""</code> is a multiline regex literal (should maybe automatically switch on some flags).</p>
<p dir="auto">Precompile files are currently stored only based on the UUID of the package.<br> So if you change your project it is likely that you will have to recompile everything. And then again when you swap back etc.<br> This will be very annoying for people trying to use multiple packages and people will likely just use one mega project like before.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="299544081" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/26165" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/26165/hovercard" href="https://github.com/JuliaLang/julia/pull/26165">#26165</a> also removed any possibility for users to change the precompile path so there is no way to workaround this right now.</p> <p dir="auto">We should be smarter how we save precompile file to reduce the amount of recompilation needed. A very simple system is to just use one precompile directory for each project but that might be a bit wasteful since it is theoretically possible to share compilation files between projects.</p>
0
<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. There is a related issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="249896357" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/2769" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/2769/hovercard" href="https://github.com/vercel/next.js/issues/2769">#2769</a>, but it's slightly different and what was described there seems to be working now.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">When I provide an absolute <code class="notranslate">distDir</code>, it works.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Because <code class="notranslate">path.join(dir, config.distDir)</code> is used everywhere, the path doesn't make sense and mkdirp fails (I guess other parts of Next.js would fail too if not for mkdirp failing first).</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Create a custom server with the following configuration:</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const app = next({ dev, dir: __dirname, conf: { distDir: path.resolve('.foobar'), }, });"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-en">next</span><span class="pl-kos">(</span><span class="pl-kos">{</span> dev<span class="pl-kos">,</span> <span class="pl-c1">dir</span>: <span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-c1">conf</span>: <span class="pl-kos">{</span> <span class="pl-c1">distDir</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s">'.foobar'</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> <ol start="2" dir="auto"> <li>Launch this server.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I'm creating a tool that uses Next.js internally. As such, I'd like to keep stuff like <code class="notranslate">pages/</code> inside my package while putting the dist dir inside the project.</p> <p dir="auto">Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="249896357" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/2769" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/2769/hovercard" href="https://github.com/vercel/next.js/issues/2769">#2769</a> describes a situation where paths like <code class="notranslate">'../.foobar'</code> not working, but it doesn't seem to be the case now. That's why I can use the workaround of <code class="notranslate">path.relative(dir, path.resolve('.foobar'))</code>. But if <code class="notranslate">path.resolve(dir, config.distDir)</code> was used instead of <code class="notranslate">path.join(dir, config.distDir)</code>, other people could avoid this pitfall in the future.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>6.0.2</td> </tr> <tr> <td>node</td> <td>8.9.3</td> </tr> <tr> <td>OS</td> <td>Win 10</td> </tr> </tbody> </table>
<p dir="auto">I'm just going to leave this here, because it's a lot to type out, and it's quite possible it's user error. But seems like something is not working correctly with the imperative routing api / prefetch / client-side rendering:</p> <p dir="auto"><a href="https://stackoverflow.com/questions/47701791/strange-imperative-onscroll-routing-behavior-in-next-js-only-rendering-on-serve" rel="nofollow">https://stackoverflow.com/questions/47701791/strange-imperative-onscroll-routing-behavior-in-next-js-only-rendering-on-serve</a></p> <p dir="auto">thanks for taking a look :)</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul>
0
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.7 (devel <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/189824dd76eb94574972fe54b390634854b2592d/hovercard" href="https://github.com/ansible/ansible/commit/189824dd76eb94574972fe54b390634854b2592d"><tt>189824d</tt></a>) last updated 2014/07/30 17:24:01 (GMT +200)</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Ubuntu 12.04 LTS</p> <h5 dir="auto">Summary:</h5> <p dir="auto">The Mount Module is not idempotent if you are using an Bindmount with state=mounted.<br> It mounts it on every run</p> <h5 dir="auto">Steps To Reproduce:</h5> <pre class="notranslate">- name: BIND MOUNT | /usr/local/jdk1.7 -&gt; /usr/lib/jvm/java-7-oracle mount: name=/usr/local/jdk1.7 src='/usr/lib/jvm/java-7-oracle' fstype=none opts=bind state=mounted </pre> <p dir="auto">(No, i wont use Symlinks for this)</p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">Correct checking of the Mount Status and just execute it once if neccessary</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">3x Run, 3x "Changed" -&gt;<br> $ mount<br> /usr/lib/jvm/java-7-oracle on /usr/local/jdk1.7 type none (rw,bind)<br> /usr/lib/jvm/java-7-oracle on /usr/local/jdk1.7 type none (rw,bind)<br> /usr/lib/jvm/java-7-oracle on /usr/local/jdk1.7 type none (rw,bind)</p>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.5.4</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Ansible is running from OS/X Mavericks 10.9.2<br> I am managing an Ubuntu 12.04 instance</p> <h5 dir="auto">Summary:</h5> <p dir="auto">When using the mount module and specifying an option of "bind", the filesystem is mounted over and over. This has been tracked down to what appears to be Python's os.path.ismount(path) returning false for any mounts with the bind option applied.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Create a mount using the mount module with the following options:</p> <ul dir="auto"> <li>fstype: none</li> <li>opts: rw,bind</li> <li>state: mounted</li> </ul> <h5 dir="auto">Expected Results:</h5> <p dir="auto">I expect to see the mount point show up in /etc/fstab, the mount point to show when the command "mount" is ran in the terminal, and for the Ansible task to not show as "changed" for each run when no change has occurred.</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">The mount point shows up properly in /etc/fstab, but the mount point is mounted each time the Ansible task is ran, causing it to be mounted over and over on the system as well as for the Ansible task to show the status of "changed".</p>
1
<p dir="auto">When passing <code class="notranslate">whiten=True</code> to <code class="notranslate">PCA()</code>, component-wise variances are not 'unit' as is claimed.</p> <p dir="auto">Unless I'm missing something, this is a regression presumably caused by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="235038568" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/9105" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/9105/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/9105">#9105</a> (which appeared in v0.19)?</p> <p dir="auto">Example:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.datasets import make_classification from sklearn.decomposition import PCA X, _ = make_classification(n_samples=1000, n_features=4, n_informative=3, n_redundant=0, n_repeated=0, n_classes=2, random_state=10, shift=10., scale=10.) print(1 - PCA(whiten=True).fit_transform(X).var(axis=0))"><pre class="notranslate"><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">make_classification</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-v">X</span>, <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-en">make_classification</span>(<span class="pl-s1">n_samples</span><span class="pl-c1">=</span><span class="pl-c1">1000</span>, <span class="pl-s1">n_features</span><span class="pl-c1">=</span><span class="pl-c1">4</span>, <span class="pl-s1">n_informative</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">n_redundant</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">n_repeated</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">n_classes</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">shift</span><span class="pl-c1">=</span><span class="pl-c1">10.</span>, <span class="pl-s1">scale</span><span class="pl-c1">=</span><span class="pl-c1">10.</span>) <span class="pl-en">print</span>(<span class="pl-c1">1</span> <span class="pl-c1">-</span> <span class="pl-v">PCA</span>(<span class="pl-s1">whiten</span><span class="pl-c1">=</span><span class="pl-c1">True</span>).<span class="pl-en">fit_transform</span>(<span class="pl-v">X</span>).<span class="pl-en">var</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>))</pre></div> <p dir="auto">Under <code class="notranslate">v0.18.2</code>, this outputs</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ -4.44089210e-16 0.00000000e+00 1.11022302e-16 6.66133815e-16]"><pre class="notranslate"><code class="notranslate">[ -4.44089210e-16 0.00000000e+00 1.11022302e-16 6.66133815e-16] </code></pre></div> <p dir="auto">Under <code class="notranslate">v0.19.0</code>, this outputs</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 0.001 0.001 0.001 0.001]"><pre class="notranslate"><code class="notranslate">[ 0.001 0.001 0.001 0.001] </code></pre></div>
<p dir="auto">The documentation for sklearn.decomposition.PCA says that<br> "Implements the probabilistic PCA model from: M. Tipping and C. Bishop, Probabilistic Principal Component Analysis, Journal of the Royal Statistical Society, Series B, 61, Part 3, pp. 611-622 via the score and score_samples methods."</p> <p dir="auto">It is unclear what the intention is for the other methods, but to match the MLE for PCA some changes need to be made:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="explained_variance_ = (S ** 2) / (n_samples - 1)"><pre class="notranslate"><code class="notranslate">explained_variance_ = (S ** 2) / (n_samples - 1) </code></pre></div> <p dir="auto">on Line 423 needs to be</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="explained_variance_ = (S ** 2) / n_samples"><pre class="notranslate"><code class="notranslate">explained_variance_ = (S ** 2) / n_samples </code></pre></div> <p dir="auto">Since the former is using the unbiased estimate of covariance and the latter is used in Tipping and Bishop eq (11).</p> <p dir="auto">Also, the projection of PPCA in Sec 3.3 of Tipping and Bishop is different than the conventional projection used in the implementation here. That needs to be clarified in the documentation. Maybe a separate class needs to be made (PPCA) that more cleanly implements Tipping and Bishop.</p>
1
<p dir="auto">I was taking a look at the default app. There's a menu item that causes the app to enter fullscreen, but once in fullscreen the menu item doesn't change from "Enter Fullscreen" to "Exit Fullscreen". This means that once you enter fullscreen though the menu, you cannot exit it.</p> <p dir="auto">It seems to me that there should be some way of dynamically changing a menu item's label inside of its own callback. I couldn't find a way to do this without removing the entire menu, creating a new one, then adding it back, but that felt rather heavy handed. Another way to do this would be by removing the single menu item and adding a different one in its place (essentially swapping it out), but there doesn't seem to be any more functionality allowing this than there is for merely changing a label. (A request for the addition of <code class="notranslate">Menu.remove()</code> can be found <a href="https://github.com/atom/atom-shell/issues/527" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/527/hovercard">here</a>.)</p> <p dir="auto">I would be willing to contribute to this if given some pointers. It should be noted that I haven't worked with CoffeeScript except in passing, but I can most likely figure it out.</p>
<p dir="auto">Maybe I missunderstood something but trying to overwrite some delegates in a newly created Menu will not call my custom function:</p> <p dir="auto">menu.delegate.menuWillShow = function () {<br> console.log('MY MENU DELEGATE');<br> }</p> <p dir="auto">menu.delegate.menuWillShow(); // doesn't call my function??</p> <p dir="auto">Note that the Menu is created using remote call within a BrowserWindow.</p>
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/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">Display all meta tags in <code class="notranslate">&lt;Head&gt;</code> by using <code class="notranslate">next/head</code></p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I need to provide 6 meta tags with the same property <code class="notranslate">fb:pages</code> and only the last one is displayed in the source code. I guess this is to avoid duplicated meta tags with the same <code class="notranslate">property</code> or <code class="notranslate">name</code>.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Provide multiple meta tags with the same property or name in <code class="notranslate">&lt;Head&gt;</code></li> <li>Check the source code</li> </ol> <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>4.2.0</td> </tr> <tr> <td>node</td> <td>8.9.4</td> </tr> <tr> <td>OS</td> <td>MacOS Sierra 10.12.6</td> </tr> </tbody> </table>
<h1 dir="auto">Feature request</h1> <p dir="auto">I want a more intuitive <code class="notranslate">Link</code> API which respects expectations we have around native <code class="notranslate">a</code> tags.</p> <h2 dir="auto">Is your feature request related to a problem? Please describe.</h2> <p dir="auto">The current link API looks like the following:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;Link href=&quot;/about&quot;&gt; &lt;a&gt;here&lt;/a&gt; &lt;/Link&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"/about"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span>here<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Link</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">This is problematic for a few reasons:</p> <ol dir="auto"> <li>It breaks intuition around a11y. When I see an <code class="notranslate">a</code> tag without an <code class="notranslate">href</code>, alarm bells go off, because that is a UX anti-pattern. In fact, this API makes it impossible to appease the <code class="notranslate">anchor-is-valid</code> eslint-plugin-jsx-a11y rule (see <a href="https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/402">https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/402</a>).</li> <li>It requires a call to <code class="notranslate">cloneElement</code> which should be avoided as its behavior is confusing. (How would I know my <code class="notranslate">a</code> tag will be given an <code class="notranslate">href</code>? Nothing about this API suggests that.)</li> </ol> <h2 dir="auto">Describe the solution you'd like</h2> <p dir="auto">I would like a solution which doesn't require you to type an <code class="notranslate">a</code> tag without an <code class="notranslate">href</code> and also doesn't require you to duplicate the <code class="notranslate">href</code> information.</p> <h2 dir="auto">Describe alternatives you've considered</h2> <p dir="auto">There are a few good alternatives:</p> <ol dir="auto"> <li>Default to <code class="notranslate">a</code> tag if no children are given:</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;Link href=&quot;/about&quot; /&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"/about"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">This is the approach <a href="https://reacttraining.com/react-router/web/api/Link" rel="nofollow">react-router</a> uses and it works quite well.</p> <hr> <ol start="2" dir="auto"> <li>Use a render prop:</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;Link href=&quot;/about&quot;&gt; {href =&gt; &lt;a href={href}&gt;here&lt;/a&gt;} &lt;/Link&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"/about"</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-s1">href</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">href</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>here<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Link</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">This method appeases the <code class="notranslate">anchor-is-valid</code> rule and doesn't require the user to duplicate href information since the build href is passed down to the component they are rendering.</p> <hr> <ol start="3" dir="auto"> <li>Component injection:</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;Link href=&quot;/about&quot; component={a} /&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"/about"</span> <span class="pl-c1">component</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">a</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span></pre></div> <hr> <p dir="auto">A combination of 1 and 2 would be powerful enough to cover all reasonable use cases.</p> <h2 dir="auto">Additional context</h2> <p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/vercel/next.js/commit/6431f5fce2593d8cadb81841eb0e717facbe4aa6/hovercard" href="https://github.com/vercel/next.js/commit/6431f5fce2593d8cadb81841eb0e717facbe4aa6"><tt>6431f5f</tt></a></p>
0
<ul dir="auto"> <li>Electron version: 1.4.0</li> <li>Operating system: macOS 10.12.4</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">When uploading Chess in the Applications folder through <code class="notranslate">&lt;input type="file" /&gt;</code>, <code class="notranslate">event.target.files[0].type</code> should be <code class="notranslate">application/zip</code>, which is the case when uploaded in Chrome.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto"><code class="notranslate">event.target.files[0].type</code> is an empty string.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Run the following the code in some page loaded by Electron and Chrome, different logs are displayed in dev tools.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var input = document.createElement('input') input.type = 'file' input.addEventListener('change', e =&gt; console.log(e.target.files[0])) document.body.appendChild(input)"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">input</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'input'</span><span class="pl-kos">)</span> <span class="pl-s1">input</span><span class="pl-kos">.</span><span class="pl-c1">type</span> <span class="pl-c1">=</span> <span class="pl-s">'file'</span> <span class="pl-s1">input</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">'change'</span><span class="pl-kos">,</span> <span class="pl-s1">e</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">.</span><span class="pl-c1">target</span><span class="pl-kos">.</span><span class="pl-c1">files</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">.</span><span class="pl-en">appendChild</span><span class="pl-kos">(</span><span class="pl-s1">input</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Electron:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2097644/25272350/08fad382-26ba-11e7-8032-1a6c05350072.png"><img src="https://cloud.githubusercontent.com/assets/2097644/25272350/08fad382-26ba-11e7-8032-1a6c05350072.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Chrome:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2097644/25272467/916658fe-26ba-11e7-8e5b-b819c25eb262.png"><img src="https://cloud.githubusercontent.com/assets/2097644/25272467/916658fe-26ba-11e7-8e5b-b819c25eb262.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">We can see that the <code class="notranslate">name</code>, <code class="notranslate">size</code> and <code class="notranslate">type</code> properties have different values.</p>
<ul dir="auto"> <li>Electron version: 1.6.2</li> <li>Operating system: macOS 10.12.3</li> </ul> <h3 dir="auto">Actual behavior</h3> <p dir="auto">I faced with strange behaviour of <code class="notranslate">&lt;input type='file' /&gt;</code> in Electron.<br> You can select special Macs' folders - app folders (for example <code class="notranslate">/Applications/Calculator.app</code>).<br> In Finder it looks like file, but it's directory!</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">There are two possible ways.</p> <ol dir="auto"> <li><code class="notranslate">Chrome</code>way (and Safari). In real Chrome you can select <code class="notranslate">Calculator.app</code> from <code class="notranslate">&lt;input type='file' /&gt;</code>. But Chrome transparently created <code class="notranslate">Calculator.app.zip</code> and attached this archive to input.</li> <li><code class="notranslate">Firefox</code> way. In Firefox you can not select any folders from <code class="notranslate">&lt;input type='file' /&gt;</code></li> </ol> <h3 dir="auto">How to reproduce</h3> <p dir="auto">I have created simple fiddle for that <a href="https://jsfiddle.net/s7c7k33b/" rel="nofollow">https://jsfiddle.net/s7c7k33b/</a> for testing in different browsers and Electron</p>
1
<p dir="auto">Would love to have a better web development experience with Deno out of the box.</p> <ul dir="auto"> <li>First, the server should restart whenever I make changes.</li> <li>Second, the website should reload whenever I make changes.</li> </ul> <p dir="auto">For the server, I'd like to propose a <code class="notranslate">deno watch</code> subcommand or <code class="notranslate">deno run --watch</code> flag that automatically restarts the server in a controlled way, e.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno watch *.ts --run main.ts --allow-net # or deno run --watch *.ts --allow-net main.ts"><pre class="notranslate"><code class="notranslate">deno watch *.ts --run main.ts --allow-net # or deno run --watch *.ts --allow-net main.ts </code></pre></div> <p dir="auto">If we also had a <code class="notranslate">Deno.watch</code> API for watching directories or files, we could then implement a simple client refresh via <a href="https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events" rel="nofollow">server-sent events</a> (<a href="https://gist.github.com/MarkTiedemann/1c43c42792825d2a86f88bbd52f55a5a">example</a>) or web sockets.</p> <p dir="auto">EDIT: It would be nice if the <code class="notranslate">watch</code> subcommand/flag would be able to notify the running code that it will/should be restarted - maybe something via signals (e.g. <code class="notranslate">SIGUSR1</code>), command line flags, some API, or a similar mechanism - so that the server could notify the client that it will be restarted and that the client needs to be reloaded.</p>
<p dir="auto">There are several use cases where the ability to watch a file(s) for changes is an important API. For example, invalidating cache headers for serving static file based content, or processing logs or files, etc.</p> <p dir="auto">Many OSes provide a mechanism for this without having to "poll" the stats for the file. Node.js offers <a href="https://nodejs.org/docs/latest/api/fs.html#fs_fs_watch_filename_options_listener" rel="nofollow"><code class="notranslate">fs.watch()</code></a>.</p> <p dir="auto">Instead of an event listener though, it feels some sort of async generator would be more idiomatic to the rest of Deno.</p>
1
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">Measuring calibration error in deep learning is a big issue now-a-days. However, we do not find any suitable package available to measure the calibration error. I would like to add a function that can measure calibration error with adaptive bin size as described here: <a href="https://openaccess.thecvf.com/content_CVPRW_2019/papers/Uncertainty%20and%20Robustness%20in%20Deep%20Visual%20Learning/Nixon_Measuring_Calibration_in_Deep_Learning_CVPRW_2019_paper.pdf" rel="nofollow">https://openaccess.thecvf.com/content_CVPRW_2019/papers/Uncertainty%20and%20Robustness%20in%20Deep%20Visual%20Learning/Nixon_Measuring_Calibration_in_Deep_Learning_CVPRW_2019_paper.pdf</a>. Note that there are many ECE algorithms that measures the calibration error with fixed bin size that is major problem for inhomogeneous data distribution.</p> <h3 dir="auto">Describe your proposed solution</h3> <p dir="auto">We already have a tentative implementation here: <a href="https://github.com/neurodata/kdg/blob/cc88886819676020402f19ec8b224ed5aafdc440/kdg/utils.py#L8">https://github.com/neurodata/kdg/blob/cc88886819676020402f19ec8b224ed5aafdc440/kdg/utils.py#L8</a>. We would like to adapt the code for sklearn so that people can use it.</p> <h3 dir="auto">Describe alternatives you've considered, if relevant</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<h4 dir="auto">Describe the workflow you want to enable</h4> <p dir="auto">I would like to add the ability to calculate Expected Calibration Error (ECE) within scikit-learn. ECE is defined in equation (3) from <a href="https://arxiv.org/abs/1706.04599" rel="nofollow">Guo et al. <em>On Calibration of Modern Neural Networks.</em> (2017).</a> This is a well-cited paper (over 700 citations as of Aug. 26, 2020), and the ECE metric is now widely used in academic papers on model calibration. There is even a method now in TensorFlow Probability for computing ECE: <a href="https://www.tensorflow.org/probability/api_docs/python/tfp/stats/expected_calibration_error" rel="nofollow">tfp.stats.expected_calibration_error()</a>.</p> <h4 dir="auto">Describe your proposed solution</h4> <p dir="auto">I can see several possibilities for how the ECE calculation could be added to scikit-learn, with pros and cons for each:</p> <ol dir="auto"> <li> <p dir="auto">make ECE an extra return value of <code class="notranslate">sklearn.calibration.calibration_curve()</code>. This method currently already does 99% of the work towards calculating ECE. Computing ECE is simply a one-liner added to the end of that method:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def calibration_curve(...): ... ece = np.sum(np.abs(prob_true - prob_pred) * (bin_total[nonzero] / len(y_true))) return prob_true, prob_pred, ece"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">calibration_curve</span>(...): ... <span class="pl-s1">ece</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">sum</span>(<span class="pl-s1">np</span>.<span class="pl-en">abs</span>(<span class="pl-s1">prob_true</span> <span class="pl-c1">-</span> <span class="pl-s1">prob_pred</span>) <span class="pl-c1">*</span> (<span class="pl-s1">bin_total</span>[<span class="pl-s1">nonzero</span>] <span class="pl-c1">/</span> <span class="pl-en">len</span>(<span class="pl-s1">y_true</span>))) <span class="pl-k">return</span> <span class="pl-s1">prob_true</span>, <span class="pl-s1">prob_pred</span>, <span class="pl-s1">ece</span></pre></div> <p dir="auto">The downside is that introducing a 3rd return value is a breaking change. One possible mitigation is to add a boolean <code class="notranslate">return_ece</code> parameter to the function definition with a default value of <code class="notranslate">False</code>, and only return <code class="notranslate">ece</code> if <code class="notranslate">return_ece=True</code>.</p> </li> <li> <p dir="auto">add a dedicated function to <code class="notranslate">sklearn.metrics</code>, i.e., <code class="notranslate">sklearn.metrics.expected_calibration_error(y_true, y_pred)</code>. Downside here is that it would need to re-compute everything that calibration_curve() already computes, so there is a performance penalty for a user who wants to both calculate ECE and plot a calibration curve.</p> </li> <li> <p dir="auto">add a dedicated function to <code class="notranslate">sklearn.calibration</code>, i.e., <code class="notranslate">sklearn.calibration.expected_calibration_error(y_true, y_pred)</code>. This would keep the ECE calibration within the calibration subpackage. Same downside as in option 2.</p> </li> </ol> <h4 dir="auto">Additional context</h4> <p dir="auto">I am happy to write the code and tests to add ECE calculation to scikit-learn. After all, the code to calculate ECE is just a one line addition to <code class="notranslate">calibration_curve()</code>. However, as I am not a regular contributor to scikit-learn, I am unfamiliar with the best place within the scikit-learn library to add such a feature. Please advise!</p>
1
<p dir="auto">When copying a segment of code that starts with a new-line followed by tabbed-in code while "Auto Indent On Paste" is enabled, consecutive pastes will each be an additional tab deeper. I tested this with C++, Java, and JavaScript which makes me believe it is not a problem with the language specs.</p> <p dir="auto">Here is an example in the form of an animated gif:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/466761/6118758/d4ce2e04-b075-11e4-864b-46726fcd809e.gif"><img src="https://cloud.githubusercontent.com/assets/466761/6118758/d4ce2e04-b075-11e4-864b-46726fcd809e.gif" alt="autoindent-2" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">It isn't just comments that this happens with, but it does require the previous line to be selected. Specifically, this happens when the copy-buffer matches a regex like <code class="notranslate">/^\n\s+[^\s]/</code>. That is, it starts with a newline, followed by one or more whitespace characters and then a non-whitespace character. And the previous line must be a blank line.</p>
<p dir="auto">Halp ticket:</p> <ul dir="auto"> <li>support/c7984784bffc11e3936c51033c8a3e07</li> </ul> <blockquote> <p dir="auto">Snippet system needs to be worked on, when i setup a snippet in the config file, and then i save it and go back to my work, i use the short word and hit tab, and nothing ever expands.</p> </blockquote> <p dir="auto">I could reproduce this:</p> <ol dir="auto"> <li>quit Atom</li> <li>remove ~/.atom/snippets.cson</li> <li>start Atom</li> <li>go "Atom &gt; Open your snippets", and add a snippet to snippets.cson</li> <li>try triggering the snippet you just added -- it won't work</li> <li>quit and restart Atom</li> <li>try triggering the snippet again -- it will work</li> </ol>
0
<p dir="auto">I want to implement the cases that when any link is clicked in a <code class="notranslate">webview</code>, it's opened in the default browser. But <code class="notranslate">webview</code> only has the <a href="https://github.com/atom/electron/blob/master/docs/api/web-view-tag.md#event-new-window"><code class="notranslate">new-window</code> event</a> which is fired only when new window is opened (e.g., with <code class="notranslate">_target</code>). I wonder how do I support the case for links that don't open a new window?</p>
<p dir="auto">It would be very useful to get events related to navigation:</p> <ul dir="auto"> <li><code class="notranslate">will-navigate</code>: when the webview is about to navigate (url have been changed but no requests have been emited yet). It could eventually be cancelled with <code class="notranslate">event.preventDefault()</code>)</li> <li><code class="notranslate">page-url-set</code>: like <code class="notranslate">page-title-set</code> but for url. It is different than <code class="notranslate">before-navigate</code> because it should also handle anchor changes and HTML5 url set without navigating (with <code class="notranslate">history.pushState</code> and <code class="notranslate">history.replaceState</code>)</li> <li><code class="notranslate">did-navigate</code>: after the navigation has occured (i.e. when a new entry have been pushed to history and canGoBack/canGoForward/canGo... may have changed)</li> </ul>
1
<p dir="auto">I'm using Symfony 2.3 and written something very similar to this cookbook entry (<a href="http://symfony.com/doc/2.3/cookbook/security/voters.html" rel="nofollow">http://symfony.com/doc/2.3/cookbook/security/voters.html</a>). I think my issue very much looks like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16577582" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/8467" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/8467/hovercard" href="https://github.com/symfony/symfony/issues/8467">#8467</a>, although I believe my use case is different. Because I am not using a user provider at all, anonymous authentication is totally ok.</p> <p dir="auto">Now, <code class="notranslate">InsufficientAuthenticationException</code> is thrown with <code class="notranslate">AccessDeniedException</code> as a previous exception when I've denied access in my custom voter. I do not see why this first exception is thrown, since I just expect to return a 403 as a response and not a fatal 500.</p> <p dir="auto">Some more info: I've got two firewalls. One is ignoring all dev related paths. The other simply allows anonymous users. My <code class="notranslate">security.yml</code> looks like this:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="security: encoders: Acme\DemoBundle\Entity\Person: id: acme.demo.blowfish_password_encoder providers: in_memory: memory: ~ firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false default: anonymous: ~ access_control: - { path: ^/, roles: IS_AUTHENTICATED_ANONYMOUSLY } access_decision_manager: strategy: unanimous"><pre class="notranslate"><span class="pl-ent">security</span>: <span class="pl-ent">encoders</span>: <span class="pl-ent">Acme\DemoBundle\Entity\Person</span>: <span class="pl-ent">id</span>: <span class="pl-s">acme.demo.blowfish_password_encoder</span> <span class="pl-ent">providers</span>: <span class="pl-ent">in_memory</span>: <span class="pl-ent">memory</span>: <span class="pl-c1">~</span> <span class="pl-ent">firewalls</span>: <span class="pl-ent">dev</span>: <span class="pl-ent">pattern</span>: <span class="pl-s">^/(_(profiler|wdt)|css|images|js)/</span> <span class="pl-ent">security</span>: <span class="pl-c1">false</span> <span class="pl-ent">default</span>: <span class="pl-ent">anonymous</span>: <span class="pl-c1">~</span> <span class="pl-ent">access_control</span>: - <span class="pl-s">{ path: ^/, roles: IS_AUTHENTICATED_ANONYMOUSLY }</span> <span class="pl-ent">access_decision_manager</span>: <span class="pl-ent">strategy</span>: <span class="pl-s">unanimous</span></pre></div> <p dir="auto">Can anyone elaborate on this?</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" firewalls: dev: pattern: ^/(_(profiler|wdt|fragment)|css|images|js)/ security: false main: pattern: / ololo: ~ provider: users_entity anonymous: ~ access_control: - { path: ^/admin, roles: ROLE_ADMIN }"><pre class="notranslate"> <span class="pl-ent">firewalls</span>: <span class="pl-ent">dev</span>: <span class="pl-ent">pattern</span>: <span class="pl-s">^/(_(profiler|wdt|fragment)|css|images|js)/</span> <span class="pl-ent">security</span>: <span class="pl-c1">false</span> <span class="pl-ent">main</span>: <span class="pl-ent">pattern</span>: <span class="pl-s">/</span> <span class="pl-ent">ololo</span>: <span class="pl-c1">~</span> <span class="pl-ent">provider</span>: <span class="pl-s">users_entity</span> <span class="pl-ent">anonymous</span>: <span class="pl-c1">~</span> <span class="pl-ent">access_control</span>: - <span class="pl-s">{ path: ^/admin, roles: ROLE_ADMIN }</span></pre></div> <p dir="auto">open as anonymous something like <code class="notranslate">/admin/dashboard</code> and got 500. Expected 403.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2013-07-10 17:27:49] security.INFO: Populated SecurityContext with an anonymous Token [] [] [2013-07-10 17:27:49] security.INFO: No expression found; abstaining from voting. [] [] [2013-07-10 17:27:49] security.DEBUG: Access is denied (user is not fully authenticated) by &quot;/vhosts/www.ololo.com/new/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php&quot; at line 73; redirecting to authentication entry point [] [] [2013-07-10 17:27:49] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Security\Core\Exception\InsufficientAuthenticationException: &quot;Full authentication is required to access this resource.&quot; at /vhosts/www.ololo.com/new/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php line 109 {&quot;exception&quot;:&quot;[object] (Symfony\\Component\\Security\\Core\\Exception\\InsufficientAuthenticationException: Full authentication is required to access this resource. at /vhosts/www.ololo.com/new/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php:109, Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException: Access Denied at /vhosts/www.ololo.com/new/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:73)&quot;} []"><pre class="notranslate"><code class="notranslate">[2013-07-10 17:27:49] security.INFO: Populated SecurityContext with an anonymous Token [] [] [2013-07-10 17:27:49] security.INFO: No expression found; abstaining from voting. [] [] [2013-07-10 17:27:49] security.DEBUG: Access is denied (user is not fully authenticated) by "/vhosts/www.ololo.com/new/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php" at line 73; redirecting to authentication entry point [] [] [2013-07-10 17:27:49] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Security\Core\Exception\InsufficientAuthenticationException: "Full authentication is required to access this resource." at /vhosts/www.ololo.com/new/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php line 109 {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\InsufficientAuthenticationException: Full authentication is required to access this resource. at /vhosts/www.ololo.com/new/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php:109, Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException: Access Denied at /vhosts/www.ololo.com/new/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:73)"} [] </code></pre></div>
1
<ul dir="auto"> <li>VSCode Version:1.0</li> <li>OS Version:osx</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>set locale to zh-CN</li> <li>F1 open Command Palette, press "Tasks", nothing.</li> </ol>
<ul dir="auto"> <li>VSCode Version:<br> バージョン 0.10.12-insider<br> コミット <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/ef2a1fcaa553d14d7731b284a5ac5e4a55c42936/hovercard" href="https://github.com/microsoft/vscode/commit/ef2a1fcaa553d14d7731b284a5ac5e4a55c42936"><tt>ef2a1fc</tt></a><br> 日付 2016-03-21T11:33:38.240Z<br> シェル 0.35.6<br> レンダラー 45.0.2454.85<br> ノード 4.1.1</li> </ul> <p dir="auto">Even Japanese people, typing Japanese words are very painful and time-consuming because of IME composition problems.<br> We expects that the commands are all in English.<br> For example, if I want to execute git pull, I will type "git pull"; not "git プル".</p> <p dir="auto">Hope you can understand our situation.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1311400/14054201/b8673f88-f31a-11e5-9b62-070c47d86350.png"><img src="https://cloud.githubusercontent.com/assets/1311400/14054201/b8673f88-f31a-11e5-9b62-070c47d86350.png" alt="image" style="max-width: 100%;"></a></p>
1
<ul dir="auto"> <li>Electron version: 1.8.2</li> <li>Operating system: macOS High Sierra version 10.13.3</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Should work without crashing.</p> <h3 dir="auto">Actual behavior</h3> <ul dir="auto"> <li>build electron app example</li> <li>upgrade to 1.8.2 =&gt; remove node modules =&gt; reinstall all node modules</li> <li>run =&gt; app crash when running (rollback electron 1.7.12 =&gt; run success)</li> <li>error:</li> </ul> <p dir="auto">node_modules/electron/dist/Electron.app/Contents/MacOS/Electron[30155]: ../../vendor/node/src/async-wrap.cc:399:void node::SetupHooks(const FunctionCallbackInfov8::Value &amp;): Assertion `env-&gt;async_hooks_init_function().IsEmpty()' failed.</p> <p dir="auto">1: node::Abort() [node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">download electron app example<br> upgrade to 1.8.2 (change in package.json) =&gt; remove node modules =&gt; reinstall all node modules</p>
<ul dir="auto"> <li>Electron version: Anything over 1.7.8, until the latest 1.8.2-beta.1</li> <li>Node: 8.8.0</li> <li>Operating system: high sierra</li> </ul> <p dir="auto">Going over 1.7.8 seems to break Electron for one of our projects. It's hard to track down what's going on but here's the output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="❯ yarn run electron yarn run v1.2.1 $ electron .dev/electron.js /Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron[41928]: ../../vendor/node/src/async-wrap.cc:399:void node::SetupHooks(const FunctionCallbackInfo&lt;v8::Value&gt; &amp;): Assertion `env-&gt;async_hooks_init_function().IsEmpty()' failed. 1: node::Abort() [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 2: node::Assert(char const* const (*) [4]) [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 3: node::AsyncWrap::Initialize(v8::Local&lt;v8::Object&gt;, v8::Local&lt;v8::Value&gt;, v8::Local&lt;v8::Context&gt;) [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 4: v8::internal::StrDup(char const*) [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 5: v8::internal::compiler::BranchElimination::ControlPathConditions::operator==(v8::internal::compiler::BranchElimination::ControlPathConditions const&amp;) const [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 6: v8::internal::compiler::BranchElimination::ControlPathConditions::operator==(v8::internal::compiler::BranchElimination::ControlPathConditions const&amp;) const [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 7: 0x3eadf51843fd 8: 0x3eadf527777c 9: 0x3eadf523be1c ✨ Done in 0.40s."><pre class="notranslate"><code class="notranslate">❯ yarn run electron yarn run v1.2.1 $ electron .dev/electron.js /Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron[41928]: ../../vendor/node/src/async-wrap.cc:399:void node::SetupHooks(const FunctionCallbackInfo&lt;v8::Value&gt; &amp;): Assertion `env-&gt;async_hooks_init_function().IsEmpty()' failed. 1: node::Abort() [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 2: node::Assert(char const* const (*) [4]) [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 3: node::AsyncWrap::Initialize(v8::Local&lt;v8::Object&gt;, v8::Local&lt;v8::Value&gt;, v8::Local&lt;v8::Context&gt;) [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 4: v8::internal::StrDup(char const*) [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 5: v8::internal::compiler::BranchElimination::ControlPathConditions::operator==(v8::internal::compiler::BranchElimination::ControlPathConditions const&amp;) const [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 6: v8::internal::compiler::BranchElimination::ControlPathConditions::operator==(v8::internal::compiler::BranchElimination::ControlPathConditions const&amp;) const [/Users/drcmda/dev/stepdoctor/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib] 7: 0x3eadf51843fd 8: 0x3eadf527777c 9: 0x3eadf523be1c ✨ Done in 0.40s. </code></pre></div> <p dir="auto">It happens when we require a file that has async/await calls in it, but nothing's yet executed. But the moment we go back to 1.7.8 it starts working again.</p>
1
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; repmat(rand(2,2), Int32(1)) ERROR: MethodError: no method matching repmat(::Array{Float64,2}, ::Int32) Closest candidates are: repmat(::Union{AbstractArray{T,1},AbstractArray{T,2}}, ::Int64) at abstractarraymath.jl:271 repmat(::Union{AbstractArray{T,1},AbstractArray{T,2}}, ::Int64, ::Int64) at abstractarraymath.jl:271 in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64 in macro expansion at ./REPL.jl:95 [inlined] in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">repmat</span>(<span class="pl-c1">rand</span>(<span class="pl-c1">2</span>,<span class="pl-c1">2</span>), <span class="pl-c1">Int32</span>(<span class="pl-c1">1</span>)) ERROR<span class="pl-k">:</span> MethodError<span class="pl-k">:</span> no method matching <span class="pl-c1">repmat</span>(<span class="pl-k">::</span><span class="pl-c1">Array{Float64,2}</span>, <span class="pl-k">::</span><span class="pl-c1">Int32</span>) Closest candidates are<span class="pl-k">:</span> <span class="pl-c1">repmat</span>(<span class="pl-k">::</span><span class="pl-c1">Union{AbstractArray{T,1},AbstractArray{T,2}}</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at abstractarraymath<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">271</span> <span class="pl-c1">repmat</span>(<span class="pl-k">::</span><span class="pl-c1">Union{AbstractArray{T,1},AbstractArray{T,2}}</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at abstractarraymath<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">271</span> <span class="pl-k">in</span> <span class="pl-c1">eval_user_input</span>(<span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Base.REPL.REPLBackend</span>) at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">64</span> <span class="pl-k">in</span> <span class="pl-k">macro</span> expansion at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">95</span> [inlined] <span class="pl-k">in</span> (<span class="pl-k">::</span><span class="pl-c1">Base.REPL.</span><span class="pl-c"><span class="pl-c">#</span>#3#4{Base.REPL.REPLBackend})() at ./event.jl:68</span></pre></div> <p dir="auto">Could the signature be relaxed to accept generic <code class="notranslate">Integer</code>s? (I guess yes :)</p>
<p dir="auto">Currently, <code class="notranslate">reshape</code> requires the dimension parameters to be <code class="notranslate">Int</code></p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="reshape(parent::AbstractArray, dims::Int...) = reshape(parent, dims)"><pre class="notranslate"><span class="pl-en">reshape</span>(parent<span class="pl-k">::</span><span class="pl-c1">AbstractArray</span>, dims<span class="pl-k">::</span><span class="pl-c1">Int...</span>) <span class="pl-k">=</span> <span class="pl-c1">reshape</span>(parent, dims)</pre></div> <p dir="auto">I am not sure if this is required for efficiency reasons, but I wonder if this could be changed to <code class="notranslate">Integer</code>?</p> <p dir="auto">In reading binary formatted data I often come across the situation where dimensions of an array are specified as <code class="notranslate">Int32</code>, and then the matrix data that follows has to be reshaped accordingly. Currently I have to escape the dimension specification using <code class="notranslate">Int()</code>, a small effort, but it would be slightly cleaner if that would not be required.</p>
1
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce-es-logging/2281/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce-es-logging/2281/</a></p> <p dir="auto">Failed: [k8s.io] Cluster level logging using Elasticsearch [Feature:Elasticsearch] should check that logs from containers are ingested into Elasticsearch {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/cluster_logging_es.go:82 Some log lines are still missing Expected &lt;int&gt;: 100 to equal &lt;int&gt;: 0 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_logging_es.go:81"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_logging_es.go:82 Some log lines are still missing Expected &lt;int&gt;: 100 to equal &lt;int&gt;: 0 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_logging_es.go:81 </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="182667681" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34666" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34666/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34666">#34666</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="182765329" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34708" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34708/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34708">#34708</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce-es-logging/2267/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce-es-logging/2267/</a></p> <p dir="auto">Failed: [k8s.io] Cluster level logging using Elasticsearch [Feature:Elasticsearch] should check that logs from containers are ingested into Elasticsearch {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/cluster_logging_es.go:82 Some log lines are still missing Expected &lt;int&gt;: 100 to equal &lt;int&gt;: 0 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_logging_es.go:81"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_logging_es.go:82 Some log lines are still missing Expected &lt;int&gt;: 100 to equal &lt;int&gt;: 0 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/cluster_logging_es.go:81 </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="182667681" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34666" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34666/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34666">#34666</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="182765329" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34708" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34708/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34708">#34708</a></p>
1
<p dir="auto">Tooltip not showing in Firefox.</p> <p dir="auto">Left - Firefox. Right - Chrome</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17413180/83816088-3e0c2300-a687-11ea-95cf-a18b48470de1.png"><img src="https://user-images.githubusercontent.com/17413180/83816088-3e0c2300-a687-11ea-95cf-a18b48470de1.png" alt="Screenshot from 2020-06-04 17-01-32" style="max-width: 100%;"></a></p> <p dir="auto">Firefox: 76.0 (64-bit)<br> Chrome: 83.0.4103.61 (Official Build) (64-bit)</p>
<p dir="auto">Macos using Python3.8 --&gt; python setup install<br> I can find apache_superset-0.38.0-py3.8.egg was created in site-package /</p> <p dir="auto">How can I init superset and start server</p> <p dir="auto">(please complete the following information):</p> <ul dir="auto"> <li>superset version: <code class="notranslate">0.38.0</code></li> <li>python version: <code class="notranslate">3.8</code></li> <li>node.js version: <code class="notranslate">14.12</code></li> <li>npm version: <code class="notranslate">6.14</code></li> </ul> <h3 dir="auto">Checklist</h3> <p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">Add any other context about the problem here.</p>
0
<p dir="auto">In my previous text editor I could just select some text/code and would then see all other occurrences highlighted in the view. From there on I could jump to each one by a simple shortcut (it put the selection into the finder and then normal jumping between results could occur).</p> <p dir="auto">Would be great to have it also in Atom!</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/078c56d6cae52279504947954f8162102cb1bff3a34f70a1745103898abca38c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3530363132392f323330303038302f30316238356663632d613064662d313165332d383838632d3838343837643933663361382e676966"><img src="https://camo.githubusercontent.com/078c56d6cae52279504947954f8162102cb1bff3a34f70a1745103898abca38c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3530363132392f323330303038302f30316238356663632d613064662d313165332d383838632d3838343837643933663361382e676966" alt="sublime-text-word-highligting" data-animated-image="" data-canonical-src="https://f.cloud.github.com/assets/506129/2300080/01b85fcc-a0df-11e3-888c-88487d93f3a8.gif" style="max-width: 100%;"></a></p> <p dir="auto">Yet another Sublime Text feature (YASTF).</p> <p dir="auto">This should act as a preview of what <kbd>Cmd</kbd>-<kbd>d</kbd> will select.</p> <p dir="auto"><a href="http://discuss.atom.io/t/highlight-occurrences-of-selected-word/2080" rel="nofollow">http://discuss.atom.io/t/highlight-occurrences-of-selected-word/2080</a></p>
1
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/saneyuki/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/saneyuki">@saneyuki</a> on February 2, 2016 3:34</em></p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>VSCode, Version 0.10.7-insider (0.10.7-insider), 6c2d51a4b7b81753a3a4c46f9de9a15179e20304 <ul dir="auto"> <li>with enabling Salsa preview</li> </ul> </li> <li>[email protected] <ul dir="auto"> <li>which is specified with <code class="notranslate">typescript.tsdk</code></li> </ul> </li> </ul> <h2 dir="auto">Description</h2> <p dir="auto">The closure compiler style JSDoc <a href="https://developers.google.com/closure/compiler/docs/js-for-compiler" rel="nofollow">allows the generics like <code class="notranslate">Array&lt;T&gt;</code></a>, not only <code class="notranslate">Array.&lt;T&gt;</code>.<br> But the above environment shows the argument styled with its style as <code class="notranslate">any</code> in the intellisense.</p> <h3 dir="auto">problem case</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/** * @params {Array&lt;string&gt;} v * @return {string} */ function bar(v) { // return v.join(); } var b = bar([&quot;1&quot;, &quot;2&quot;]); // Intellisense shows this signature as `bar(v: any)`;"><pre class="notranslate"><span class="pl-c">/**</span> <span class="pl-c"> * <span class="pl-k">@params</span> {Array&lt;string&gt;} v</span> <span class="pl-c"> * <span class="pl-k">@return</span> {<span class="pl-smi">string</span>}</span> <span class="pl-c"> */</span> <span class="pl-k">function</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-s1">v</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// </span> <span class="pl-k">return</span> <span class="pl-s1">v</span><span class="pl-kos">.</span><span class="pl-en">join</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">var</span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">"1"</span><span class="pl-kos">,</span> <span class="pl-s">"2"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Intellisense shows this signature as `bar(v: any)`;</span></pre></div> <h3 dir="auto">non-problem case</h3> <p dir="auto">It's ok <code class="notranslate">Array.&lt;T&gt;</code> or <code class="notranslate">T[]</code>which is allowed in <a href="http://usejsdoc.org/tags-type.html" rel="nofollow">http://usejsdoc.org/tags-type.html</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/** * @params {Array.&lt;string&gt;} v * @return {string} */ function foo(v) { return v.join(); } var b = foo([&quot;1&quot;, &quot;2&quot;]); // Intellisense shows this signature as `foo(v: any)`;"><pre class="notranslate"><span class="pl-c">/**</span> <span class="pl-c"> * <span class="pl-k">@params</span> {Array.&lt;string&gt;} v</span> <span class="pl-c"> * <span class="pl-k">@return</span> {<span class="pl-smi">string</span>}</span> <span class="pl-c"> */</span> <span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">v</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">v</span><span class="pl-kos">.</span><span class="pl-en">join</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">var</span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">"1"</span><span class="pl-kos">,</span> <span class="pl-s">"2"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Intellisense shows this signature as `foo(v: any)`;</span></pre></div> <h3 dir="auto">What I expect</h3> <p dir="auto">I want Salsa interprets the closure compiler style's generics annotation.<br> By any chance, I should report this to <a href="https://github.com/Microsoft/TypeScript">https://github.com/Microsoft/TypeScript</a>?</p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="130562245" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2629" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2629/hovercard" href="https://github.com/microsoft/vscode/issues/2629">microsoft/vscode#2629</a></em></p>
<p dir="auto">Generic types may not be specified for variable, param, or return types currently. For example, both of the below just show up as 'any's.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/** @type {PromiseLike&lt;string&gt;} */ var a9; /** * @return {PromiseLike&lt;string&gt;} */ function f9(){}"><pre class="notranslate"><span class="pl-c">/** <span class="pl-k">@type</span> {PromiseLike&lt;string&gt;} */</span> <span class="pl-k">var</span> <span class="pl-s1">a9</span><span class="pl-kos">;</span> <span class="pl-c">/**</span> <span class="pl-c"> * <span class="pl-k">@return</span> {<span class="pl-smi">PromiseLike&lt;string&gt;</span>}</span> <span class="pl-c"> */</span> <span class="pl-k">function</span> <span class="pl-en">f9</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">We should support this using a syntax like that show above, which closely matches TypeScript's and is covered in the Closure Compiler docs also (<a href="https://developers.google.com/closure/compiler/docs/js-for-compiler#instantiating-a-generic-type" rel="nofollow">https://developers.google.com/closure/compiler/docs/js-for-compiler#instantiating-a-generic-type</a>)</p>
1
<p dir="auto">When I run <code class="notranslate">npm test</code> on the root of DefinitelyTyped, I got below error in the console:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npm test &gt; [email protected] test /home/beenotung/workspace/github.com/beenotung/DefinitelyTyped &gt; node node_modules/types-publisher/bin/tester/test.js --run-from-definitely-typed Clean data Clean logs Clean output Using local Definitely Typed at /home/beenotung/workspace/github.com/beenotung/DefinitelyTyped. Parsing definitions... Found 5881 packages. Parsing in parallel... Running: git rev-parse --verify master 96ecf8642b80681d2a1890dedd2b3569095df725 Running: git diff master --name-status Error: Error: stdout maxBuffer exceeded at Socket.onChildStdout (child_process.js:329:14) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:246:13) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:601:20) at Object.execAndThrowErrors (/home/beenotung/workspace/github.com/beenotung/DefinitelyTyped/node_modules/.github.com/Microsoft/types-publisher/51db099db4d654ab4c12c46035541b53b2b00801/node_modules/types-publisher/src/util/util.ts:166:15) at &lt;anonymous&gt; at process._tickCallback (internal/process/next_tick.js:189:7)  ERROR  Test failed. See above for more details."><pre class="notranslate"><code class="notranslate">$ npm test &gt; [email protected] test /home/beenotung/workspace/github.com/beenotung/DefinitelyTyped &gt; node node_modules/types-publisher/bin/tester/test.js --run-from-definitely-typed Clean data Clean logs Clean output Using local Definitely Typed at /home/beenotung/workspace/github.com/beenotung/DefinitelyTyped. Parsing definitions... Found 5881 packages. Parsing in parallel... Running: git rev-parse --verify master 96ecf8642b80681d2a1890dedd2b3569095df725 Running: git diff master --name-status Error: Error: stdout maxBuffer exceeded at Socket.onChildStdout (child_process.js:329:14) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:246:13) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:601:20) at Object.execAndThrowErrors (/home/beenotung/workspace/github.com/beenotung/DefinitelyTyped/node_modules/.github.com/Microsoft/types-publisher/51db099db4d654ab4c12c46035541b53b2b00801/node_modules/types-publisher/src/util/util.ts:166:15) at &lt;anonymous&gt; at process._tickCallback (internal/process/next_tick.js:189:7)  ERROR  Test failed. See above for more details. </code></pre></div> <p dir="auto">Not sure who to mention, but it seems below authors are knowledgeable on the script setting in package.json:<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Flarna/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Flarna">@Flarna</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sandersn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sandersn">@sandersn</a></p>
<p dir="auto">If you know how to fix the issue, make a pull request instead.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/DefinitelyTyped/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DefinitelyTyped">@DefinitelyTyped</a></li> </ul> </li> </ul> <p dir="auto">If you do not mention the authors the issue will be ignored.</p> <p dir="auto">When I run <code class="notranslate">npm run test</code>, I get the following output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; node node_modules/types-publisher/bin/tester/test.js --run-from-definitely-typed Clean data Clean logs Clean output ^[{ RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stderr maxBuffer length exceeded at Socket.onChildStderr (child_process.js:382:14) at Socket.emit (events.js:193:13) at addChunk (_stream_readable.js:295:12) at readableAddChunk (_stream_readable.js:272:13) at Socket.Readable.push (_stream_readable.js:231:10) at Pipe.onStreamRead (internal/stream_base_commons.js:150:17) cmd: 'git diff --name-only' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] test: `node node_modules/types-publisher/bin/tester/test.js --run-from-definitely-typed` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] test script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-05-25T13_38_42_644Z-debug.log"><pre class="notranslate"><code class="notranslate">&gt; node node_modules/types-publisher/bin/tester/test.js --run-from-definitely-typed Clean data Clean logs Clean output ^[{ RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stderr maxBuffer length exceeded at Socket.onChildStderr (child_process.js:382:14) at Socket.emit (events.js:193:13) at addChunk (_stream_readable.js:295:12) at readableAddChunk (_stream_readable.js:272:13) at Socket.Readable.push (_stream_readable.js:231:10) at Pipe.onStreamRead (internal/stream_base_commons.js:150:17) cmd: 'git diff --name-only' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] test: `node node_modules/types-publisher/bin/tester/test.js --run-from-definitely-typed` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] test script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-05-25T13_38_42_644Z-debug.log </code></pre></div> <p dir="auto">It seems that <code class="notranslate">maxBuffer</code> should be increased when the tests run. Or am I doing something wrong?</p>
1
<p dir="auto">Pasting 4 spaces is absolutely broken. Atom is trying to preserve the indent and thus refusing to paste.</p> <p dir="auto">Video: <a href="http://youtu.be/uVpGAkxB3EY" rel="nofollow">http://youtu.be/uVpGAkxB3EY</a></p>
<p dir="auto">I'm refactoring. I press cmd-shift-f, type some characters, press enter, click on one of the search results, and replace the matching line with a new implementation.</p> <p dir="auto">I press cmd-shift-f again, press enter again because it's the only way I can see the search results without tabs, and the old version line I just changed is <em>still</em> in the search results.</p> <p dir="auto">Occasionally the results will mix it up by giving me duplicate results for the same match: One with a path relative to the current project root and one with an absolute path.</p> <p dir="auto">I've reported this and related issues a few times now without getting much insight. I'd really like to know what I'm doing that makes search usless for me and OK for everybody else. What am I doing wrong?</p> <p dir="auto">Atom Version: 0.49.0<br> User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.49.0 Atom-Shell/0.8.7 Safari/537.36</p>
0
<p dir="auto">If a cypher query returning nodes is executed using the transactional REST endpoint essential meta-information is missing (e.g. labels). This disallows creating generic mapping frameworks for languages, An example:</p> <p dir="auto">CDO (<a href="https://github.com/buschmais/cdo-neo4j">http://github.com/buschmais/cdo-neo4j</a>) allows the user to map annotated Java interfaces to nodes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Label public interface Person { // represents nodes labeled with Person public String getName(); public void setName(String name); } @Label public interface Customer extends Person { // represents nodes labeled with Customer and Person public int getCustomerNo(); public void setCustomerNo(int customerNo); }"><pre class="notranslate"><code class="notranslate">@Label public interface Person { // represents nodes labeled with Person public String getName(); public void setName(String name); } @Label public interface Customer extends Person { // represents nodes labeled with Customer and Person public int getCustomerNo(); public void setCustomerNo(int customerNo); } </code></pre></div> <p dir="auto">The user now may issue cypher queries using the CDO interface</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="List&lt;Person&gt; persons = cdoManager.createQuery(&quot;match (p:Person) return p&quot;, Person.class).execute();"><pre class="notranslate"><code class="notranslate">List&lt;Person&gt; persons = cdoManager.createQuery("match (p:Person) return p", Person.class).execute(); </code></pre></div> <p dir="auto">CDO will execute this query but for each node returned by the query it needs to decide whether to create an instance of Person or Customer - this can only be achieved if the labels are availabe as metadata.</p> <p dir="auto">Note: As also relationships may be of different types and can be mapped to language specific types (e.g. Java classes) they should also contain metadata (i.e. their type) if they are part of the return clause.</p>
<p dir="auto">I've currently got an ugly workaround in place to get the labels for a node returned in the transactional HTTP endpoint REST format that calls the URI for labels. It would be awesome if there were a format that had (all in one response):</p> <ol dir="auto"> <li>node id</li> <li>labels--one big list</li> <li>properties</li> <li>nothing else; no bloat!</li> </ol>
1
<p dir="auto">Hi! Tensorflow is not properlly installed.</p> <p dir="auto">Here's the output of: python -c "import tensorflow; print(tensorflow.<strong>version</strong>)"</p> <p dir="auto">dyld: warning, LC_RPATH $ORIGIN/../../_solib_darwin/_U@local_Uconfig_Ucuda_S_Scuda_Ccudart___Uexternal_Slocal_Uconfig_Ucuda_Scuda_Slib in /Library/Python/2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so being ignored in restricted program because it is a relative path<br> dyld: warning, LC_RPATH ../local_config_cuda/cuda/lib in /Library/Python/2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so being ignored in restricted program because it is a relative path<br> dyld: warning, LC_RPATH ../local_config_cuda/cuda/extras/CUPTI/lib in /Library/Python/2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so being ignored in restricted program because it is a relative path<br> Traceback (most recent call last):<br> File "", line 1, in <br> File "/Library/Python/2.7/site-packages/tensorflow/<strong>init</strong>.py", line 24, in <br> from tensorflow.python import *<br> File "/Library/Python/2.7/site-packages/tensorflow/python/<strong>init</strong>.py", line 60, in <br> raise ImportError(msg)<br> ImportError: Traceback (most recent call last):<br> File "/Library/Python/2.7/site-packages/tensorflow/python/<strong>init</strong>.py", line 49, in <br> from tensorflow.python import pywrap_tensorflow<br> File "/Library/Python/2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <br> _pywrap_tensorflow = swig_import_helper()<br> File "/Library/Python/2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper<br> _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)<br> ImportError: dlopen(/Library/Python/2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so, 10): Library not loaded: @rpath/libcudart.8.0.dylib<br> Referenced from: /Library/Python/2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so<br> Reason: image not found</p> <p dir="auto">OS: OSX 10.11.6<br> Tensorflow pip version: tensorflow-gpu==0.12.1</p> <p dir="auto">My "cuda" libs under /usr/local/cuda/lib/*</p> <p dir="auto">/usr/local/cuda/lib/libcublas.8.0.dylib /usr/local/cuda/lib/libcusparse.8.0.dylib /usr/local/cuda/lib/libnppim.8.0.dylib<br> /usr/local/cuda/lib/libcublas.dylib /usr/local/cuda/lib/libcusparse.dylib /usr/local/cuda/lib/libnppim.dylib<br> /usr/local/cuda/lib/libcublas_device.a /usr/local/cuda/lib/libcusparse_static.a /usr/local/cuda/lib/libnppim_static.a<br> /usr/local/cuda/lib/libcublas_static.a /usr/local/cuda/lib/libnppc.8.0.dylib /usr/local/cuda/lib/libnppist.8.0.dylib<br> /usr/local/cuda/lib/libcuda.dylib /usr/local/cuda/lib/libnppc.dylib /usr/local/cuda/lib/libnppist.dylib<br> /usr/local/cuda/lib/libcudadevrt.a /usr/local/cuda/lib/libnppc_static.a /usr/local/cuda/lib/libnppist_static.a<br> /usr/local/cuda/lib/libcudart.8.0.dylib /usr/local/cuda/lib/libnppi.8.0.dylib /usr/local/cuda/lib/libnppisu.8.0.dylib<br> /usr/local/cuda/lib/libcudart.dylib /usr/local/cuda/lib/libnppi.dylib /usr/local/cuda/lib/libnppisu.dylib<br> /usr/local/cuda/lib/libcudart_static.a /usr/local/cuda/lib/libnppi_static.a /usr/local/cuda/lib/libnppisu_static.a<br> /usr/local/cuda/lib/libcudnn.5.dylib /usr/local/cuda/lib/libnppial.8.0.dylib /usr/local/cuda/lib/libnppitc.8.0.dylib<br> /usr/local/cuda/lib/libcudnn.dylib /usr/local/cuda/lib/libnppial.dylib /usr/local/cuda/lib/libnppitc.dylib<br> /usr/local/cuda/lib/libcudnn_static.a /usr/local/cuda/lib/libnppial_static.a /usr/local/cuda/lib/libnppitc_static.a<br> /usr/local/cuda/lib/libcufft.8.0.dylib /usr/local/cuda/lib/libnppicc.8.0.dylib /usr/local/cuda/lib/libnpps.8.0.dylib<br> /usr/local/cuda/lib/libcufft.dylib /usr/local/cuda/lib/libnppicc.dylib /usr/local/cuda/lib/libnpps.dylib<br> /usr/local/cuda/lib/libcufft_static.a /usr/local/cuda/lib/libnppicc_static.a /usr/local/cuda/lib/libnpps_static.a<br> /usr/local/cuda/lib/libcufftw.8.0.dylib /usr/local/cuda/lib/libnppicom.8.0.dylib /usr/local/cuda/lib/libnvToolsExt.1.dylib<br> /usr/local/cuda/lib/libcufftw.dylib /usr/local/cuda/lib/libnppicom.dylib /usr/local/cuda/lib/libnvToolsExt.dylib<br> /usr/local/cuda/lib/libcufftw_static.a /usr/local/cuda/lib/libnppicom_static.a /usr/local/cuda/lib/libnvblas.8.0.dylib<br> /usr/local/cuda/lib/libcuinj.8.0.dylib /usr/local/cuda/lib/libnppidei.8.0.dylib /usr/local/cuda/lib/libnvblas.dylib<br> /usr/local/cuda/lib/libcuinj.dylib /usr/local/cuda/lib/libnppidei.dylib /usr/local/cuda/lib/libnvgraph.8.0.dylib<br> /usr/local/cuda/lib/libculibos.a /usr/local/cuda/lib/libnppidei_static.a /usr/local/cuda/lib/libnvgraph.dylib<br> /usr/local/cuda/lib/libcurand.8.0.dylib /usr/local/cuda/lib/libnppif.8.0.dylib /usr/local/cuda/lib/libnvgraph_static.a<br> /usr/local/cuda/lib/libcurand.dylib /usr/local/cuda/lib/libnppif.dylib /usr/local/cuda/lib/libnvrtc-builtins.8.0.dylib<br> /usr/local/cuda/lib/libcurand_static.a /usr/local/cuda/lib/libnppif_static.a /usr/local/cuda/lib/libnvrtc-builtins.dylib<br> /usr/local/cuda/lib/libcusolver.8.0.dylib /usr/local/cuda/lib/libnppig.8.0.dylib /usr/local/cuda/lib/libnvrtc.8.0.dylib<br> /usr/local/cuda/lib/libcusolver.dylib /usr/local/cuda/lib/libnppig.dylib /usr/local/cuda/lib/libnvrtc.dylib<br> /usr/local/cuda/lib/libcusolver_static.a /usr/local/cuda/lib/libnppig_static.a</p>
<p dir="auto">Something related to linking seems to cause the build to fail on Mac OS 10.12.2 when building with CUDA.</p> <p dir="auto">Verbose build error is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel build -c opt --config=cuda --verbose_failures //tensorflow/tools/pip_package:build_pip_package INFO: Found 1 target... ERROR: /Users/anton/tmp/tensorflow/tensorflow/contrib/ffmpeg/BUILD:66:1: Executing genrule //tensorflow/contrib/ffmpeg:decode_audio_op_py_pygenrule failed: bash failed: error executing command (cd /private/var/tmp/_bazel_anton/d3361bfa15c75c42ab541f3d83e8eba4/execroot/tensorflow &amp;&amp; \ exec env - \ PATH=/usr/local/cuda/bin:/Users/anton/.pyenv/shims:/Users/anton/.rbenv/shims:/Users/anton/.scalaenv/shims:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Users/anton/unix/bin:/usr/local/cuda/bin \ TMPDIR=/var/folders/4r/mq7ht1z11t72w5b5b6014zwm0000gn/T/ \ /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/tensorflow/contrib/ffmpeg/gen_decode_audio_op_py_py_wrappers_cc 1 &gt; bazel-out/local_darwin-py3-opt/genfiles/tensorflow/contrib/ffmpeg/ops/gen_decode_audio_op_py.py'): com.google.devtools.build.lib.shell.AbnormalTerminationException: Process terminated by signal 6. dyld: Library not loaded: @rpath/libcudart.8.0.dylib Referenced from: /private/var/tmp/_bazel_anton/d3361bfa15c75c42ab541f3d83e8eba4/execroot/tensorflow/bazel-out/host/bin/tensorflow/contrib/ffmpeg/gen_decode_audio_op_py_py_wrappers_cc Reason: image not found /bin/bash: line 1: 72493 Abort trap: 6 bazel-out/host/bin/tensorflow/contrib/ffmpeg/gen_decode_audio_op_py_py_wrappers_cc 1 &gt; bazel-out/local_darwin-py3-opt/genfiles/tensorflow/contrib/ffmpeg/ops/gen_decode_audio_op_py.py Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 2.707s, Critical Path: 0.32s"><pre class="notranslate"><code class="notranslate">$ bazel build -c opt --config=cuda --verbose_failures //tensorflow/tools/pip_package:build_pip_package INFO: Found 1 target... ERROR: /Users/anton/tmp/tensorflow/tensorflow/contrib/ffmpeg/BUILD:66:1: Executing genrule //tensorflow/contrib/ffmpeg:decode_audio_op_py_pygenrule failed: bash failed: error executing command (cd /private/var/tmp/_bazel_anton/d3361bfa15c75c42ab541f3d83e8eba4/execroot/tensorflow &amp;&amp; \ exec env - \ PATH=/usr/local/cuda/bin:/Users/anton/.pyenv/shims:/Users/anton/.rbenv/shims:/Users/anton/.scalaenv/shims:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Users/anton/unix/bin:/usr/local/cuda/bin \ TMPDIR=/var/folders/4r/mq7ht1z11t72w5b5b6014zwm0000gn/T/ \ /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/tensorflow/contrib/ffmpeg/gen_decode_audio_op_py_py_wrappers_cc 1 &gt; bazel-out/local_darwin-py3-opt/genfiles/tensorflow/contrib/ffmpeg/ops/gen_decode_audio_op_py.py'): com.google.devtools.build.lib.shell.AbnormalTerminationException: Process terminated by signal 6. dyld: Library not loaded: @rpath/libcudart.8.0.dylib Referenced from: /private/var/tmp/_bazel_anton/d3361bfa15c75c42ab541f3d83e8eba4/execroot/tensorflow/bazel-out/host/bin/tensorflow/contrib/ffmpeg/gen_decode_audio_op_py_py_wrappers_cc Reason: image not found /bin/bash: line 1: 72493 Abort trap: 6 bazel-out/host/bin/tensorflow/contrib/ffmpeg/gen_decode_audio_op_py_py_wrappers_cc 1 &gt; bazel-out/local_darwin-py3-opt/genfiles/tensorflow/contrib/ffmpeg/ops/gen_decode_audio_op_py.py Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 2.707s, Critical Path: 0.32s </code></pre></div> <h3 dir="auto">Related posts</h3> <p dir="auto">It seems that Caffe had similar issues due to Apple dropping the <code class="notranslate">LD_LIBRARY_PATH</code> environment variable: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="112425891" data-permission-text="Title is private" data-url="https://github.com/BVLC/caffe/issues/3227" data-hovercard-type="issue" data-hovercard-url="/BVLC/caffe/issues/3227/hovercard" href="https://github.com/BVLC/caffe/issues/3227">BVLC/caffe#3227</a></p> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Mac OS 10.12.2</p> <p dir="auto">Installed version of CUDA and cuDNN:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ls -l /usr/local/cuda/lib/libcud* -rwxr-xr-x 1 root wheel 13504 Nov 3 19:39 /usr/local/cuda/lib/libcuda.dylib* lrwxr-xr-x 1 root wheel 45 Nov 3 19:40 /usr/local/cuda/lib/libcudadevrt.a@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudadevrt.a lrwxr-xr-x 1 root wheel 50 Nov 3 19:40 /usr/local/cuda/lib/libcudart.8.0.dylib@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudart.8.0.dylib lrwxr-xr-x 1 root wheel 46 Nov 3 19:40 /usr/local/cuda/lib/libcudart.dylib@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudart.dylib lrwxr-xr-x 1 root wheel 49 Nov 3 19:40 /usr/local/cuda/lib/libcudart_static.a@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudart_static.a lrwxr-xr-x 1 root admin 47 Jan 8 16:48 /usr/local/cuda/lib/libcudnn.5.dylib@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudnn.5.dylib lrwxr-xr-x 1 root admin 45 Jan 8 16:48 /usr/local/cuda/lib/libcudnn.dylib@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudnn.dylib lrwxr-xr-x 1 root admin 48 Jan 8 16:48 /usr/local/cuda/lib/libcudnn_static.a@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudnn_static.a"><pre class="notranslate"><code class="notranslate">$ ls -l /usr/local/cuda/lib/libcud* -rwxr-xr-x 1 root wheel 13504 Nov 3 19:39 /usr/local/cuda/lib/libcuda.dylib* lrwxr-xr-x 1 root wheel 45 Nov 3 19:40 /usr/local/cuda/lib/libcudadevrt.a@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudadevrt.a lrwxr-xr-x 1 root wheel 50 Nov 3 19:40 /usr/local/cuda/lib/libcudart.8.0.dylib@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudart.8.0.dylib lrwxr-xr-x 1 root wheel 46 Nov 3 19:40 /usr/local/cuda/lib/libcudart.dylib@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudart.dylib lrwxr-xr-x 1 root wheel 49 Nov 3 19:40 /usr/local/cuda/lib/libcudart_static.a@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudart_static.a lrwxr-xr-x 1 root admin 47 Jan 8 16:48 /usr/local/cuda/lib/libcudnn.5.dylib@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudnn.5.dylib lrwxr-xr-x 1 root admin 45 Jan 8 16:48 /usr/local/cuda/lib/libcudnn.dylib@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudnn.dylib lrwxr-xr-x 1 root admin 48 Jan 8 16:48 /usr/local/cuda/lib/libcudnn_static.a@ -&gt; /Developer/NVIDIA/CUDA-8.0/lib/libcudnn_static.a </code></pre></div> <h5 dir="auto">Configuration command</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Please specify the location of python. [Default is /Users/anton/.pyenv/shims/python]: Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] N No Google Cloud Platform support will be enabled for TensorFlow Do you wish to build TensorFlow with Hadoop File System support? [y/N] N No Hadoop File System support will be enabled for TensorFlow Error in sitecustomize; set PYTHONVERBOSE for traceback: KeyError: 'PYTHONPATH' Error in sitecustomize; set PYTHONVERBOSE for traceback: KeyError: 'PYTHONPATH' Error in sitecustomize; set PYTHONVERBOSE for traceback: KeyError: 'PYTHONPATH' Found possible Python library paths: /Users/anton/.pyenv/versions/anaconda3-4.1.1/lib/python3.5/site-packages Please input the desired Python library path to use. Default is [/Users/anton/.pyenv/versions/anaconda3-4.1.1/lib/python3.5/site-packages] Using python library path: /Users/anton/.pyenv/versions/anaconda3-4.1.1/lib/python3.5/site-packages Do you wish to build TensorFlow with OpenCL support? [y/N] No OpenCL support will be enabled for TensorFlow Do you wish to build TensorFlow with CUDA support? [y/N] Y CUDA support will be enabled for TensorFlow Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: Please specify the CUDA SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: Please specify the location where CUDA toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify the Cudnn version you want to use. [Leave empty to use system default]: Please specify the location where cuDNN library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: libcudnn.dylib resolves to libcudnn.dylib Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Please note that each additional compute capability significantly increases your build time and binary size. [Default is: &quot;3.5,5.2&quot;]: 3.5 Extracting Bazel installation... ............ INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes. ......... ____Loading package: tensorflow/tools/git ____Loading package: tensorflow/contrib/opt ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 40,960 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 444,518 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 743,716 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 1,170,534 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 1,597,352 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 1,998,646 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 2,251,050 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 2,675,032 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 3,144,390 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 3,579,716 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 3,788,162 bytes INFO: All external dependencies fetched successfully. Configuration finished"><pre class="notranslate"><code class="notranslate">Please specify the location of python. [Default is /Users/anton/.pyenv/shims/python]: Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] N No Google Cloud Platform support will be enabled for TensorFlow Do you wish to build TensorFlow with Hadoop File System support? [y/N] N No Hadoop File System support will be enabled for TensorFlow Error in sitecustomize; set PYTHONVERBOSE for traceback: KeyError: 'PYTHONPATH' Error in sitecustomize; set PYTHONVERBOSE for traceback: KeyError: 'PYTHONPATH' Error in sitecustomize; set PYTHONVERBOSE for traceback: KeyError: 'PYTHONPATH' Found possible Python library paths: /Users/anton/.pyenv/versions/anaconda3-4.1.1/lib/python3.5/site-packages Please input the desired Python library path to use. Default is [/Users/anton/.pyenv/versions/anaconda3-4.1.1/lib/python3.5/site-packages] Using python library path: /Users/anton/.pyenv/versions/anaconda3-4.1.1/lib/python3.5/site-packages Do you wish to build TensorFlow with OpenCL support? [y/N] No OpenCL support will be enabled for TensorFlow Do you wish to build TensorFlow with CUDA support? [y/N] Y CUDA support will be enabled for TensorFlow Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: Please specify the CUDA SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: Please specify the location where CUDA toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify the Cudnn version you want to use. [Leave empty to use system default]: Please specify the location where cuDNN library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: libcudnn.dylib resolves to libcudnn.dylib Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Please note that each additional compute capability significantly increases your build time and binary size. [Default is: "3.5,5.2"]: 3.5 Extracting Bazel installation... ............ INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes. ......... ____Loading package: tensorflow/tools/git ____Loading package: tensorflow/contrib/opt ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 40,960 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 444,518 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 743,716 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 1,170,534 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 1,597,352 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 1,998,646 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 2,251,050 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 2,675,032 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 3,144,390 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 3,579,716 bytes ____Downloading http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz: 3,788,162 bytes INFO: All external dependencies fetched successfully. Configuration finished </code></pre></div> <h4 dir="auto">Git revision</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git rev-parse HEAD ec7929b878926c39255254e9aea992f0bc65aa68"><pre class="notranslate"><code class="notranslate">$ git rev-parse HEAD ec7929b878926c39255254e9aea992f0bc65aa68 </code></pre></div> <h4 dir="auto">Bazel version</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel version Build label: 0.4.3-homebrew Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar Build time: Thu Dec 22 15:20:15 2016 (1482420015) Build timestamp: 1482420015 Build timestamp as int: 1482420015"><pre class="notranslate"><code class="notranslate">$ bazel version Build label: 0.4.3-homebrew Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar Build time: Thu Dec 22 15:20:15 2016 (1482420015) Build timestamp: 1482420015 Build timestamp as int: 1482420015 </code></pre></div> <h3 dir="auto">Update</h3> <p dir="auto">I modified <code class="notranslate">third_party/gpus/crosstool/CROSSTOOL.tpl</code> the following lines</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" cxx_flag: &quot;-std=c++11&quot; linker_flag: &quot;-Wl,-no-as-needed&quot;"><pre class="notranslate"><code class="notranslate"> cxx_flag: "-std=c++11" linker_flag: "-Wl,-no-as-needed" </code></pre></div> <p dir="auto">in the toolchain section to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" cxx_flag: &quot;-std=c++11&quot; linker_flag: &quot;-Wl,-no-as-needed,-rpath,/usr/local/cuda/lib&quot;"><pre class="notranslate"><code class="notranslate"> cxx_flag: "-std=c++11" linker_flag: "-Wl,-no-as-needed,-rpath,/usr/local/cuda/lib" </code></pre></div> <p dir="auto">Now I get failures at:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /Users/anton/tmp/tensorflow/tensorflow/python/BUILD:793:1: Executing genrule //tensorflow/python:control_flow_ops_pygenrule failed: bash failed: error executing command (cd /private/var/tmp/_bazel_anton/d3361bfa15c75c42ab541f3d83e8eba4/execroot/tensorflow &amp;&amp; \ exec env - \ PATH=/usr/local/cuda/bin:/Users/anton/.pyenv/shims:/Users/anton/.rbenv/shims:/Users/anton/.scalaenv/shims:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Users/anton/unix/bin:/usr/local/cuda/bin \ TMPDIR=/var/folders/4r/mq7ht1z11t72w5b5b6014zwm0000gn/T/ \ /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/tensorflow/python/gen_control_flow_ops_py_wrappers_cc @tensorflow/python/ops/hidden_ops.txt 1 &gt; bazel-out/local_darwin-py3-opt/genfiles/tensorflow/python/ops/gen_control_flow_ops.py'): com.google.devtools.build.lib.shell.AbnormalTerminationException: Process terminated by signal 6. dyld: Library not loaded: @rpath/libcudart.8.0.dylib Referenced from: /private/var/tmp/_bazel_anton/d3361bfa15c75c42ab541f3d83e8eba4/execroot/tensorflow/bazel-out/host/bin/tensorflow/python/gen_control_flow_ops_py_wrappers_cc Reason: image not found /bin/bash: line 1: 45635 Abort trap: 6 bazel-out/host/bin/tensorflow/python/gen_control_flow_ops_py_wrappers_cc @tensorflow/python/ops/hidden_ops.txt 1 &gt; bazel-out/local_darwin-py3-opt/genfiles/tensorflow/python/ops/gen_control_flow_ops.py Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 1683.463s, Critical Path: 1587.37s"><pre class="notranslate"><code class="notranslate">ERROR: /Users/anton/tmp/tensorflow/tensorflow/python/BUILD:793:1: Executing genrule //tensorflow/python:control_flow_ops_pygenrule failed: bash failed: error executing command (cd /private/var/tmp/_bazel_anton/d3361bfa15c75c42ab541f3d83e8eba4/execroot/tensorflow &amp;&amp; \ exec env - \ PATH=/usr/local/cuda/bin:/Users/anton/.pyenv/shims:/Users/anton/.rbenv/shims:/Users/anton/.scalaenv/shims:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Users/anton/unix/bin:/usr/local/cuda/bin \ TMPDIR=/var/folders/4r/mq7ht1z11t72w5b5b6014zwm0000gn/T/ \ /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/tensorflow/python/gen_control_flow_ops_py_wrappers_cc @tensorflow/python/ops/hidden_ops.txt 1 &gt; bazel-out/local_darwin-py3-opt/genfiles/tensorflow/python/ops/gen_control_flow_ops.py'): com.google.devtools.build.lib.shell.AbnormalTerminationException: Process terminated by signal 6. dyld: Library not loaded: @rpath/libcudart.8.0.dylib Referenced from: /private/var/tmp/_bazel_anton/d3361bfa15c75c42ab541f3d83e8eba4/execroot/tensorflow/bazel-out/host/bin/tensorflow/python/gen_control_flow_ops_py_wrappers_cc Reason: image not found /bin/bash: line 1: 45635 Abort trap: 6 bazel-out/host/bin/tensorflow/python/gen_control_flow_ops_py_wrappers_cc @tensorflow/python/ops/hidden_ops.txt 1 &gt; bazel-out/local_darwin-py3-opt/genfiles/tensorflow/python/ops/gen_control_flow_ops.py Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 1683.463s, Critical Path: 1587.37s </code></pre></div> <p dir="auto">I got a bit further but it seems that I need to modify the link options in more files.</p>
1
<p dir="auto">React version: 18.2</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>I have multiple async methods that fetch data from API on demand.</li> <li>This data needs to be loaded initially on page load and also in case of refresh button pressed by the user</li> <li>Without React.StrictMode the abort controller aborted = false</li> <li>With React.StrictMode the abort controller gets set to aborted = true</li> </ol> <h2 dir="auto">Example code:</h2> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { useEffect, useState } from &quot;react&quot;; import axios from &quot;axios&quot;; export default function App() { const [data, setData] = useState([]); const [dataLoading, setDataLoading] = useState(false); const controller = new AbortController(); const { signal } = controller; const getData = async () =&gt; { console.log(&quot;getData API call&quot;); setDataLoading(true); return axios .get(`/api/v1/health`, { signal }) .then((res) =&gt; { setData([&quot;data: &quot;, &quot;loaded&quot;, &quot; successfully&quot;]); }) .catch((err) =&gt; { console.log(&quot;getData caught error&quot;); console.log({ err }); }) .finally(() =&gt; setDataLoading(false)); }; useEffect(() =&gt; { getData(); return () =&gt; { console.log(&quot;CONTROLLER ABORT&quot;); controller.abort(); }; }, []); const refreshData = async () =&gt; { await getData(); }; return ( &lt;div&gt; {data.length ? ( data.map((val) =&gt; val) ) : ( &lt;div&gt;{dataLoading ? &quot;Loading...&quot; : &quot;Data not found.&quot;}&lt;/div&gt; )} &lt;Actions onRefresh={refreshData} /&gt; &lt;/div&gt; ); } function Actions({ onRefresh }) { return ( &lt;div style={{ marginTop: &quot;20px&quot; }}&gt; &lt;button onClick={onRefresh}&gt;Refresh&lt;/button&gt; &lt;/div&gt; ); }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">useEffect</span><span class="pl-kos">,</span> <span class="pl-s1">useState</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"react"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">axios</span> <span class="pl-k">from</span> <span class="pl-s">"axios"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">function</span> <span class="pl-v">App</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-kos">[</span><span class="pl-s1">data</span><span class="pl-kos">,</span> <span class="pl-s1">setData</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</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-kos">[</span><span class="pl-s1">dataLoading</span><span class="pl-kos">,</span> <span class="pl-s1">setDataLoading</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">controller</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">AbortController</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-kos">{</span> signal <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">controller</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-en">getData</span> <span class="pl-c1">=</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"getData API call"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">setDataLoading</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">axios</span> <span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">`/api/v1/health`</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> signal <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">res</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">setData</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">"data: "</span><span class="pl-kos">,</span> <span class="pl-s">"loaded"</span><span class="pl-kos">,</span> <span class="pl-s">" successfully"</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-en">catch</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">err</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">"getData caught error"</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> err <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-en">finally</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-s1">setDataLoading</span><span class="pl-kos">(</span><span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-en">useEffect</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-en">getData</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">(</span><span class="pl-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">"CONTROLLER ABORT"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">controller</span><span class="pl-kos">.</span><span class="pl-en">abort</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-kos">;</span> <span class="pl-k">const</span> <span class="pl-en">refreshData</span> <span class="pl-c1">=</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">await</span> <span class="pl-en">getData</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">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">length</span> ? <span class="pl-kos">(</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">val</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">val</span><span class="pl-kos">)</span> <span class="pl-kos">)</span> : <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">dataLoading</span> ? <span class="pl-s">"Loading..."</span> : <span class="pl-s">"Data not found."</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Actions</span> <span class="pl-c1">onRefresh</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-en">refreshData</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-v">Actions</span><span class="pl-kos">(</span><span class="pl-kos">{</span> onRefresh <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</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">marginTop</span>: <span class="pl-s">"20px"</span> <span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">onRefresh</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>Refresh<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Console log produces the following result:</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="getData API call CONTROLLER ABORT getData API call getData caught error {err: CanceledError} getData caught error {err: CanceledError}"><pre class="notranslate"><span class="pl-c1">getData API call</span> <span class="pl-c1">CONTROLLER ABORT</span> <span class="pl-c1">getData API call</span> <span class="pl-c1">getData caught error</span> <span class="pl-c1">{err: CanceledError}</span> <span class="pl-c1">getData caught error</span> <span class="pl-c1">{err: CanceledError}</span></pre></div> <h2 dir="auto">Link to code example:</h2> <p dir="auto"><a href="https://codesandbox.io/s/react-18-abort-controller-bug-v3v4oi" rel="nofollow">https://codesandbox.io/s/react-18-abort-controller-bug-v3v4oi</a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto">The second rendering of the component causes the controller to go from aborted false -&gt; true.</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">Please suggest how else can we use AbortController without duplicating logic and what are the best practices for doing so going forward.</p> <p dir="auto">PS: I'm aware of the React.StrictMode <a href="https://reactjs.org/docs/strict-mode.html#ensuring-reusable-state" rel="nofollow">changes in React 18</a>, but I can't seem to find another solution to this problem other than move all the fetch logic inside useEffect, which solves the problem, but cannot be isolated for reuse.</p>
<p dir="auto">Hi together</p> <p dir="auto">Learning React at the moment and not sure if I'm not unterstanding a core part of React or this is a bug...</p> <p dir="auto">My idea was to create a simple login and don't show the login window if the user is already logged in. Authentication is handled via Firebase, so here's a small snippet of my code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Login = React.createClass ({ getInitialState: function(){ return { loggedIn: false }; }, componentWillMount: function() { [ ... some firebase code ... ] firebase.auth().onAuthStateChanged(function(user) { if (user) { this.setState({ loggedIn: true }); } else { this.setState({ loggedIn: false }); } } render: function() { return ( &lt;div&gt; {this.state.loggedIn ? ( &lt;div&gt; &lt;Backend/&gt; &lt;/div&gt; ) : ( [ ... login form.... ] ) } &lt;/div&gt; ); } }); // END LOGIN "><pre class="notranslate"><code class="notranslate">var Login = React.createClass ({ getInitialState: function(){ return { loggedIn: false }; }, componentWillMount: function() { [ ... some firebase code ... ] firebase.auth().onAuthStateChanged(function(user) { if (user) { this.setState({ loggedIn: true }); } else { this.setState({ loggedIn: false }); } } render: function() { return ( &lt;div&gt; {this.state.loggedIn ? ( &lt;div&gt; &lt;Backend/&gt; &lt;/div&gt; ) : ( [ ... login form.... ] ) } &lt;/div&gt; ); } }); // END LOGIN </code></pre></div> <p dir="auto">So my problem is the following: componentWillMount should be called before render, so if the user is already logged in, the new state is loggedIn: true and so it only renders the backend and not the login form... but unfortunately this new state in componentWillMount is not taken before render <strong>and it actually renders the login form</strong></p> <p dir="auto">Thanks for the answer, cheers!</p> <p dir="auto">Martin</p>
0
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.2.4</td> </tr> </tbody> </table> <p dir="auto">Taking from this ticket : <a href="https://github.com/symfony/assetic-bundle/issues/428">https://github.com/symfony/assetic-bundle/issues/428</a><br> Have the same problem.</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>yes</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.2.x</td> </tr> </tbody> </table> <p dir="auto">This problem occurs after an upgrade to symfony 3.2.x if you use <a href="https://github.com/kriswallsmith/assetic/blob/master/src/Assetic/Filter/BaseProcessFilter.php#L51-L56">kriswallsmith/assetic</a> and have exported bash functions in your current environment variables. In previous versions they were ignored by <code class="notranslate">proc_open</code> but in the 3.2 branch they are added using a self built environment string which tries to load these functions into <code class="notranslate">sh</code> which respectfully declines. This causes a bc break.</p> <p dir="auto">Results per <a href="https://github.com/symfony/process">symfony/process</a> version when adding a bash function environment variable:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Installed 3.1.* ======================================== hello world Installed 3.2.0 ======================================== sh: 1: export: BASH_FUNC_foo%%: bad variable name Installed * ======================================== sh: 1: export: BASH_FUNC_foo%%: bad variable name Installed 3.2.x-dev ======================================== sh: 1: export: BASH_FUNC_foo%%: bad variable name Installed dev-master ======================================== hello world"><pre lang="text" class="notranslate"><code class="notranslate">Installed 3.1.* ======================================== hello world Installed 3.2.0 ======================================== sh: 1: export: BASH_FUNC_foo%%: bad variable name Installed * ======================================== sh: 1: export: BASH_FUNC_foo%%: bad variable name Installed 3.2.x-dev ======================================== sh: 1: export: BASH_FUNC_foo%%: bad variable name Installed dev-master ======================================== hello world </code></pre></div> <p dir="auto">The script to check:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env bash # Create and export bash function foo() { echo 'bar'; } export -f foo # Load bash function foo and add it to a process # using a process builder, run it and show output. PHPCODE=' require __DIR__ . &quot;/vendor/autoload.php&quot;; $foo = getenv(&quot;BASH_FUNC_foo%%&quot;); $pb = new \Symfony\Component\Process\ProcessBuilder([&quot;echo&quot;, &quot;hello world&quot;]); $pb-&gt;setEnv(&quot;BASH_FUNC_foo%%&quot;, $foo); $p = $pb-&gt;getProcess(); $p-&gt;run(); echo $p-&gt;getErrorOutput() . $p-&gt;getOutput() . PHP_EOL; ' # Try multiple versions of the symfony/process component for VERSION in '3.1.*' '3.2.0' '*' '3.2.x-dev' 'dev-master'; do composer -q require symfony/process &quot;$VERSION&quot; echo &quot;Installed $VERSION&quot; echo '==================' php -r &quot;$PHPCODE&quot; done "><pre class="notranslate"><span class="pl-c"><span class="pl-c">#!</span>/usr/bin/env bash </span> <span class="pl-c"><span class="pl-c">#</span> Create and export bash function </span> <span class="pl-en">foo</span>() { <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">'</span>bar<span class="pl-pds">'</span></span><span class="pl-k">;</span> } <span class="pl-k">export</span> -f foo <span class="pl-c"><span class="pl-c">#</span> Load bash function foo and add it to a process </span> <span class="pl-c"><span class="pl-c">#</span> using a process builder, run it and show output. </span> PHPCODE=<span class="pl-s"><span class="pl-pds">'</span> </span> <span class="pl-s">require __DIR__ . "/vendor/autoload.php"; </span> <span class="pl-s"> </span> <span class="pl-s">$foo = getenv("BASH_FUNC_foo%%"); </span> <span class="pl-s">$pb = new \Symfony\Component\Process\ProcessBuilder(["echo", "hello world"]); </span> <span class="pl-s">$pb-&gt;setEnv("BASH_FUNC_foo%%", $foo); </span> <span class="pl-s">$p = $pb-&gt;getProcess(); </span> <span class="pl-s">$p-&gt;run(); </span> <span class="pl-s"> </span> <span class="pl-s">echo $p-&gt;getErrorOutput() . $p-&gt;getOutput() . PHP_EOL; </span> <span class="pl-s"><span class="pl-pds">'</span></span> <span class="pl-c"><span class="pl-c">#</span> Try multiple versions of the symfony/process component </span> <span class="pl-k">for</span> <span class="pl-smi">VERSION</span> <span class="pl-k">in</span> <span class="pl-s"><span class="pl-pds">'</span>3.1.*<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>3.2.0<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>*<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>3.2.x-dev<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>dev-master<span class="pl-pds">'</span></span><span class="pl-k">;</span> <span class="pl-k">do</span> composer -q require symfony/process <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$VERSION</span><span class="pl-pds">"</span></span> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>Installed <span class="pl-smi">$VERSION</span><span class="pl-pds">"</span></span> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">'</span>==================<span class="pl-pds">'</span></span> php -r <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$PHPCODE</span><span class="pl-pds">"</span></span> <span class="pl-k">done</span> </pre></div>
1
<p dir="auto"><strong>Elasticsearch version</strong>: 2.3.5</p> <p dir="auto"><strong>JVM version</strong>: OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-1~deb8u1)</p> <p dir="auto"><strong>OS version</strong>: Debian 8.5</p> <p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>: log messages are written to <code class="notranslate">${path.logs}/${cluster.name}.log</code> <strong>and</strong> <code class="notranslate">stdout</code>. When using SystemD, logs end up in two files (ES log and syslog)</p> <p dir="auto">I don't see a good reason to keep both locations for logs (see "the bad" section here : <a href="http://www.kibinlabs.com/systemd-logging-tricks/" rel="nofollow">http://www.kibinlabs.com/systemd-logging-tricks/</a>)</p>
<p dir="auto">When we moved query parsing on the coordinating node (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="63624736" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/10217" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/10217/hovercard" href="https://github.com/elastic/elasticsearch/issues/10217">#10217</a>), we added a new <code class="notranslate">SearchSourceBuilder#fromXContent</code> method that given an <code class="notranslate">XContentParser</code> and the current <code class="notranslate">QueryParseContext</code> parses and creates a new <code class="notranslate">SearchSourceBuilder</code> object. The parse code ends up duplicating what we already have in our <code class="notranslate">SearchParseElement</code> classes. We made a choice not to refactor these initially as they depend on <code class="notranslate">SearchContext</code> and there are still apis that use them to parse lucene queries straight-away and set them to the search context rather than going through our intermediate query representation.</p> <p dir="auto">This solution can only be temporary though, as we are currently duplicating parsing code. What we should do ideally instead, is move over parsing code to the new solution (either <code class="notranslate">SearchSourceBuilder#fromXContent</code> or an updated version of <code class="notranslate">SearchParseElement</code> that doesn't depend on <code class="notranslate">SearchContext</code>) and get rid of the previous parsing code. I realize how this becomes hard to do given that we have not moved yet all of the search sections over. Maybe we should wait till the search refactoring is completed, but after that we should clean this up and have only one way to parse search sections, with code in one single place, otherwise it becomes hard to understand how each api parses search sections.</p>
0
<p dir="auto">I submitted this to the mailing list, but I've since realized that this is probably a better place for it. So sorry for the double-post.</p> <p dir="auto">I've been wanting for some time the option to make stacked histograms using the <code class="notranslate">step</code> or <code class="notranslate">stepfilled</code> histtypes. I've started working on this in a fork, but I wanted to solicit some opinions on how to change the function call.</p> <p dir="auto">The most straightforward thing to do would be to add two new histtypes: <code class="notranslate">stepstacked</code> and <code class="notranslate">stepfilledstacked</code>, bringing the total number of possible histtypes to 6. However, that feels kind of clunky.</p> <p dir="auto">I'd like to propose that instead of increasing the number of histtypes, I add a new boolean kwarg called <code class="notranslate">stacked</code> which controls whether or not the histogram gets stacked. We then don't need to increase the number of histtypes. The <code class="notranslate">barstacked</code> histtype becomes redundant, as it's identical to <code class="notranslate">histtype='bar', stacked=True</code>, but I'll leave it in for backwards compatibility, to eventually be deprecated.</p> <p dir="auto">While I'm at it, filling a step histogram by using a different histtype (<code class="notranslate">stepfilled</code>) seems clunky and inconsistent with how one would deal with a bar histogram. To control the fill for a bar histogram, one uses the <code class="notranslate">fill</code> kwarg, which gets passed to the patch collection. I'd propose that we use the <code class="notranslate">fill</code> kwarg in a similar way for the step histogram and eliminate the <code class="notranslate">stepfilled</code> histtype.</p> <p dir="auto">In sumarry, here are the changes I'd like to make, as they would be reflected in the docstring</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;&quot;&quot; *histtype*: [ 'bar' | 'step' ] The type of histogram to draw. *fill*: If *True*, the histogram will be filled. If *False* only the edges of the histogram will be drawn. *stacked*: If *True*, multiple data are stacked on top of each other If *False* multiple data are aranged side by side if histtype is 'bar' or on top of each other if histtype is 'step' &quot;&quot;&quot;"><pre class="notranslate"><span class="pl-s">"""</span> <span class="pl-s"> *histtype*: [ 'bar' | 'step' ]</span> <span class="pl-s"> The type of histogram to draw.</span> <span class="pl-s"></span> <span class="pl-s"> *fill*:</span> <span class="pl-s"> If *True*, the histogram will be filled.</span> <span class="pl-s"> If *False* only the edges of the histogram will be drawn.</span> <span class="pl-s"></span> <span class="pl-s"> *stacked*:</span> <span class="pl-s"> If *True*, multiple data are stacked on top of each other</span> <span class="pl-s"> If *False* multiple data are aranged side by side if</span> <span class="pl-s"> histtype is 'bar' or on top of each other if histtype is 'step'</span> <span class="pl-s">"""</span></pre></div> <p dir="auto">We can of course leave in the <code class="notranslate">barstacked</code> and <code class="notranslate">stepfilled</code> histtypes for backwards compatability.</p> <p dir="auto">So, are there opinions on wether this proposal seems like a good idea? I'm mostly interested in getting stacked step histograms, which I've already implemented, but it seems like I might as well clean up the function call while I'm at it. If others agree that changing the function call is a good idea, I'll be happy to implement it and include it in my pull request.</p>
<p dir="auto"><a href="https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/backend_webagg.py#L54">https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/backend_webagg.py#L54</a></p> <p dir="auto">flake8 testing of <a href="https://github.com/matplotlib/matplotlib">https://github.com/matplotlib/matplotlib</a> on Python 3.6.4</p> <p dir="auto">$ <strong>flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./lib/matplotlib/backends/backend_webagg.py:54:9: F821 undefined name 'show' show() ^"><pre class="notranslate"><code class="notranslate">./lib/matplotlib/backends/backend_webagg.py:54:9: F821 undefined name 'show' show() ^ </code></pre></div>
0
<p dir="auto">NGram Tokenizers are a very useful filter to match parts of compound words. Compound words can be commonly found p.e. in the German language, but occur in English as well (p.e. "thunderstorm").<br> <a href="https://www.elastic.co/guide/en/elasticsearch/guide/current/ngrams-compound-words.html" rel="nofollow">https://www.elastic.co/guide/en/elasticsearch/guide/current/ngrams-compound-words.html</a></p> <p dir="auto">NGram (also called n-gram) Tokenizers split up words into token sequences. Each token has a specified minimum gram length (min_gram) and maximum gram length (max_gram). Tokens consisting of three letters p.e. are called trigrams.<br> Using trigrams as our starting point, the word "peanut" for example would be divided into the three-letter-tokens "pea", "ean", "anu" and "nut".<br> Searching for "peanut" would therefore also (partially) match words like "<strong>pea</strong>ce", "S<strong>ean</strong>", "<strong>Anu</strong>bis" and "<strong>nut</strong>rition". They all contain one of these tokens, but might not be words (or the document if they are all in one) we want to see as our results.<br> Statistically speaking we would then be suffering type I errors (false positives).<br> <a href="https://en.wikipedia.org/wiki/Type_I_and_type_II_errors" rel="nofollow">https://en.wikipedia.org/wiki/Type_I_and_type_II_errors</a></p> <p dir="auto">Obviously we might then try longer min_gram lengths, p.e. four or five letters long.<br> With five-grams, "peanut" would be split up in "peanu" and "eanut", giving us far more exact results.<br> One might come to the conclusion, the longer the n-gram, the better.<br> Though this is be true to some extent and for some purposes, we will run into another problem.</p> <p dir="auto">Elasticsearch's NGram Tokenizers ignore search terms with a length smaller than the specified min_gram!<br> That means the actual search term will often be significantly shorter and more vague than intended. If there will be a search term left at all.</p> <p dir="auto">We might p.e. search for "step by step", trying to find backpacks of this company. Here we have multiple query strings, combined by the AND operator.<br> If we use our five-gram Tokenizer every word will be ignored. We will have no results resulting in type II errors (false negatives).<br> Bigrams would respect every word, but lead to a lot of type I errors (see above the "peanut" example).<br> Trigrams would only exclude the word "by" and respect the rest while being more accurate. But trigrams match the unwanted "Steckdosenleiste" (= multi-outlet power strip). <strong>"Ste"</strong>, "tep", <strong>"Ste"</strong>, "tep" on the one hand and <strong>"ste"</strong>, "tec", "eck", "ckd", "kdo", "dos", "ose", "sen", "enl", "nle", "lei", "eis", "ist", <strong>"ste"</strong> on the other means 50% of the search terms are matched!<br> So we would might opt for a four-gram Tokenizer, bringing us good results this time.<br> But then searching for "Jay Smith" would also give us somebody called "John Smith" with the same exact match percentage (type I error).</p> <p dir="auto">Even if we wouldn't care for words smaller than four letters, sure enough one can come up with an example where five-grams would be needed.<br> Searching for "Recht" (= law), a four-gram Tokenizer will match "Echt + rechnung" (= calculation/bill + real):<br> "Recht" splits up into <strong>"rech"</strong>, <strong>"echt"</strong> while "Echt + rechnung" splits up into <strong>"echt"</strong> and <strong>"rech"</strong>, "echn", "chnu", "hnun", "nung", presenting a perfect match. This might come as a surprise, as those words are in two differents fields (the fields "name" and "description"), making a good example of how unintended and undesired a match can be.<br> Respecting the token order ("Rech" before "echt") of our search term would help here, but is not supported. Same goes for the "step by step" example.</p> <p dir="auto">If it were possible for the Elasticsearch NGram Tokenizer to fall back to smaller sized n-grams, using five-grams for "Smith" and trigrams for "Jay" (instead of ignoring "Jay completely), our problems described above would be gone. We would have relative n-gram precision according to the length of our search terms. But as it stands, we are forced to choose between lots of type I or lots of type II errors.</p> <p dir="auto">To sum the examples we have the following situation:</p> <ol dir="auto"> <li>A gram size smaller than five leads to problems with our search term "Recht" (type I errors).</li> <li>A gram size larger than three ignores "jay" in "jay smith" (type I error).</li> <li>A gram size larger than four ignores "step by step" (type II error).</li> </ol> <p dir="auto">This is why a combination of three to five grams (p.e. min_gram=3 and max_gram=5) also fails.</p> <p dir="auto">Feel free to play around with the examples in my gist: <a href="https://www.found.no/play/gist/6d27486e51bdda88dd84" rel="nofollow">https://www.found.no/play/gist/6d27486e51bdda88dd84</a><br> Edit the min_gram and max_gram sizes to your liking in the "Analysis" section (center left), rerun the queries ("Run" in the top right) and see the altered "Results" section (bottom right) with our Searches # 1, # 2 and # 3.<br> Searching for "jay smith" corresponds to Search # 1, searching for "step by step" to Search # 2 and finally searching for "recht" to Search # 3. To try out other search terms, edit the queries in the "Searches" section (top right).<br> Or edit the "Documents" section (top left), to experiment with different words to be searched for.</p> <p dir="auto">To summarize:<br> If we want to match search terms to compound words ("thunderstorm"), NGram Tokenizers are a fine tool. They split up words into tokens of a predefined size.<br> But Elasticsearch's fixed size NGram Tokenizers force us to choose between either lots of type I or type II errors. What works well for short words like "Jay" won't work for longer words like "Recht" (German for law) and vice versa.<br> Desired would be a flexible NGram Tokenizer. This means being able to switch from longer NGram Tokenizers (p.e. five-grams) to shorter (p.e. trigrams), as the search terms become shorter. Another, maybe more complicated way could be to make the NGram Tokenizer respect the order of the tokens.</p>
<p dir="auto">It would be great if the nGram tokenizer came with an option to force creation of a whole-word token for cases when the word length falls outside the min-gram/max-gram range. Currently, we have to resort to a dual-mapping approach to make sure these tokens get created, which limits how we can construct per-field queries.</p>
1
<p dir="auto">Possible Bug Report</p> <p dir="auto">Using:<br> deno 1.7.5 (release, x86_64-pc-windows-msvc)<br> v8 9.0.123<br> typescript 4.1.4</p> <p dir="auto">Editor: VS Code 1.53.2, with intellisense plus Deno extension</p> <p dir="auto">Standard Lib used:<br> "<a href="https://deno.land/[email protected]/http/server.ts" rel="nofollow">https://deno.land/[email protected]/http/server.ts</a>"</p> <p dir="auto">Class:<br> import {serve} from "<a href="https://deno.land/[email protected]/http/server.ts" rel="nofollow">https://deno.land/[email protected]/http/server.ts</a>"</p> <p dir="auto">Implementation:<br> Async HTTP server through 'serve'<br> Same problem probably with 'serveTLS' but I did not test that one yet.</p> <p dir="auto">Problem Description<br> All 'object' types {} inside ServerRequest and Server (and possibly others) are wrongly formatted.<br> Hence JS doesn't recognize them and/or can't access them. For instance the HTTP headers variables such as 'host' or 'accept' cannot be reached (as an example). The error is consistent to ALL {} types.<br> See conn: r: headers: w: w.writer: etc.</p> <p dir="auto">Furthermore I think the ARRAY types [] have the same problem, but I didn't test yet. See w.buf</p> <p dir="auto">REMARK: I do .js, could this have to do with .ts ? It kind of looks like the JSON format for {} and [] has been extended with a datatype.<br> e.g.: headers: Headers {...}<br> e.g.: w.buf: Uint8Array(4096) [...]</p> <p dir="auto">CODE to reproduce the possible bug:</p> <p dir="auto">In index.js file:</p> <p dir="auto">import {serve} from "<a href="https://deno.land/[email protected]/http/server.ts" rel="nofollow">https://deno.land/[email protected]/http/server.ts</a>"<br> import {dispatchRequest} from "./serving.js"</p> <p dir="auto">// Setup Asyn server and make it listen/wait for incoming connections and serve them<br> const server = serve({ "hostname": "127.0.0.1", "port": 8080 });<br> console.log("Server listening on port 8080");<br> for await (const req of server) { req.respond(await dispatchRequest(req)); }</p> <p dir="auto">In serving.js file:</p> <p dir="auto">export async function dispatchRequest(req) {<br> console.log(req);<br> ... sever respond code suppressed (not needed to demonstrate problem)<br> }</p> <p dir="auto">Test run<br> Tested with URL : <a href="https://127.0.0.1:8080/test?abc=300" rel="nofollow">https://127.0.0.1:8080/test?abc=300</a><br> Tested with Firefox and Chrome (both up to date)</p> <p dir="auto">OUTPUT<br> Bot test runs have identical OUTPUT in VS Code console as shown below:<br> This is the output from the console.log() line in the serving.js file</p> <p dir="auto">ServerRequest {<br> conn: Conn {},<br> r: BufReader {<br> r: 367,<br> w: 367,<br> eof: false,<br> buf: Uint8Array(4096) [<br> 71, 69, 84, 32, 47, 116, 101, 115, 116, 63, 97, 98, 99, 61, 51,<br> 48, 48, 32, 72, 84, 84, 80, 47, 49, 46, 49, 13, 10, 72, 111,<br> 115, 116, 58, 32, 49, 50, 55, 46, 48, 46, 48, 46, 49, 58, 56,<br> 48, 56, 48, 13, 10, 85, 115, 101, 114, 45, 65, 103, 101, 110, 116,<br> 58, 32, 77, 111, 122, 105, 108, 108, 97, 47, 53, 46, 48, 32, 40,<br> 87, 105, 110, 100, 111, 119, 115, 32, 78, 84, 32, 49, 48, 46, 48,<br> 59, 32, 87, 105, 110, 54, 52, 59, 32, 120,<br> ... 3996 more items<br> ],<br> rd: Conn {}<br> },<br> method: "GET",<br> url: "/test?abc=300",<br> proto: "HTTP/1.1",<br> protoMajor: 1,<br> protoMinor: 1,<br> headers: Headers { host: 127.0.0.1:8080, user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0, accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,<em>/</em>;q=0.8, accept-language: en-US,en;q=0.5, accept-encoding: gzip, deflate, dnt: 1, connection: keep-alive, upgrade-insecure-requests: 1, sec-gpc: 1 },<br> w: BufWriter {<br> usedBufferBytes: 0,<br> err: null,<br> writer: Conn {},<br> buf: Uint8Array(4096) [<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> ... 3996 more items<br> ]<br> }<br> }</p> <p dir="auto">Problem Examples</p> <p dir="auto">Example 1 (code added in serving.js):</p> <p dir="auto">console.log(req.headers.toString());<br> console.log(req.url.toString());<br> var myJSON = JSON.stringify(req.headers);<br> console.log(myJSON);</p> <p dir="auto">OUTPUT:</p> <p dir="auto">[object Headers] &lt;-- should be headers and not Headers, IMHO<br> /test?abc=300 &lt;-- CORRECT, not an object {} type<br> {} &lt;-- Should show content host: 127.0.0.1:8080 ... ect between the {}</p> <p dir="auto">Example 2 (code added in serving.js):</p> <p dir="auto">console.log(server.listener);<br> console.log(server.listener.toString());<br> var myJSON = JSON.stringify(server.listener);<br> console.log(myJSON);</p> <p dir="auto">OUTPUT:</p> <p dir="auto">Listener {}<br> [object Object]<br> {} &lt;-- by coincidence correct because listener: is indeed an empty object {}.</p> <p dir="auto">Possible/Probable cause</p> <p dir="auto">I think this is a format problem, illustrated below for headers but actually it occurs for all OBJECT and possible all ARRAY types.</p> <p dir="auto">The first general log above shows:</p> <p dir="auto">headers: Headers { ... }</p> <p dir="auto">The 'Headers ' with uppercase and space shouldn't be there IMO.</p> <p dir="auto">Prove: I cut&amp;paste the log string from the first log above, removed the word and a space 'Headers '.<br> The JSON.stringify() then works fine.</p> <p dir="auto">This problem occurs on ALL objects {} definitions inside ServerRequest and Sever and possibly in plenty of others that I didn't check as the error is so consistent that it might be generated by some routine.<br> Possibly the same for arrays [] types (or all non simple types in general).</p> <p dir="auto">If this is the case it could be the cause of many errors all over Deno, certainly in dependencies such as serveTLS.</p>
<p dir="auto">Possible Bug Report</p> <p dir="auto">ATTENTION: I posted this ALSO on the main Deno thread because I think the underlying problem might not be at the std library level but deeper. Anyways, just in case it would be std related I post it here again.</p> <p dir="auto">Using:<br> deno 1.7.5 (release, x86_64-pc-windows-msvc)<br> v8 9.0.123<br> typescript 4.1.4</p> <p dir="auto">Editor: VS Code 1.53.2, with intellisense plus Deno extension</p> <p dir="auto">Standard Lib used:<br> "<a href="https://deno.land/[email protected]/http/server.ts" rel="nofollow">https://deno.land/[email protected]/http/server.ts</a>"</p> <p dir="auto">Class:<br> import {serve} from "<a href="https://deno.land/[email protected]/http/server.ts" rel="nofollow">https://deno.land/[email protected]/http/server.ts</a>"</p> <p dir="auto">Implementation:<br> Async HTTP server through 'serve'<br> Same problem probably with 'serveTLS' but I did not test that one yet.</p> <p dir="auto">Problem Description<br> All 'object' types {} inside ServerRequest and Server (and possibly others) are wrongly formatted.<br> Hence JS doesn't recognize them and/or can't access them. For instance the HTTP headers variables such as 'host' or 'accept' cannot be reached (as an example). The error is consistent to ALL {} types.<br> See conn: r: headers: w: w.writer: etc.</p> <p dir="auto">Furthermore I think the ARRAY types [] have the same problem, but I didn't test yet. See w.buf</p> <p dir="auto">REMARK: I do .js, could this have to do with .ts ? It kind of looks like the JSON format for {} and [] has been extended with a datatype.<br> e.g.: headers: Headers {...}<br> e.g.: w.buf: Uint8Array(4096) [...]</p> <p dir="auto">CODE to reproduce the possible bug:</p> <p dir="auto">In index.js file:</p> <p dir="auto">import {serve} from "<a href="https://deno.land/[email protected]/http/server.ts" rel="nofollow">https://deno.land/[email protected]/http/server.ts</a>"<br> import {dispatchRequest} from "./serving.js"</p> <p dir="auto">// Setup Asyn server and make it listen/wait for incoming connections and serve them<br> const server = serve({ "hostname": "127.0.0.1", "port": 8080 });<br> console.log("Server listening on port 8080");<br> for await (const req of server) { req.respond(await dispatchRequest(req)); }</p> <p dir="auto">In serving.js file:</p> <p dir="auto">export async function dispatchRequest(req) {<br> console.log(req);<br> ... sever respond code suppressed (not needed to demonstrate problem)<br> }</p> <p dir="auto">Test run<br> Tested with URL : <a href="https://127.0.0.1:8080/test?abc=300" rel="nofollow">https://127.0.0.1:8080/test?abc=300</a><br> Tested with Firefox and Chrome (both up to date)</p> <p dir="auto">OUTPUT<br> Bot test runs have identical OUTPUT in VS Code console as shown below:<br> This is the output from the console.log() line in the serving.js file</p> <p dir="auto">ServerRequest {<br> conn: Conn {},<br> r: BufReader {<br> r: 367,<br> w: 367,<br> eof: false,<br> buf: Uint8Array(4096) [<br> 71, 69, 84, 32, 47, 116, 101, 115, 116, 63, 97, 98, 99, 61, 51,<br> 48, 48, 32, 72, 84, 84, 80, 47, 49, 46, 49, 13, 10, 72, 111,<br> 115, 116, 58, 32, 49, 50, 55, 46, 48, 46, 48, 46, 49, 58, 56,<br> 48, 56, 48, 13, 10, 85, 115, 101, 114, 45, 65, 103, 101, 110, 116,<br> 58, 32, 77, 111, 122, 105, 108, 108, 97, 47, 53, 46, 48, 32, 40,<br> 87, 105, 110, 100, 111, 119, 115, 32, 78, 84, 32, 49, 48, 46, 48,<br> 59, 32, 87, 105, 110, 54, 52, 59, 32, 120,<br> ... 3996 more items<br> ],<br> rd: Conn {}<br> },<br> method: "GET",<br> url: "/test?abc=300",<br> proto: "HTTP/1.1",<br> protoMajor: 1,<br> protoMinor: 1,<br> headers: Headers { host: 127.0.0.1:8080, user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0, accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8, accept-language: en-US,en;q=0.5, accept-encoding: gzip, deflate, dnt: 1, connection: keep-alive, upgrade-insecure-requests: 1, sec-gpc: 1 },<br> w: BufWriter {<br> usedBufferBytes: 0,<br> err: null,<br> writer: Conn {},<br> buf: Uint8Array(4096) [<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br> ... 3996 more items<br> ]<br> }<br> }</p> <p dir="auto">Problem Examples</p> <p dir="auto">Example 1 (code added in serving.js):</p> <p dir="auto">console.log(req.headers.toString());<br> console.log(req.url.toString());<br> var myJSON = JSON.stringify(req.headers);<br> console.log(myJSON);</p> <p dir="auto">OUTPUT:</p> <p dir="auto">[object Headers] &lt;-- should be headers and not Headers, IMHO<br> /test?abc=300 &lt;-- CORRECT, not an object {} type<br> {} &lt;-- Should show content host: 127.0.0.1:8080 ... ect between the {}</p> <p dir="auto">Example 2 (code added in serving.js):</p> <p dir="auto">console.log(server.listener);<br> console.log(server.listener.toString());<br> var myJSON = JSON.stringify(server.listener);<br> console.log(myJSON);</p> <p dir="auto">OUTPUT:</p> <p dir="auto">Listener {}<br> [object Object]<br> {} &lt;-- by coincidence correct because listener: is indeed an empty object {}.</p> <p dir="auto">Possible/Probable cause</p> <p dir="auto">I think this is a format problem, illustrated below for headers but actually it occurs for all OBJECT and possible all ARRAY types.</p> <p dir="auto">The first general log above shows:</p> <p dir="auto">headers: Headers { ... }</p> <p dir="auto">The 'Headers ' with uppercase and space shouldn't be there IMO.</p> <p dir="auto">Prove: I cut&amp;paste the log string from the first log above, removed the word and a space 'Headers '.<br> The JSON.stringify() then works fine.</p> <p dir="auto">This problem occurs on ALL objects {} definitions inside ServerRequest and Sever and possibly in plenty of others that I didn't check as the error is so consistent that it might be generated by some routine.<br> Possibly the same for arrays [] types (or all non simple types in general).</p> <p dir="auto">If this is the case it could be the cause of many errors all over Deno, certainly in dependencies such as serveTLS.</p>
1
<p dir="auto">Code to produce</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub mod bits { use std::vec; use std::uint; struct BitVector&lt;'self&gt; { v: &amp;'self [u8] } pub fn new(n: u64) -&gt; BitVector&lt;'self&gt; { let f = vec::with_capacity::&lt;u8&gt;(n); BitVector { v: f } } } fn main() { let f = bits::new(10); }"><pre class="notranslate"><code class="notranslate">pub mod bits { use std::vec; use std::uint; struct BitVector&lt;'self&gt; { v: &amp;'self [u8] } pub fn new(n: u64) -&gt; BitVector&lt;'self&gt; { let f = vec::with_capacity::&lt;u8&gt;(n); BitVector { v: f } } } fn main() { let f = bits::new(10); } </code></pre></div> <p dir="auto">Backtrace is here <a href="https://gist.github.com/5864573">https://gist.github.com/5864573</a></p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="enum Foo { Bar(int, [int]), } fn main() { // Either of these lines can cause the ICE let _x: &amp;(int, [int]); let _y: &amp;Foo; }"><pre class="notranslate"><span class="pl-k">enum</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-v">Bar</span><span class="pl-kos">(</span><span class="pl-smi">int</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-smi">int</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Either of these lines can cause the ICE</span> <span class="pl-k">let</span> _x<span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-kos">(</span><span class="pl-smi">int</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-smi">int</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> _y<span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">Foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Backtrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 1: 0x7f2a127e8580 - rt::backtrace::imp::write::h0180e7ded76a3ff2c0q 2: 0x7f2a127eb770 - failure::on_fail::h3f169393c89b5f90Tlr 3: 0x7f2a12fd24f0 - unwind::begin_unwind_inner::haeb9517b5061bc86Zie 4: 0x7f2a133ad670 - unwind::begin_unwind::h17017358962417336117 5: 0x7f2a13803a20 - middle::ty::unsized_part_of_type::h8eae6d239e9b7af3tnG 6: 0x7f2a138037c0 - middle::trans::type_of::type_of::type_of_unsize_info::h67819f63aa2acfb5Xh9 7: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 8: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 9: 0x7f2a137b0860 - middle::trans::base::alloc_ty::h5485998eeb61d023mTd 10: 0x7f2a13859870 - middle::trans::_match::mk_binding_alloca::h11628361498234501597 11: 0x7f2a1385bdf0 - middle::trans::_match::store_local::create_dummy_locals::closure.119283 12: 0x7f2a13681560 - middle::pat_util::pat_bindings::closure.112016 13: 0x7f2a0ea1ccb0 - ast_util::walk_pat::hc858153057fb5965oRB 14: 0x7f2a138205f0 - middle::trans::_match::store_local::h9195017fe21b4124A2h 15: 0x7f2a13772d10 - middle::trans::base::init_local::h5e8a493dc2ae05b1WFd 16: 0x7f2a13772220 - middle::trans::controlflow::trans_stmt::hf26d5cee55a6056blhY 17: 0x7f2a13773c40 - middle::trans::controlflow::trans_block::h004dea36138a75c8wmY 18: 0x7f2a13829560 - middle::trans::base::trans_closure::h655acfc433ac13fevye 19: 0x7f2a13764670 - middle::trans::base::trans_fn::hf0a444fa9ff43aebiKe 20: 0x7f2a1375f9b0 - middle::trans::base::trans_item::hda4d4160cb2b58dfi2e 21: 0x7f2a138341f0 - middle::trans::base::trans_crate::hff0f87c98e6356c8JWf 22: 0x7f2a13c058d0 - driver::driver::phase_4_translate_to_llvm::h8223ee9d7ab4951cpzy 23: 0x7f2a13bfd280 - driver::driver::compile_input::hfa4fd95c9e6a2ceeQby 24: 0x7f2a13c8f0a0 - driver::run_compiler::h32bdccca6ed9465cJIB 25: 0x7f2a13c8efb0 - driver::main_args::closure.138206 26: 0x7f2a13ca1240 - task::TaskBuilder&lt;S&gt;::try_future::closure.139324 27: 0x7f2a13ca1040 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.139301 28: 0x7f2a146dcf10 - task::spawn_opts::closure.8369 29: 0x7f2a1302af90 - rust_try_inner 30: 0x7f2a1302af80 - rust_try 31: 0x7f2a12fcfb20 - unwind::try::h03d8d1d4cb0de0c1f7d 32: 0x7f2a12fcf8e0 - task::Task::run::hafab6bcab45e61e5zdd 33: 0x7f2a146dcc70 - task::spawn_opts::closure.8315 34: 0x7f2a12fd16e0 - thread::thread_start::hba588af1f803bb5blCd 35: 0x7f2a1227f0c0 - start_thread 36: 0x7f2a12c99359 - __clone 37: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate"> 1: 0x7f2a127e8580 - rt::backtrace::imp::write::h0180e7ded76a3ff2c0q 2: 0x7f2a127eb770 - failure::on_fail::h3f169393c89b5f90Tlr 3: 0x7f2a12fd24f0 - unwind::begin_unwind_inner::haeb9517b5061bc86Zie 4: 0x7f2a133ad670 - unwind::begin_unwind::h17017358962417336117 5: 0x7f2a13803a20 - middle::ty::unsized_part_of_type::h8eae6d239e9b7af3tnG 6: 0x7f2a138037c0 - middle::trans::type_of::type_of::type_of_unsize_info::h67819f63aa2acfb5Xh9 7: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 8: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 9: 0x7f2a137b0860 - middle::trans::base::alloc_ty::h5485998eeb61d023mTd 10: 0x7f2a13859870 - middle::trans::_match::mk_binding_alloca::h11628361498234501597 11: 0x7f2a1385bdf0 - middle::trans::_match::store_local::create_dummy_locals::closure.119283 12: 0x7f2a13681560 - middle::pat_util::pat_bindings::closure.112016 13: 0x7f2a0ea1ccb0 - ast_util::walk_pat::hc858153057fb5965oRB 14: 0x7f2a138205f0 - middle::trans::_match::store_local::h9195017fe21b4124A2h 15: 0x7f2a13772d10 - middle::trans::base::init_local::h5e8a493dc2ae05b1WFd 16: 0x7f2a13772220 - middle::trans::controlflow::trans_stmt::hf26d5cee55a6056blhY 17: 0x7f2a13773c40 - middle::trans::controlflow::trans_block::h004dea36138a75c8wmY 18: 0x7f2a13829560 - middle::trans::base::trans_closure::h655acfc433ac13fevye 19: 0x7f2a13764670 - middle::trans::base::trans_fn::hf0a444fa9ff43aebiKe 20: 0x7f2a1375f9b0 - middle::trans::base::trans_item::hda4d4160cb2b58dfi2e 21: 0x7f2a138341f0 - middle::trans::base::trans_crate::hff0f87c98e6356c8JWf 22: 0x7f2a13c058d0 - driver::driver::phase_4_translate_to_llvm::h8223ee9d7ab4951cpzy 23: 0x7f2a13bfd280 - driver::driver::compile_input::hfa4fd95c9e6a2ceeQby 24: 0x7f2a13c8f0a0 - driver::run_compiler::h32bdccca6ed9465cJIB 25: 0x7f2a13c8efb0 - driver::main_args::closure.138206 26: 0x7f2a13ca1240 - task::TaskBuilder&lt;S&gt;::try_future::closure.139324 27: 0x7f2a13ca1040 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.139301 28: 0x7f2a146dcf10 - task::spawn_opts::closure.8369 29: 0x7f2a1302af90 - rust_try_inner 30: 0x7f2a1302af80 - rust_try 31: 0x7f2a12fcfb20 - unwind::try::h03d8d1d4cb0de0c1f7d 32: 0x7f2a12fcf8e0 - task::Task::run::hafab6bcab45e61e5zdd 33: 0x7f2a146dcc70 - task::spawn_opts::closure.8315 34: 0x7f2a12fd16e0 - thread::thread_start::hba588af1f803bb5blCd 35: 0x7f2a1227f0c0 - start_thread 36: 0x7f2a12c99359 - __clone 37: 0x0 - &lt;unknown&gt; </code></pre></div> <p dir="auto">This seems to occur when using a non-struct type that contains an unsized type. This is probably because <a href="https://github.com/rust-lang/rust/blob/7932b719ec2b65acfa8c3e74aad29346d47ee992/src/librustc/middle/ty.rs#L2938-L2956"><code class="notranslate">unsized_part_of_type</code></a> only handles <code class="notranslate">ty_struct</code> and the base unsized types. This should be extended to handle enums and tuples as well.</p>
0
<p dir="auto">Using 0.10.7-insider on Windows 8.1</p> <p dir="auto">Hovering over methods that have really long signatures seems to produce a truncated tooltip (see attached image)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/563860/12837925/7c1dfa92-cc1b-11e5-9d5a-bfe9d16fdac9.png"><img src="https://cloud.githubusercontent.com/assets/563860/12837925/7c1dfa92-cc1b-11e5-9d5a-bfe9d16fdac9.png" alt="vscode_truncated_tooltip" style="max-width: 100%;"></a></p> <p dir="auto">Not sure if problem is language specific, but if required the screenshot is from some TypeScript code.</p>
<p dir="auto">One of the features I like the most in 0.10.6 is the multi line quickinfo widget that appears when a symbol is hovered. It looks like this in 0.10.6:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3448684/12784325/cbbc03b4-ca86-11e5-8b31-38c7fc9731a3.png"><img src="https://cloud.githubusercontent.com/assets/3448684/12784325/cbbc03b4-ca86-11e5-8b31-38c7fc9731a3.png" alt="quickinfowidget0 10 6" style="max-width: 100%;"></a></p> <p dir="auto">In 0.10.7 it looks like this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3448684/12784332/d6990084-ca86-11e5-8e9b-2a3d8717dc17.png"><img src="https://cloud.githubusercontent.com/assets/3448684/12784332/d6990084-ca86-11e5-8e9b-2a3d8717dc17.png" alt="quickinfowidget0 10 7" style="max-width: 100%;"></a></p> <p dir="auto">It's the same version of the same plugin used for both screenshots. As you can see the widget's content is cut. Is there a way to turn on word wrap again in 0.10.7?</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"><a href="http://docs.ansible.com/ansible/mount_module.html" rel="nofollow">Mount module</a></p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">Tested on both versions:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides "><pre class="notranslate"><code class="notranslate">ansible-playbook 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <p dir="auto">and</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook 2.3.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]"><pre class="notranslate"><code class="notranslate">ansible-playbook 2.3.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">Default</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Manager OS: CentOS Linux release 7.3.1611 (Core)<br> TargetOS (Tested): Ubuntu 16.04, CentOS 6.8</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Mount module do not allow to create several mount points with name: "none", so it is impossible to use this module to manage swap files mount point. During this operation this module overwrites already existent line.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Swapfile | Install | Add swap entry in fstab become: True mount: name: none src: &quot;/swapfile&quot; fstype: swap opts: sw dump: 0 passno: 0 state: present"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Swapfile | Install | Add swap entry in fstab</span> <span class="pl-ent">become</span>: <span class="pl-c1">True</span> <span class="pl-ent">mount</span>: <span class="pl-ent">name</span>: <span class="pl-s">none</span> <span class="pl-ent">src</span>: <span class="pl-s"><span class="pl-pds">"</span>/swapfile<span class="pl-pds">"</span></span> <span class="pl-ent">fstype</span>: <span class="pl-s">swap</span> <span class="pl-ent">opts</span>: <span class="pl-s">sw</span> <span class="pl-ent">dump</span>: <span class="pl-c1">0</span> <span class="pl-ent">passno</span>: <span class="pl-c1">0</span> <span class="pl-ent">state</span>: <span class="pl-s">present</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I am expecting to get fstab file with two swap lines. One from default Ubuntu installation, and one from this command. Should be looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # &lt;file system&gt; &lt;mount point&gt; &lt;type&gt; &lt;options&gt; &lt;dump&gt; &lt;pass&gt; # / was on /dev/sda1 during installation UUID=b3130c85-0e01-4501-8243-5d8982451909 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=8f70f922-924e-4951-ba10-04d61297b8f7 none swap sw 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0 /swapfile none swap sw 0 0"><pre class="notranslate"><code class="notranslate"># /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # &lt;file system&gt; &lt;mount point&gt; &lt;type&gt; &lt;options&gt; &lt;dump&gt; &lt;pass&gt; # / was on /dev/sda1 during installation UUID=b3130c85-0e01-4501-8243-5d8982451909 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=8f70f922-924e-4951-ba10-04d61297b8f7 none swap sw 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0 /swapfile none swap sw 0 0 </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Actually default swap entry is missing after this execution, and fstab looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # &lt;file system&gt; &lt;mount point&gt; &lt;type&gt; &lt;options&gt; &lt;dump&gt; &lt;pass&gt; # / was on /dev/sda1 during installation UUID=b3130c85-0e01-4501-8243-5d8982451909 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation //swapfile none swap sw 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0"><pre class="notranslate"><code class="notranslate"># /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # &lt;file system&gt; &lt;mount point&gt; &lt;type&gt; &lt;options&gt; &lt;dump&gt; &lt;pass&gt; # / was on /dev/sda1 during installation UUID=b3130c85-0e01-4501-8243-5d8982451909 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation //swapfile none swap sw 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0 </code></pre></div> <p dir="auto"><a href="https://gist.github.com/insspb/81c1f2c749d860652929203b64d37a70">Execution log with -vvvv enabled (Gist link)</a></p>
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/changyy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/changyy">@changyy</a> on 2016-01-14T06:22:57Z</p> <h5 dir="auto">ISSUE TYPE</h5> <p dir="auto">Feature Idea</p> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">service module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Hi,</p> <p dir="auto">I would like to use service module to finish my job but current structure of the service module is not good enough.</p> <p dir="auto">Example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ service nginx Usage: /etc/init.d/nginx {start|stop|status|restart|reload|force-reload|upgrade|configtest} $ sudo service nginx configtest nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful"><pre class="notranslate"><code class="notranslate">$ service nginx Usage: /etc/init.d/nginx {start|stop|status|restart|reload|force-reload|upgrade|configtest} $ sudo service nginx configtest nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful </code></pre></div> <p dir="auto">But the current status of the Ansible service module is not supported for this usage. There are only predefined states, ['running', 'started', 'stopped', 'restarted', 'reloaded'], could be used.</p> <p dir="auto">And using shell module will get a warning message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: test nginx config shell: service nginx configtest register: result changed_when: &quot;result.rc != 0&quot; always_run: yes $ ansible running... [WARNING]: Consider using service module rather than running service"><pre class="notranslate"><code class="notranslate">- name: test nginx config shell: service nginx configtest register: result changed_when: "result.rc != 0" always_run: yes $ ansible running... [WARNING]: Consider using service module rather than running service </code></pre></div> <p dir="auto">So I just try to make a patch for it and name the new state "comannd" for demo the usage. Please feel free to modify the keywords or any codes. I just to present a demo solution from my thinking.</p> <p dir="auto">Usage:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: test nginx config service: name=nginx state=command arguments=configtest"><pre class="notranslate"><code class="notranslate">- name: test nginx config service: name=nginx state=command arguments=configtest </code></pre></div> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="126586307" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/2809" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/2809/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/2809">ansible/ansible-modules-core#2809</a></p>
0
<p dir="auto">If I write incorrectly, I don't get any warnings or errors. Nothing happens. That is hard to debug.</p>
<p dir="auto">This <code class="notranslate">[(ng-model)]="exp"</code> will work while <code class="notranslate">([ng-model])="exp"</code> will fail silently. We should either throw or allow both forms (not sure if it makes sense).</p> <p dir="auto">Related: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="101074106" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/3645" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/3645/hovercard" href="https://github.com/angular/angular/issues/3645">#3645</a> (should be done together)</p>
1
<h1 dir="auto">Environment</h1> <p dir="auto">Windows build 10.0.18362.0<br> Windows Terminal version (if applicable): 0.6.3161.0</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Launch Terminal as administrator.<br> Create a couple of tabs.<br> Try to reorder the tabs via click+drag</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Tabs are reordered</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Terminal crashes</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 [Versión 10.0.18999.1] Windows Terminal version (if applicable): 0.5.2762.0 Any other software? No"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Versión 10.0.18999.1] Windows Terminal version (if applicable): 0.5.2762.0 Any other software? No </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Just maximize Terminal.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The window shouldn't stand out.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The window stands out.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22452997/67159918-3fcce480-f34b-11e9-88fd-9a74171f5e0c.png"><img src="https://user-images.githubusercontent.com/22452997/67159918-3fcce480-f34b-11e9-88fd-9a74171f5e0c.png" alt="1" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22452997/67159920-422f3e80-f34b-11e9-9cc6-816bf5e5ad62.png"><img src="https://user-images.githubusercontent.com/22452997/67159920-422f3e80-f34b-11e9-9cc6-816bf5e5ad62.png" alt="2" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22452997/67162039-b4f6e480-f360-11e9-99f4-5dea3f0ed90f.png"><img src="https://user-images.githubusercontent.com/22452997/67162039-b4f6e480-f360-11e9-99f4-5dea3f0ed90f.png" alt="3" style="max-width: 100%;"></a></p>
0
<p dir="auto">Testing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="153045492" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/6099" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/6099/hovercard" href="https://github.com/microsoft/vscode/issues/6099">#6099</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; code-alpha --install-extension vscode-css-formatter { responseText: '{&quot;$id&quot;:&quot;1&quot;,&quot;innerException&quot;:null,&quot;message&quot;:&quot;The query supplied was not valid, one of the filters contained an error. The fully qualified name MUST contain a \'.\' between the publisher and extension names.&quot;,&quot;typeName&quot;:&quot;Microsoft.VisualStudio.Services.Gallery.WebApi.InvalidExtensionQueryException, Microsoft.VisualStudio.Services.Gallery.WebApi&quot;,&quot;typeKey&quot;:&quot;InvalidExtensionQueryException&quot;,&quot;errorCode&quot;:0,&quot;eventId&quot;:3000}', status: 500, getResponseHeader: [Function], readyState: 4 }"><pre class="notranslate"><code class="notranslate">&gt; code-alpha --install-extension vscode-css-formatter { responseText: '{"$id":"1","innerException":null,"message":"The query supplied was not valid, one of the filters contained an error. The fully qualified name MUST contain a \'.\' between the publisher and extension names.","typeName":"Microsoft.VisualStudio.Services.Gallery.WebApi.InvalidExtensionQueryException, Microsoft.VisualStudio.Services.Gallery.WebApi","typeKey":"InvalidExtensionQueryException","errorCode":0,"eventId":3000}', status: 500, getResponseHeader: [Function], readyState: 4 } </code></pre></div> <p dir="auto">Having the error as JSON is uncommon. Should be a human readable string.<br> If structured error messages are useful, maybe add a extra option to the command that defines the resonse format.</p>
<p dir="auto">We need to explore improving the way that we display warnings, errors and notifications to users. Currently we have a variety of mechanisms (info in status bar, details in quick open, error/warning dialog).</p> <p dir="auto">We need a consistent way that prompts the user when there are notifications/errors/warnings for them to pay attention to and a consistent affordance for the user to get a holistic view of all of the notitications/errors/warnings.</p>
0
<h3 dir="auto">Description</h3> <p dir="auto">Expose the DummyOperator class under a different name (or move it), to allow consumers to avoid the use of the word <code class="notranslate">Dummy</code> in source.</p> <h3 dir="auto">Use case/motivation</h3> <p dir="auto">Some projects have language guidelines for avoiding certain words, dummy occasionally shows up on these lists.</p> <h3 dir="auto">Related issues</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit a PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<p dir="auto"><strong>Description</strong></p> <p dir="auto">Apache Software Foundation is discussing how we can improve inclusiveness of projects and raise awareness of conscious language. Related thread on <a href="mailto:[email protected]">[email protected]</a>:<br> <a href="https://lists.apache.org/thread.html/r2d8845d9c37ac581046997d980464e8a7b6bffa6400efb0e41013171%40%3Cdiversity.apache.org%3E" rel="nofollow">https://lists.apache.org/thread.html/r2d8845d9c37ac581046997d980464e8a7b6bffa6400efb0e41013171%40%3Cdiversity.apache.org%3E</a></p> <p dir="auto"><strong>Use case / motivation</strong></p> <p dir="auto">We already have pre-commit check that checks for some word. However, on <a href="https://clcdemo.net/analysis.html?project=airflow.git" rel="nofollow">CLC (Conscious Language Checker)</a> Apache Airflow seems to have problems with the following words:</p> <ul dir="auto"> <li>he</li> <li>her</li> <li>him</li> <li>his</li> <li>master</li> <li>sanity check</li> <li>slave</li> <li>whitelist (pylintrc)</li> </ul> <p dir="auto"><strong>Are you willing to submit a PR?</strong></p> <p dir="auto"><strong>Related Issues</strong></p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="761176224" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/12982" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/12982/hovercard" href="https://github.com/apache/airflow/issues/12982">#12982</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="634113291" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/9175" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/9175/hovercard" href="https://github.com/apache/airflow/pull/9175">#9175</a></p>
1
<p dir="auto">deno 1.0.0<br> v8 8.4.300<br> typescript 3.9.2</p> <p dir="auto">In Deno, is there already a way to override the pedantic scrutiny that often causes self-signed SSL certificates to be deemed "Bad Certificates"?</p> <p dir="auto">It seems that Deno security is so high that it blocks self-signed SSL certificates for vague reasons.</p> <p dir="auto">Not all SSL certificates should be subjected to international banking standards. There are valid reasons for creating self-signed SSL certificates with (practically) never expiring expiration dates. Too many security zealots automatically frown upon self-signed certificates, but hear me out.</p> <p dir="auto">Let's say you have two servers on a LAN, that serve each other with separate APIs. And, the only security you want, is to have encrypted data transfer between those two servers and nothing else. And, let's say these services (that these two servers provide) do NOT require internet to function.</p> <p dir="auto">Let me ask you this. Why the <strong>hell</strong> would you want to authenticate the SSL certificate with a 3rd party internet resource? The internet itself now becomes an unneeded external dependency that could potentially bring your service to a halt if the internet goes down (for a service that otherwise needs zero internet).</p> <p dir="auto">Well that's exactly what can happen, if deno has no way to override errors like this:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/151919/83202732-dba6a600-a10d-11ea-9a60-c4e06a0304e5.png"><img src="https://user-images.githubusercontent.com/151919/83202732-dba6a600-a10d-11ea-9a60-c4e06a0304e5.png" alt="badCertificate" style="max-width: 100%;"></a></p> <p dir="auto">The above script and certificates are zipped here: <a href="https://github.com/denoland/deno/files/4698729/testDeno.zip">testDeno.zip</a></p> <p dir="auto">The ssl certificates were generated with a command like this:<br> <code class="notranslate">openssl req -nodes -new -x509 -keyout private.key -out server.cert -days 1825000 -subj "/C=US/ST=Texas/L=Houston/O=ChickenPeck Technologies/OU=Org/CN=localhost"</code></p> <p dir="auto">I suspect the certificate is bad due to the extremely far off date to which it expires. It would be nice if the error went into more detail about the exact reason the certificate is a "bad certificate".</p> <p dir="auto">However, even if that is the reason, I'd like the ability to override and ignore such pedantic scrutiny. I'm not going to use something that inconveniences me with a mandatory security level that is beyond what I want it to be.</p> <p dir="auto">Also, why would you want to schedule, on your calendar, a date (one year from now) when your service will crash due to an expired certificate? Instead, I want the service I created to live on without interruption, without any certificate update maintenance, until I decide I want to update it. As the developer of these services, I should be able to prioritize "uninterruptible" over "unnecessarily secure".</p> <p dir="auto">Is there already a way to override these type of certificate rejections? If not, I'm requesting it.</p>
<p dir="auto">Because <code class="notranslate">std/http/server.ts</code> uses <code class="notranslate">MuxAsyncIterator</code> to serve up requests, any errors thrown there cannot be caught:</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/denoland/deno/blob/e34a3b61f449cf6197b6d701770a85d9205c2a7b/std/http/server.ts#L235-L239">deno/std/http/server.ts</a> </p> <p class="mb-0 color-fg-muted"> Lines 235 to 239 in <a data-pjax="true" class="commit-tease-sha" href="/denoland/deno/commit/e34a3b61f449cf6197b6d701770a85d9205c2a7b">e34a3b6</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="L235" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="235"></td> <td id="LC235" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">[</span><span class="pl-smi">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">asyncIterator</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">AsyncIterableIterator</span><span class="pl-kos">&lt;</span><span class="pl-smi">ServerRequest</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> </td> </tr> <tr class="border-0"> <td id="L236" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="236"></td> <td id="LC236" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-s1">mux</span>: <span class="pl-smi">MuxAsyncIterator</span><span class="pl-kos">&lt;</span><span class="pl-smi">ServerRequest</span><span class="pl-kos">&gt;</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">MuxAsyncIterator</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L237" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="237"></td> <td id="LC237" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">mux</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">acceptConnAndIterateHttpRequests</span><span class="pl-kos">(</span><span class="pl-s1">mux</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L238" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="238"></td> <td id="LC238" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">mux</span><span class="pl-kos">.</span><span class="pl-en">iterate</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L239" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="239"></td> <td id="LC239" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">The comments on <code class="notranslate">MuxAsyncIterator</code> make it clear that:</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/denoland/deno/blob/e34a3b61f449cf6197b6d701770a85d9205c2a7b/std/async/mux_async_iterator.ts#L9-L14">deno/std/async/mux_async_iterator.ts</a> </p> <p class="mb-0 color-fg-muted"> Lines 9 to 14 in <a data-pjax="true" class="commit-tease-sha" href="/denoland/deno/commit/e34a3b61f449cf6197b6d701770a85d9205c2a7b">e34a3b6</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="L9" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="9"></td> <td id="LC9" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">/** The MuxAsyncIterator class multiplexes multiple async iterators into a</span> </td> </tr> <tr class="border-0"> <td id="L10" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="10"></td> <td id="LC10" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"> * single stream. It currently makes a few assumptions:</span> </td> </tr> <tr class="border-0"> <td id="L11" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="11"></td> <td id="LC11" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"> * - The iterators do not throw.</span> </td> </tr> <tr class="border-0"> <td id="L12" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="12"></td> <td id="LC12" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"> * - The final result (the value returned and not yielded from the iterator)</span> </td> </tr> <tr class="border-0"> <td id="L13" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="13"></td> <td id="LC13" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"> * does not matter; if there is any, it is discarded.</span> </td> </tr> <tr class="border-0"> <td id="L14" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="14"></td> <td id="LC14" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"> */</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">And in situations where you have a TLS connection where the browser rejects the certificate, you end up with something like this with Deno dumping and no way to recover:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught InvalidData: received corrupt message at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11) at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10) at async TLSListenerImpl.accept ($deno$/tls.ts:31:17) at async Server.acceptConnAndIterateHttpRequests (https://deno.land/[email protected]/http/server.ts:221:14) at async MuxAsyncIterator.callIteratorNext (https://deno.land/[email protected]/async/mux_async_iterator.ts:28:29)"><pre class="notranslate"><code class="notranslate">error: Uncaught InvalidData: received corrupt message at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11) at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10) at async TLSListenerImpl.accept ($deno$/tls.ts:31:17) at async Server.acceptConnAndIterateHttpRequests (https://deno.land/[email protected]/http/server.ts:221:14) at async MuxAsyncIterator.callIteratorNext (https://deno.land/[email protected]/async/mux_async_iterator.ts:28:29) </code></pre></div> <p dir="auto">We need a way to iterate that allows errors to be caught when iterating on HTTP server.</p>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/643825f2ac052b0e590e1e27d220037bbacd4529ba27f703f5130bbf11d7f410/68747470733a2f2f692e6962622e636f2f5467444a7844632f64656e6f2e706e67"><img src="https://camo.githubusercontent.com/643825f2ac052b0e590e1e27d220037bbacd4529ba27f703f5130bbf11d7f410/68747470733a2f2f692e6962622e636f2f5467444a7844632f64656e6f2e706e67" alt="Image of Yaktocat" data-canonical-src="https://i.ibb.co/TgDJxDc/deno.png" style="max-width: 100%;"></a></p> <p dir="auto">pls fix, I want to learn more</p>
<p dir="auto"><a href="https://deno.land/std" rel="nofollow">https://deno.land/std</a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23056320/81916390-577cfa80-9606-11ea-89d8-752ed1a2cb64.png"><img src="https://user-images.githubusercontent.com/23056320/81916390-577cfa80-9606-11ea-89d8-752ed1a2cb64.png" alt="image" style="max-width: 100%;"></a><br> Failed to get directory listing<br> Querying the GitHub API failed. This is usually caused by a network outage or because you have reached your hourly API rate limit of 60 requests.</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.20161 PowerToys version: v0.19.0 PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.20161 PowerToys version: v0.19.0 PowerToy module for which you are reporting the bug (if applicable): FancyZones </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Install newer version from some point like v0.17.0<br> Try and use existing Fancy Zones layouts</p> <h1 dir="auto">Expected behaviour</h1> <p dir="auto">Can use previously defined layouts</p> <h1 dir="auto">Actual behaviour</h1> <p dir="auto">Previously defined layouts have been deleted during the upgrade</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 1909 PowerToys version: 0.18.0 and above PowerToy module: Settings Device: HP Notebook, product number X7T77UA"><pre class="notranslate"><code class="notranslate">Windows build number: 1909 PowerToys version: 0.18.0 and above PowerToy module: Settings Device: HP Notebook, product number X7T77UA </code></pre></div> <p dir="auto">Note: this issue was initially observed on a laptop equipped with a Synaptics touchpad, and does not manifest on another, non-Synaptics computer.</p> <h1 dir="auto">Steps to reproduce</h1> <ul dir="auto"> <li>Open PowerToys Settings (i.e. right-click system tray icon, choose <code class="notranslate">Settings</code>)</li> <li>Attempt to scroll using two fingers on touchpad</li> </ul> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The main settings page should scroll as normal (if it's long enough, which it is on my device).</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The main settings page does not scroll.</p> <p dir="auto">Overview:</p> <table role="table"> <thead> <tr> <th>Method</th> <th>Functional?</th> </tr> </thead> <tbody> <tr> <td>Mouse wheel</td> <td><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji></td> </tr> <tr> <td>Touchscreen</td> <td><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji></td> </tr> <tr> <td>Touchpad (two fingers)</td> <td>❌</td> </tr> </tbody> </table> <h1 dir="auto">Notes</h1> <p dir="auto">After connecting my wireless mouse, scrolling with its wheel works as expected. While the mouse is connected, however, touchpad scrolling still does not work.</p> <p dir="auto">Also, the same issue was originally present in the PowerToys Run results list, but is solved as of at least v0.25.0.</p>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Use windows search's results to improve localization performance.</p> <p dir="auto">The windows search is doing well at localization. For example in the following scenario:<br> I use the chinese version windows. When i want to open the “计算器” (Calculator in English) app, i can get it in 3 ways use win + s:</p> <ol dir="auto"> <li>Search "calc". Win+s works, PT Run fail.</li> <li>Search "计算器". Both win+s &amp; PT Run works.</li> <li>Search "jisuanqi". The word "jisuanqi" is the Pinyin of "计算器". Win+s works well, PT Run can not recognize this.</li> </ol> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">If PT Run can use the best result of windows search, it will fix many localization issues.</p> <p dir="auto">Use windows search results or implement this function in PT Run's way.</p>
0
<p dir="auto">React version: ^16.13.1</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>npx create-react-app my-app</li> <li>cd my-app/</li> <li>npm start</li> </ol> <h2 dir="auto">The current behavior</h2> <p dir="auto">app doesn't start, instead shows error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Failed to compile ./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Error: No valid exports main found for '/private/tmp/my-app/node_modules/colorette' This error occurred during the build time and cannot be dismissed."><pre class="notranslate"><code class="notranslate">Failed to compile ./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Error: No valid exports main found for '/private/tmp/my-app/node_modules/colorette' This error occurred during the build time and cannot be dismissed. </code></pre></div> <h2 dir="auto">The expected behavior</h2> <p dir="auto"><code class="notranslate">npx create-react-app my-app</code> should provide an app that runs.</p>
<p dir="auto">When installing create-react-app I get this error when I start the development server (npm start),</p> <p dir="auto"><code class="notranslate">./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Error: No valid exports main found for 'myproject\node_modules\colorette'</code></p> <p dir="auto">I've reinstalled create-react-app -g and tryed with npx and I still get this error. Is there anything else I can do?</p> <p dir="auto">this is the files of my new created react apps - without node_modules:<br> <a href="https://github.com/facebook/create-react-app/files/4878407/newreactapp.zip">newreactapp.zip</a></p>
1
<p dir="auto">I have vim open, accidentally I clicked the close button. And it's gone! :(</p> <p dir="auto">Can you please warn me if I have any running task (except shell) in any of the tabs?</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Is it possible, to implement something like this:<br> When there is an active process in the current tab, a confirmation dialect window may show up before actually closing.</p> <p dir="auto">When I was writing vim, I need to use <code class="notranslate">C-W</code> to switch among vim tabs.<br> <code class="notranslate">C-W</code> is also the hotkey to close the current tab.<br> When the first two times I ran into this problem, I suppose it was some crashing thing.<br> Finally, I realized it was a hotkey conflict.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">I did not dive into the code base of this project yet, but I hope it is not too hard to implement.</p>
1
<p dir="auto">The segment reduction ops are currently inconsistent, they include different ops for sorted/unsorted/ and sparse/dense tensors.<br> I guess it would make sense to provide the same reduction ops for these - I'd be happy to work on this and build on nikste's work.</p> <p dir="auto">For similar previous issues <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andydavis1/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andydavis1">@andydavis1</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drpngx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drpngx">@drpngx</a> were responsible for reviewing, so I link you here.</p> <p dir="auto">Things to possibly consider:</p> <ul dir="auto"> <li>Replace the sorted segment options by the more general unsorted options. I did a quick, non-extensive benchmark for unsorted_segment_max vs segment_max, the processing time is about the same (with the unsorted op even being a bit faster sometimes).<br> The drawback would be, that num_segments needs to be specified or needs to be computed before the reduction.</li> <li>Include the feature request "Extend tf.unsorted_segment_sum to allow 'rejecting' entries" <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121665076" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/478" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/478/hovercard" href="https://github.com/tensorflow/tensorflow/issues/478">#478</a></li> <li>Address the ToDo in UnsortedSegmentMax: <code class="notranslate">// todo: Remove duplicate code in UnsortedSegmentSumFunctor and UnsortedSegmentMaxFunctor.</code><br> To sum up, I'd suggest to replace and extend the currently provided functions</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tf.segment_sum(data, segment_ids, name=None) tf.segment_prod(data, segment_ids, name=None) tf.segment_min(data, segment_ids, name=None) tf.segment_max(data, segment_ids, name=None) tf.segment_mean(data, segment_ids, name=None) tf.unsorted_segment_sum(data, segment_ids, num_segments, name=None) tf.sparse_segment_sum(data, indices, segment_ids, name=None) tf.sparse_segment_mean(data, indices, segment_ids, name=None) tf.sparse_segment_sqrt_n(data, indices, segment_ids, name=None)"><pre class="notranslate"><code class="notranslate">tf.segment_sum(data, segment_ids, name=None) tf.segment_prod(data, segment_ids, name=None) tf.segment_min(data, segment_ids, name=None) tf.segment_max(data, segment_ids, name=None) tf.segment_mean(data, segment_ids, name=None) tf.unsorted_segment_sum(data, segment_ids, num_segments, name=None) tf.sparse_segment_sum(data, indices, segment_ids, name=None) tf.sparse_segment_mean(data, indices, segment_ids, name=None) tf.sparse_segment_sqrt_n(data, indices, segment_ids, name=None) </code></pre></div> <p dir="auto">with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# all dense/sparse ops support unsorted segments tf.segment_sum(data, segment_ids, num_segements=None, name=None) tf.segment_prod(data, segment_ids, num_segements=None, name=None) tf.segment_min(data, segment_ids, num_segements=None, name=None) tf.segment_max(data, segment_ids, num_segements=None, name=None) tf.segment_mean(data, segment_ids, num_segements=None, name=None) tf.segment_sqrt_n(data, segment_ids, num_segements=None, name=None) # new tf.sparse_segment_sum(data, indices, segment_ids, name=None) tf.sparse_segment_prod(data, indices, segment_ids, name=None) # new tf.sparse_segment_min(data, indices, segment_ids, name=None) # new tf.sparse_segment_max(data, indices, segment_ids, name=None) # new tf.sparse_segment_mean(data, indices, segment_ids, name=None) tf.sparse_segment_sqrt_n(data, indices, segment_ids, name=None)"><pre class="notranslate"><code class="notranslate"># all dense/sparse ops support unsorted segments tf.segment_sum(data, segment_ids, num_segements=None, name=None) tf.segment_prod(data, segment_ids, num_segements=None, name=None) tf.segment_min(data, segment_ids, num_segements=None, name=None) tf.segment_max(data, segment_ids, num_segements=None, name=None) tf.segment_mean(data, segment_ids, num_segements=None, name=None) tf.segment_sqrt_n(data, segment_ids, num_segements=None, name=None) # new tf.sparse_segment_sum(data, indices, segment_ids, name=None) tf.sparse_segment_prod(data, indices, segment_ids, name=None) # new tf.sparse_segment_min(data, indices, segment_ids, name=None) # new tf.sparse_segment_max(data, indices, segment_ids, name=None) # new tf.sparse_segment_mean(data, indices, segment_ids, name=None) tf.sparse_segment_sqrt_n(data, indices, segment_ids, name=None) </code></pre></div> <p dir="auto">(Or <code class="notranslate">tf.unsorted_segment_reduce_op</code> instead of <code class="notranslate">tf.segement_reduceop</code> to not break backward compability)</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>: Linux Ubuntu 16.04</li> <li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>: n/a</li> <li><strong>TensorFlow installed from (source or binary)</strong>: binary</li> <li><strong>TensorFlow version (use command below)</strong>: v1.9.0-rc0-35-g17d6639b55 1.9.0-rc1</li> <li><strong>Python version</strong>: 3.5.2</li> <li><strong>Bazel version (if compiling from source)</strong>: n/a</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: n/a</li> <li><strong>CUDA/cuDNN version</strong>: n/a</li> <li><strong>GPU model and memory</strong>: n/a</li> <li><strong>Exact command to reproduce</strong>: n/a</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I wanted to call attention to an issue and a PR on the keras-team/keras project so that TF could track and integrate with TF-core Keras. I believe these issues are of high importance to the community; for my project at least they are just short of critical. In summary:</p> <ul dir="auto"> <li>PR: Keras Callbacks should be able to access predictions made during training in <code class="notranslate">on_batch_end()</code> and <code class="notranslate">on_epoch_end()</code> to eliminate expensive duplicate calls to <code class="notranslate">predict()</code> in Callbacks that require prediction results -- <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="335051045" data-permission-text="Title is private" data-url="https://github.com/keras-team/keras/issues/10513" data-hovercard-type="pull_request" data-hovercard-url="/keras-team/keras/pull/10513/hovercard" href="https://github.com/keras-team/keras/pull/10513">keras-team/keras#10513</a></li> <li>Writing a Keras metric should not require a graph -- <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="191721607" data-permission-text="Title is private" data-url="https://github.com/keras-team/keras/issues/4506" data-hovercard-type="issue" data-hovercard-url="/keras-team/keras/issues/4506/hovercard?comment_id=405452870&amp;comment_type=issue_comment" href="https://github.com/keras-team/keras/issues/4506#issuecomment-405452870">keras-team/keras#4506 (comment)</a></li> </ul> <p dir="auto">The reason these are related is because a viable solution to the second issue depends on the first; in particular, if you wanted to write a "fancy" metric function that did calcs in Python, for example, you could leverage already-made predictions from the API described in issue 1 and circumvent having to <code class="notranslate">predict()</code> all over again, which is prohibitively expensive in all but the simplest models.</p>
0
<p dir="auto">Using joinpath on a UNC path does not always behave as expected (or as I expect).</p> <p dir="auto">In the following example:</p> <ul dir="auto"> <li>Case 7 seems like a definite defect.</li> <li>Cases 5 &amp; 6 may be debatable, but I would also argue that <code class="notranslate">joinpath</code> should be able to join all the parts of a UNC path even if the first part is not the full server+share part. I can certainly see how it would be useful to have it behave that way.</li> </ul> <p dir="auto">Code:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import InteractiveUtils InteractiveUtils.versioninfo() println() @show &quot;1: &quot; * joinpath(&quot;D:&quot;, &quot;a&quot;, &quot;b&quot;, &quot;c&quot;) @show &quot;2: &quot; * joinpath(&quot;D:\\&quot;, &quot;a&quot;, &quot;b&quot;, &quot;c&quot;) @show &quot;3: &quot; * joinpath(&quot;D:\\a&quot;, &quot;b&quot;, &quot;c&quot;) @show &quot;4: &quot; * joinpath(&quot;D:\\a\\&quot;, &quot;b&quot;, &quot;c&quot;) println() @show &quot;5: &quot; * joinpath(&quot;\\\\server&quot;, &quot;share&quot;, &quot;b&quot;, &quot;BAD&quot;) # expect &quot;\\\\server\\share\\b\\BAD&quot; @show &quot;6: &quot; * joinpath(&quot;\\\\server\\&quot;, &quot;share&quot;, &quot;b&quot;, &quot;BAD&quot;) # expect &quot;\\\\server\\share\\b\\BAD&quot; @show &quot;7: &quot; * joinpath(&quot;\\\\server\\share&quot;, &quot;b&quot;, &quot;BAD&quot;) # expect &quot;\\\\server\\share\\b\\BAD&quot; @show &quot;8: &quot; * joinpath(&quot;\\\\server\\share\\&quot;, &quot;b&quot;, &quot;GOOD&quot;) # expect &quot;\\\\server\\share\\b\\GOOD&quot;"><pre class="notranslate"><span class="pl-k">import</span> InteractiveUtils InteractiveUtils<span class="pl-k">.</span><span class="pl-c1">versioninfo</span>() <span class="pl-c1">println</span>() <span class="pl-c1">@show</span> <span class="pl-s"><span class="pl-pds">"</span>1: <span class="pl-pds">"</span></span> <span class="pl-k">*</span> <span class="pl-c1">joinpath</span>(<span class="pl-s"><span class="pl-pds">"</span>D:<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>a<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>c<span class="pl-pds">"</span></span>) <span class="pl-c1">@show</span> <span class="pl-s"><span class="pl-pds">"</span>2: <span class="pl-pds">"</span></span> <span class="pl-k">*</span> <span class="pl-c1">joinpath</span>(<span class="pl-s"><span class="pl-pds">"</span>D:<span class="pl-cce">\\</span><span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>a<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>c<span class="pl-pds">"</span></span>) <span class="pl-c1">@show</span> <span class="pl-s"><span class="pl-pds">"</span>3: <span class="pl-pds">"</span></span> <span class="pl-k">*</span> <span class="pl-c1">joinpath</span>(<span class="pl-s"><span class="pl-pds">"</span>D:<span class="pl-cce">\\</span>a<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>c<span class="pl-pds">"</span></span>) <span class="pl-c1">@show</span> <span class="pl-s"><span class="pl-pds">"</span>4: <span class="pl-pds">"</span></span> <span class="pl-k">*</span> <span class="pl-c1">joinpath</span>(<span class="pl-s"><span class="pl-pds">"</span>D:<span class="pl-cce">\\</span>a<span class="pl-cce">\\</span><span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>c<span class="pl-pds">"</span></span>) <span class="pl-c1">println</span>() <span class="pl-c1">@show</span> <span class="pl-s"><span class="pl-pds">"</span>5: <span class="pl-pds">"</span></span> <span class="pl-k">*</span> <span class="pl-c1">joinpath</span>(<span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\\\\</span>server<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>share<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>BAD<span class="pl-pds">"</span></span>) <span class="pl-c"><span class="pl-c">#</span> expect "\\\\server\\share\\b\\BAD"</span> <span class="pl-c1">@show</span> <span class="pl-s"><span class="pl-pds">"</span>6: <span class="pl-pds">"</span></span> <span class="pl-k">*</span> <span class="pl-c1">joinpath</span>(<span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\\\\</span>server<span class="pl-cce">\\</span><span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>share<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>BAD<span class="pl-pds">"</span></span>) <span class="pl-c"><span class="pl-c">#</span> expect "\\\\server\\share\\b\\BAD"</span> <span class="pl-c1">@show</span> <span class="pl-s"><span class="pl-pds">"</span>7: <span class="pl-pds">"</span></span> <span class="pl-k">*</span> <span class="pl-c1">joinpath</span>(<span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\\\\</span>server<span class="pl-cce">\\</span>share<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>BAD<span class="pl-pds">"</span></span>) <span class="pl-c"><span class="pl-c">#</span> expect "\\\\server\\share\\b\\BAD"</span> <span class="pl-c1">@show</span> <span class="pl-s"><span class="pl-pds">"</span>8: <span class="pl-pds">"</span></span> <span class="pl-k">*</span> <span class="pl-c1">joinpath</span>(<span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\\\\</span>server<span class="pl-cce">\\</span>share<span class="pl-cce">\\</span><span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>GOOD<span class="pl-pds">"</span></span>) <span class="pl-c"><span class="pl-c">#</span> expect "\\\\server\\share\\b\\GOOD"</span></pre></div> <p dir="auto">Result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 1.2.0 Commit c6da87ff4b (2019-08-20 00:03 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, broadwell) &quot;1: &quot; * joinpath(&quot;D:&quot;, &quot;a&quot;, &quot;b&quot;, &quot;c&quot;) = &quot;1: D:a\\b\\c&quot; &quot;2: &quot; * joinpath(&quot;D:\\&quot;, &quot;a&quot;, &quot;b&quot;, &quot;c&quot;) = &quot;2: D:\\a\\b\\c&quot; &quot;3: &quot; * joinpath(&quot;D:\\a&quot;, &quot;b&quot;, &quot;c&quot;) = &quot;3: D:\\a\\b\\c&quot; &quot;4: &quot; * joinpath(&quot;D:\\a\\&quot;, &quot;b&quot;, &quot;c&quot;) = &quot;4: D:\\a\\b\\c&quot; &quot;5: &quot; * joinpath(&quot;\\\\server&quot;, &quot;share&quot;, &quot;b&quot;, &quot;BAD&quot;) = &quot;5: \\\\server\\sharebBAD&quot; &quot;6: &quot; * joinpath(&quot;\\\\server\\&quot;, &quot;share&quot;, &quot;b&quot;, &quot;BAD&quot;) = &quot;6: \\\\server\\sharebBAD&quot; &quot;7: &quot; * joinpath(&quot;\\\\server\\share&quot;, &quot;b&quot;, &quot;BAD&quot;) = &quot;7: \\\\server\\sharebBAD&quot; &quot;8: &quot; * joinpath(&quot;\\\\server\\share\\&quot;, &quot;b&quot;, &quot;GOOD&quot;) = &quot;8: \\\\server\\share\\b\\GOOD&quot;"><pre class="notranslate"><code class="notranslate">Julia Version 1.2.0 Commit c6da87ff4b (2019-08-20 00:03 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, broadwell) "1: " * joinpath("D:", "a", "b", "c") = "1: D:a\\b\\c" "2: " * joinpath("D:\\", "a", "b", "c") = "2: D:\\a\\b\\c" "3: " * joinpath("D:\\a", "b", "c") = "3: D:\\a\\b\\c" "4: " * joinpath("D:\\a\\", "b", "c") = "4: D:\\a\\b\\c" "5: " * joinpath("\\\\server", "share", "b", "BAD") = "5: \\\\server\\sharebBAD" "6: " * joinpath("\\\\server\\", "share", "b", "BAD") = "6: \\\\server\\sharebBAD" "7: " * joinpath("\\\\server\\share", "b", "BAD") = "7: \\\\server\\sharebBAD" "8: " * joinpath("\\\\server\\share\\", "b", "GOOD") = "8: \\\\server\\share\\b\\GOOD" </code></pre></div>
<p dir="auto">See also discussion over at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="487490757" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/Pkg.jl/issues/1328" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/Pkg.jl/issues/1328/hovercard" href="https://github.com/JuliaLang/Pkg.jl/issues/1328">JuliaLang/Pkg.jl#1328</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="487350321" data-permission-text="Title is private" data-url="https://github.com/JuliaDynamics/DrWatson.jl/issues/82" data-hovercard-type="issue" data-hovercard-url="/JuliaDynamics/DrWatson.jl/issues/82/hovercard" href="https://github.com/JuliaDynamics/DrWatson.jl/issues/82">JuliaDynamics/DrWatson.jl#82</a></p> <p dir="auto">For network drives <code class="notranslate">realpath</code> returns a wrong path.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; realpath(&quot;Z://&quot;) &quot;UNC\\Mac\\Home\\&quot; julia&gt; realpath(&quot;C://&quot;) &quot;C:\\&quot;"><pre class="notranslate"><code class="notranslate">julia&gt; realpath("Z://") "UNC\\Mac\\Home\\" julia&gt; realpath("C://") "C:\\" </code></pre></div> <p dir="auto">Tested on:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 1.2.0 Commit c6da87ff4b (2019-08-20 00:03 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, skylake)"><pre class="notranslate"><code class="notranslate">Julia Version 1.2.0 Commit c6da87ff4b (2019-08-20 00:03 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, skylake) </code></pre></div> <p dir="auto">It's this call:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 349 len = ccall(:GetFinalPathNameByHandleW, stdcall, UInt32, (Int, Ptr{UInt16}, UInt32, UInt32), 350 h, buf, (oldlen=len)-1, 0x0)"><pre class="notranslate"><code class="notranslate"> 349 len = ccall(:GetFinalPathNameByHandleW, stdcall, UInt32, (Int, Ptr{UInt16}, UInt32, UInt32), 350 h, buf, (oldlen=len)-1, 0x0) </code></pre></div> <p dir="auto">with <code class="notranslate">buf</code> being</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1|julia&gt; transcode(String,buf) &quot;\\\\?\\UNC\\Mac\\Home\\\ .... garbage due to length not being corrected&quot;"><pre class="notranslate"><code class="notranslate">1|julia&gt; transcode(String,buf) "\\\\?\\UNC\\Mac\\Home\\\ .... garbage due to length not being corrected" </code></pre></div>
1
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">What steps will reproduce the problem? 1. Execute .pkg installer for Go v1.1.2 (on a machine with v.1.1.1 installed and working) 2. Installer fails with error but no explanation 3. OS X console shows message: "You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' ..." 'xcodebuild -license' resolves the issue, but the installer does not suggest this may be the problem. Additionally this install was on a machine that had Go v.1.1.1 installed via the .pkg without any problems, and no Xcode updates had been applied since. Which operating system are you using? OS X 10.8.4 Which version are you using? (run 'go version') go version go1.1.2 darwin/amd64 Please provide any additional information below. A message with the cause of the install failure would make locating the issue much easier.</pre>
<p dir="auto">Some servers dumbly won't serve a cert chain unless the client offers the signatures in the chain.</p>
0
<p dir="auto">Apologies if this is a duplicate or not a bug – I ran into this recently and figured I should report it.</p> <p dir="auto"><code class="notranslate">iter_content</code> takes a <code class="notranslate">chunk_size</code> argument, which defaults to 1. Various code snippets on the internet call <code class="notranslate">request.iter_content()</code>. This is incredibly inefficient, because it is using a buffer size of 1 <em>byte</em>. I think <code class="notranslate">requests</code> should either a) set <code class="notranslate">chunk_size</code> to something more reasonable, like 2048 or 4096, or b) make <code class="notranslate">chunk_size</code> a required argument. (Solution a is more palatable since it's backwards compatible.)</p>
<p dir="auto">Currently any duplicate header on responses gets merged on the response.headers dict, using a comma to delimit de two different header values. For example</p> <p dir="auto">HTTP/1.1 200 OK<br> HeaderX: Value1<br> HeaderX: Value2</p> <blockquote> <p dir="auto">print response.headers<br> { 'headerx' : ' Value1, Value2' }</p> </blockquote> <p dir="auto">This makes impossible to detect responses with duplicate headers, particularly when header values already include commas by themselves (e.g., 'last-modified')</p> <p dir="auto">Potential alternative repr:</p> <blockquote> <p dir="auto">print response.headers<br> { 'headerx' : ['Value1', 'Value2'] }</p> </blockquote> <p dir="auto">Problem: breaks backward compatibility as scripts expecting a string would get a list</p> <blockquote> <p dir="auto">print response.headers<br> { 'headerx' : 'Value1 'Value2'}</p> </blockquote> <p dir="auto">Where SEP would be a separator that can't be found on values (newline?)</p>
0
<p dir="auto">After trying <code class="notranslate">pip3 install uvicorn</code> i get the error message <code class="notranslate">Failed building wheel for httptools</code>.</p> <p dir="auto">I know this is a duplication of this error (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="424551072" data-permission-text="Title is private" data-url="https://github.com/MagicStack/httptools/issues/33" data-hovercard-type="issue" data-hovercard-url="/MagicStack/httptools/issues/33/hovercard" href="https://github.com/MagicStack/httptools/issues/33">MagicStack/httptools#33</a>), but I can't seem to find a solution. Anyone having the same problem, or know of a solution?</p> <p dir="auto">I'm on macOS Mojave 0.14.2<br> with python 3.7.1, but on 3.6.3 I had the same issue.</p>
<p dir="auto">From me having a look at what is importable in starlette it needs to use JSONResponse not UJSONResponse as that seems to have been removed<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3628354/113640388-3a647680-9673-11eb-8e88-a0ec72c407f6.png"><img src="https://user-images.githubusercontent.com/3628354/113640388-3a647680-9673-11eb-8e88-a0ec72c407f6.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Would be good to get this fixed ASAP and a new release pushed out to fix this issue as need to use this version of starlette and due to fastapi not having support for this version of starlette is being a release blocker for me</p>
0
<p dir="auto">Is sortrows() running as fast as it should? I have no deep knowledge of the theoretical performance possibilities for a "sortrows()" algorithm vs. a traditional vector sort algorithm, but I'm finding that lexicographically sorting an N-by-2 matrix is MUCH slower than sorting an N-by-1 vector.</p> <p dir="auto">For example, on my machine, sorting a random vector of 20 million Float64s takes about 2 seconds. Sorting a 20 million by 2 matrix, using sortrows(), takes about 250 seconds.</p> <p dir="auto">Is there any reason why lexicographic sorting should not have N * log(N) performance? If its N * log(N), then sortrows() should take only about 2 * log(2) more time than sort() on a vector.</p> <p dir="auto">For what its worth, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/time/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/time">@time</a> reports that a meaningful chunk of the running time (10%) is garbage collection .</p> <p dir="auto">For reference, here's my versioninfo()<br> julia&gt; versioninfo()<br> Julia Version 0.3.4<br> Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/33920266908e950936ef3f8503810a2d47333741/hovercard" href="https://github.com/JuliaLang/julia/commit/33920266908e950936ef3f8503810a2d47333741"><tt>3392026</tt></a>* (2014-12-26 10:42 UTC)<br> Platform Info:<br> System: Linux (x86_64-redhat-linux)<br> CPU: Intel(R) Xeon(R) CPU E7-8891 v2 @ 3.20GHz<br> WORD_SIZE: 64<br> BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)<br> LAPACK: libopenblas<br> LIBM: libopenlibm<br> LLVM: libLLVM-3.3</p>
<p dir="auto">Julia sorting functions are slow compared to Matlab.</p> <hr> <h4 dir="auto">Outdated begin</h4> <p dir="auto"><del>Matlab R2012b sorting of integer arrays:</del></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt; a=randi(30000000,30000000,2); &gt;&gt; tic; b=sort(a,2); toc Elapsed time is 0.882043 seconds. &gt;&gt; tic; b=sort(a,2); toc Elapsed time is 0.903528 seconds. &gt;&gt; tic; b=sort(a,2); toc Elapsed time is 0.900367 seconds. `` Julia sorting of integer arrays: julia&gt; a=rand(Int64,30000000,2); julia&gt; @time sort(a,2); elapsed time: 46.625749977 seconds (17279978752 bytes allocated, 19.15% gc time)"><pre class="notranslate"><code class="notranslate">&gt;&gt; a=randi(30000000,30000000,2); &gt;&gt; tic; b=sort(a,2); toc Elapsed time is 0.882043 seconds. &gt;&gt; tic; b=sort(a,2); toc Elapsed time is 0.903528 seconds. &gt;&gt; tic; b=sort(a,2); toc Elapsed time is 0.900367 seconds. `` Julia sorting of integer arrays: julia&gt; a=rand(Int64,30000000,2); julia&gt; @time sort(a,2); elapsed time: 46.625749977 seconds (17279978752 bytes allocated, 19.15% gc time) </code></pre></div> <p dir="auto"><del>The Julia sort() is more than 40 times slower than Matlab.</del></p> <h4 dir="auto">Outdated end</h4> <hr> <p dir="auto">The sortslices(a; dims=1) has a similar problem. Still working with the same 30,000,000 x 2 array size:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt; a=rand(Int64,30000000,2); &gt;&gt; tic; c=sortrows(a); toc Elapsed time is 12.071053 seconds."><pre class="notranslate"><code class="notranslate">&gt;&gt; a=rand(Int64,30000000,2); &gt;&gt; tic; c=sortrows(a); toc Elapsed time is 12.071053 seconds. </code></pre></div> <p dir="auto">Compare with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; @time sortslices(a; dims=1); 100.747272 seconds (31.13 M allocations: 2.737 GiB, 1.78% gc time)"><pre class="notranslate"><code class="notranslate">julia&gt; @time sortslices(a; dims=1); 100.747272 seconds (31.13 M allocations: 2.737 GiB, 1.78% gc time) </code></pre></div>
1
<p dir="auto">Hi,</p> <p dir="auto">This might be duplicated question, but I have tried all possible research on google and blogs to get a solution to fix it, so if you already know the answer please help me.</p> <p dir="auto">I am trying to send an array of objects to Axios post request, but the payload empty array even if I have the data in array as I checked with console.log</p> <p dir="auto"><code class="notranslate">axios.post("/api/videos", { ytVideosList, data: { customFunction: "AddVideoList" } })</code></p> <p dir="auto">where ytVideoList is [{json-obj1},{json-obj2}, .....] etc which is empty [] at payload side, so i am not able to insert data in my database table. I hope everything is clear if you know the answer please respond as soon as possible.</p>
<p dir="auto">versus just using axios({...}) to make requests?</p>
0
<p dir="auto">It appears that <code class="notranslate">numpy.linalg.svd</code> has different outputs between 1.15.4 and 1.16.3 -- and I don't see any hints that this should happen in the changelog.</p> <h3 dir="auto">Reproducing code example:</h3> <p dir="auto">If you run numpy==1.15.4 with the following input, you get the following</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [20]: np.random.seed(0) In [21]: X = np.random.randn(100, 100) * 10 In [22]: u, s, v = np.linalg.svd(X) In [23]: s[:5] Out[23]: array([193.6995948 , 183.01489365, 180.94983595, 178.47342134, 174.07146491]) In [24]: u[:5, :5] Out[24]: array([[-0.12777193, 0.1473861 , -0.04626332, 0.09269663, 0.12149756], [-0.23535239, 0.06543527, -0.02588301, -0.05401032, -0.02436388], [ 0.09956489, -0.07108259, -0.10083294, 0.16710062, -0.0333519 ], [-0.05718053, -0.11184903, -0.12280465, 0.04707958, 0.16647603], [ 0.25422798, 0.01464547, -0.15071626, -0.03225463, -0.12620621]]) In [25]: np.mean(X - u @ np.diag(s) @ v) Out[25]: 1.336599234069702e-16 In [26]: np.std(X - u @ np.diag(s) @ v) Out[26]: 2.0947185697750298e-14"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">20</span>]: <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">0</span>) <span class="pl-v">In</span> [<span class="pl-c1">21</span>]: <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">100</span>, <span class="pl-c1">100</span>) <span class="pl-c1">*</span> <span class="pl-c1">10</span> <span class="pl-v">In</span> [<span class="pl-c1">22</span>]: <span class="pl-s1">u</span>, <span class="pl-s1">s</span>, <span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">svd</span>(<span class="pl-v">X</span>) <span class="pl-v">In</span> [<span class="pl-c1">23</span>]: <span class="pl-s1">s</span>[:<span class="pl-c1">5</span>] <span class="pl-v">Out</span>[<span class="pl-c1">23</span>]: <span class="pl-en">array</span>([<span class="pl-c1">193.6995948</span> , <span class="pl-c1">183.01489365</span>, <span class="pl-c1">180.94983595</span>, <span class="pl-c1">178.47342134</span>, <span class="pl-c1">174.07146491</span>]) <span class="pl-v">In</span> [<span class="pl-c1">24</span>]: <span class="pl-s1">u</span>[:<span class="pl-c1">5</span>, :<span class="pl-c1">5</span>] <span class="pl-v">Out</span>[<span class="pl-c1">24</span>]: <span class="pl-en">array</span>([[<span class="pl-c1">-</span><span class="pl-c1">0.12777193</span>, <span class="pl-c1">0.1473861</span> , <span class="pl-c1">-</span><span class="pl-c1">0.04626332</span>, <span class="pl-c1">0.09269663</span>, <span class="pl-c1">0.12149756</span>], [<span class="pl-c1">-</span><span class="pl-c1">0.23535239</span>, <span class="pl-c1">0.06543527</span>, <span class="pl-c1">-</span><span class="pl-c1">0.02588301</span>, <span class="pl-c1">-</span><span class="pl-c1">0.05401032</span>, <span class="pl-c1">-</span><span class="pl-c1">0.02436388</span>], [ <span class="pl-c1">0.09956489</span>, <span class="pl-c1">-</span><span class="pl-c1">0.07108259</span>, <span class="pl-c1">-</span><span class="pl-c1">0.10083294</span>, <span class="pl-c1">0.16710062</span>, <span class="pl-c1">-</span><span class="pl-c1">0.0333519</span> ], [<span class="pl-c1">-</span><span class="pl-c1">0.05718053</span>, <span class="pl-c1">-</span><span class="pl-c1">0.11184903</span>, <span class="pl-c1">-</span><span class="pl-c1">0.12280465</span>, <span class="pl-c1">0.04707958</span>, <span class="pl-c1">0.16647603</span>], [ <span class="pl-c1">0.25422798</span>, <span class="pl-c1">0.01464547</span>, <span class="pl-c1">-</span><span class="pl-c1">0.15071626</span>, <span class="pl-c1">-</span><span class="pl-c1">0.03225463</span>, <span class="pl-c1">-</span><span class="pl-c1">0.12620621</span>]]) <span class="pl-v">In</span> [<span class="pl-c1">25</span>]: <span class="pl-s1">np</span>.<span class="pl-en">mean</span>(<span class="pl-v">X</span> <span class="pl-c1">-</span> <span class="pl-s1">u</span> @ <span class="pl-s1">np</span>.<span class="pl-en">diag</span>(<span class="pl-s1">s</span>) @ <span class="pl-s1">v</span>) <span class="pl-v">Out</span>[<span class="pl-c1">25</span>]: <span class="pl-c1">1.336599234069702e-16</span> <span class="pl-v">In</span> [<span class="pl-c1">26</span>]: <span class="pl-s1">np</span>.<span class="pl-en">std</span>(<span class="pl-v">X</span> <span class="pl-c1">-</span> <span class="pl-s1">u</span> @ <span class="pl-s1">np</span>.<span class="pl-en">diag</span>(<span class="pl-s1">s</span>) @ <span class="pl-s1">v</span>) <span class="pl-v">Out</span>[<span class="pl-c1">26</span>]: <span class="pl-c1">2.0947185697750298e-14</span></pre></div> <p dir="auto">However, if you run svd with numpy==1.16.3, you get the following</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [13]: np.random.seed(0) In [14]: X = np.random.randn(100, 100) * 10 In [15]: u, s, v = np.linalg.svd(X) In [16]: s[:5] Out[16]: array([193.6995948 , 183.01489365, 180.94983595, 178.47342134, 174.07146491]) In [17]: u[:5, :5] Out[17]: array([[-0.07680886, 0.17809124, -0.41179481, 0.14073815, 0.14494919], [ 0.46612298, -0.38573887, 0.34177276, -0.11314353, -0.03170648], [-0.62584307, 0.10539512, 0.20991414, -0.24513665, -0.11505925], [-0.43937521, -0.07100245, 0.2941617 , -0.03515797, 0.04093411], [ 0.00359183, -0.64178218, 0.69484207, -0.09871542, 0.28272959]]) In [18]: np.mean(X - u @ np.diag(s) @ v) Out[18]: 1.0356975839816995 In [19]: np.std(X - u @ np.diag(s) @ v) Out[19]: 92.84521345330656"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">13</span>]: <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">0</span>) <span class="pl-v">In</span> [<span class="pl-c1">14</span>]: <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">100</span>, <span class="pl-c1">100</span>) <span class="pl-c1">*</span> <span class="pl-c1">10</span> <span class="pl-v">In</span> [<span class="pl-c1">15</span>]: <span class="pl-s1">u</span>, <span class="pl-s1">s</span>, <span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">svd</span>(<span class="pl-v">X</span>) <span class="pl-v">In</span> [<span class="pl-c1">16</span>]: <span class="pl-s1">s</span>[:<span class="pl-c1">5</span>] <span class="pl-v">Out</span>[<span class="pl-c1">16</span>]: <span class="pl-en">array</span>([<span class="pl-c1">193.6995948</span> , <span class="pl-c1">183.01489365</span>, <span class="pl-c1">180.94983595</span>, <span class="pl-c1">178.47342134</span>, <span class="pl-c1">174.07146491</span>]) <span class="pl-v">In</span> [<span class="pl-c1">17</span>]: <span class="pl-s1">u</span>[:<span class="pl-c1">5</span>, :<span class="pl-c1">5</span>] <span class="pl-v">Out</span>[<span class="pl-c1">17</span>]: <span class="pl-en">array</span>([[<span class="pl-c1">-</span><span class="pl-c1">0.07680886</span>, <span class="pl-c1">0.17809124</span>, <span class="pl-c1">-</span><span class="pl-c1">0.41179481</span>, <span class="pl-c1">0.14073815</span>, <span class="pl-c1">0.14494919</span>], [ <span class="pl-c1">0.46612298</span>, <span class="pl-c1">-</span><span class="pl-c1">0.38573887</span>, <span class="pl-c1">0.34177276</span>, <span class="pl-c1">-</span><span class="pl-c1">0.11314353</span>, <span class="pl-c1">-</span><span class="pl-c1">0.03170648</span>], [<span class="pl-c1">-</span><span class="pl-c1">0.62584307</span>, <span class="pl-c1">0.10539512</span>, <span class="pl-c1">0.20991414</span>, <span class="pl-c1">-</span><span class="pl-c1">0.24513665</span>, <span class="pl-c1">-</span><span class="pl-c1">0.11505925</span>], [<span class="pl-c1">-</span><span class="pl-c1">0.43937521</span>, <span class="pl-c1">-</span><span class="pl-c1">0.07100245</span>, <span class="pl-c1">0.2941617</span> , <span class="pl-c1">-</span><span class="pl-c1">0.03515797</span>, <span class="pl-c1">0.04093411</span>], [ <span class="pl-c1">0.00359183</span>, <span class="pl-c1">-</span><span class="pl-c1">0.64178218</span>, <span class="pl-c1">0.69484207</span>, <span class="pl-c1">-</span><span class="pl-c1">0.09871542</span>, <span class="pl-c1">0.28272959</span>]]) <span class="pl-v">In</span> [<span class="pl-c1">18</span>]: <span class="pl-s1">np</span>.<span class="pl-en">mean</span>(<span class="pl-v">X</span> <span class="pl-c1">-</span> <span class="pl-s1">u</span> @ <span class="pl-s1">np</span>.<span class="pl-en">diag</span>(<span class="pl-s1">s</span>) @ <span class="pl-s1">v</span>) <span class="pl-v">Out</span>[<span class="pl-c1">18</span>]: <span class="pl-c1">1.0356975839816995</span> <span class="pl-v">In</span> [<span class="pl-c1">19</span>]: <span class="pl-s1">np</span>.<span class="pl-en">std</span>(<span class="pl-v">X</span> <span class="pl-c1">-</span> <span class="pl-s1">u</span> @ <span class="pl-s1">np</span>.<span class="pl-en">diag</span>(<span class="pl-s1">s</span>) @ <span class="pl-s1">v</span>) <span class="pl-v">Out</span>[<span class="pl-c1">19</span>]: <span class="pl-c1">92.84521345330656</span></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">numpy version 1.15</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [18]: np.__config__.show() mkl_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/include'] blas_mkl_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/include'] blas_opt_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/include'] lapack_mkl_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/include'] lapack_opt_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/include'] In [27]: import sys, numpy; print(numpy.__version__, sys.version) 1.15.4 3.6.5 | packaged by conda-forge | (default, Apr 6 2018, 13:44:09) [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)]"><pre class="notranslate"><code class="notranslate">In [18]: np.__config__.show() mkl_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/include'] blas_mkl_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/include'] blas_opt_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/include'] lapack_mkl_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/include'] lapack_opt_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/jmorton/miniconda3/envs/qiime2-2019.1/include'] In [27]: import sys, numpy; print(numpy.__version__, sys.version) 1.15.4 3.6.5 | packaged by conda-forge | (default, Apr 6 2018, 13:44:09) [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] </code></pre></div> <p dir="auto">numpy version 1.16</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [3]: np.__config__.show() blas_mkl_info: NOT AVAILABLE blis_info: NOT AVAILABLE openblas_info: libraries = ['openblas', 'openblas'] library_dirs = ['/usr/local/lib'] language = c define_macros = [('HAVE_CBLAS', None)] blas_opt_info: libraries = ['openblas', 'openblas'] library_dirs = ['/usr/local/lib'] language = c define_macros = [('HAVE_CBLAS', None)] lapack_mkl_info: NOT AVAILABLE openblas_lapack_info: libraries = ['openblas', 'openblas'] library_dirs = ['/usr/local/lib'] language = c define_macros = [('HAVE_CBLAS', None)] lapack_opt_info: libraries = ['openblas', 'openblas'] library_dirs = ['/usr/local/lib'] language = c define_macros = [('HAVE_CBLAS', None)] In [20]: import sys, numpy; print(numpy.__version__, sys.version) 1.16.3 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 02:16:08) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]"><pre class="notranslate"><code class="notranslate">In [3]: np.__config__.show() blas_mkl_info: NOT AVAILABLE blis_info: NOT AVAILABLE openblas_info: libraries = ['openblas', 'openblas'] library_dirs = ['/usr/local/lib'] language = c define_macros = [('HAVE_CBLAS', None)] blas_opt_info: libraries = ['openblas', 'openblas'] library_dirs = ['/usr/local/lib'] language = c define_macros = [('HAVE_CBLAS', None)] lapack_mkl_info: NOT AVAILABLE openblas_lapack_info: libraries = ['openblas', 'openblas'] library_dirs = ['/usr/local/lib'] language = c define_macros = [('HAVE_CBLAS', None)] lapack_opt_info: libraries = ['openblas', 'openblas'] library_dirs = ['/usr/local/lib'] language = c define_macros = [('HAVE_CBLAS', None)] In [20]: import sys, numpy; print(numpy.__version__, sys.version) 1.16.3 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 02:16:08) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] </code></pre></div> <p dir="auto">As you can see, the output from 1.16.3 is broken, and the svd is no longer a true reconstruction.</p>
<p dir="auto">bash-5.0# gcc -v<br> Using built-in specs.<br> COLLECT_GCC=gcc<br> COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/lto-wrapper<br> Target: powerpc-ibm-aix6.1.0.0<br> Configured with: ../gcc-6.3.0/configure --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --with-local-prefix=/opt/freeware --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran,objc,obj-c++ --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --with-cloog=no --with-ppl=no --disable-libstdcxx-pch --enable-__cxa_atexit --host=powerpc-ibm-aix6.1.0.0<br> Thread model: aix<br> gcc version 6.3.0 (GCC)<br> bash-5.0# python -V<br> Python 3.6.6</p> <p dir="auto">bash-5.0# python<br> Python 3.6.6 (default, Jul 11 2018, 05:41:50)<br> [GCC 6.3.0] on aix6<br> Type "help", "copyright", "credits" or "license" for more information.</p> <blockquote> <blockquote> <blockquote> <p dir="auto">import numpy<br> Traceback (most recent call last):<br> File "/opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/<strong>init</strong>.py", line 16, in <br> from . import multiarray<br> File "/opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/multiarray.py", line 12, in <br> from . import overrides<br> File "/opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/overrides.py", line 9, in <br> from numpy.core._multiarray_umath import add_docstring, ndarray<br> ImportError: 0509-022 Cannot load module /opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/_multiarray_umath.so.<br> 0509-026 System error: Cannot run a file that does not have a valid format.</p> </blockquote> </blockquote> </blockquote> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File "", line 1, in <br> File "/opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/<strong>init</strong>.py", line 142, in <br> from . import core<br> File "/opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/<strong>init</strong>.py", line 47, in <br> raise ImportError(msg)<br> ImportError:</p> <p dir="auto">IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!</p> <p dir="auto">Importing the multiarray numpy extension module failed. Most<br> likely you are trying to import a failed build of numpy.<br> Here is how to proceed:</p> <ul dir="auto"> <li>If you're working with a numpy git repository, try <code class="notranslate">git clean -xdf</code><br> (removes all files not under version control) and rebuild numpy.</li> <li>If you are simply trying to use the numpy version that you have installed:<br> your installation is broken - please reinstall numpy.</li> <li>If you have already reinstalled and that did not fix the problem, then: <ol dir="auto"> <li> <p dir="auto">Check that you are using the Python you expect (you're using /usr/bin/python),<br> and that you have no directories in your PATH or PYTHONPATH that can<br> interfere with the Python and numpy versions you're trying to use.</p> </li> <li> <p dir="auto">If (1) looks fine, you can open a new issue at<br> <a href="https://github.com/numpy/numpy/issues">https://github.com/numpy/numpy/issues</a>. Please include details on:</p> <ul dir="auto"> <li>how you installed Python</li> <li>how you installed numpy</li> <li>your operating system</li> <li>whether or not you have multiple versions of Python installed</li> <li>if you built from source, your compiler versions and ideally a build log</li> </ul> <p dir="auto">Note: this error has many possible causes, so please don't comment on<br> an existing issue about this - open a new one instead.</p> </li> </ol> </li> </ul> <p dir="auto">Original error was: 0509-022 Cannot load module /opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/_multiarray_umath.so.<br> 0509-026 System error: Cannot run a file that does not have a valid format.</p>
0
<p dir="auto">I believe <code class="notranslate">@types/node-schedule</code> should not depend on <code class="notranslate">@types/node</code> (currently it is in <code class="notranslate">dependencies</code>), it should be added in <code class="notranslate">peerDependencies</code>, because otherwise it may result in conflicts, with other installed version (maybe on the upper level of the project).</p> <p dir="auto">I don't get where the <code class="notranslate">package.json can</code> be contributed to? I see no <code class="notranslate">package.json</code> here:<br> <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/node-schedule">https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/node-schedule</a></p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cyrilschumacher/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cyrilschumacher">@cyrilschumacher</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/flowpl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/flowpl">@flowpl</a></p>
<p dir="auto">I believe @types/express-serve-static-core should not depend on @types/node (currently it is in dependencies), it should be added in peerDependencies, because otherwise it may result in conflicts, with other installed version (maybe on the upper level of the project).</p> <p dir="auto">I don't get where the package.json can be contributed to? I see no package.json here:<br> <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/express">https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/express</a></p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/borisyankov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/borisyankov">@borisyankov</a></p>
1
<ul dir="auto"> <li>VSCode Version:0.10.14 code-insiders</li> <li>OS Version:Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open a markdown preview to the side of markdown source</li> <li>Scroll source file</li> </ol> <p dir="auto">It would be nice to have a way to lock the preview and scroll at the same time. Especially nice for longer markdown files.</p> <p dir="auto">This came in from an internal MS writer using VS Code for Markdown.</p>
<ul dir="auto"> <li>VSCode Version: 1.1.1</li> <li>OS Version: Win 10 Home</li> </ul> <p dir="auto">VS Code can't parse code properly, script is ok - works.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17810474/15537571/8d619626-2277-11e6-921d-f41be1da733c.png"><img src="https://cloud.githubusercontent.com/assets/17810474/15537571/8d619626-2277-11e6-921d-f41be1da733c.png" alt="code_parser_bug" style="max-width: 100%;"></a></p>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; :4.4.0:</li> <li>Operating System / Platform =&gt; Ubuntu 20.04</li> <li>Compiler =&gt; GCC 8.4</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I am loading a pre-trained SSD from TensorFlow and setting the target as preferred backend as CUDA. I am running Cuda 10.2 with cuDNN 8.0.2 and I have built OpenCV. Following code to load the model</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" cv::dnn::Net net = cv::dnn::readNetFromTensorflow(&quot;/Models/frozen_inference_graph.pb&quot;, &quot;/graph.pbtxt&quot;); net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA); net.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA); "><pre class="notranslate"><code class="notranslate"> cv::dnn::Net net = cv::dnn::readNetFromTensorflow("/Models/frozen_inference_graph.pb", "/graph.pbtxt"); net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA); net.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA); </code></pre></div> <p dir="auto">And I get the following error -</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="terminate called after throwing an instance of 'cv::dnn::cuda4dnn::csl::cudnn::cuDNNException' what(): OpenCV(4.4.0) /home/atharva/opencv-4.4.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:420: error: (-217:Gpu API call) CUDNN_STATUS_BAD_PARAM in function 'convolve'"><pre class="notranslate"><code class="notranslate">terminate called after throwing an instance of 'cv::dnn::cuda4dnn::csl::cudnn::cuDNNException' what(): OpenCV(4.4.0) /home/atharva/opencv-4.4.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:420: error: (-217:Gpu API call) CUDNN_STATUS_BAD_PARAM in function 'convolve' </code></pre></div> <p dir="auto">Could you please point what could be goig wrong?</p> <h5 dir="auto">Issue submission checklist</h5> <ul dir="auto"> <li>[ yes] I report the issue, it's not a question </li> <li>[yes ] I checked the problem with documentation, FAQ, open issues,<br> answers.opencv.org, Stack Overflow, etc and have not found solution </li> <li>[ yes] I updated to latest OpenCV version and the issue is still there </li> <li>[ yes] There is reproducer code and related data files: videos, images, onnx, etc </li> </ul>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.4dev</li> <li>Operating System / Platform =&gt; Ubuntu 18.04</li> <li>Compiler =&gt; gcc 7.5</li> <li>nVidia Driver: 450.57</li> <li>CUDA: 11.0.194GA</li> <li>cudnn: 8.0.2GA</li> </ul> <h5 dir="auto">Detailed description</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" cv2.error: OpenCV(4.4.0-dev) /source/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:420: error: (-217:Gpu API call) CUDNN_STATUS_BAD_PARAM in function 'convolve'"><pre class="notranslate"><code class="notranslate"> cv2.error: OpenCV(4.4.0-dev) /source/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:420: error: (-217:Gpu API call) CUDNN_STATUS_BAD_PARAM in function 'convolve' </code></pre></div> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">running YOLOV4 model with this works:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" net = cv2.dnn.readNet('yolov4.weights', 'yolov4.cfg') net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA) net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA_FP16)"><pre class="notranslate"><code class="notranslate"> net = cv2.dnn.readNet('yolov4.weights', 'yolov4.cfg') net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA) net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA_FP16) </code></pre></div> <p dir="auto">With this I get the error above</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" net = cv2.dnn.readNet('yolov4.weights', 'yolov4.cfg') net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA) net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)"><pre class="notranslate"><code class="notranslate"> net = cv2.dnn.readNet('yolov4.weights', 'yolov4.cfg') net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA) net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA) </code></pre></div>
1
<p dir="auto">Now with 100% less circular imports!</p>
<p dir="auto">Pending resolution of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="119842939" data-permission-text="Title is private" data-url="https://github.com/ReactiveX/rxjs/issues/860" data-hovercard-type="issue" data-hovercard-url="/ReactiveX/rxjs/issues/860/hovercard" href="https://github.com/ReactiveX/rxjs/issues/860">ReactiveX/rxjs#860</a> on reactivex/rxjs (which makes this possible).</p> <p dir="auto">We want to support the existing <code class="notranslate">toPromise</code> and <code class="notranslate">fromPromise</code> logic provided by <code class="notranslate">ObservableWrapper</code> without making <code class="notranslate">toPromise</code> and <code class="notranslate">fromPromise</code> available on the <code class="notranslate">Observable</code> prototype. Currently, there is no way to import an individual operator from rxjs without it automatically monkey-patching the <code class="notranslate">Observable</code> prototype. This could lead to users depending on the angular version of <code class="notranslate">Observable</code> containing the <code class="notranslate">toPromise</code> and <code class="notranslate">fromPromise</code> methods, which would make them sad when we someday remove it.</p> <p dir="auto">The reason we want to remove this from the facade is because these operators are only used internally by forms, and core needs to shed some bytes.</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 19008.vb Windows Terminal version 0.6.2951.0 Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 19008.vb Windows Terminal version 0.6.2951.0 Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Launching a new tab is done via CTRL+SHIFT+<br> I remap my Caps Lock key to CTRL via remapkey utility which just changes a registry key somewhere. This behavior works <em>everywhere</em> except for the Terminal app.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Windows Terminal respects my remapped key, i.e., Caps Lock + Shift + launches a new tab.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Caps Lock + Shift + does not launch a new tab</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): 0.6.2951.0 Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): 0.6.2951.0 Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ul dir="auto"> <li> <p dir="auto">produce more than a screenful of data, e.g. <code class="notranslate">cat</code> a file, or <code class="notranslate">ssh</code> to a Linux box and then:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="seq -f 'the quick brown fox jumps over the lazy dog %.f' 100"><pre class="notranslate"><code class="notranslate">seq -f 'the quick brown fox jumps over the lazy dog %.f' 100 </code></pre></div> </li> <li> <p dir="auto">narrow the window so that the onscreen parts begin to wrap</p> </li> <li> <p dir="auto">optionally widen it back</p> </li> <li> <p dir="auto">scroll back</p> </li> </ul> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The entire scrollback should be rewrapped, just like the onscreen bits.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Each line of the scrollback is truncated to the narrow width.</p>
0
<p dir="auto">npm install angular2 is not working.<br> it throws error:</p> <p dir="auto"><strong>npm ERR! 404 'reactivex' is not in the npm registry.<br> npm ERR! 404 You should bug the author to publish it<br> npm ERR! 404<br> npm ERR! 404 Note that you can also install from a<br> npm ERR! 404 tarball, folder, or http url, or git url.<br> npm ERR! System Linux 3.13.0-32-generic<br> npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "angular2"<br> npm ERR! cwd /home/shatakshi/Documents/a<br> npm ERR! node -v v0.10.25<br> npm ERR! npm -v 1.3.10<br> npm ERR! code E404<br> npm http 304 <a href="https://registry.npmjs.org/zone.js/0.5.7" rel="nofollow">https://registry.npmjs.org/zone.js/0.5.7</a><br> npm ERR!<br> npm ERR! Additional logging details can be found in:<br> npm ERR! /home/shatakshi/Documents/a/npm-debug.log<br> npm ERR! not ok code 0</strong></p>
<p dir="auto">Don't know if this is the right place to post this bug, please let me know if it isen't.</p> <p dir="auto">Failing to install latest angular2 package with npm:</p> <p dir="auto">npm ERR! 404 Not Found<br> npm ERR! 404<br> npm ERR! 404 'reactivex/rxjs' is not in the npm registry.<br> npm ERR! 404 You should bug the author to publish it<br> npm ERR! 404 It was specified as a dependency of 'angular2'<br> npm ERR! 404<br> npm ERR! 404 Note that you can also install from a<br> npm ERR! 404 tarball, folder, or http url, or git url.<br> npm ERR! System Windows_NT 6.2.9200<br> npm ERR! command "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\node\node" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm\bin\npm-cli.js" "install"<br> npm ERR! cwd C:************<br> npm ERR! node -v v0.10.31<br> npm ERR! npm -v 1.4.9<br> npm ERR! code E404</p>
1
<p dir="auto">Is it possible to use the APK split or app bundle functionality in the Android Gradle plugin to reduce the size of an release APK like have splits for different cpu architectures arm64, x86 or even more advanced splits on screensize and language.</p>
<p dir="auto">Currenlt Flutter only packages the armeabi-v7a library in the release APK and none other. So my suggestion is to use the feature explained at</p> <p dir="auto"><a href="https://developer.android.com/studio/build/configure-apk-splits.html" rel="nofollow">https://developer.android.com/studio/build/configure-apk-splits.html</a></p> <p dir="auto">.. so that flutter can generate different apks for different abis (x86, x86_64, etc).</p> <p dir="auto">For more details see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="236077602" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/10717" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/10717/hovercard" href="https://github.com/flutter/flutter/issues/10717">#10717</a></p>
1
<p dir="auto">It's a very common use case to want to add spacing between widgets in a <code class="notranslate">Row</code> or a <code class="notranslate">Column</code>. At the moment, the way to do this is adding padding to each individual element (but avoiding to do it on the first element).</p> <p dir="auto">It would be super useful to be able to just pass in a <code class="notranslate">spacing</code> value, that would be the spacing between each widget in the row or the column.</p>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I see Row and Column widgets as a <a href="https://developer.apple.com/documentation/uikit/uistackview" rel="nofollow">UIStackView</a> and would expect spacing parameter so that we can add custom spacing between their children. Something like <a href="https://developer.apple.com/documentation/uikit/uistackview/1616225-spacing" rel="nofollow">spacing</a>.<br> I always end up adding additional Containers in between and this is far from clean solution from my pov - something like this:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new Column( crossAxisAlignment: CrossAxisAlignment.start, children: &lt;Widget&gt;[ new Container( height: 20.0, child: new Image.asset('assets/images/someimage.png'), ), new Container( height: 8.0, ), new Container( height: 20.0, child: new Image.asset('assets/images/someimage.png'), ), ) )"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-c1">Column</span>( crossAxisAlignment<span class="pl-k">:</span> <span class="pl-c1">CrossAxisAlignment</span>.start, 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-k">new</span> <span class="pl-c1">Container</span>( height<span class="pl-k">:</span> <span class="pl-c1">20.0</span>, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Image</span>.<span class="pl-en">asset</span>(<span class="pl-s">'assets/images/someimage.png'</span>), ), <span class="pl-k">new</span> <span class="pl-c1">Container</span>( height<span class="pl-k">:</span> <span class="pl-c1">8.0</span>, ), <span class="pl-k">new</span> <span class="pl-c1">Container</span>( height<span class="pl-k">:</span> <span class="pl-c1">20.0</span>, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Image</span>.<span class="pl-en">asset</span>(<span class="pl-s">'assets/images/someimage.png'</span>), ), ) )</pre></div> <p dir="auto">I understand that there are other ways to do this but all of them induce extra logic and make code harder to read.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=ndeloof" rel="nofollow">nicolas de loof</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2605?redirect=false" rel="nofollow">SPR-2605</a></strong> and commented</p> <p dir="auto">Containers like plexus use field injection. According to <a href="http://forum.springframework.org/showthread.php?t=9692&amp;highlight=field+injection" rel="nofollow">http://forum.springframework.org/showthread.php?t=9692&amp;highlight=field+injection</a>, This is not considered by Spring developers as a good practice.</p> <p dir="auto">I myself had a case where it may be better than setter injection :</p> <p dir="auto">A newbee developper coded into a Struts action injection of values into it's dependencies using public setters. Dependency may use a facade interface but was not in this case (generated code). This is not Spring responsibility to avoid such errors, but requirement for public setters exposes components internals.</p> <p dir="auto">Having protected (or package) field for dependencies keeps code testability (only require the testcase to be in the same package) and avoid exposing unnecessary setters.</p> <p dir="auto">Field injection requires Spring to make some "magic" Privileged actions, but Hibernate and JPA also do AFAIK.</p> <p dir="auto">Could you please reconsider this and expose a definitive argument to exclude field injection from Spring scope ?</p> <hr> <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="398093823" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10249" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10249/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10249">#10249</a> <code class="notranslate">@Autowired</code> vs. &lt;property (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=skaffman" rel="nofollow">Kenny MacLeod</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3759?redirect=false" rel="nofollow">SPR-3759</a></strong> and commented</p> <p dir="auto">This is a non-backward-compatible change, but I think JdbcDaoSupport should expose its JdbcTemplate object as a JdbcOperations type. The current implementation is hard to test, since you cannot inject a mock JdbcOperations object into the DAO, you can only inject a JdbcTemplate. This is less test friendly.</p> <p dir="auto">I appreciate this is a tricky one to manage, however. Perhaps some balance of JdbcOperations injection and getJdbcTemplate() could be achieved?</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.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="398082620" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8782" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8782/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8782">#8782</a> JdbcDaoSupport.setJdbcTemplate() should accept JdbcOperations (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398083018" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8832" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8832/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8832">#8832</a> HibernateDaoSupport should use HibernateOperations in method signatures</li> </ul> <p dir="auto">2 votes, 1 watchers</p>
0
<p dir="auto">The following program crashes with panic:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main import ( &quot;fmt&quot; &quot;bytes&quot; ) func main() { var a, b int r := bytes.NewReader([]byte{'1', '\n', '2'}) _, err := fmt.Fscanf(r, &quot;%d&quot;, &amp;a) if err != nil { panic(err) } _, err = fmt.Fscanf(r, &quot;%d&quot;, &amp;b) if err != nil { panic(err) } }"><pre class="notranslate"><code class="notranslate">package main import ( "fmt" "bytes" ) func main() { var a, b int r := bytes.NewReader([]byte{'1', '\n', '2'}) _, err := fmt.Fscanf(r, "%d", &amp;a) if err != nil { panic(err) } _, err = fmt.Fscanf(r, "%d", &amp;b) if err != nil { panic(err) } } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="panic: unexpected newline goroutine 1 [running]: main.main() /tmp/f.go:19 +0x33d exit status 2"><pre class="notranslate"><code class="notranslate">panic: unexpected newline goroutine 1 [running]: main.main() /tmp/f.go:19 +0x33d exit status 2 </code></pre></div> <p dir="auto">on commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/golang/go/commit/b83b01110090c41fc24750ecabf0b87c5fbff233/hovercard" href="https://github.com/golang/go/commit/b83b01110090c41fc24750ecabf0b87c5fbff233"><tt>b83b011</tt></a></p>
<p dir="auto">I got different <code class="notranslate">fmt.Scanf</code> behavior depending on the line endings style.</p> <p dir="auto">My go version is go1.3.3 darwin/amd64 on a Mac with OSX 10.10</p> <p dir="auto">To reproduce the problem, here is a short go program:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main import &quot;fmt&quot; func main() { var steps, i int fmt.Scanf(&quot;%d&quot;, &amp;steps) var a, b int for i = 0; i &lt; steps; i++ { fmt.Scanf(&quot;%d&quot;, &amp;a) fmt.Scanf(&quot;%d&quot;, &amp;b) fmt.Println(a + b) } }"><pre class="notranslate"><code class="notranslate">package main import "fmt" func main() { var steps, i int fmt.Scanf("%d", &amp;steps) var a, b int for i = 0; i &lt; steps; i++ { fmt.Scanf("%d", &amp;a) fmt.Scanf("%d", &amp;b) fmt.Println(a + b) } } </code></pre></div> <p dir="auto">And an input file</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2 2 5 4 8"><pre class="notranslate"><code class="notranslate">2 2 5 4 8 </code></pre></div> <p dir="auto"><code class="notranslate">go run test.go &lt; input</code></p> <p dir="auto">I expect to see regardless of the line endings been <code class="notranslate">\r\n</code> or <code class="notranslate">\n</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="7 12"><pre class="notranslate"><code class="notranslate">7 12 </code></pre></div> <p dir="auto">But I see</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2 7"><pre class="notranslate"><code class="notranslate">2 7 </code></pre></div> <p dir="auto">when in the input file the line endings are <code class="notranslate">\r\n</code> .</p> <p dir="auto">If the line endings are <code class="notranslate">\n</code> it works fine.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=martinahrer" rel="nofollow">Martin Ahrer</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5236?redirect=false" rel="nofollow">SPR-5236</a></strong> and commented</p> <p dir="auto">org.springframework.orm.jpa.vendor.HibernateJpaDialect.getSession should not try to cast directly to HibernateEntityManager since there is a chance that the entity manager passed in is just a proxy for the EntityManager interface!</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="protected Session getSession(EntityManager em) { return ((HibernateEntityManager) em).getSession(); }"><pre class="notranslate"><code class="notranslate">protected Session getSession(EntityManager em) { return ((HibernateEntityManager) em).getSession(); } </code></pre></div> <p dir="auto">This cast can be avoided (see below)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="protected Session getSession(EntityManager em) { return (Session) em.getDelegate(); }"><pre class="notranslate"><code class="notranslate">protected Session getSession(EntityManager em) { return (Session) em.getDelegate(); } </code></pre></div> <p dir="auto">I'm facing this problem while I'm trying to integrate Seam with Spring. Seam is in charge of managing the life time of the entity manager and passing it on to Spring using org.jboss.seam.ioc.spring.SeamManagedEntityManagerFactoryBean.</p> <p dir="auto">Currently a work around is to subclass HibernateJpaDialect and implement getSession as shown!</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.5</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="398091487" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9909" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9909/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9909">#9909</a> HibernateJpaDialect.getSession casting to HibernateEntityManager (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=gupabhi" rel="nofollow">Abhishek Gupta</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7782?redirect=false" rel="nofollow">SPR-7782</a></strong> and commented</p> <p dir="auto">In production applications it is imperative that SQL statements and bind parameters be logged at a configurable level for support purposes.</p> <p dir="auto">When using the JdbcTemplate spring does currently log both, but sql statements are logged at debug level and parameters are logged in the 'o.s.j.c.StatementCreatorUtils' class at trace level. It is impractical to keep trace level on in a critical (or any) production system - even for a single class. There are other non-important (or non-functional) debug/trace logs that might be in the class that are not required to be logged. Or new ones might be introduced in future versions.</p> <p dir="auto">We would want the query/params to be logged at info level but again that might not be suitable for others, so ideally it should be something that is configurable.</p> <p dir="auto">The work-around today is ugly, in that we wrap the JdbcTemplate just to be able to log the parameters. Ideally, if there could be a property in the JdbcTemplate that accepts the log level for functional logs (query, params in this case) it would be most helpful. Given that JdbcTemplate is now a total replacement for using any low level jdbc api, and is so popular, it makes sense to have this feature that will give users more control and contribute to the completeness of such a widely used Spring offering.</p> <p dir="auto">I am happy to use any other solution you might have that addresses this use-case.</p> <p dir="auto">Thanks,<br> Abhi</p> <p dir="auto">P.S. This really applies to other classes too like in the jdbc.object package</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</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="398150504" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14041" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14041/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14041">#14041</a> JdbcTemplate parameter and result logging (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111146" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12774" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12774/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12774">#12774</a> Revisit subsystem-oriented logging</li> </ul> <p dir="auto">6 votes, 14 watchers</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mark.fisher" rel="nofollow">Mark Fisher</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6847?redirect=false" rel="nofollow">SPR-6847</a></strong> and commented</p> <p dir="auto">The approach should be consistent with <code class="notranslate">@Transactional</code>:<br> <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#tx-multiple-tx-mgrs-with-attransactional" rel="nofollow">http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#tx-multiple-tx-mgrs-with-attransactional</a></p> <p dir="auto">The bean name may be considered, but the 'qualifier' is generally recommended.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Async(&quot;beanNameOrQualifierValue&quot;) public void someOp() { ... }"><pre class="notranslate"><code class="notranslate">@Async("beanNameOrQualifierValue") public void someOp() { ... } </code></pre></div> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 GA</p> <p dir="auto"><strong>Sub-tasks:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398150798" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14079" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14079/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14079">#14079</a> Backport "Enable Executor qualification with <code class="notranslate">@Async</code>"</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118607" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13956" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13956/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13956">#13956</a> <code class="notranslate">@Async</code> groups (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398104169" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11705" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11705/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11705">#11705</a> Allow <code class="notranslate">@Async</code> to specify which executor to use (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151672" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14209" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14209/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14209">#14209</a> Issue with <code class="notranslate">@Async</code> in version 3.1.2 linking to the task executor it is assigned to (instead of the default)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398114555" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13338" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13338/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13338">#13338</a> Introduce qualifier in <code class="notranslate">@Cacheable</code> for cache manager name</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398192690" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/18792" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/18792/hovercard" href="https://github.com/spring-projects/spring-framework/issues/18792">#18792</a> Enable Executor qualification with <code class="notranslate">@Scheduled</code></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398188099" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/18392" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/18392/hovercard" href="https://github.com/spring-projects/spring-framework/issues/18392">#18392</a> BeanFactoryAnnotationUtils.qualifiedBeanOfType does not work for <code class="notranslate">@Qualifier</code> on bean class</li> </ul> <p dir="auto">14 votes, 14 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=bfovez" rel="nofollow">Bertrand Fovez</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4073?redirect=false" rel="nofollow">SPR-4073</a></strong> and commented</p> <p dir="auto">When application context is starting using jee namespace fails bacause import in the xsd in beans and tool doesn't have schema location.</p> <p dir="auto">spring-jee-2.0.xsd is not valid schema.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5 RC1</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="398082371" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8747" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8747/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8747">#8747</a> Call to <a href="http://www.springframework.org/schema/util/spring-util-2.5.xsd" rel="nofollow">http://www.springframework.org/schema/util/spring-util-2.5.xsd</a> results to an HTTP 404 error (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398082143" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8717" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8717/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8717">#8717</a> "<a href="http://www.springframework.org/schema/util/spring-util-2.5.xsd" rel="nofollow">http://www.springframework.org/schema/util/spring-util-2.5.xsd</a>" is not found (404) (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
0
<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">No errors</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Clicking on <code class="notranslate">Dynamic1</code> or <code class="notranslate">Dynamic2</code> blinks an error before a correct page is displayed<br> Clicking on <code class="notranslate">Level1 home page</code> or <code class="notranslate">Level1 about</code> page displays "Not Found"<br> Clicking on <code class="notranslate">WithHash</code> displays An unexpected error has occured</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Run an project from test/integration/static, for example by:</p> <ol dir="auto"> <li><code class="notranslate">cp -r test/integration/static /tmp/next-client</code></li> <li><code class="notranslate">cd /tmp/next-client</code></li> <li><code class="notranslate">yarn init -y</code></li> <li><code class="notranslate">yarn add next react react-dom</code></li> <li><code class="notranslate">next build &amp;&amp; next export &amp;&amp; serve out</code></li> <li>visit <code class="notranslate">localhost:5000</code> and click links described in Current Behaviour</li> </ol> <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>4.3.0-canary.1</td> </tr> <tr> <td>node</td> <td>v8.2.1</td> </tr> <tr> <td>OS</td> <td>10.11.2 El Capitan</td> </tr> <tr> <td>browser</td> <td>Chrome 62.0.3202.94</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">Everything can be found here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="531554778" data-permission-text="Title is private" data-url="https://github.com/remarkjs/remark/issues/454" data-hovercard-type="issue" data-hovercard-url="/remarkjs/remark/issues/454/hovercard" href="https://github.com/remarkjs/remark/issues/454">remarkjs/remark#454</a></p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">follow the steps in the issue, or look at the codesandbox</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">I'd expect IE11 not have a syntax error and expecting the same behavior of what other examples in the issue do.</p> <h2 dir="auto">Screenshots</h2> <p dir="auto">N/A</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: N/A</li> <li>Browser (if applies) N/A</li> <li>Version of Next.js: 9.1.4</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">N/A</p>
0
<p dir="auto"><strong>I'm submitting a ...</strong><br> I'm not sure... possibly an issue, possibly a bug, possibly just a request for clarification. It's hard to tell for sure without knowing more, and I've hit a wall.</p> <p dir="auto"><strong>Current behavior</strong><br> Using the most recent IE and Edge on Windows 10, mousemove events (and possibly others) over large amounts of angular-generated elements is very slow, causing usablity problems.</p> <p dir="auto"><strong>Expected/desired behavior</strong><br> For these generated elements not to cause events to be throttled as such</p> <p dir="auto"><strong>Background</strong><br> I tried creating a fake "selection rectangle" overlaying div to select underlying table cells for quick editing instead of one-by-one editing. However, this selection rectangle responded to mousemove events painfully slowly in Internet Explorer (and I later noticed, Edge) causing the visual on-screen selection rectangle to update up to 10x slower than in other browsers. I spent some time stripping unnecessary code until it boiled down to this code working as epexcted:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;tr *ngFor=&quot;let row of rows&quot;&gt; &lt;th&gt;Name&lt;/th&gt; &lt;td&gt;Fast&lt;/td&gt;&lt;td&gt;Fast&lt;/td&gt;&lt;td&gt;Fast&lt;/td&gt;&lt;td&gt;Fast&lt;/td&gt;&lt;td&gt;Fast&lt;/td&gt; &lt;/tr&gt;"><pre class="notranslate"><code class="notranslate">&lt;tr *ngFor="let row of rows"&gt; &lt;th&gt;Name&lt;/th&gt; &lt;td&gt;Fast&lt;/td&gt;&lt;td&gt;Fast&lt;/td&gt;&lt;td&gt;Fast&lt;/td&gt;&lt;td&gt;Fast&lt;/td&gt;&lt;td&gt;Fast&lt;/td&gt; &lt;/tr&gt; </code></pre></div> <p dir="auto">while this similar code introduces the problem of the throttled events:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;tr *ngFor=&quot;let row of rows&quot;&gt; &lt;th&gt;Name&lt;/th&gt; &lt;td *ngFor=&quot;let col of cols&quot;&gt;Slow&lt;/td&gt; &lt;/tr&gt;"><pre class="notranslate"><code class="notranslate">&lt;tr *ngFor="let row of rows"&gt; &lt;th&gt;Name&lt;/th&gt; &lt;td *ngFor="let col of cols"&gt;Slow&lt;/td&gt; &lt;/tr&gt; </code></pre></div> <p dir="auto"><strong>Links</strong></p> <ul dir="auto"> <li>My question on StackOverflow that led to this: <a href="http://stackoverflow.com/questions/37725245/why-does-angular-2s-ngfor-generated-html-slow-down-event-processing-so-much-in" rel="nofollow">http://stackoverflow.com/questions/37725245/why-does-angular-2s-ngfor-generated-html-slow-down-event-processing-so-much-in</a></li> <li>The Plnkr I've put together to demo this issue: <a href="http://plnkr.co/edit/782sd5CbM4psy98Wr1tj?p=preview" rel="nofollow">http://plnkr.co/edit/782sd5CbM4psy98Wr1tj?p=preview</a></li> </ul> <p dir="auto"><strong>Notes</strong></p> <ul dir="auto"> <li><em>In trying to solve this, I've run across several issues about the speed at which angular creates the element - that's not my issue. It's the frequency/rate of events such as mouseover on those elements after they've already been generated.</em></li> <li><em>Due to the nature of the project, generating less elements isn't an option (and really, that shouldn't be necessary anyway).</em></li> <li><em>When viewing the Plnkr, please make sure to use Internet Explorer or Edge to be able to see the issue (although you can use another browser for comparison as well, of course).</em></li> <li><em>(UPDATED) This seems to be a problem with Windows 10 specifically. It occurs on two separate Windows 10 systems, and does not occur on two separate Windows 7 systems. I tried running Windows 7 in a VM on a Windows 10 system and it performs better there than it does in Windows 10. I don't even know what to make of that anymore.</em></li> </ul> <p dir="auto"><strong>Environment</strong><br> System: Windows 10<br> Angular: most recent (RC1), using Core-JS for IE<br> Browser: Internet EXplorer 11 (most recent, older is probably also affected), Edge (most recent)<br> Language: Typescript</p>
<p dir="auto">The performance of *ngFor is very slow on IE as compared to Chrome, Firefox and Opera.</p> <p dir="auto">The below plunker loops through over 1500 items using *ngFor, it takes less than a second in other browsers whereas it takes several seconds in IE 11 and Microsoft Edge.</p> <p dir="auto"><a href="http://plnkr.co/edit/sEujClHmuCbrydIiYQYL?p=preview" rel="nofollow">http://plnkr.co/edit/sEujClHmuCbrydIiYQYL?p=preview</a></p> <p dir="auto">The code is constantly calling isNan function in es6-shim.js.</p> <p dir="auto">The problem seems to be due to the reason that set and get functions of the polyfill are extremely slow (compared to their native counterparts) and take most of the time.</p> <p dir="auto">Please have a look at <a href="http://stackoverflow.com/questions/36570532/angular-2-performance-ie11-ngfor" rel="nofollow">http://stackoverflow.com/questions/36570532/angular-2-performance-ie11-ngfor</a> and the accepted answer.</p> <p dir="auto">This performance issue is also noticeable on forms with some dynamically populated drop down lists (8-10 drop downs).</p>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.XX]</li> <li>Operating System: [macOS 13.2, etc.]</li> <li>Browser: Chromium]</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> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p> <p dir="auto">or</p> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.java Playwright playwright = Playwright.create(); Browser browser = playwright.chromium().launch( new BrowserType.LaunchOptions().setHeadless(false) .setChannel(&quot;chrome&quot;) .setDevtools(true) .setTimeout(300000) ); BrowserContext browserContext = browser.newContext(); Page page = browserContext.newPage(); page.setDefaultTimeout(300000); page.setDefaultNavigationTimeout(300000); page.navigate(url, new Page.NavigateOptions().setTimeout(300000)); page.close(); browserContext.close(); browser.close(); playwright.close();"><pre class="notranslate"><span class="pl-c">// playwright.java</span> <span class="pl-smi">Playwright</span> <span class="pl-s1">playwright</span> = <span class="pl-smi">Playwright</span>.<span class="pl-en">create</span>(); <span class="pl-smi">Browser</span> <span class="pl-s1">browser</span> = <span class="pl-s1">playwright</span>.<span class="pl-en">chromium</span>().<span class="pl-en">launch</span>( <span class="pl-k">new</span> <span class="pl-smi">BrowserType</span>.<span class="pl-smi">LaunchOptions</span>().<span class="pl-en">setHeadless</span>(<span class="pl-c1">false</span>) .<span class="pl-en">setChannel</span>(<span class="pl-s">"chrome"</span>) .<span class="pl-en">setDevtools</span>(<span class="pl-c1">true</span>) .<span class="pl-en">setTimeout</span>(<span class="pl-c1">300000</span>) ); <span class="pl-smi">BrowserContext</span> <span class="pl-s1">browserContext</span> = <span class="pl-s1">browser</span>.<span class="pl-en">newContext</span>(); <span class="pl-smi">Page</span> <span class="pl-s1">page</span> = <span class="pl-s1">browserContext</span>.<span class="pl-en">newPage</span>(); <span class="pl-s1">page</span>.<span class="pl-en">setDefaultTimeout</span>(<span class="pl-c1">300000</span>); <span class="pl-s1">page</span>.<span class="pl-en">setDefaultNavigationTimeout</span>(<span class="pl-c1">300000</span>); <span class="pl-s1">page</span>.<span class="pl-en">navigate</span>(<span class="pl-s1">url</span>, <span class="pl-k">new</span> <span class="pl-smi">Page</span>.<span class="pl-smi">NavigateOptions</span>().<span class="pl-en">setTimeout</span>(<span class="pl-c1">300000</span>)); <span class="pl-s1">page</span>.<span class="pl-en">close</span>(); <span class="pl-s1">browserContext</span>.<span class="pl-en">close</span>(); <span class="pl-s1">browser</span>.<span class="pl-en">close</span>(); <span class="pl-s1">playwright</span>.<span class="pl-en">close</span>();</pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>[Run the test]</li> <li>[...]Run the above code in parallel using executor service (10 threads)</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">[Successful navigation]</p> <p dir="auto"><strong>Actual</strong></p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[WARNING: Timed out while waiting for driver process to exit com.microsoft.playwright.PlaywrightException: Error { message='net::ERR_ABORTED at url =========================== logs =========================== navigating to &quot;url&quot;, waiting until &quot;load&quot; ============================================================ name='Error stack='Error: net::ERR_ABORTED at url =========================== logs =========================== navigating to &quot;url&quot;, waiting until &quot;load&quot; ============================================================ at FrameSession._navigate (/private/var/folders/mg/1pyjgqbs4sj89gyr8wy3zkkc0000gq/T/playwright-java-1669077734166046551/package/lib/server/chromium/crPage.js:509:35) ]"><pre class="notranslate">[<span class="pl-c1">WARNING</span>: <span class="pl-smi">Timed</span> <span class="pl-s1">out</span> <span class="pl-s1">while</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">driver</span> <span class="pl-smi">process</span> <span class="pl-s1">to</span> <span class="pl-smi">exit</span> <span class="pl-s1">com</span>.<span class="pl-s1">microsoft</span>.<span class="pl-s1">playwright</span>.<span class="pl-s1">PlaywrightException</span>: <span class="pl-s1">Error</span> { <span class="pl-s1">message</span>='net::ERR_ABORTED at url =========================== <span class="pl-s1">logs</span> =========================== <span class="pl-smi">navigating</span> <span class="pl-s1">to</span> <span class="pl-s">"url"</span>, <span class="pl-s1">waiting</span> <span class="pl-s1">until</span> "<span class="pl-s1">load</span><span class="pl-s">"</span> <span class="pl-s">============================================================</span> <span class="pl-s"> name='Error</span> <span class="pl-s"> stack='Error: net::ERR_ABORTED at url</span> <span class="pl-s">=========================== logs ===========================</span> <span class="pl-s">navigating to "</span><span class="pl-s1">url</span><span class="pl-s">", waiting until "</span><span class="pl-s1">load</span>" ============================================================ at FrameSession._navigate (/private/var/folders/mg/1pyjgqbs4sj89gyr8wy3zkkc0000gq/T/playwright-java-1669077734166046551/package/lib/server/chromium/crPage.js:509:35) ]</pre></div>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.34.3]</li> <li>Operating System: [Windows 10, Ubuntu 22.04]</li> <li>Browser: [Chromium]</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> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto"><a href="https://github.com/edumserrano/playwright-bug-vrt-diff">edumserrano/playwright-bug-vrt-diff</a></p> <h3 dir="auto">Bug report</h3> <p dir="auto">The issue I have is that some scenarios with screenshot comparison don't seem to work as expected, or at least as I'd expect. Perhaps some of these issues aren't qualified to be bugs.</p> <p dir="auto">I've found issues with unexpected differences in screenshot tests:</p> <ul dir="auto"> <li>running in headless vs not headless mode.</li> <li>running on Chromium Windows vs Chromium Ubuntu.</li> <li>running outside debug vs in debug mode.</li> </ul> <p dir="auto">Please see the details below.</p> <h3 dir="auto">Issues trying to get consistent VRT</h3> <div class="markdown-alert markdown-alert-note" dir="auto"><p dir="auto"><span class="color-fg-accent text-semibold d-inline-flex flex-items-center mb-1"><svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>Note</span></p><p dir="auto">All these scenarios were executed from a Windows OS as the base OS.</p></div> <h4 dir="auto">Scenario 1: Hardware acceleration and headless mode</h4> <ul dir="auto"> <li>Go to the root of the repo.</li> <li>Run the tests via <code class="notranslate">npm run test</code>.</li> <li>Run the app via <code class="notranslate">npm run start</code>.</li> <li>Compare the screenshot generated via <code class="notranslate">npm run test</code> at <code class="notranslate">tests/example.spec.ts-snapshots/basic-test-1-chromium-win32.png</code> with how the app running via <code class="notranslate">npm run start</code> looks like in regards to the blur effect.</li> </ul> <details> <summary>Screenshot from npm run test</summary> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/hardware-acceleration-npm-run-test.png"><img src="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/hardware-acceleration-npm-run-test.png" alt="screenshot from npm run test" style="max-width: 100%;"></a></p> </details> <details> <summary>Screenshot from npm run start</summary> <div class="markdown-alert markdown-alert-note" dir="auto"><p dir="auto"><span class="color-fg-accent text-semibold d-inline-flex flex-items-center mb-1"><svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>Note</span></p><p dir="auto">My PC has a higher resolution than 1920x1080, I've used the browser tools to try and get close for the manual screenshot I took. Anyways, what's important in this screenshot is looking at how the blur looks correct and how different it is from when running the test via <code class="notranslate">npm run test</code>.</p></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/hardware-acceleration-npm-run-start.png"><img src="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/hardware-acceleration-npm-run-start.png" alt="screenshot from npm run test" style="max-width: 100%;"></a></p> </details> <p dir="auto">When running the tests with <code class="notranslate">npm run test</code> it seems the chromium browser running in <code class="notranslate">headless</code> mode does not have hardware acceleration enabled, therefore the image produced is not as expected.</p> <p dir="auto">You can compare the image produced from the test with how the app looks like when running via <code class="notranslate">npm run start</code>. I believe this is related with hardware acceleration because when running the app via <code class="notranslate">npm run start</code> if you enable/disable hardware accelearation in the browser settings, the blur applied looks different.</p> <p dir="auto">Another way to view this is related with hardware acceleration is that if you add:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="launchOptions: { args: [&quot;--disable-gpu&quot;], },"><pre class="notranslate"><span class="pl-s1">launchOptions</span>: <span class="pl-kos">{</span> <span class="pl-c1">args</span>: <span class="pl-kos">[</span><span class="pl-s">"--disable-gpu"</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">to the chromium project settings in the <a href="/playwright.config.ts">playwright.config.ts</a> file, then the blur of screenshot from debug will look equal to when running without debug.</p> <div class="markdown-alert markdown-alert-note" dir="auto"><p dir="auto"><span class="color-fg-accent text-semibold d-inline-flex flex-items-center mb-1"><svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>Note</span></p><p dir="auto">The way the blur is intended to look like is how it looks when hardware acceleration is enabled</p> <p dir="auto">The blur effect is being created with:</p> <pre lang="css" class="notranslate"><code class="notranslate">background-color: transparent; -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px); </code></pre></div> <h4 dir="auto">Scenario 2: Chromium screenshot in Windows vs Chromium screenshot in Ubuntu</h4> <ul dir="auto"> <li>Go to the root of the repo.</li> <li>Uncomment the line <code class="notranslate">// ignoreDefaultArgs: ["--hide-scrollbars"]</code> in the <a href="/playwright.config.ts">playwright.config.ts</a> file.</li> <li>Run the tests via <code class="notranslate">npm run test</code> and generate the screenshot in Windows.</li> <li>Duplicate the screenshot <code class="notranslate">basic-test-1-chromium-win32.png</code> at <code class="notranslate">/tests/example.spec.ts-snapshots</code> and rename it to <code class="notranslate">basic-test-1-chromium-linux.png</code>.</li> <li>Run the tests in Ubuntu via docker by executing <code class="notranslate">docker run -it --rm --ipc=host --workdir=/app -v ${PWD}:/app mcr.microsoft.com/playwright:v1.34.3-jammy npx playwright test</code>.</li> <li>Open the html report via <code class="notranslate">npx playwright show-report tests/test-results/reporters/html</code> and look at the differences in the screenshots.</li> </ul> <p dir="auto">The screenshot generated from Ubuntu will have some slight differences regarding the font (looks bolder in windows?). Furthermore, the page scrollbar on Windows is a bit wider than the one in Ubuntu.</p> <details> <summary>Diff</summary> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/windows-ubuntu-diff.png"><img src="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/windows-ubuntu-diff.png" alt="diff" style="max-width: 100%;"></a></p> </details> <details> <summary>Screenshot from Windows</summary> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/windows.png"><img src="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/windows.png" alt="Windows" style="max-width: 100%;"></a></p> </details> <details> <summary>Screenshot from Ubuntu</summary> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/ubuntu.png"><img src="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/ubuntu.png" alt="Ubuntu" style="max-width: 100%;"></a></p> </details> <div class="markdown-alert markdown-alert-note" dir="auto"><p dir="auto"><span class="color-fg-accent text-semibold d-inline-flex flex-items-center mb-1"><svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>Note</span></p><p dir="auto">The font I'm using on the app is <a href="https://fonts.google.com/specimen/Lato?preview.text=Whereas%20recognition%20of%20the%20inherent%20dignity&amp;preview.text_type=custom" rel="nofollow">Lato Regular 400 from google fonts</a>.</p> <p dir="auto">See the below at <a href="/src/index.html">index.html</a>:</p> <pre lang="html" class="notranslate"><code class="notranslate">&lt;link rel="preconnect" href="https://fonts.googleapis.com"&gt; &lt;link rel="preconnect" href="https://fonts.gstatic.com" crossorigin&gt; &lt;link href="https://fonts.googleapis.com/css2?family=Lato&amp;display=swap" rel="stylesheet"&gt; </code></pre> <p dir="auto">And CSS at <a href="/src/styles/styles.less">styles.less</a>:</p> <pre lang="css" class="notranslate"><code class="notranslate">@font-family-lato: 'Lato', sans-serif; body { font-family: @font-family-lato; } </code></pre></div> <h4 dir="auto">Scenario 3: Differences when running the test in/out of debug mode</h4> <p dir="auto">This one might not be a bug but it still feels like a bit of an issue.</p> <ul dir="auto"> <li>Install the <a href="https://marketplace.visualstudio.com/items?itemName=ms-playwright.playwright" rel="nofollow">playwright extension for VSCode</a>.</li> <li>Go to the root of the repo.</li> <li>Uncomment the line <code class="notranslate">// ignoreDefaultArgs: ["--hide-scrollbars"]</code> in the <a href="/playwright.config.ts">playwright.config.ts</a> file.</li> <li>Generate the test screenshot by running the tests with <code class="notranslate">npm run test</code>.</li> <li>Go to VS Code and debug the test using the playwright extension for VS Code.</li> <li>Open the html report via <code class="notranslate">npx playwright show-report tests/test-results/reporters/html</code> and look at the differences in the screenshots.</li> </ul> <p dir="auto">The debug will fail because there are differences in the screenshots:</p> <ul dir="auto"> <li>the screenshot from debug mode will have will have the appropriate blur. Perhaps it runs with hardware acceleration enabled and therefore shows as expected (equal to what is visible when running the app with <code class="notranslate">npm run start</code>).</li> <li>the screenshot from debug mode will have slight differences in the font. Or perhaps this is incorrect, perhaps the issue is not with the font but with the fact that the scrollbar width is slightly different and the effect that the difference in blur also has on the fonts.</li> <li>the screenshot from debug mode seems to have "weaker" coloured red line (the red line below the label <code class="notranslate">Where do you study or work?</code>). This again might just be related with the blur difference.</li> <li>the screenshot from debug mode has a scrollbar with smaller width.</li> </ul> <details> <summary>Diff</summary> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/debug-diff.png"><img src="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/debug-diff.png" alt="diff" style="max-width: 100%;"></a></p> </details> <details> <summary>Screenshot from running via "npm run test"</summary> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/not-debug.png"><img src="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/not-debug.png" alt="Windows" style="max-width: 100%;"></a></p> </details> <details> <summary>Screenshot from running in debug via VS Code playwright extension</summary> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/debug.png"><img src="https://github.com/edumserrano/playwright-bug-vrt-diff/tree/main/docs/images/debug.png" alt="Ubuntu" style="max-width: 100%;"></a></p> </details> <div class="markdown-alert markdown-alert-note" dir="auto"><p dir="auto"><span class="color-fg-accent text-semibold d-inline-flex flex-items-center mb-1"><svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>Note</span></p><p dir="auto">To make the comparison easier in debug vs not debug I've added <code class="notranslate">ignoreDefaultArgs: ["--hide-scrollbars"]</code> in the <a href="/playwright.config.ts">playwright.config.ts</a> file. This makes sure scrollbar is always visible whether running the test in debug mode or not.</p> <p dir="auto">However I'd say that this was also unexpected to me even if it's default behavior. Couldn't find any mention to the fact that the scrollbar is disabled in headless mode when searching the <a href="https://playwright.dev/docs" rel="nofollow">playwright docs</a>. Perhaps a chance for improving the docs?</p></div> <h3 dir="auto">Related</h3> <p dir="auto">Perhaps related with the effort on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="968519938" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/8161" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/8161/hovercard" href="https://github.com/microsoft/playwright/issues/8161">#8161</a></p>
0
<h1 dir="auto">Sample</h1> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { something; constructor(public bar /*rename bar*/) { this.something = bar; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">something</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">public</span> <span class="pl-s1">bar</span> <span class="pl-c">/*rename bar*/</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">something</span> <span class="pl-c1">=</span> <span class="pl-s1">bar</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Rename <code class="notranslate">bar</code> to <code class="notranslate">foo</code> and you <strong>expect</strong>:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { something; constructor(public foo /*rename bar*/) { this.something = foo; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">something</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">public</span> <span class="pl-s1">foo</span> <span class="pl-c">/*rename bar*/</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">something</span> <span class="pl-c1">=</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">But you get:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { something; constructor(public foo /*rename bar*/) { this.something = bar; // Error here } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">something</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">public</span> <span class="pl-s1">foo</span> <span class="pl-c">/*rename bar*/</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">something</span> <span class="pl-c1">=</span> <span class="pl-s1">bar</span><span class="pl-kos">;</span> <span class="pl-c">// Error here</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Error reproduce-able on playground. Fortunately we get an error on usages ;) so nothing bad happens <em>silently</em> <g-emoji class="g-emoji" alias="rose" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f339.png">🌹</g-emoji></p>
<p dir="auto">Rename <code class="notranslate">parent</code> to <code class="notranslate">parent_</code>.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { constructor(private parent) { parent } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">private</span> <span class="pl-s1">parent</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">parent</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">expected</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { constructor(private parent_) { parent_ } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">private</span> <span class="pl-s1">parent_</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">parent_</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">actual</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { constructor(private parent_) { parent } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">private</span> <span class="pl-s1">parent_</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">parent</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Visual Studio 2013</p>
1
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import seaborn as sns import matplotlib.pyplot as plt import numpy as np # Load example data data = np.random.normal(size=100) # Create histogram plot with legend label sns.histplot(data, label='Total Bills') # Add legend and set title plt.legend(title=&quot;Legend Title&quot;) plt.title(&quot;Histogram Plot with Single Legend Label&quot;) # Show plot plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</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-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-c"># Load example data</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">100</span>) <span class="pl-c"># Create histogram plot with legend label</span> <span class="pl-s1">sns</span>.<span class="pl-en">histplot</span>(<span class="pl-s1">data</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">'Total Bills'</span>) <span class="pl-c"># Add legend and set title</span> <span class="pl-s1">plt</span>.<span class="pl-en">legend</span>(<span class="pl-s1">title</span><span class="pl-c1">=</span><span class="pl-s">"Legend Title"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s">"Histogram Plot with Single Legend Label"</span>) <span class="pl-c"># Show plot</span> <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto">The code gives me:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32328286/219003864-12eab7e3-71b9-4246-a70a-37e2a7a37b2b.png"><img src="https://user-images.githubusercontent.com/32328286/219003864-12eab7e3-71b9-4246-a70a-37e2a7a37b2b.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">How can I let it show only one legend label? Thanks!</p>
<p dir="auto">The following code results in a segmentation fault if fastcluster is not installed :</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy import seaborn a = [ [ 1,2,3,numpy.inf ], [ 1,2,3,numpy.inf ], [ 1,2,3,numpy.inf ], [ 1,2,3,numpy.inf ] ] seaborn.clustermap( a )"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-s1">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-s1">numpy</span>.<span class="pl-s1">inf</span> ], [ <span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-s1">numpy</span>.<span class="pl-s1">inf</span> ], [ <span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-s1">numpy</span>.<span class="pl-s1">inf</span> ], [ <span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-s1">numpy</span>.<span class="pl-s1">inf</span> ] ] <span class="pl-s1">seaborn</span>.<span class="pl-en">clustermap</span>( <span class="pl-s1">a</span> )</pre></div> <p dir="auto">Most (all?) distance metrics in <code class="notranslate">scipy.distance.pdist</code> will fail produce valid output if the matrix contains <code class="notranslate">inf</code> or <code class="notranslate">nan</code>, but someone should probably raise an exception somewhere before things devolve badly enough to take down the interpreter.</p>
0
<p dir="auto">I have been working on Deno compatibility for the TypeScript data validation library "Zod" (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="765128918" data-permission-text="Title is private" data-url="https://github.com/colinhacks/zod/issues/269" data-hovercard-type="pull_request" data-hovercard-url="/colinhacks/zod/pull/269/hovercard" href="https://github.com/colinhacks/zod/pull/269">colinhacks/zod#269</a>). The <code class="notranslate">v3</code> development branch is working properly under <code class="notranslate">deno run</code>, but I am still encountering some errors in the output of <code class="notranslate">deno bundle</code>.</p> <p dir="auto">I am testing with the latest canary build representing the current <code class="notranslate">master</code>, 36ff7bd (<code class="notranslate">deno 1.6.3+36ff7bd (canary, x86_64-unknown-linux-gnu)</code>). <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="783302645" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/9085" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/9085/hovercard" href="https://github.com/denoland/deno/pull/9085">#9085</a>/<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="778794394" data-permission-text="Title is private" data-url="https://github.com/swc-project/swc/issues/1318" data-hovercard-type="pull_request" data-hovercard-url="/swc-project/swc/pull/1318/hovercard" href="https://github.com/swc-project/swc/pull/1318">swc-project/swc#1318</a> resolved the error I was previously encountering in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="783302645" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/9085" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/9085/hovercard" href="https://github.com/denoland/deno/pull/9085">#9085</a>, but I am encountering new ones.</p> <p dir="auto">when I run <code class="notranslate">deno bundle https://raw.githubusercontent.com/colinhacks/zod/654680afc2ede388e71e09104eac5a0088fe3207/deno/lib/index.ts &amp;&amp; deno run bundle.js</code>, an error is thrown while evaluating the bundled module:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught ReferenceError: util is not defined const ZodIssueCode = util.arrayToEnum([ ^ at file:///mnt/c/Users/_/src/bundle.js:1:22"><pre class="notranslate"><code class="notranslate">error: Uncaught ReferenceError: util is not defined const ZodIssueCode = util.arrayToEnum([ ^ at file:///mnt/c/Users/_/src/bundle.js:1:22 </code></pre></div> <p dir="auto">When we look at the bundle output, we can indeed see that the contents of the <code class="notranslate">"./helpers/util.ts";</code> import are not present in the bundled output.</p> <p dir="auto">When we don't go through the bundler, but instead just use <code class="notranslate">deno run https://raw.githubusercontent.com/colinhacks/zod/654680afc2ede388e71e09104eac5a0088fe3207/deno/lib/index.ts</code> directly, the library is imported and evaluated without any errors.</p> <p dir="auto">I experienced the same result (<code class="notranslate">run</code> successful, <code class="notranslate">bundle</code>-and-<code class="notranslate">run</code> missing modules) when I tried bundling a real project of mine that was using Zod and Deno, instead of the above example.</p>
<p dir="auto">[email protected]</p> <p dir="auto"><em>mod.ts</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export namespace Bar { export function foo() { console.log(&quot;foo&quot;); } }"><pre class="notranslate"><code class="notranslate">export namespace Bar { export function foo() { console.log("foo"); } } </code></pre></div> <p dir="auto"><em>main.ts</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { Bar } from &quot;./mod.ts&quot;; Bar.foo();"><pre class="notranslate"><code class="notranslate">import { Bar } from "./mod.ts"; Bar.foo(); </code></pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno bundle main.ts main.bundle.js"><pre class="notranslate">deno bundle main.ts main.bundle.js</pre></div> <p dir="auto">but <em>main.bundle.js</em>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Bar.foo();"><pre class="notranslate"><code class="notranslate">Bar.foo(); </code></pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run main.bundle.js"><pre class="notranslate">deno run main.bundle.js</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught ReferenceError: Bar is not defined Bar.foo(); ....."><pre class="notranslate"><code class="notranslate">error: Uncaught ReferenceError: Bar is not defined Bar.foo(); ..... </code></pre></div>
1
<p dir="auto">I'm working on a compile-to-js language called <a href="http://www.skew-lang.org/" rel="nofollow">Skew</a>. Visual Studio Code's language services API has been really awesome so far and I'm impressed how easy it was to hook up my compiler to provide standard features like tooltips and diagnostics and so on. I tried to do the same thing in Atom and ended up needing to implement tooltips and squiggly underlines and stuff which was a bummer. So great job on the API!</p> <p dir="auto">Right now the primary target language for the Skew compiler is JavaScript, so it makes sense to run Skew code with the node debugger target. I recently discovered that the debugger supports source maps so I'd like to focus on making Visual Studio Code the primary IDE for Skew. However, Skew is different enough from JavaScript that the values in the debugger panel don't make sense sometimes and the value tooltips often don't work. Some examples: the object context is called "self" instead of "this", enums show up as numbers instead of their textual names, function names in the call stack use their rewritten names instead of their original names.</p> <p dir="auto">Is there a way to hook into the view layer of the debugger to provide better names, tooltips, and value visualizations for languages that compile to JavaScript? The debugger API seems to be at the wrong level. I want to leverage the existing node debugger, just change the view layer when the current file is Skew code. Doing this customization in the view layer also seems like the right place to me because it means debugging a project that uses multiple compile-to-js languages would be able to work. Other languages could benefit too. For example, tooltips currently don't work when debugging CoffeeScript for variables that use the "@" prefix to access instance variables.</p>
<ul dir="auto"> <li>VSCode Version: 1.2.0-insider</li> <li>OS Version: Win10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <p dir="auto">as the title says</p>
0
<p dir="auto">When launching Atom 0.123.0 for the first time the window is positioned at the top left corner so that the draggable part of the window in beneath the menu bar. This causes trouble moving the window.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1151567/3942659/633f5154-2570-11e4-841a-4be4d6fb8a18.png"><img src="https://cloud.githubusercontent.com/assets/1151567/3942659/633f5154-2570-11e4-841a-4be4d6fb8a18.png" alt="desktop" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7317458/3932689/5819bcd0-246f-11e4-8973-451a17f7685f.png"><img src="https://cloud.githubusercontent.com/assets/7317458/3932689/5819bcd0-246f-11e4-8973-451a17f7685f.png" alt="screenshot_49" style="max-width: 100%;"></a></p> <p dir="auto">stick on the bar at the top - no window around.<br> fresh install from <a href="http://www.atom.io" rel="nofollow">www.atom.io</a> - version 0.122.0</p>
1
<p dir="auto">When I try to iterate over a <code class="notranslate">Map</code> object as described in <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Map#Iterating_Maps_with_for..of" rel="nofollow">MDN: Map</a>, i.e.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let map = new Map&lt;string, string&gt;(); map.set(&quot;key&quot;, &quot;value&quot;); for (let value of map.values()) { console.debug(value); }"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">map</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Map</span><span class="pl-c1">&lt;</span><span class="pl-s1">string</span><span class="pl-kos">,</span> <span class="pl-s1">string</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">map</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">"key"</span><span class="pl-kos">,</span> <span class="pl-s">"value"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">value</span> <span class="pl-k">of</span> <span class="pl-s1">map</span><span class="pl-kos">.</span><span class="pl-en">values</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">console</span><span class="pl-kos">.</span><span class="pl-en">debug</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">the compiler complains:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Type 'IterableIterator&lt;string&gt;' is not an array type or a string type."><pre class="notranslate"><code class="notranslate">Type 'IterableIterator&lt;string&gt;' is not an array type or a string type. </code></pre></div> <p dir="auto">Is this a bug, or am I doing something wrong?</p>
<p dir="auto"><code class="notranslate">NodeList</code> interface is defined as iterable in DOM4, but by design it cannot be directly used in for-of loop because we cannot declare it as iterable in ES5.</p> <h3 dir="auto">Suggestion</h3> <p dir="auto">Introduce a ES5-compatible way to declare iterable interfaces (Similar to what discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="70098056" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2862" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2862/hovercard" href="https://github.com/microsoft/TypeScript/issues/2862">#2862</a>)</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// WebIDL-like way interface NodeList { iterable&lt;Node&gt; } // extends-like way interface NodeList iterable&lt;Node&gt; {}"><pre class="notranslate"><span class="pl-c">// WebIDL-like way</span> <span class="pl-k">interface</span> <span class="pl-smi">NodeList</span> <span class="pl-kos">{</span> <span class="pl-c1">iterable</span><span class="pl-c1">&lt;</span><span class="pl-smi">Node</span><span class="pl-c1">&gt;</span> <span class="pl-kos">}</span> <span class="pl-c">// extends-like way</span> <span class="pl-k">interface</span> <span class="pl-smi">NodeList</span> <span class="pl-s1">iterable</span><span class="pl-c1">&lt;</span><span class="pl-smi">Node</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <p dir="auto"><code class="notranslate">iterable&lt;T&gt;</code> in ES6 mode will work as a shorthand of <code class="notranslate">[Symbol.iterator](): IterableIterator&lt;T&gt;</code> but in ES5 mode will just make an internal flag to be allowed in for-of loop.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// NodeList is marked as iterable, // it has .length property and index signature for ES5 emit, so all good for (let node of document.querySelectorAll(&quot;...&quot;)) { }"><pre class="notranslate"><span class="pl-c">// NodeList is marked as iterable,</span> <span class="pl-c">// it has .length property and index signature for ES5 emit, so all good</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">node</span> <span class="pl-k">of</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">querySelectorAll</span><span class="pl-kos">(</span><span class="pl-s">"..."</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">This will make it work both on ES5 and ES6 without changing emit.</p>
1
<p dir="auto">by <strong>angrygoats</strong>:</p> <pre class="notranslate">What steps will reproduce the problem? Compile this program: package sum func sum(a []int) int { // returns an int s := 0; for i := 0; i &lt; len(a); i++ { s += a[i] } return s } (note brace at start of function definition is on new line) What is the expected output? What do you see instead? I'm not 100% sure, but I think this should compile. Instead I get: sum.go:4: syntax error near int What is your $GOOS? $GOARCH? linux 386 Which revision are you using? (hg identify) 2701d4abb3f2 Please provide any additional information below. I've run a bisection (with 'hg bisect') and the revision that seems to have caused the change in behaviour was: The first bad revision is: changeset: 4395:26b9258d76e4 user: Russ Cox &lt;[email protected]&gt; date: Fri Dec 11 15:59:41 2009 -0800 summary: gc: semicolons</pre>
<h1 dir="auto">Solution (Note to Les Googlers)</h1> <p dir="auto">My question was, as I misinterpreted the documentation.</p> <ul dir="auto"> <li><code class="notranslate">GetCertificate == SNICallback</code></li> <li>You cannot cast <code class="notranslate">net.Conn</code> to <code class="notranslate">http.Conn</code>, you can only cast <code class="notranslate">net.Listener</code> to <code class="notranslate">http.Listener</code> <ul dir="auto"> <li>i.e. <code class="notranslate">server := &amp;http.Serve{}; server.Server(tlsListener)</code></li> </ul> </li> </ul> <p dir="auto">See examples at</p> <ul dir="auto"> <li><a href="https://github.com/coolaj86/golang-https-example/tree/https-server">https://github.com/coolaj86/golang-https-example/tree/https-server</a></li> <li><a href="https://github.com/coolaj86/golang-https-example">https://github.com/coolaj86/golang-https-example</a></li> </ul> <p dir="auto">The crux of the issue In 68 lines:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main import ( &quot;crypto/tls&quot; &quot;fmt&quot; &quot;net&quot; &quot;net/http&quot; &quot;os&quot; &quot;path/filepath&quot; &quot;strconv&quot; &quot;strings&quot; ) type myHandler struct{} func (m *myHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { fmt.Println(r.Host) fmt.Println(r.Method) fmt.Println(r.RequestURI) fmt.Println(r.URL) // also has many keys, such as Query for k, v := range r.Header { fmt.Println(k, v) } fmt.Println(r.Body) // End the request fmt.Fprintf(w, &quot;Hi there, %s %q? Wow!\n\nWith Love,\n\t%s&quot;, r.Method, r.URL.Path[1:], r.Host) } func main() { port := uint(8443) certsPath := &quot;/etc/letsencrypt/live&quot; defaultHost := &quot;localhost.daplie.com&quot; fmt.Printf(&quot;Loading Certificates %s/%s/{privkey.pem,fullchain.pem}\n&quot;, certsPath, defaultHost) privkeyPath := filepath.Join(certsPath, defaultHost, &quot;privkey.pem&quot;) certPath := filepath.Join(certsPath, defaultHost, &quot;fullchain.pem&quot;) cert, err := tls.LoadX509KeyPair(certPath, privkeyPath) if err != nil { fmt.Fprintf(os.Stderr, &quot;Couldn't load default certificates: %s\n&quot;, err) os.Exit(1) } addr := &quot;:&quot; + strconv.Itoa(int(port)) conn, err := net.Listen(&quot;tcp&quot;, addr) if nil != err { fmt.Fprintf(os.Stderr, &quot;Couldn't bind to TCP socket %q: %s\n&quot;, addr, err) os.Exit(1) } tlsConfig := new(tls.Config) tlsConfig.Certificates = []tls.Certificate{cert} tlsConfig.GetCertificate = func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error) { return &amp;cert, nil } tlsListener := tls.NewListener(conn, tlsConfig) server := &amp;http.Server{ Addr: addr, Handler: &amp;myHandler{}, } host := strings.ToLower(defaultHost) fmt.Printf(&quot;Listening on https://%s:%d\n&quot;, host, port) server.Serve(tlsListener) }"><pre class="notranslate"><code class="notranslate">package main import ( "crypto/tls" "fmt" "net" "net/http" "os" "path/filepath" "strconv" "strings" ) type myHandler struct{} func (m *myHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { fmt.Println(r.Host) fmt.Println(r.Method) fmt.Println(r.RequestURI) fmt.Println(r.URL) // also has many keys, such as Query for k, v := range r.Header { fmt.Println(k, v) } fmt.Println(r.Body) // End the request fmt.Fprintf(w, "Hi there, %s %q? Wow!\n\nWith Love,\n\t%s", r.Method, r.URL.Path[1:], r.Host) } func main() { port := uint(8443) certsPath := "/etc/letsencrypt/live" defaultHost := "localhost.daplie.com" fmt.Printf("Loading Certificates %s/%s/{privkey.pem,fullchain.pem}\n", certsPath, defaultHost) privkeyPath := filepath.Join(certsPath, defaultHost, "privkey.pem") certPath := filepath.Join(certsPath, defaultHost, "fullchain.pem") cert, err := tls.LoadX509KeyPair(certPath, privkeyPath) if err != nil { fmt.Fprintf(os.Stderr, "Couldn't load default certificates: %s\n", err) os.Exit(1) } addr := ":" + strconv.Itoa(int(port)) conn, err := net.Listen("tcp", addr) if nil != err { fmt.Fprintf(os.Stderr, "Couldn't bind to TCP socket %q: %s\n", addr, err) os.Exit(1) } tlsConfig := new(tls.Config) tlsConfig.Certificates = []tls.Certificate{cert} tlsConfig.GetCertificate = func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error) { return &amp;cert, nil } tlsListener := tls.NewListener(conn, tlsConfig) server := &amp;http.Server{ Addr: addr, Handler: &amp;myHandler{}, } host := strings.ToLower(defaultHost) fmt.Printf("Listening on https://%s:%d\n", host, port) server.Serve(tlsListener) } </code></pre></div> <h1 dir="auto">Original Question</h1> <p dir="auto"><a href="https://LetsEncrypt.org's" rel="nofollow">https://LetsEncrypt.org's</a> release is just around the corner, but it's currently not possible to dynamically retrieve and renew certificates in go with an active http server.</p> <p dir="auto">To do so requires fixing a tiny regression introduced sometime between the move from httputils and now. See <a href="https://golang.org/pkg/net/http/httputil/#ServerConn" rel="nofollow">https://golang.org/pkg/net/http/httputil/#ServerConn</a>.</p> <p dir="auto">We need to re-expose http.NewConn and http.conn.Serve.<br> See the diff: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/coolaj86/go/commit/1a30898568d34c8cbfee25edac386c1bdc05ea25/hovercard" href="https://github.com/coolaj86/go/commit/1a30898568d34c8cbfee25edac386c1bdc05ea25">coolaj86@<tt>1a30898</tt></a></p> <p dir="auto">I've got a working demo of dynamically loading certificates with this change here:<br> <a href="https://gist.github.com/coolaj86/16ed8fd810e19dec71be">https://gist.github.com/coolaj86/16ed8fd810e19dec71be</a></p> <p dir="auto">I've already signed the CLA and with a little coaching I'm sure I could turn my example into an appropriate test case, but I'm way out of my league with the 37-page explanation of how to make a pull request...</p> <p dir="auto">See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94218092" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/11649" data-hovercard-type="pull_request" data-hovercard-url="/golang/go/pull/11649/hovercard" href="https://github.com/golang/go/pull/11649">#11649</a></p>
0
<p dir="auto">I see modal flicker on iPad Retina in Safari and in Chrome 29.0.1547.57 on OS X 10.7.5. This needs more testing, please. Thanks!</p>
<p dir="auto">When launching the modal component (<a href="http://getbootstrap.com/javascript/#modals" rel="nofollow">http://getbootstrap.com/javascript/#modals</a>) the entire content will slightly move to the left on mac OS (haven't tried it on windows yet). With the active modal the scrollbar seem to disappear, while the content width still changes.</p> <p dir="auto">You can observer the problem on the bootstrap page</p>
1
<p dir="auto">Hi all,</p> <p dir="auto">there are cases when need to conditionally use part of template, for example header of box can be used to compound template depending on params. Currently am duplicating such partials.<br> But is there a solution for such partials?</p> <p dir="auto">thanks in advance.</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.5.22</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codesandbox.io/embed/vue-template-b6c06?fontsize=14&amp;hidenavigation=1&amp;theme=dark" rel="nofollow">https://codesandbox.io/embed/vue-template-b6c06?fontsize=14&amp;hidenavigation=1&amp;theme=dark</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">When the initial value of <code class="notranslate">a</code> is equal to <code class="notranslate">true</code> and <code class="notranslate">b</code> is equal to <code class="notranslate">false</code>, the child component was created twice.<br> When the initial value of <code class="notranslate">a</code> is equal to <code class="notranslate">false</code> and <code class="notranslate">b</code> is equal to <code class="notranslate">true</code>, the child component was created once.<br> When the initial value of <code class="notranslate">a</code> and <code class="notranslate">b</code> are same, the child component was created twice.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">The child component is created the same number of times in different cases</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">The child component is created the different number of times in different cases</p>
0
<p dir="auto">Sometimes it is useful to create array of forms and render them in template separately with the same name ($form-&gt;getName()). But in this case Profiler will display only the last form in Panel, because FormDataCollector uses $form-&gt;getName() as index and the last form overrides previous forms.</p> <p dir="auto">Possible solution is to fix <a href="https://github.com/symfony/symfony/blob/2.8/src/Symfony/Component/Form/Extension/DataCollector/FormDataCollector.php#L199">this</a> code to somethink like</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$name = $form-&gt;getName().'_'.uniqid(); $this-&gt;data['forms'][$name] = array();"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>name</span> = <span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">getName</span>().<span class="pl-s">'_'</span>.uniqid(); <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">data</span>[<span class="pl-s">'forms'</span>][<span class="pl-s1"><span class="pl-c1">$</span>name</span>] = <span class="pl-en">array</span>();</pre></div> <p dir="auto">In this case profiler will collect multiple forms correctly.</p>
<p dir="auto">Is it an expected behavior: in a controller that receives a request from the other controller using a <code class="notranslate">forward()</code> call, calling <code class="notranslate">$request-&gt;getQueryString()</code> returns the original query-string? (<code class="notranslate">Request $request</code> is injected as an argument in the controller action definition).</p> <p dir="auto">As a workaround I had to replace <code class="notranslate">$request-&gt;getQueryString()</code> with <code class="notranslate">http_build_query($request-&gt;query-&gt;all())</code>.</p>
0
<p dir="auto">(Original issue below the line)</p> <p dir="auto">As suggested below, it makes sense to make <code class="notranslate">texcache</code> private, which need to go through a deprecation cycle. See <a href="https://matplotlib.org/stable/devel/contributing.html#api-changes" rel="nofollow">https://matplotlib.org/stable/devel/contributing.html#api-changes</a> for a more detailed description of what is required in terms of deprecating something. Also, see the helper function <code class="notranslate">deprecate_privatize_attribute</code> and how it is used in the code base.</p> <p dir="auto">Marking as good first issue since there is a minor, well-defined, change. But it may require a bit of reading up to get it right.</p> <hr> <h3 dir="auto">Documentation Link</h3> <p dir="auto"><a href="https://matplotlib.org/stable/api/texmanager_api.html" rel="nofollow">https://matplotlib.org/stable/api/texmanager_api.html</a></p> <h3 dir="auto">Problem</h3> <p dir="auto">texcache = '/home/elliott/.cache/matplotlib/tex.cache'</p> <h3 dir="auto">Suggested improvement</h3> <p dir="auto">Not a big deal, but maybe one can at least add a doc-string stating that is points to <code class="notranslate">$HOME/.cache/matplotlib/tex.cache</code> or however it is actually determined.</p>
<p dir="auto">Looks like matplotlib is completely not ready to use pytest which is very useful specially after installing some pytest extensions which passes code over many scanners and sanity checks allowing automatically find places in the code which could be fixed/improved.</p> <p dir="auto">How to reproduce that:</p> <ul dir="auto"> <li>"python setuup.py build"</li> <li>"python setuup.py install --root &lt;/install/prefix&gt;"</li> <li>execute "pytest" with PYTHONPATH pointing to python sitearchg and sitelib inside &lt;/install/prefix&gt;</li> </ul> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="+ PATH=/home/tkloczko/rpmbuild/BUILDROOT/python-matplotlib-3.4.2-2.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbin + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-matplotlib-3.4.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-matplotlib-3.4.2-2.fc35.x86_64/usr/lib/python3.8/site-packages + PYTHONDONTWRITEBYTECODE=1 + xvfb-run -a -s '-screen 0 640x480x24' /usr/bin/pytest -ra =========================================================================== test session starts ============================================================================ platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 rootdir: /home/tkloczko/rpmbuild/BUILD/matplotlib-3.4.2, configfile: pytest.ini, testpaths: lib plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, Faker-8.4.0, cov-2.12.1, pyfakefs-4.5.0, cases-3.6.1, flaky-3.7.0, hypothesis-6.14.0 collected 0 items / 1 error ================================================================================== ERRORS ================================================================================== ______________________________________________________________________ ERROR collecting test session _______________________________________________________________________ /usr/lib64/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) &lt;frozen importlib._bootstrap&gt;:1014: in _gcd_import ??? &lt;frozen importlib._bootstrap&gt;:991: in _find_and_load ??? &lt;frozen importlib._bootstrap&gt;:961: in _find_and_load_unlocked ??? &lt;frozen importlib._bootstrap&gt;:219: in _call_with_frames_removed ??? &lt;frozen importlib._bootstrap&gt;:1014: in _gcd_import ??? &lt;frozen importlib._bootstrap&gt;:991: in _find_and_load ??? &lt;frozen importlib._bootstrap&gt;:961: in _find_and_load_unlocked ??? &lt;frozen importlib._bootstrap&gt;:219: in _call_with_frames_removed ??? &lt;frozen importlib._bootstrap&gt;:1014: in _gcd_import ??? &lt;frozen importlib._bootstrap&gt;:991: in _find_and_load ??? &lt;frozen importlib._bootstrap&gt;:975: in _find_and_load_unlocked ??? &lt;frozen importlib._bootstrap&gt;:671: in _load_unlocked ??? &lt;frozen importlib._bootstrap_external&gt;:783: in exec_module ??? &lt;frozen importlib._bootstrap&gt;:219: in _call_with_frames_removed ??? lib/matplotlib/__init__.py:107: in &lt;module&gt; from . import _api, cbook, docstring, rcsetup lib/matplotlib/cbook/__init__.py:31: in &lt;module&gt; from matplotlib import _api, _c_internal_utils E ImportError: cannot import name '_c_internal_utils' from partially initialized module 'matplotlib' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/matplotlib-3.4.2/lib/matplotlib/__init__.py) ========================================================================= short test summary info ========================================================================== ERROR - ImportError: cannot import name '_c_internal_utils' from partially initialized module 'matplotlib' (most likely due to a circular import) (/home/tkloczko/rpmbui... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ============================================================================= 1 error in 0.46s ============================================================================="><pre class="notranslate"><span class="pl-c1">+ PATH=/home/tkloczko/rpmbuild/BUILDROOT/python-matplotlib-3.4.2-2.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbin</span> <span class="pl-c1">+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-matplotlib-3.4.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-matplotlib-3.4.2-2.fc35.x86_64/usr/lib/python3.8/site-packages</span> <span class="pl-c1">+ PYTHONDONTWRITEBYTECODE=1</span> <span class="pl-c1">+ xvfb-run -a -s '-screen 0 640x480x24' /usr/bin/pytest -ra</span> <span class="pl-c1">=========================================================================== test session starts ============================================================================</span> <span class="pl-c1">platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1</span> <span class="pl-c1">rootdir: /home/tkloczko/rpmbuild/BUILD/matplotlib-3.4.2, configfile: pytest.ini, testpaths: lib</span> <span class="pl-c1">plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, Faker-8.4.0, cov-2.12.1, pyfakefs-4.5.0, cases-3.6.1, flaky-3.7.0, hypothesis-6.14.0</span> <span class="pl-c1">collected 0 items / 1 error</span> <span class="pl-c1">================================================================================== ERRORS ==================================================================================</span> <span class="pl-c1">______________________________________________________________________ ERROR collecting test session _______________________________________________________________________</span> <span class="pl-c1">/usr/lib64/python3.8/importlib/__init__.py:127: in import_module</span> <span class="pl-c1"> return _bootstrap._gcd_import(name[level:], package, level)</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:1014: in _gcd_import</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:991: in _find_and_load</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:961: in _find_and_load_unlocked</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:219: in _call_with_frames_removed</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:1014: in _gcd_import</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:991: in _find_and_load</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:961: in _find_and_load_unlocked</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:219: in _call_with_frames_removed</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:1014: in _gcd_import</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:991: in _find_and_load</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:975: in _find_and_load_unlocked</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:671: in _load_unlocked</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap_external&gt;:783: in exec_module</span> <span class="pl-c1"> ???</span> <span class="pl-c1">&lt;frozen importlib._bootstrap&gt;:219: in _call_with_frames_removed</span> <span class="pl-c1"> ???</span> <span class="pl-c1">lib/matplotlib/__init__.py:107: in &lt;module&gt;</span> <span class="pl-c1"> from . import _api, cbook, docstring, rcsetup</span> <span class="pl-c1">lib/matplotlib/cbook/__init__.py:31: in &lt;module&gt;</span> <span class="pl-c1"> from matplotlib import _api, _c_internal_utils</span> <span class="pl-c1">E ImportError: cannot import name '_c_internal_utils' from partially initialized module 'matplotlib' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/matplotlib-3.4.2/lib/matplotlib/__init__.py)</span> <span class="pl-c1">========================================================================= short test summary info ==========================================================================</span> <span class="pl-c1">ERROR - ImportError: cannot import name '_c_internal_utils' from partially initialized module 'matplotlib' (most likely due to a circular import) (/home/tkloczko/rpmbui...</span> <span class="pl-c1">!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</span> <span class="pl-c1">============================================================================= 1 error in 0.46s =============================================================================</span></pre></div>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=skaffman" rel="nofollow">Kenny MacLeod</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4432?redirect=false" rel="nofollow">SPR-4432</a></strong> and commented</p> <p dir="auto">It occurred to me that a neat application of autowiring would be the ability to autowire logger objects.</p> <p dir="auto">Say a class declares something like:</p> <p dir="auto">private <code class="notranslate">@Autowired</code> Log logger;</p> <p dir="auto">where Log is from commons-logging. Spring would then generate a Log object for the declaring class and then inject it.</p> <p dir="auto">I don't think this can be done using the existing resolveResolvableDependency mechanism, since information about the dependent class isn't made available in order to create the Log.</p> <p dir="auto">Thoughts?</p> <hr> <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="398085331" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9109" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9109/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9109">#9109</a> Support <code class="notranslate">@autowiring</code> of Loggers (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=skaffman" rel="nofollow">Kenny MacLeod</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4431?redirect=false" rel="nofollow">SPR-4431</a></strong> and commented</p> <p dir="auto">It occurred to me that a neat application of autowiring would be the ability to autowire logger objects.</p> <p dir="auto">Say a class declares something like:</p> <p dir="auto">private <code class="notranslate">@Autowired</code> Log logger;</p> <p dir="auto">where Log is from commons-logging. Spring would then generate a Log object for the declaring class and then inject it.</p> <p dir="auto">I don't think this can be done using the existing resolveResolvableDependency mechanism, since information about the dependent class isn't made available in order to create the Log.</p> <p dir="auto">Thoughts?</p> <hr> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/20489/IAutowireCandidateFactory.java" rel="nofollow">IAutowireCandidateFactory.java</a> (<em>241 bytes</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/20393/Log.java" rel="nofollow">Log.java</a> (<em>566 bytes</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/20490/LoggerAutowireFactory.java" rel="nofollow">LoggerAutowireFactory.java</a> (<em>1.14 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/20394/LogPostProcessor.java" rel="nofollow">LogPostProcessor.java</a> (<em>1.31 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/20491/PluggableAutowireCandidateResolver.java" rel="nofollow">PluggableAutowireCandidateResolver.java</a> (<em>2.10 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398085341" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9110" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9110/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9110">#9110</a> Support <code class="notranslate">@autowiring</code> of Loggers (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">11 votes, 14 watchers</p>
1
<h3 dir="auto">Problem description</h3> <p dir="auto">Any material-ui button stays in a focused state even after click or tap event has ended. It displays a white translucent overlay. It looks really bad! How can I hide it? Is there a standard way to do that? Here's a little hack on how to accomplish it.<br> <code class="notranslate">this.refs.searchBtn.refs.overlay.style.background = 'none';</code></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/19772006/16523721/77178534-3fc2-11e6-90c2-9ca8263553ea.png"><img width="305" alt="screen shot 2016-07-01 at 7 22 05 pm" src="https://cloud.githubusercontent.com/assets/19772006/16523721/77178534-3fc2-11e6-90c2-9ca8263553ea.png" style="max-width: 100%;"></a></p> ### Steps to reproduce ### Versions - Material-UI: ^0.15.1 - React: ^15.1.0 - Browser: Chrome
<p dir="auto">This issue has been around for quite a while, and I just reproduced it in 0.14.4 and 0.15.1-alpha.1. I looked through all "button" and "ripple" related issues and found no mention of this, so apologies if this is a duplicate.</p> <p dir="auto"><a href="https://dl.dropboxusercontent.com/u/19969663/ripple_issue.mov" rel="nofollow">https://dl.dropboxusercontent.com/u/19969663/ripple_issue.mov</a><br> As you can see, this is the latest version of the demos on material-ui.com. Video was taken in chrome on a mac.</p> <p dir="auto">Basically, through some sequence of clicks the ripple effect doesn't go away. I've been playing around with it for quite a while and couldn't find consistent repro steps. It also seems to happen much more often on chrome in android as well as safari in iOS. I've noticed this issue in all browsers.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=lucas_" rel="nofollow">Lukasz Rozek</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9208?redirect=false" rel="nofollow">SPR-9208</a></strong> and commented</p> <p dir="auto">Desktop application (swing client) is executed via web start. While application context is instantiated application performs many (122 times) http get requests for resources which don't exist. This of course has huge impact on time that is needed to application startup based on you network connection.</p> <p dir="auto">Here is a sample of access log (each entry is requested multiple times which in total for one time application execution gives 122 requests to the server):<br> 127.0.0.1 - - [07/Mar/2012:15:07:24 +0100] "GET /neo-web/webstart/org.springframework.aspects.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"<br> 127.0.0.1 - - [07/Mar/2012:15:07:28 +0100] "GET /neo-web/webstart/org.springframework.beans.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"<br> 127.0.0.1 - - [07/Mar/2012:15:07:31 +0100] "GET /neo-web/webstart/org.springframework.core.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"<br> 127.0.0.1 - - [07/Mar/2012:15:07:36 +0100] "GET /neo-web/webstart/org.springframework.aspects.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"<br> 127.0.0.1 - - [07/Mar/2012:15:07:42 +0100] "GET /neo-web/webstart/org.springframework.web.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"<br> 127.0.0.1 - - [07/Mar/2012:15:07:51 +0100] "GET /neo-web/webstart/org.springframework.context.jar HTTP/1.1" 404 952 "-" "Java/1.7.0_03"</p> <p dir="auto">This is reproducible every time application is executed via webstart (javaws <a href="http://localhost:8080/neo-web/webstart/launch.jnlp" rel="nofollow">http://localhost:8080/neo-web/webstart/launch.jnlp</a>). It can be reproduced only in java web start environment because there is JNLPClassLoader involved which indirectly causes jars lookup on the backend server.</p> <p dir="auto">I enclosed stacktraces on which you can see class lookups and then calls to the servers. In stacktrace2 - stacktrace3 I noted parameter which was used in method invocation JNLPClassLoader<br> JNLPClassLoader(ClassLoader).loadClass(String) line: 356 &lt;----------- parameter is org.springframework.beans.factory.aspectj.AbstractInterfaceDrivenDependencyInjectionAspectBeanInfo ---------&gt;</p> <p dir="auto">The stacktrace1 is different than stacktraces 2-5 as the source of class loading is different. The latter (2-5) are pretty the same for most calls to the server (they differ only with different classes to be loaded)</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.1</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/19481/stacktrace1" rel="nofollow">stacktrace1</a> (<em>5.07 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/19482/stacktrace2" rel="nofollow">stacktrace2</a> (<em>5.15 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/19483/stacktrace3" rel="nofollow">stacktrace3</a> (<em>5.31 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/19484/stacktrace4" rel="nofollow">stacktrace4</a> (<em>5.65 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/19485/stacktrace5" rel="nofollow">stacktrace5</a> (<em>5.30 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398099409" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11049" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11049/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11049">#11049</a> INDEX.LIST uses incorrect jar names (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/2fe74a4ef0cb8f667c4fa342e649bc75da4d8a6a/hovercard" href="https://github.com/spring-projects/spring-framework/commit/2fe74a4ef0cb8f667c4fa342e649bc75da4d8a6a"><tt>2fe74a4</tt></a></p> <p dir="auto">1 votes, 1 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=astefan" rel="nofollow">Andrei Stefan</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8896?redirect=false" rel="nofollow">SPR-8896</a></strong> and commented</p> <p dir="auto">In this section of the Spring Framework reference documentation it is mentioned that both aspectjrt.jar and aspectjweaver.jar files should be present in the classpath in case <code class="notranslate">@AspectJ</code> support needs to be enabled in the project. Also, it is mentioned where is the location of those jars within the Spring distribution.</p> <p dir="auto">I believe there are two small issues with that respective section of the documentation:</p> <ul dir="auto"> <li>the two jars are not available anymore with a Spring distribution</li> <li>the classes and package structure in aspectjrt.jar form a subset of the classes that can be found in aspectjweaver.jar. Using both at the same time doesn't seem to be actually required.</li> </ul> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.6, 3.0.6, 3.1 RC2</p> <p dir="auto"><strong>Sub-tasks:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398154988" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14643" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14643/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14643">#14643</a> Backport "Documentation update regarding aspectjrt and aspectjweaver jars usage"</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398109011" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12444" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12444/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12444">#12444</a> Chapter 7.2.1 of the ref manual still refers to the Spring-with-dependencies distribution (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<p dir="auto">i predict image with python api<br> only need 15ms,<br> but with the same model,java api need 500+ms</p>
<p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):</li> </ul> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//create session, this pb come from python ConfigProto config=ConfigProto.newBuilder() .setAllowSoftPlacement(true) .setLogDevicePlacement(false) .clearLogDevicePlacement() //.setGpuOptions(GPUOptions.newBuilder().setAllowGrowth(true)) //.setInterOpParallelismThreads(1) .build(); sess=new Session( graph, config.toByteArray() );"><pre class="notranslate"><span class="pl-c">//create session, this pb come from python</span> <span class="pl-smi">ConfigProto</span> <span class="pl-s1">config</span>=<span class="pl-smi">ConfigProto</span>.<span class="pl-en">newBuilder</span>() .<span class="pl-en">setAllowSoftPlacement</span>(<span class="pl-c1">true</span>) .<span class="pl-en">setLogDevicePlacement</span>(<span class="pl-c1">false</span>) .<span class="pl-en">clearLogDevicePlacement</span>() <span class="pl-c">//.setGpuOptions(GPUOptions.newBuilder().setAllowGrowth(true))</span> <span class="pl-c">//.setInterOpParallelismThreads(1)</span> .<span class="pl-en">build</span>(); <span class="pl-s1">sess</span>=<span class="pl-k">new</span> <span class="pl-smi">Session</span>( <span class="pl-s1">graph</span>, <span class="pl-s1">config</span>.<span class="pl-en">toByteArray</span>() );</pre></div> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" AnjosLog log=new AnjosLog(); log.begin(); log.begin2Series(&quot;create data&quot;); float[][][] X=new float[1][this.audio_len][this.audio_feat_len]; X[0]=data; log.stop2Series(); log.begin2Series(&quot;create tensor&quot;); Tensor x= Tensor.create(X); log.stop2Series(); log.begin2Series(&quot;use model&quot;); Tensor y = sess.runner().feed(input_var, x).fetch(label_var).run().get(0); log.stop2Series(); log.begin2Series(&quot;take result&quot;); float[][][] result = new float[ (int)y.shape()[0] ][ (int)y.shape()[1] ][ (int)y.shape()[2] ]; y.copyTo(result); log.stop2Series(); log.stop();"><pre class="notranslate"> <span class="pl-smi">AnjosLog</span> <span class="pl-s1">log</span>=<span class="pl-k">new</span> <span class="pl-smi">AnjosLog</span>(); <span class="pl-s1">log</span>.<span class="pl-en">begin</span>(); <span class="pl-s1">log</span>.<span class="pl-en">begin2Series</span>(<span class="pl-s">"create data"</span>); <span class="pl-smi">float</span>[][][] <span class="pl-s1">X</span>=<span class="pl-k">new</span> <span class="pl-smi">float</span>[<span class="pl-c1">1</span>][<span class="pl-smi">this</span>.<span class="pl-s1">audio_len</span>][<span class="pl-smi">this</span>.<span class="pl-s1">audio_feat_len</span>]; <span class="pl-s1">X</span>[<span class="pl-c1">0</span>]=<span class="pl-s1">data</span>; <span class="pl-s1">log</span>.<span class="pl-en">stop2Series</span>(); <span class="pl-s1">log</span>.<span class="pl-en">begin2Series</span>(<span class="pl-s">"create tensor"</span>); <span class="pl-smi">Tensor</span> <span class="pl-s1">x</span>= <span class="pl-smi">Tensor</span>.<span class="pl-en">create</span>(<span class="pl-s1">X</span>); <span class="pl-s1">log</span>.<span class="pl-en">stop2Series</span>(); <span class="pl-s1">log</span>.<span class="pl-en">begin2Series</span>(<span class="pl-s">"use model"</span>); <span class="pl-smi">Tensor</span> <span class="pl-s1">y</span> = <span class="pl-s1">sess</span>.<span class="pl-en">runner</span>().<span class="pl-en">feed</span>(<span class="pl-s1">input_var</span>, <span class="pl-s1">x</span>).<span class="pl-en">fetch</span>(<span class="pl-s1">label_var</span>).<span class="pl-en">run</span>().<span class="pl-en">get</span>(<span class="pl-c1">0</span>); <span class="pl-s1">log</span>.<span class="pl-en">stop2Series</span>(); <span class="pl-s1">log</span>.<span class="pl-en">begin2Series</span>(<span class="pl-s">"take result"</span>); <span class="pl-smi">float</span>[][][] <span class="pl-s1">result</span> = <span class="pl-k">new</span> <span class="pl-smi">float</span>[ (<span class="pl-smi">int</span>)<span class="pl-s1">y</span>.<span class="pl-en">shape</span>()[<span class="pl-c1">0</span>] ][ (<span class="pl-smi">int</span>)<span class="pl-s1">y</span>.<span class="pl-en">shape</span>()[<span class="pl-c1">1</span>] ][ (<span class="pl-smi">int</span>)<span class="pl-s1">y</span>.<span class="pl-en">shape</span>()[<span class="pl-c1">2</span>] ]; <span class="pl-s1">y</span>.<span class="pl-en">copyTo</span>(<span class="pl-s1">result</span>); <span class="pl-s1">log</span>.<span class="pl-en">stop2Series</span>(); <span class="pl-s1">log</span>.<span class="pl-en">stop</span>();</pre></div> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): win7 CPU</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li> <li>TensorFlow installed from (source or binary):</li> <li>TensorFlow version (use command below):1.8.0 java</li> <li>Python version: 3.5.6</li> <li>Bazel version (if compiling from source): none</li> <li>GCC/Compiler version (if compiling from source): none</li> <li>CUDA/cuDNN version: none</li> <li>GPU model and memory: none</li> </ul> <p dir="auto">You can collect some of this information using our environment capture <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br> You can also obtain the TensorFlow version with<br> python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p> <p dir="auto"><strong>Describe the current behavior</strong></p> <p dir="auto">I use python3.5 predict the same one sample speed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="series start                 2019-04-20 13:06:18 series end                 2019-04-20 13:06:18 total time                 0.24s 0.00min 2019-04-20 13:06:18"><pre class="notranslate"><code class="notranslate">series start                 2019-04-20 13:06:18 series end                 2019-04-20 13:06:18 total time                 0.24s 0.00min 2019-04-20 13:06:18 </code></pre></div> <p dir="auto">I use java1.8 predict the same one sample speed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="start time                2019-04-20 12:57:43 924 series start                 create data 2019-04-20 12:57:43 925 series end                 0.00s 0.00min series start                 create tensor 2019-04-20 12:57:43 927 series end                 0.09s 0.00min series start                 use model 2019-04-20 12:57:44 015 series end                 0.69s 0.01min series start                 take result 2019-04-20 12:57:44 710 series end                 0.03s 0.00min end time                 2019-04-20 12:57:44 738 total time                 0.81s 0.01min"><pre class="notranslate"><code class="notranslate">start time                2019-04-20 12:57:43 924 series start                 create data 2019-04-20 12:57:43 925 series end                 0.00s 0.00min series start                 create tensor 2019-04-20 12:57:43 927 series end                 0.09s 0.00min series start                 use model 2019-04-20 12:57:44 015 series end                 0.69s 0.01min series start                 take result 2019-04-20 12:57:44 710 series end                 0.03s 0.00min end time                 2019-04-20 12:57:44 738 total time                 0.81s 0.01min </code></pre></div> <p dir="auto"><strong>Describe the expected behavior</strong><br> <strong>I understand that java should be faster than Python. But not like this.</strong></p> <p dir="auto"><strong>Code to reproduce the issue</strong><br> Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p> <p dir="auto"><strong>Other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.18363.900] PowerToys version: 0.18.2 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.900] PowerToys version: 0.18.2 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">Set up remote desktop connection in a zone and start it in full screen mode afterwards. It wont be in the zone anymore. Instead it will be covering all zones like without even having the PowerToys installed.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">A full screen app will think it is running in full screen inside of a fancy zone. This could also be seen as a feature request, to me it is a bug though.<br> Unlike remote desktop, which is only annoying in window mode, other apps like games don't even allow you to switch to window mode, leaving fancy zones useless in those scenarios.<br> <strong>With 4k screens nowadays, this is important!</strong></p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">When an app switches to full screen, it sadly breaks out of the zone. It will cover all zones instead.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">It would be nice if it would be possible to split a screen to allow for multiple "full screen" windows.<br> This would enable for example to have You Tube in full screen mode without the rest of the UI together with for example the email program below for people using a PIVOTed Display.</p> <p dir="auto">This would allow to have a video playing like this:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/33052519/65349326-6d572e80-dbe3-11e9-8ea3-f274bef58301.png"><img src="https://user-images.githubusercontent.com/33052519/65349326-6d572e80-dbe3-11e9-8ea3-f274bef58301.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Instead of having a lot of dead space from the UI&gt;<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/33052519/65349762-814f6000-dbe4-11e9-8670-ca3ae9180d3e.png"><img src="https://user-images.githubusercontent.com/33052519/65349762-814f6000-dbe4-11e9-8670-ca3ae9180d3e.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yamatt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yamatt">@yamatt</a> on October 31, 2016 21:15</em></p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto"><code class="notranslate">docker_container</code></p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.2.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.2.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">None</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Linux/Fedora 22</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When running a task with an <code class="notranslate">entrypoint</code> parameter, a docker container is destroyed and recreated each time after the first time it is run.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Fill in the variables and run this twice:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Create data container docker_container: name: &quot;{{ docker_data_name }}&quot; image: &quot;{{ image }}&quot; state: present entrypoint: &quot;/bin/echo Data-only container for {{ name }}&quot;"><pre class="notranslate"><code class="notranslate">- name: Create data container docker_container: name: "{{ docker_data_name }}" image: "{{ image }}" state: present entrypoint: "/bin/echo Data-only container for {{ name }}" </code></pre></div> <p dir="auto">On the second run this roduces:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [docker-image : Create data container] ************************************ changed: [hostname]"><pre class="notranslate"><code class="notranslate">TASK [docker-image : Create data container] ************************************ changed: [hostname] </code></pre></div> <p dir="auto">Destroy that container, comment out the entrypoint, then run this twice</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Create data container docker_container: name: &quot;{{ docker_data_name }}&quot; image: &quot;{{ image }}&quot; state: present #entrypoint: &quot;/bin/echo Data-only container for {{ name }}&quot;"><pre class="notranslate"><code class="notranslate">- name: Create data container docker_container: name: "{{ docker_data_name }}" image: "{{ image }}" state: present #entrypoint: "/bin/echo Data-only container for {{ name }}" </code></pre></div> <p dir="auto">On the second run this poduces:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [docker-image : Create data container] ************************************ ok: [hostname]"><pre class="notranslate"><code class="notranslate">TASK [docker-image : Create data container] ************************************ ok: [hostname] </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Ansible reports no change. The created timestamp should be the same as the first time it was run.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Ansible reports a change, and the created timestamp becomes recent.</p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="186399750" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/5446" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/5446/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/5446">ansible/ansible-modules-core#5446</a></em></p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">win_firewall_rule</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.2.1.0"><pre class="notranslate"><code class="notranslate">2.2.1.0 </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Windows Server 2012</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When the rule already exists, win_firewall_rule fails to verify that isn't changed because of <code class="notranslate">netsh</code> output in English. My host is using German language and then <code class="notranslate">netsh</code> output is different.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Try to execute the following task twice on a non-English host:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Firewall rule to allow smtp on TCP port 25 action: win_firewall_rule args: name: smtp enable: yes state: present localport: 25 action: allow direction: In protocol: TCP"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Firewall rule to allow smtp on TCP port 25</span> <span class="pl-ent">action</span>: <span class="pl-s">win_firewall_rule</span> <span class="pl-ent">args</span>: <span class="pl-ent">name</span>: <span class="pl-s">smtp</span> <span class="pl-ent">enable</span>: <span class="pl-s">yes</span> <span class="pl-ent">state</span>: <span class="pl-s">present</span> <span class="pl-ent">localport</span>: <span class="pl-c1">25</span> <span class="pl-ent">action</span>: <span class="pl-s">allow</span> <span class="pl-ent">direction</span>: <span class="pl-s">In</span> <span class="pl-ent">protocol</span>: <span class="pl-s">TCP</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">The task doesn't fail.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">The task fails.</p>
0
<p dir="auto">The problem started occuring when I started working with ThemeData's buttonTheme and UI refactoring.</p> <p dir="auto">I update for example the <code class="notranslate">textColor</code> of a <code class="notranslate">RaisedButton</code> and after hot reload this happens:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Initializing hot reload... I/flutter (24260): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ ⣯I/flutter (24260): The following assertion was thrown building MediaQuery(MediaQueryData(size: Size(411.4, 683.4), I/flutter (24260): devicePixelRatio: 2.6, textScaleFactor: 1.0, padding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, I/flutter (24260): alwaysUse24HourFormat: false, accessibleNavigation: falsedisableAnimations: falseinvertColors: I/flutter (24260): falseboldText: false)): I/flutter (24260): 'package:flutter/src/rendering/object.dart': Failed assertion: line 1853 pos 12: '() { I/flutter (24260): final AbstractNode parent = this.parent; I/flutter (24260): if (parent is RenderObject) I/flutter (24260): return parent._needsCompositing; I/flutter (24260): return true; I/flutter (24260): }()': is not true. I/flutter (24260): I/flutter (24260): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (24260): more information in this error message to help you determine and fix the underlying cause. I/flutter (24260): In either case, please report this assertion by filing a bug on GitHub: I/flutter (24260): https://github.com/flutter/flutter/issues/new I/flutter (24260): I/flutter (24260): When the exception was thrown, this was the stack: I/flutter (24260): #2 RenderObject.markNeedsCompositingBitsUpdate (package:flutter/src/rendering/object.dart:1853:12) I/flutter (24260): #3 RenderObject.attach (package:flutter/src/rendering/object.dart:1293:7) I/flutter (24260): #4 _RenderProxyBox&amp;RenderBox&amp;RenderObjectWithChildMixin.attach (package:flutter/src/rendering/object.dart:2721:11) I/flutter (24260): #5 AbstractNode.adoptChild (package:flutter/src/foundation/node.dart:132:13) I/flutter (24260): #6 RenderObject.adoptChild (package:flutter/src/rendering/object.dart:1138:11) I/flutter (24260): #7 _RenderCustomMultiChildLayoutBox&amp;RenderBox&amp;ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:2898:5) I/flutter (24260): #8 MultiChildRenderObjectElement.insertChildRenderObject (package:flutter/src/widgets/framework.dart:4860:18) I/flutter (24260): #9 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4655:35) I/flutter (24260): #10 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #11 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #12 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #13 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #14 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #15 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #16 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #17 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #18 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #19 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #20 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #21 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #22 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #23 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #24 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #25 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #26 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #27 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #28 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #29 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #30 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #31 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #32 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #33 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #34 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #35 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #36 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #37 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #38 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #39 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #40 Element._activateWithParent (package:flutter/src/widgets/framework.dart:3004:5) I/flutter (24260): #41 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2929:18) I/flutter (24260): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #43 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #44 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #45 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #46 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #47 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #49 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #50 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #51 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #52 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #53 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3993:11) I/flutter (24260): #54 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #55 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4901:32) I/flutter (24260): #56 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #58 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #59 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #60 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #61 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3805:11) I/flutter (24260): #62 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #63 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #64 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #65 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #66 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #67 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #68 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #69 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #73 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #74 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3805:11) I/flutter (24260): #75 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #76 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #78 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4796:14) I/flutter (24260): #79 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #80 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #81 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #82 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #83 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #84 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #85 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #87 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4796:14) I/flutter (24260): #88 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #89 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #90 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #91 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #92 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #93 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3805:11) I/flutter (24260): #94 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #95 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #96 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #97 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #98 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #99 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #100 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3805:11) I/flutter (24260): #101 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #102 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #103 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #104 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #105 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #106 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #107 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #108 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #109 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #110 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #111 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #112 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #113 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #114 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #115 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #116 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #117 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #118 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #119 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3805:11) I/flutter (24260): #120 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #121 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #122 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #123 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #124 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #125 StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5) I/flutter (24260): #126 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #127 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #128 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #129 StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5) I/flutter (24260): #130 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #131 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) ⣷I/flutter (24260): Api: getting preview 0 of job with uid 323527cdba9ce320b6529a033e459a9edc67a8501111aeb09687845145627735 Reloaded 6 of 568 libraries in 1.441ms. I/flutter (24260): Api: preview for 323527cdba9ce320b6529a033e459a9edc67a8501111aeb09687845145627735 already found in cache, returning path I/flutter (24260): Api: getting jobs I/flutter (24260): Api: &quot;/jobs&quot;: 200 success I/flutter (24260): Api: &quot;/jobs&quot;: 200 success I/flutter (24260): #132 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #133 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #134 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #135 StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5) I/flutter (24260): #136 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #137 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #138 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #139 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #140 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #141 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #142 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #143 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #144 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #145 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #146 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #147 StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5) I/flutter (24260): #148 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #149 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #150 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #151 StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5) I/flutter (24260): #152 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #153 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #154 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #155 StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5) I/flutter (24260): #156 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #157 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #158 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #159 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #160 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #161 ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5) I/flutter (24260): #162 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #163 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #164 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #165 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #166 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #167 StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5) I/flutter (24260): #168 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #169 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #170 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #171 StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5) I/flutter (24260): #172 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #173 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #174 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #175 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #176 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #177 ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5) I/flutter (24260): #178 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #179 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #180 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #181 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2273:33) I/flutter (24260): #182 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:670:20) I/flutter (24260): #183 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter (24260): #184 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter (24260): #185 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter (24260): #186 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) I/flutter (24260): #188 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) I/flutter (24260): #189 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) I/flutter (24260): #190 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) I/flutter (24260): (elided 3 frames from class _AssertionError and package dart:async) I/flutter (24260): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter (24260): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4077 pos 14: '_dependents.isEmpty': is not true. I/flutter (24260): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 2271 pos 16: '!_dirtyElements[index]._active || _dirtyElements[index]._debugIsInScope(context)': is not true."><pre class="notranslate"><code class="notranslate">Initializing hot reload... I/flutter (24260): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ ⣯I/flutter (24260): The following assertion was thrown building MediaQuery(MediaQueryData(size: Size(411.4, 683.4), I/flutter (24260): devicePixelRatio: 2.6, textScaleFactor: 1.0, padding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, I/flutter (24260): alwaysUse24HourFormat: false, accessibleNavigation: falsedisableAnimations: falseinvertColors: I/flutter (24260): falseboldText: false)): I/flutter (24260): 'package:flutter/src/rendering/object.dart': Failed assertion: line 1853 pos 12: '() { I/flutter (24260): final AbstractNode parent = this.parent; I/flutter (24260): if (parent is RenderObject) I/flutter (24260): return parent._needsCompositing; I/flutter (24260): return true; I/flutter (24260): }()': is not true. I/flutter (24260): I/flutter (24260): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (24260): more information in this error message to help you determine and fix the underlying cause. I/flutter (24260): In either case, please report this assertion by filing a bug on GitHub: I/flutter (24260): https://github.com/flutter/flutter/issues/new I/flutter (24260): I/flutter (24260): When the exception was thrown, this was the stack: I/flutter (24260): #2 RenderObject.markNeedsCompositingBitsUpdate (package:flutter/src/rendering/object.dart:1853:12) I/flutter (24260): #3 RenderObject.attach (package:flutter/src/rendering/object.dart:1293:7) I/flutter (24260): #4 _RenderProxyBox&amp;RenderBox&amp;RenderObjectWithChildMixin.attach (package:flutter/src/rendering/object.dart:2721:11) I/flutter (24260): #5 AbstractNode.adoptChild (package:flutter/src/foundation/node.dart:132:13) I/flutter (24260): #6 RenderObject.adoptChild (package:flutter/src/rendering/object.dart:1138:11) I/flutter (24260): #7 _RenderCustomMultiChildLayoutBox&amp;RenderBox&amp;ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:2898:5) I/flutter (24260): #8 MultiChildRenderObjectElement.insertChildRenderObject (package:flutter/src/widgets/framework.dart:4860:18) I/flutter (24260): #9 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4655:35) I/flutter (24260): #10 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #11 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #12 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #13 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #14 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #15 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #16 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #17 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #18 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #19 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #20 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #21 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #22 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #23 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #24 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #25 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #26 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #27 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #28 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #29 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #30 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #31 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #32 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #33 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #34 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #35 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #36 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #37 Element.attachRenderObject.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2857:13) I/flutter (24260): #38 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3712:14) I/flutter (24260): #39 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2856:5) I/flutter (24260): #40 Element._activateWithParent (package:flutter/src/widgets/framework.dart:3004:5) I/flutter (24260): #41 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2929:18) I/flutter (24260): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #43 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #44 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #45 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #46 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #47 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #49 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #50 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #51 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #52 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #53 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3993:11) I/flutter (24260): #54 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #55 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4901:32) I/flutter (24260): #56 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #58 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #59 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #60 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #61 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3805:11) I/flutter (24260): #62 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #63 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #64 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #65 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #66 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #67 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #68 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #69 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #73 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #74 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3805:11) I/flutter (24260): #75 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #76 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #78 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4796:14) I/flutter (24260): #79 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #80 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #81 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #82 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #83 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #84 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #85 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #87 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4796:14) I/flutter (24260): #88 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #89 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #90 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #91 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #92 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #93 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3805:11) I/flutter (24260): #94 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #95 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #96 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #97 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #98 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #99 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #100 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3805:11) I/flutter (24260): #101 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #102 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #103 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #104 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #105 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #106 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #107 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #108 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #109 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #110 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #111 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #112 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #113 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #114 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #115 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #116 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #117 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #118 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3658:5) I/flutter (24260): #119 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3805:11) I/flutter (24260): #120 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3653:5) I/flutter (24260): #121 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2937:14) I/flutter (24260): #122 Element.updateChild (package:flutter/src/widgets/framework.dart:2740:12) I/flutter (24260): #123 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #124 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #125 StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5) I/flutter (24260): #126 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #127 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #128 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #129 StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5) I/flutter (24260): #130 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #131 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) ⣷I/flutter (24260): Api: getting preview 0 of job with uid 323527cdba9ce320b6529a033e459a9edc67a8501111aeb09687845145627735 Reloaded 6 of 568 libraries in 1.441ms. I/flutter (24260): Api: preview for 323527cdba9ce320b6529a033e459a9edc67a8501111aeb09687845145627735 already found in cache, returning path I/flutter (24260): Api: getting jobs I/flutter (24260): Api: "/jobs": 200 success I/flutter (24260): Api: "/jobs": 200 success I/flutter (24260): #132 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #133 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #134 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #135 StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5) I/flutter (24260): #136 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #137 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #138 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #139 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #140 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #141 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #142 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #143 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #144 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #145 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #146 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #147 StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5) I/flutter (24260): #148 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #149 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #150 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #151 StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5) I/flutter (24260): #152 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #153 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #154 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #155 StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5) I/flutter (24260): #156 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #157 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #158 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #159 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #160 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #161 ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5) I/flutter (24260): #162 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #163 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #164 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #165 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #166 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #167 StatefulElement.update (package:flutter/src/widgets/framework.dart:3835:5) I/flutter (24260): #168 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #169 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #170 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #171 StatelessElement.update (package:flutter/src/widgets/framework.dart:3738:5) I/flutter (24260): #172 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #173 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4803:14) I/flutter (24260): #174 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #175 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #176 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #177 ProxyElement.update (package:flutter/src/widgets/framework.dart:3947:5) I/flutter (24260): #178 Element.updateChild (package:flutter/src/widgets/framework.dart:2729:15) I/flutter (24260): #179 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3689:16) I/flutter (24260): #180 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter (24260): #181 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2273:33) I/flutter (24260): #182 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:670:20) I/flutter (24260): #183 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter (24260): #184 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter (24260): #185 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter (24260): #186 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) I/flutter (24260): #188 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) I/flutter (24260): #189 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) I/flutter (24260): #190 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) I/flutter (24260): (elided 3 frames from class _AssertionError and package dart:async) I/flutter (24260): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter (24260): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4077 pos 14: '_dependents.isEmpty': is not true. I/flutter (24260): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 2271 pos 16: '!_dirtyElements[index]._active || _dirtyElements[index]._debugIsInScope(context)': is not true. </code></pre></div> <p dir="auto">My <code class="notranslate">flutter doctor</code>output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel master, v0.10.1-pre.11, on Mac OS X 10.14 18A391, locale de-DE) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.0) [✓] Android Studio (version 3.2) [✓] Connected device (1 available)"><pre class="notranslate"><code class="notranslate">Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel master, v0.10.1-pre.11, on Mac OS X 10.14 18A391, locale de-DE) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.0) [✓] Android Studio (version 3.2) [✓] Connected device (1 available) </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">Hi,</p> <p dir="auto">in the bootstrap.css</p> <p dir="auto">line 790 - 799 is the same as line 800 - 809</p> <p dir="auto">and</p> <p dir="auto">line 815 - 824 is the same as line 825 - 834</p>
<p dir="auto">show on bootstrap.css</p> <p dir="auto"><a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L581">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L581</a><br> <a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L723">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L723</a><br> <a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L743">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L743</a><br> <a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2023">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2023</a><br> <a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2433">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2433</a><br> <a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2617">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2617</a><br> <a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2637">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2637</a><br> <a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3032">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3032</a><br> <a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3296">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3296</a><br> <a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3453">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3453</a></p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.10012] Windows Terminal version (if applicable): Version: 0.3.2171.0 Any other software? No"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.10012] Windows Terminal version (if applicable): Version: 0.3.2171.0 Any other software? No </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Create tabs until they get created outside of the visible area of the tab bar</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">After scrolling the created tabs should be visible</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">After scrolling only empty space is visible instead of the tabs<br> See attached screenshot with empty tab bar<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/53991697/62831515-f1032000-bc20-11e9-8545-6a814541c13e.png"><img src="https://user-images.githubusercontent.com/53991697/62831515-f1032000-bc20-11e9-8545-6a814541c13e.png" alt="Empty Tab Bar" style="max-width: 100%;"></a></p>
<p dir="auto">This bug-tracker is monitored by Windows Console development team and other technical types. <strong>We like detail!</strong></p> <p dir="auto">Please use this form and describe your issue, concisely but precisely, with as much detail as possible</p> <ul dir="auto"> <li> <p dir="auto">Your Windows build number: (Type <code class="notranslate">ver</code> at a Windows Command Prompt)<br> <strong>Microsoft Windows [Version 10.0.18898.1000]</strong></p> </li> <li> <p dir="auto">What you're doing and what's happening: (Copy &amp; paste specific commands and their output, or include screen shots)<br> <a href="https://youtu.be/SL61SMN4baI" rel="nofollow">Video demonstration of both issues below</a></p> <ul dir="auto"> <li>A newly created tab doesn't scroll the tab bar to the end - could possibly be a config variable</li> <li>When using tabs in the title bar and creating a new partially hidden tab, the tab gets cut off.</li> </ul> </li> <li> <p dir="auto">What's wrong / what should be happening instead:</p> <ul dir="auto"> <li>The tab should not be cut off.</li> </ul> </li> </ul>
1
<h4 dir="auto">Code Sample</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import pandas as pd df = pd.DataFrame({'tms': pd.date_range('2017-1-1', '2017-1-31'), 'v': xrange(31)}) df_3 = pd.concat([df, df, df], axis=1) # What I would like to do: df_3.drop_duplicates(axis=1) deduplicated_df = df_3.T.drop_duplicates().T"><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</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'tms'</span>: <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s">'2017-1-1'</span>, <span class="pl-s">'2017-1-31'</span>), <span class="pl-s">'v'</span>: <span class="pl-en">xrange</span>(<span class="pl-c1">31</span>)}) <span class="pl-s1">df_3</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">concat</span>([<span class="pl-s1">df</span>, <span class="pl-s1">df</span>, <span class="pl-s1">df</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c"># What I would like to do: df_3.drop_duplicates(axis=1)</span> <span class="pl-s1">deduplicated_df</span> <span class="pl-c1">=</span> <span class="pl-s1">df_3</span>.<span class="pl-v">T</span>.<span class="pl-en">drop_duplicates</span>().<span class="pl-v">T</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Duplicate columns can be introduced when using the <code class="notranslate">pd.concat(axis=1)</code> method.</p> <p dir="auto">It would be nice (not necessary) to use the <code class="notranslate">drop_duplicates</code> method with an <code class="notranslate">axis</code> parameter set to <code class="notranslate">1</code>.</p> <p dir="auto">This can be implemented right now using: <code class="notranslate">df.T.drop_duplicates().T</code>. Maybe there is an alternative, better way.</p> <p dir="auto">Notice that this isn't a bug but a feature request/feature enhancement of an existing one.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS ------------------ commit: None python: 2.7.10.final.0 python-bits: 64 OS: Darwin OS-release: 16.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: fr_FR.UTF-8 LOCALE: None.None pandas: 0.19.2 nose: 1.3.7 pip: 9.0.1 setuptools: None Cython: None numpy: 1.13.0 scipy: 0.19.1 statsmodels: 0.6.1 xarray: None IPython: 4.0.2 sphinx: None patsy: 0.4.0 dateutil: 2.6.0 pytz: 2017.2 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 2.0.2 openpyxl: None xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: 0.9.2 apiclient: 1.4.2 sqlalchemy: 1.1.11 pymysql: None psycopg2: 2.7.1 (dt dec pq3 ext lo64) jinja2: 2.9.6 boto: 2.47.0 pandas_datareader: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS ------------------ commit: None python: 2.7.10.final.0 python-bits: 64 OS: Darwin OS-release: 16.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: fr_FR.UTF-8 LOCALE: None.None pandas: 0.19.2 nose: 1.3.7 pip: 9.0.1 setuptools: None Cython: None numpy: 1.13.0 scipy: 0.19.1 statsmodels: 0.6.1 xarray: None IPython: 4.0.2 sphinx: None patsy: 0.4.0 dateutil: 2.6.0 pytz: 2017.2 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 2.0.2 openpyxl: None xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: 0.9.2 apiclient: 1.4.2 sqlalchemy: 1.1.11 pymysql: None psycopg2: 2.7.1 (dt dec pq3 ext lo64) jinja2: 2.9.6 boto: 2.47.0 pandas_datareader: None </code></pre></div>
<p dir="auto">Here is sample code that finds duplicate columns in a DataFrame based on their values (useful for cleaning data):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def duplicate_columns(frame): groups = frame.columns.to_series().groupby(frame.dtypes).groups dups = [] for t, v in groups.items(): dcols = frame[v].to_dict(orient=&quot;list&quot;) vs = dcols.values() ks = dcols.keys() lvs = len(vs) for i in range(lvs): for j in range(i+1,lvs): if vs[i] == vs[j]: dups.append(ks[i]) break return dups "><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">duplicate_columns</span>(<span class="pl-s1">frame</span>): <span class="pl-s1">groups</span> <span class="pl-c1">=</span> <span class="pl-s1">frame</span>.<span class="pl-s1">columns</span>.<span class="pl-en">to_series</span>().<span class="pl-en">groupby</span>(<span class="pl-s1">frame</span>.<span class="pl-s1">dtypes</span>).<span class="pl-s1">groups</span> <span class="pl-s1">dups</span> <span class="pl-c1">=</span> [] <span class="pl-k">for</span> <span class="pl-s1">t</span>, <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">groups</span>.<span class="pl-en">items</span>(): <span class="pl-s1">dcols</span> <span class="pl-c1">=</span> <span class="pl-s1">frame</span>[<span class="pl-s1">v</span>].<span class="pl-en">to_dict</span>(<span class="pl-s1">orient</span><span class="pl-c1">=</span><span class="pl-s">"list"</span>) <span class="pl-s1">vs</span> <span class="pl-c1">=</span> <span class="pl-s1">dcols</span>.<span class="pl-en">values</span>() <span class="pl-s1">ks</span> <span class="pl-c1">=</span> <span class="pl-s1">dcols</span>.<span class="pl-en">keys</span>() <span class="pl-s1">lvs</span> <span class="pl-c1">=</span> <span class="pl-en">len</span>(<span class="pl-s1">vs</span>) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">lvs</span>): <span class="pl-k">for</span> <span class="pl-s1">j</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">i</span><span class="pl-c1">+</span><span class="pl-c1">1</span>,<span class="pl-s1">lvs</span>): <span class="pl-k">if</span> <span class="pl-s1">vs</span>[<span class="pl-s1">i</span>] <span class="pl-c1">==</span> <span class="pl-s1">vs</span>[<span class="pl-s1">j</span>]: <span class="pl-s1">dups</span>.<span class="pl-en">append</span>(<span class="pl-s1">ks</span>[<span class="pl-s1">i</span>]) <span class="pl-k">break</span> <span class="pl-k">return</span> <span class="pl-s1">dups</span> </pre></div> <p dir="auto">I've seen others suggest something like <code class="notranslate">df.T.drop_duplicates().T</code>. However, transposing is a bad idea when working with large DataFrames.</p> <p dir="auto">I would add a pull request, but I'm not sure I even know what that means.</p>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43702120/108302906-eab51300-71ca-11eb-82b7-ac5236f1c00a.png"><img src="https://user-images.githubusercontent.com/43702120/108302906-eab51300-71ca-11eb-82b7-ac5236f1c00a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">After following doc from below link setup email config<br> <a href="https://superset.apache.org/docs/installation/email-reports" rel="nofollow">https://superset.apache.org/docs/installation/email-reports</a></p> <p dir="auto">ENABLE_ALERTS = True<br> ENABLE_ALERTS = True</p> <p dir="auto">I'm using superset 1.0.0 Jan 21 Release</p> <p dir="auto">email schedule working fine<br> Add button is gray couldn't able add any alerts or reports</p> <p dir="auto">please help</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43702120/108200899-1c839680-7145-11eb-9841-96015ba52d24.png"><img src="https://user-images.githubusercontent.com/43702120/108200899-1c839680-7145-11eb-9841-96015ba52d24.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">After following doc from below link setup email config<br> <a href="https://superset.apache.org/docs/installation/email-reports" rel="nofollow">https://superset.apache.org/docs/installation/email-reports</a></p> <p dir="auto">ENABLE_ALERTS = True<br> ENABLE_ALERTS = True</p> <p dir="auto">email schedule working fine<br> Add button is gray couldn't able add any alerts or reports</p> <p dir="auto">i'm using superset 1.0.0 Jan 21st Release<br> firefox-geckodriver = 0.29</p> <p dir="auto">OS: Ubuntu 20.04 LTS Linux Sub System</p> <p dir="auto">please help</p>
1
<p dir="auto">by <strong>tyapca7</strong>:</p> <pre class="notranslate">What steps will reproduce the problem? Install gomatrix.googlecode.com/hg/matrix Install go-fn.googlecode.com/hg/fn Get the branch 'tyapca7' from <a href="https://code.google.com/p/gostat" rel="nofollow">https://code.google.com/p/gostat</a> cd gostat/stat gomake install cd bayes gomake What is the expected output? gopack grc _obj/gostat.googlecode.com/hg/stat.a _go_.8 What do you see instead? poisson.go:60: internal compiler error: unknown type make: *** [_go_.8] Error 1 Which compiler are you using (5g, 6g, 8g, gccgo)? 8g Which operating system are you using? linux-386, kernel 2.6.35-22-generic Which revision are you using? (hg identify) 776b13062a2b (tyapca7) tip</pre>
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">What does 'go version' print? go version go1.2.2 darwin/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Compare two byte slices with ConstantTimeCompare(), where the second slice is longer and the first slice is a prefix of the second. <a href="http://play.golang.org/p/XH0gRhdDTu" rel="nofollow">http://play.golang.org/p/XH0gRhdDTu</a> What happened? The function compares slices only up to the length of the first slice and thus gives a false-positive. What should have happened instead? I understand that this is not the way this function is supposed to be used. However, the behavior on this incorrect usage varies based on the order of the arguments. I think that panicking (due to out-of-range access), as the function does when the *first* slice is longer, is a much better solution. Panic clearly indicates a mistake on the programmer's part, whereas passing silently can go unnoticed for a long time and even be exploited. It's a simple fix to do, I think: instead of iterating up to len(x), iterate up to max(len(x), len(y)).</pre>
0