text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 18362.267 Windows Terminal version: 0.3.2142.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 18362.267 Windows Terminal version: 0.3.2142.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open a directory in explorer.exe</li> <li>Type 'wt' in the search bar to launch the terminal</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The terminal starting directory should be the same as the directory in explorer.exe.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The terminal starting directory always use the <code class="notranslate">startingDirectory</code> value in the settings instead of the current directory.</p>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">The Find dialog in conhost does not persist its content so once the modal dialog is dismissed, bringing the dialog back up again results in an empty textbox</p> <p dir="auto">The feature request is to remember the last used string</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
0
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Python 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.__version__ '1.17.0' &gt;&gt;&gt; np.lexsort(np.empty((0, 2), dtype=int).T) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;&lt;__array_function__ internals&gt;&quot;, line 6, in lexsort MemoryError &gt;&gt;&gt; "><pre class="notranslate"><span class="pl-v">Python</span> <span class="pl-c1">3.7</span><span class="pl-c1">.6</span> (<span class="pl-s1">default</span>, <span class="pl-v">Jan</span> <span class="pl-c1">30</span> <span class="pl-c1">2020</span>, <span class="pl-c1">09</span>:<span class="pl-c1">44</span>:<span class="pl-c1">41</span>) [<span class="pl-v">GCC</span> <span class="pl-c1">9.2</span><span class="pl-c1">.1</span> <span class="pl-c1">20190827</span> (<span class="pl-v">Red</span> <span class="pl-v">Hat</span> <span class="pl-c1">9.2</span><span class="pl-c1">.1</span><span class="pl-c1">-</span><span class="pl-c1">1</span>)] <span class="pl-s1">on</span> <span class="pl-s1">linux</span> <span class="pl-v">Type</span> <span class="pl-s">"help"</span>, <span class="pl-s">"copyright"</span>, <span class="pl-s">"credits"</span> <span class="pl-c1">or</span> <span class="pl-s">"license"</span> <span class="pl-k">for</span> <span class="pl-s1">more</span> <span class="pl-s1">information</span>. <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-s1">__version__</span> '<span class="pl-c1">1.17</span>.<span class="pl-c1">0</span>' <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-en">lexsort</span>(<span class="pl-s1">np</span>.<span class="pl-en">empty</span>((<span class="pl-c1">0</span>, <span class="pl-c1">2</span>), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">int</span>).<span class="pl-v">T</span>) <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"&lt;stdin&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-c1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-v">File</span> <span class="pl-s">"&lt;__array_function__ internals&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">6</span>, <span class="pl-c1">in</span> <span class="pl-s1">lexsort</span> <span class="pl-v">MemoryError</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> </pre></div>
<p dir="auto">Numpy 1.17.0 raises MemoryError when using <code class="notranslate">lexsort</code> on an empty array with non-standard <code class="notranslate">strides</code>. If <code class="notranslate">strides</code> is the natural one, or if there is &gt;= 1 element in the input, then it works as expected.</p> <h3 dir="auto">Reproducing code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np xs = np.array([], dtype='i8') assert xs.strides == (8,) assert np.lexsort((xs,)).shape[0] == 0 # Works ys = np.array([0], dtype='i8') ys.strides = (16,) assert np.lexsort((ys,)).shape[0] == 1 # Works xs.strides = (16,) assert np.lexsort((xs,)).shape[0] == 0 # MemoryError"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">xs</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'i8'</span>) <span class="pl-k">assert</span> <span class="pl-s1">xs</span>.<span class="pl-s1">strides</span> <span class="pl-c1">==</span> (<span class="pl-c1">8</span>,) <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">lexsort</span>((<span class="pl-s1">xs</span>,)).<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>] <span class="pl-c1">==</span> <span class="pl-c1">0</span> <span class="pl-c"># Works</span> <span class="pl-s1">ys</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'i8'</span>) <span class="pl-s1">ys</span>.<span class="pl-s1">strides</span> <span class="pl-c1">=</span> (<span class="pl-c1">16</span>,) <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">lexsort</span>((<span class="pl-s1">ys</span>,)).<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>] <span class="pl-c1">==</span> <span class="pl-c1">1</span> <span class="pl-c"># Works</span> <span class="pl-s1">xs</span>.<span class="pl-s1">strides</span> <span class="pl-c1">=</span> (<span class="pl-c1">16</span>,) <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">lexsort</span>((<span class="pl-s1">xs</span>,)).<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>] <span class="pl-c1">==</span> <span class="pl-c1">0</span> <span class="pl-c"># MemoryError</span></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">1.17.0 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)]</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Markers appear smeared and not clear</strong></p> <ul dir="auto"> <li>When I plot markers with pyplot they show compression artifacts even when I save them as PNG.</li> </ul> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt x = [1, 2, 3] plt.errorbar(x, x, xerr=.05, yerr=.02, fmt='+') plt.savefig('test.png')"><pre class="notranslate"><span class="pl-c">#!/usr/bin/env python </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-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">x</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">plt</span>.<span class="pl-en">errorbar</span>(<span class="pl-s1">x</span>, <span class="pl-s1">x</span>, <span class="pl-s1">xerr</span><span class="pl-c1">=</span><span class="pl-c1">.05</span>, <span class="pl-s1">yerr</span><span class="pl-c1">=</span><span class="pl-c1">.02</span>, <span class="pl-s1">fmt</span><span class="pl-c1">=</span><span class="pl-s">'+'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test.png'</span>)</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">See image attached.</p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">I want markers without smearing or interpolation as clear as the resolution permits.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Matplotlib version 2.0.0, Python 2.7.13 and Debian 9.</li> <li>Matplotlib installed with <code class="notranslate">pip</code></li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1030293/23870396/909af9d2-0826-11e7-92e9-3c583b1d692d.gif"><img src="https://cloud.githubusercontent.com/assets/1030293/23870396/909af9d2-0826-11e7-92e9-3c583b1d692d.gif" alt="test" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Using <code class="notranslate">errorbar</code> does not properly center the errorbar on the marker. See the following example and output. The issue persists in the legend as well. The errorbar is a few pixels off center and changing the <code class="notranslate">linewidth</code> does not solve the issue. <code class="notranslate">snap</code> kwarg has no effect either. I have reproduced this using matplotlib 1.2.1 and 1.3.1 on Mac OSX 10.8.4.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt plt.errorbar([1],[1],[0.1],fmt='k^',capsize=5,capthick=2,ms=9,markerfacecolor='none',mew=2) plt.show()"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt plt.errorbar([1],[1],[0.1],fmt='k^',capsize=5,capthick=2,ms=9,markerfacecolor='none',mew=2) plt.show() </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8526633/4016780/7d8508ca-2a38-11e4-9d51-c406f5804024.png"><img src="https://cloud.githubusercontent.com/assets/8526633/4016780/7d8508ca-2a38-11e4-9d51-c406f5804024.png" alt="errorbar" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8526633/4016782/8118c4a4-2a38-11e4-8904-12e87f85e013.png"><img src="https://cloud.githubusercontent.com/assets/8526633/4016782/8118c4a4-2a38-11e4-8904-12e87f85e013.png" alt="legend" style="max-width: 100%;"></a></p>
1
<p dir="auto">Noticed by accident. After running go get for an invalid directory, the first <code class="notranslate">go get -u</code> fails, and the second succeeds. The <code class="notranslate">internal error</code> lines at the end are <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135222904" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/14444" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/14444/hovercard" href="https://github.com/golang/go/issues/14444">#14444</a>. This issue is about the fact that the two runs of <code class="notranslate">go get -u .../</code> fail in different ways.</p> <p dir="auto">I haven't looked into it.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; mkdir /tmp/gopath2 &gt; GOPATH=/tmp/gopath2 go get golang.org/x/tools/cmd/imports # does not exist package golang.org/x/tools/cmd/imports: cannot find package &quot;golang.org/x/tools/cmd/imports&quot; in any of: /home/iant/go/src/golang.org/x/tools/cmd/imports (from $GOROOT) /tmp/gopath2/src/golang.org/x/tools/cmd/imports (from $GOPATH) &gt; GOPATH=/tmp/gopath2 go get -u .../ /tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:20:2: cannot find package &quot;golang.org/x/text/encoding&quot; in any of: /home/iant/go/src/golang.org/x/text/encoding (from $GOROOT) /tmp/gopath2/src/golang.org/x/text/encoding (from $GOPATH) /tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:21:2: cannot find package &quot;golang.org/x/text/encoding/charmap&quot; in any of: /home/iant/go/src/golang.org/x/text/encoding/charmap (from $GOROOT) /tmp/gopath2/src/golang.org/x/text/encoding/charmap (from $GOPATH) /tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:22:2: cannot find package &quot;golang.org/x/text/encoding/htmlindex&quot; in any of: /home/iant/go/src/golang.org/x/text/encoding/htmlindex (from $GOROOT) /tmp/gopath2/src/golang.org/x/text/encoding/htmlindex (from $GOPATH) /tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:23:2: cannot find package &quot;golang.org/x/text/transform&quot; in any of: /home/iant/go/src/golang.org/x/text/transform (from $GOROOT) /tmp/gopath2/src/golang.org/x/text/transform (from $GOPATH) /tmp/gopath2/src/golang.org/x/net/http2/h2i/h2i.go:38:2: cannot find package &quot;golang.org/x/crypto/ssh/terminal&quot; in any of: /home/iant/go/src/golang.org/x/crypto/ssh/terminal (from $GOROOT) /tmp/gopath2/src/golang.org/x/crypto/ssh/terminal (from $GOPATH) &gt; GOPATH=/tmp/gopath2 go get -u .../ internal error: duplicate loads of unsafe internal error: duplicate loads of runtime/internal/sys internal error: duplicate loads of runtime/internal/atomic many other internal errors"><pre class="notranslate"><code class="notranslate">&gt; mkdir /tmp/gopath2 &gt; GOPATH=/tmp/gopath2 go get golang.org/x/tools/cmd/imports # does not exist package golang.org/x/tools/cmd/imports: cannot find package "golang.org/x/tools/cmd/imports" in any of: /home/iant/go/src/golang.org/x/tools/cmd/imports (from $GOROOT) /tmp/gopath2/src/golang.org/x/tools/cmd/imports (from $GOPATH) &gt; GOPATH=/tmp/gopath2 go get -u .../ /tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:20:2: cannot find package "golang.org/x/text/encoding" in any of: /home/iant/go/src/golang.org/x/text/encoding (from $GOROOT) /tmp/gopath2/src/golang.org/x/text/encoding (from $GOPATH) /tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:21:2: cannot find package "golang.org/x/text/encoding/charmap" in any of: /home/iant/go/src/golang.org/x/text/encoding/charmap (from $GOROOT) /tmp/gopath2/src/golang.org/x/text/encoding/charmap (from $GOPATH) /tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:22:2: cannot find package "golang.org/x/text/encoding/htmlindex" in any of: /home/iant/go/src/golang.org/x/text/encoding/htmlindex (from $GOROOT) /tmp/gopath2/src/golang.org/x/text/encoding/htmlindex (from $GOPATH) /tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:23:2: cannot find package "golang.org/x/text/transform" in any of: /home/iant/go/src/golang.org/x/text/transform (from $GOROOT) /tmp/gopath2/src/golang.org/x/text/transform (from $GOPATH) /tmp/gopath2/src/golang.org/x/net/http2/h2i/h2i.go:38:2: cannot find package "golang.org/x/crypto/ssh/terminal" in any of: /home/iant/go/src/golang.org/x/crypto/ssh/terminal (from $GOROOT) /tmp/gopath2/src/golang.org/x/crypto/ssh/terminal (from $GOPATH) &gt; GOPATH=/tmp/gopath2 go get -u .../ internal error: duplicate loads of unsafe internal error: duplicate loads of runtime/internal/sys internal error: duplicate loads of runtime/internal/atomic many other internal errors </code></pre></div>
<p dir="auto">From:<br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/golang/go/blob/ced0646fe5ed9abb3b51fa99748b090f1dfe90e8/src/net/dnsclient.go#L43">go/src/net/dnsclient.go</a> </p> <p class="mb-0 color-fg-muted"> Line 43 in <a data-pjax="true" class="commit-tease-sha" href="/golang/go/commit/ced0646fe5ed9abb3b51fa99748b090f1dfe90e8">ced0646</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="L43" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="43"></td> <td id="LC43" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">dns</span>.<span class="pl-c1">rcode</span> <span class="pl-c1">==</span> <span class="pl-s1">dnsRcodeNameError</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">dns</span>.<span class="pl-c1">recursion_available</span> { </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">it looks like any NXDOMAIN reply where the server doesn't allow recursive queries is treated as "server misbehaving". I would expect this to be treated like any other case where the name doesn't exist and get a "no such host" error instead.</p> <p dir="auto">Any reason why we have the "&amp;&amp; dns.recursion_available" part of the condition?</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=costin" rel="nofollow">Costin Leau</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8334?redirect=false" rel="nofollow">SPR-8334</a></strong> and commented</p> <p dir="auto">SimpleCacheManager and MapCacheManager are identical and one of them should be eliminated.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 M1</p> <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/700a02b094921d223e1bbc3bcccf8a1f9bc4febe/hovercard" href="https://github.com/spring-projects/spring-framework/commit/700a02b094921d223e1bbc3bcccf8a1f9bc4febe"><tt>700a02b</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/cc519e7c6d6a74e1549a08f57a0929de02bad0a9/hovercard" href="https://github.com/spring-projects/spring-framework/commit/cc519e7c6d6a74e1549a08f57a0929de02bad0a9"><tt>cc519e7</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=david_syer" rel="nofollow">Dave Syer</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3156?redirect=false" rel="nofollow">SPR-3156</a></strong> and commented</p> <p dir="auto">Docos (or maybe assertion in code) to help with using DefaultMessageListenerContainer with non-XA transaction manager. It is actually quite plausible (and common) to use a DefaultMessageListenerContainer with a DataSourceTransactionManager (not full XA). Then database work done in the listener can rollback, but will guarantee a message rollback <strong>only</strong> if transactedSession=true. If the flag is true the worst that can happen is a duplicate message if the database commits, and the commit of the JMS session fails (power failure etc.). But the default is false, so you can get duplicate messages whatever happens with the datasource. It would help if the docos mentioned this scenario, or provided some protection (e.g. if the transaction manager is not JtaTranasactionManager, then make sure transactedSession=true).</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.2</p>
0
<p dir="auto">I was looking at the templating helper classes in FrameworkBundle and SecurityBundle. There appears to be a fair about of code duplication between these classes and their Twig extension counterparts.</p> <p dir="auto">I realize helpers extend a base class, as do Twig extensions, so separate classes must continue to exist; however, we could use object composition to have the Twig extensions expose the helper's methods to Twig. In some cases, this might require an intermediary wrapping method in the helper.</p>
<p dir="auto">(Copied from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9584876" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/6522" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/6522/hovercard" href="https://github.com/symfony/symfony/pull/6522">#6522</a>)</p> <p dir="auto">With the current implementation, the attributes passed in the <code class="notranslate">attr</code> option are rendered both in the <code class="notranslate">&lt;form&gt;</code> tag (new) and in the <code class="notranslate">&lt;div&gt;</code>/<code class="notranslate">&lt;table&gt;</code> tag of the form (for BC).</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$form = $this-&gt;createForm('my_form', $formData, array( 'attr' =&gt; array( 'id' =&gt; 'foo', 'class' =&gt; 'bar', ), ));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>form</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">createForm</span>(<span class="pl-s">'my_form'</span>, <span class="pl-s1"><span class="pl-c1">$</span>formData</span>, <span class="pl-en">array</span>( <span class="pl-s">'attr'</span> =&gt; <span class="pl-en">array</span>( <span class="pl-s">'id'</span> =&gt; <span class="pl-s">'foo'</span>, <span class="pl-s">'class'</span> =&gt; <span class="pl-s">'bar'</span>, ), ));</pre></div> <p dir="auto">Template:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{{ form(form) }} -&gt; &lt;form id=&quot;foo&quot; class=&quot;bar&quot;&gt; &lt;div id=&quot;foo&quot; class=&quot;bar&quot;&gt; &lt;!-- rows --&gt; &lt;/div&gt; &lt;/form&gt;"><pre class="notranslate">{{ form(form) }} -<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">id</span>="<span class="pl-s">foo</span>" <span class="pl-c1">class</span>="<span class="pl-s">bar</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">foo</span>" <span class="pl-c1">class</span>="<span class="pl-s">bar</span>"<span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- rows --&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Solutions that come to mind:</p> <p dir="auto">(a) Move the rendering of the attributes from the <code class="notranslate">&lt;div&gt;</code>/<code class="notranslate">&lt;table&gt;</code> tag to the <code class="notranslate">&lt;form&gt;</code> tag <strong>for the root form</strong>. This breaks BC because the <code class="notranslate">form_widget()</code> call for the root form does not output the attributes anymore then. Nested forms are not affected.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;form id=&quot;foo&quot; class=&quot;bar&quot;&gt; &lt;div&gt;&lt;!-- no attrs! --&gt; &lt;!-- rows --&gt; &lt;/div&gt; &lt;/form&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">id</span>="<span class="pl-s">foo</span>" <span class="pl-c1">class</span>="<span class="pl-s">bar</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span><span class="pl-c">&lt;!-- no attrs! --&gt;</span> <span class="pl-c">&lt;!-- rows --&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">(b) Don't render a <code class="notranslate">&lt;div&gt;</code> tag <strong>for the root form</strong> and do as in (a) for the table layout. This obviously also breaks BC. Nested forms are not affected.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;form id=&quot;foo&quot; class=&quot;bar&quot;&gt; &lt;!-- rows --&gt; &lt;/form&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">id</span>="<span class="pl-s">foo</span>" <span class="pl-c1">class</span>="<span class="pl-s">bar</span>"<span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- rows --&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">(c) Don't render any attributes in the <code class="notranslate">&lt;form&gt;</code> tag. Maintains full BC.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;form&gt; &lt;div id=&quot;foo&quot; class=&quot;bar&quot;&gt; &lt;!-- rows --&gt; &lt;/div&gt; &lt;/form&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">foo</span>" <span class="pl-c1">class</span>="<span class="pl-s">bar</span>"<span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- rows --&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Opinions?</p> <p dir="auto">While (c) is the best solution from a BC point of view, I think it is rather unintuitive. As a newcomer, if I put a "class" attribute on a form, I would expect it to be on the outermost <code class="notranslate">&lt;form&gt;</code> tag, not on some <code class="notranslate">&lt;div&gt;</code> within.</p> <p dir="auto">(a) and (b), on the other hand, break BC for those people that use <code class="notranslate">form_widget()</code> to render the complete form. I don't know how many people would be affected by this, <a href="http://twtpoll.com/p3y7vb" rel="nofollow">this poll</a> tries to gather some data about that. IMO both (a) and (b) are more intuitive and future-proof.</p> <p dir="auto">My favorite is (b) because it removes a useless <code class="notranslate">&lt;div&gt;</code> from the default markup.</p>
0
<p dir="auto">I'm not sure if this is a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="629758049" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/6061" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/6061/hovercard" href="https://github.com/denoland/deno/issues/6061">#6061</a>, But here's the problem.<br> I'm on windows 10 using <code class="notranslate">deno 1.12.2 (release, x86_64-pc-windows-msvc)</code>, <code class="notranslate">v8 9.2.230.14</code>, <code class="notranslate">typescript 4.3.5</code>, and I have this file <code class="notranslate">DenoStd.ts</code> :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import * as Http from 'https://deno.land/[email protected]/http/mod.ts' export { Http };"><pre class="notranslate"><code class="notranslate">import * as Http from 'https://deno.land/[email protected]/http/mod.ts' export { Http }; </code></pre></div> <p dir="auto">I'm behind a Socks5 proxy running on my localhost <code class="notranslate">127.0.0.1:1080</code> and I've tried setting related environment variables to these values :</p> <ol dir="auto"> <li><code class="notranslate">http://127.0.0.1:1080/</code></li> <li><code class="notranslate">https://127.0.0.1:1080/</code></li> <li><code class="notranslate">socks5://127.0.0.1:1080/</code><br> But none seem to work, and I get the following error when I reach the import line :</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: error sending request for url (https://deno.land/[email protected]/http/mod.ts): error trying to connect: tls handshake eof at file:///Bla/Bla/Bla/DenoStd.ts:1:0"><pre class="notranslate"><code class="notranslate">error: error sending request for url (https://deno.land/[email protected]/http/mod.ts): error trying to connect: tls handshake eof at file:///Bla/Bla/Bla/DenoStd.ts:1:0 </code></pre></div> <p dir="auto">But if I set my proxy using Windows' proxy settings GUI (instead of environment variables) it works with no problem.</p> <p dir="auto">Expected behavior is that environment variables also work, so maybe there's a bug there ? Or is it the case that Socks5 proxies are not supported somehow ??</p>
<p dir="auto">Referring to: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="627803473" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/5979" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/5979/hovercard" href="https://github.com/denoland/deno/issues/5979">#5979</a></p> <p dir="auto">I'm trying to use React exported from <a href="https://esm.sh/" rel="nofollow">esm.sh</a> bundler service like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// myproject/src/deps/react.ts export { default as React } from &quot;https://esm.sh/[react,react-dom]/react?dev&amp;no-check&quot;; export { default as ReactDOM } from &quot;https://esm.sh/[react,react-dom]/react-dom?dev&amp;no-check&quot;;"><pre class="notranslate"><span class="pl-c">// myproject/src/deps/react.ts</span> <span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-smi">React</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://esm.sh/[react,react-dom]/react?dev&amp;no-check"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-smi">ReactDOM</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://esm.sh/[react,react-dom]/react-dom?dev&amp;no-check"</span><span class="pl-kos">;</span></pre></div> <p dir="auto">But this project should be depending on my other library, <a href="https://github.com/quaos/deno-html-react-transformer">html-react-transformer</a>, which in itself refers to the same React:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// /deno-html-react-transformer/src/deps/react.ts export { default as React } from &quot;https://esm.sh/[react,react-dom]/react?dev&amp;no-check&quot;;"><pre class="notranslate"><span class="pl-c">// /deno-html-react-transformer/src/deps/react.ts</span> <span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-smi">React</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://esm.sh/[react,react-dom]/react?dev&amp;no-check"</span><span class="pl-kos">;</span></pre></div> <p dir="auto">However, when using <code class="notranslate">deno bundle</code> the resulting JS has 2 duplicate React imports, and <code class="notranslate">Invalid hook call</code> error ensues.</p> <p dir="auto">I'm trying something like this, which do not work:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// /deno-html-react-transformer/src/transformer.ts import { React as BundledReact } from &quot;./deps/react.ts&quot;; // HACK: Workaround for React typing interface ReactInstanceProps { createElement(component: any, props: any, ...children: any): BundledReact.ReactNode; useState&lt;T&gt;(st: T): any; useEffect(callback: ReactUseEffectCallbackFunc, deps: any[]): any; } interface ReactUseEffectCallbackFunc { (): any; } export class Transformer { // ... public getComponent(React: ReactInstanceProps = BundledReact): TransformerComponent { return ({ source }: TransformerComponentProps) =&gt; { let [transformerReady, setTransformerReady] = React.useState&lt;boolean&gt;(this.initState); // ... return (transformerReady) ? this.transform(source, React) : null } } }"><pre class="notranslate"><span class="pl-c">// /deno-html-react-transformer/src/transformer.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">React</span> <span class="pl-k">as</span> <span class="pl-smi">BundledReact</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./deps/react.ts"</span><span class="pl-kos">;</span> <span class="pl-c">// HACK: Workaround for React typing</span> <span class="pl-k">interface</span> <span class="pl-smi">ReactInstanceProps</span> <span class="pl-kos">{</span> <span class="pl-c1">createElement</span><span class="pl-kos">(</span><span class="pl-s1">component</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">props</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> ...<span class="pl-s1">children</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-smi">BundledReact</span><span class="pl-kos">.</span><span class="pl-smi">ReactNode</span><span class="pl-kos">;</span> <span class="pl-c1">useState</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">st</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-c1">useEffect</span><span class="pl-kos">(</span><span class="pl-s1">callback</span>: <span class="pl-smi">ReactUseEffectCallbackFunc</span><span class="pl-kos">,</span> <span class="pl-s1">deps</span>: <span class="pl-smi">any</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">ReactUseEffectCallbackFunc</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Transformer</span> <span class="pl-kos">{</span> <span class="pl-c">// ...</span> <span class="pl-k">public</span> <span class="pl-en">getComponent</span><span class="pl-kos">(</span><span class="pl-smi">React</span>: <span class="pl-smi">ReactInstanceProps</span> <span class="pl-c1">=</span> <span class="pl-smi">BundledReact</span><span class="pl-kos">)</span>: <span class="pl-smi">TransformerComponent</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> source <span class="pl-kos">}</span>: <span class="pl-smi">TransformerComponentProps</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-kos">[</span><span class="pl-s1">transformerReady</span><span class="pl-kos">,</span> <span class="pl-s1">setTransformerReady</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-smi">React</span><span class="pl-kos">.</span><span class="pl-en">useState</span><span class="pl-kos">&lt;</span><span class="pl-smi">boolean</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">initState</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-kos">(</span><span class="pl-s1">transformerReady</span><span class="pl-kos">)</span> ? <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">transform</span><span class="pl-kos">(</span><span class="pl-s1">source</span><span class="pl-kos">,</span> <span class="pl-smi">React</span><span class="pl-kos">)</span> : <span class="pl-c1">null</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Is there any pending fix or workaround?<br> Thanks!</p>
0
<p dir="auto">While doing tests sometimes I felt some test are too easy and others quite hard to solve. For some of them I could imagine, they are better split up into more tests to need better explanation. The goal might be to develop a more <em>even</em> learning curve or possibly add better links to external resources.</p> <p dir="auto">How about adding a small optional survey after each test like:</p> <p dir="auto"><strong>Was it easy or difficult to solve this test?</strong></p> <ul dir="auto"> <li>Too Easy</li> <li>Ok</li> <li>Too Difficult</li> </ul> <p dir="auto">This way you could determine which exercises may need more explanation or might be <em>boring</em>?</p>
<p dir="auto">We are planning to delete all the inactive Gitter rooms. Before we do, we need to make a full dump of all activity in those Gitter rooms, which we can then release as an open dataset.</p>
0
<p dir="auto">I need to check in more detail, but my first impression is that supporting a <code class="notranslate">precomputed</code> metric doesn't involve too much modification to the existing code.</p> <p dir="auto">Is there a reason we should not support it?</p>
<p dir="auto">OPTICS relies on the nearest neighbor graph, and should be possible to perform with precomputed distances (maybe it does already, but I don't think it's tested), and with sparse feature spaces. It should perhaps also be possible to perform with sparse precomputed neighborhoods (e.g. as returned from <code class="notranslate">radius_neighbors_graph(radius=max_bound)</code>) but I've not double checked this.</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">vault</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="devel"><pre class="notranslate"><code class="notranslate">devel </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <h5 dir="auto">SUMMARY</h5> <p dir="auto">A single vault encrypted value does not get decrypted in a jinja2 pipeline.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Don't worry the below vault data is just useless strings.</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: localhost gather_facts: false vars: the_password: !vault | $ANSIBLE_VAULT;1.1;AES256 66653436353263336535316333313533666563386463623562396234313064643430323066626538 3234393066313964393861613431313832306439383633340a653361636537303033313137613933 33653333633139353736636332333237613761636430356665383839663164363739323337643333 6466313434306462370a663539346162623836626165343830666536646631616165636438646639 6134 tasks: - command: 'echo {{ the_password|string|type_debug }}'"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">false</span> <span class="pl-ent">vars</span>: <span class="pl-ent">the_password</span>: <span class="pl-k">!vault</span> <span class="pl-s">|</span> <span class="pl-s"> $ANSIBLE_VAULT;1.1;AES256</span> <span class="pl-s"> 66653436353263336535316333313533666563386463623562396234313064643430323066626538</span> <span class="pl-s"> 3234393066313964393861613431313832306439383633340a653361636537303033313137613933</span> <span class="pl-s"> 33653333633139353736636332333237613761636430356665383839663164363739323337643333</span> <span class="pl-s"> 6466313434306462370a663539346162623836626165343830666536646631616165636438646639</span> <span class="pl-s"> 6134</span> <span class="pl-s"></span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">command</span>: <span class="pl-s"><span class="pl-pds">'</span>echo {{ the_password|string|type_debug }}<span class="pl-pds">'</span></span></pre></div> <p dir="auto">This outputs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;stdout&quot;: &quot;AnsibleVaultEncryptedUnicode&quot;"><pre class="notranslate"><code class="notranslate">"stdout": "AnsibleVaultEncryptedUnicode" </code></pre></div> <p dir="auto">This is a little bit of a contrived example, but what it shows, is that if you want to do something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- command: &quot;some_command {{ the_password|quote }}&quot;"><pre class="notranslate"><code class="notranslate">- command: "some_command {{ the_password|quote }}" </code></pre></div> <p dir="auto">You will end up with the <code class="notranslate">$ANSIBLE_VAULT;...</code> string instead of the decrypted value</p> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"> </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">script module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version ansible 2.3.0 (devel 7018aa3316) last updated 2017/03/03 14:22:37 (GMT -500) config file = configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">$ ansible --version ansible 2.3.0 (devel 7018aa3316) last updated 2017/03/03 14:22:37 (GMT -500) config file = configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">ansible.cfg from git pull</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Management host: macOS 10.12.3<br> Managemed host: Windows Server 2008 R2 Standard</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">The script module reports managed hosts as UNREACHABLE</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: install chocolatey script: 'InstallChocolatey.ps1' register: choco failed_when: choco.rc != 0 changed_when: False"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">install chocolatey</span> <span class="pl-ent">script</span>: <span class="pl-s"><span class="pl-pds">'</span>InstallChocolatey.ps1<span class="pl-pds">'</span></span> <span class="pl-ent">register</span>: <span class="pl-s">choco</span> <span class="pl-ent">failed_when</span>: <span class="pl-s">choco.rc != 0</span> <span class="pl-ent">changed_when</span>: <span class="pl-c1">False</span></pre></div> <div class="highlight highlight-source-powershell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="try { if ($PSVersionTable.psversion.Major -ge 3) { Write-Verbose &quot;Powershell 3+&quot; $env:chocolateyUseWindowsCompression = 'false' iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex exit $LASTEXITCODE } else { Write-Verbose &quot;Powershell 3 or lower&quot; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) exit $LASTEXITCODE } } catch { $ErrorMessage = $_.Exception.Message $FailedItem = $_.Exception.ItemName Write-Host &quot;Error: $ErrorMessage&quot; exit -1 }"><pre class="notranslate"><span class="pl-k">try</span> { <span class="pl-k">if</span> (<span class="pl-c1">$PSVersionTable<span class="pl-smi">.psversion.Major</span></span> <span class="pl-k">-ge</span> <span class="pl-c1">3</span>) { <span class="pl-c1">Write-Verbose</span> <span class="pl-s"><span class="pl-pds">"</span>Powershell 3+<span class="pl-pds">"</span></span> <span class="pl-smi">$<span class="pl-c1">env:</span>chocolateyUseWindowsCompression</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>false<span class="pl-pds">'</span></span> iwr https:<span class="pl-k">//</span>chocolatey.org<span class="pl-k">/</span>install.ps1 <span class="pl-k">-</span>UseBasicParsing <span class="pl-k">|</span> iex <span class="pl-k">exit</span> <span class="pl-c1">$LASTEXITCODE</span> } <span class="pl-k">else</span> { <span class="pl-c1">Write-Verbose</span> <span class="pl-s"><span class="pl-pds">"</span>Powershell 3 or lower<span class="pl-pds">"</span></span> iex ((<span class="pl-c1">New-Object</span> System.Net.WebClient).DownloadString(<span class="pl-s"><span class="pl-pds">'</span>https://chocolatey.org/install.ps1<span class="pl-pds">'</span></span>)) <span class="pl-k">exit</span> <span class="pl-c1">$LASTEXITCODE</span> } } <span class="pl-k">catch</span> { <span class="pl-smi">$ErrorMessage</span> <span class="pl-k">=</span> <span class="pl-c1">$_<span class="pl-smi">.Exception.Message</span></span> <span class="pl-smi">$FailedItem</span> <span class="pl-k">=</span> <span class="pl-c1">$_<span class="pl-smi">.Exception.ItemName</span></span> <span class="pl-c1">Write-Host</span> <span class="pl-s"><span class="pl-pds">"</span>Error: <span class="pl-smi">$ErrorMessage</span><span class="pl-pds">"</span></span> <span class="pl-k">exit</span> <span class="pl-c1">-1</span> }</pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Latest version of chocolatey would be installed</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Running the powershell script interactively works as expected, failure only occurs when run via the script module.</p> <p dir="auto">The same script tasks functions correctly on Windows7, Windows8, and Windows10.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [win_chocolatey : install chocolatey] ************************************* task path: /Users/tanner/projects/ansible.git/playbooks.git/roles/win_chocolatey/tasks/main.yml:22 &lt;vconsole.igi.com&gt; ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO vconsole.local EXEC (via pipeline wrapper) EXEC (via pipeline wrapper) fatal: [vconsole.local]: UNREACHABLE! =&gt; { &quot;changed&quot;: false, &quot;msg&quot;: &quot;Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in \&quot;/tmp\&quot;. Failed command was: PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UwBlAHQALQBTAHQAcgBpAGMAdABNAG8AZABlACAALQBWAGUAcgBzAGkAbwBuACAATABhAHQAZQBzAHQACgAoAE4AZQB3AC0ASQB0AGUAbQAgAC0AVAB5AHAAZQAgAEQAaQByAGUAYwB0AG8AcgB5ACAALQBQAGEAdABoACAAJABlAG4AdgA6AHQAZQBtAHAAIAAtAE4AYQBtAGUAIAAiAGEAbgBzAGkAYgBsAGUALQB0AG0AcAAtADEANAA4ADgANQA3ADYANwA2ADAALgAxADcALQAxADIAMwA5ADgANQA3ADgANwA0ADkANwA0ADcAMgAiACkALgBGAHUAbABsAE4AYQBtAGUAIAB8ACAAVwByAGkAdABlAC0ASABvAHMAdAAgAC0AUwBlAHAAYQByAGEAdABvAHIAIAAnACcAOwAKAEkAZgAgACgALQBuAG8AdAAgACQAPwApACAAewAgAEkAZgAgACgARwBlAHQALQBWAGEAcgBpAGEAYgBsAGUAIABMAEEAUwBUAEUAWABJAFQAQwBPAEQARQAgAC0ARQByAHIAbwByAEEAYwB0AGkAbwBuACAAUwBpAGwAZQBuAHQAbAB5AEMAbwBuAHQAaQBuAHUAZQApACAAewAgAGUAeABpAHQAIAAkAEwAQQBTAFQARQBYAEkAVABDAE8ARABFACAAfQAgAEUAbABzAGUAIAB7ACAAZQB4AGkAdAAgADEAIAB9ACAAfQA=, exited with result 1: C:\\Users\\Administrator\\AppData\\Local\\Temp\\ansible-tmp-1488576760.17-123985787497472\r\n&quot;, &quot;unreachable&quot;: true }``` Running with ANSIBLE_KEEP_REMOTE_FILES=1 I find the temp directory C:\\Users\\Administrator\\AppData\\Local\\Temp\\ansible-tmp-xxxx-xxxxx but I do not find anything inside the directory. Maybe that's because the script is encoded and passed as the -EncodedCommand, just making note of it here."><pre class="notranslate"><code class="notranslate">TASK [win_chocolatey : install chocolatey] ************************************* task path: /Users/tanner/projects/ansible.git/playbooks.git/roles/win_chocolatey/tasks/main.yml:22 &lt;vconsole.igi.com&gt; ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO vconsole.local EXEC (via pipeline wrapper) EXEC (via pipeline wrapper) fatal: [vconsole.local]: UNREACHABLE! =&gt; { "changed": false, "msg": "Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in \"/tmp\". Failed command was: PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UwBlAHQALQBTAHQAcgBpAGMAdABNAG8AZABlACAALQBWAGUAcgBzAGkAbwBuACAATABhAHQAZQBzAHQACgAoAE4AZQB3AC0ASQB0AGUAbQAgAC0AVAB5AHAAZQAgAEQAaQByAGUAYwB0AG8AcgB5ACAALQBQAGEAdABoACAAJABlAG4AdgA6AHQAZQBtAHAAIAAtAE4AYQBtAGUAIAAiAGEAbgBzAGkAYgBsAGUALQB0AG0AcAAtADEANAA4ADgANQA3ADYANwA2ADAALgAxADcALQAxADIAMwA5ADgANQA3ADgANwA0ADkANwA0ADcAMgAiACkALgBGAHUAbABsAE4AYQBtAGUAIAB8ACAAVwByAGkAdABlAC0ASABvAHMAdAAgAC0AUwBlAHAAYQByAGEAdABvAHIAIAAnACcAOwAKAEkAZgAgACgALQBuAG8AdAAgACQAPwApACAAewAgAEkAZgAgACgARwBlAHQALQBWAGEAcgBpAGEAYgBsAGUAIABMAEEAUwBUAEUAWABJAFQAQwBPAEQARQAgAC0ARQByAHIAbwByAEEAYwB0AGkAbwBuACAAUwBpAGwAZQBuAHQAbAB5AEMAbwBuAHQAaQBuAHUAZQApACAAewAgAGUAeABpAHQAIAAkAEwAQQBTAFQARQBYAEkAVABDAE8ARABFACAAfQAgAEUAbABzAGUAIAB7ACAAZQB4AGkAdAAgADEAIAB9ACAAfQA=, exited with result 1: C:\\Users\\Administrator\\AppData\\Local\\Temp\\ansible-tmp-1488576760.17-123985787497472\r\n", "unreachable": true }``` Running with ANSIBLE_KEEP_REMOTE_FILES=1 I find the temp directory C:\\Users\\Administrator\\AppData\\Local\\Temp\\ansible-tmp-xxxx-xxxxx but I do not find anything inside the directory. Maybe that's because the script is encoded and passed as the -EncodedCommand, just making note of it here. </code></pre></div>
0
<p dir="auto">Hi all,</p> <p dir="auto">just figured out that the following code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pd.DataFrame({'x':None}, index=[0])"><pre class="notranslate"><code class="notranslate">pd.DataFrame({'x':None}, index=[0]) </code></pre></div> <p dir="auto">works in 0.18.1 but not 0.19.0, is that the expected behavior? Thanks!</p> <p dir="auto">Best,<br> Jie</p>
<h4 dir="auto">A small, complete example of the issue</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Your code here import pandas as pd pd.Dataframe(dict(a=None), index= [0])"><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">pd</span>.<span class="pl-v">Dataframe</span>(<span class="pl-en">dict</span>(<span class="pl-s1">a</span><span class="pl-c1">=</span><span class="pl-c1">None</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span> [<span class="pl-c1">0</span>])</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [3]: pd.DataFrame(dict(a=None),index=[0]) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) &lt;ipython-input-3-20b65f605ca3&gt; in &lt;module&gt;() ----&gt; 1 pd.DataFrame(dict(a=None),index=[0]) miniconda2/envs/readout2/lib/python2.7/site-packages/pandas/core/frame.pyc in __init__(self, data, index, columns, dtype, copy) 264 dtype=dtype, copy=copy) 265 elif isinstance(data, dict): --&gt; 266 mgr = self._init_dict(data, index, columns, dtype=dtype) 267 elif isinstance(data, ma.MaskedArray): 268 import numpy.ma.mrecords as mrecords miniconda2/envs/readout2/lib/python2.7/site-packages/pandas/core/frame.pyc in _init_dict(self, data, index, columns, dtype) 400 arrays = [data[k] for k in keys] 401 --&gt; 402 return _arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype) 403 404 def _init_ndarray(self, values, index, columns, dtype=None, copy=False): miniconda2/envs/readout2/lib/python2.7/site-packages/pandas/core/frame.pyc in _arrays_to_mgr(arrays, arr_names, index, columns, dtype) 5382 5383 # don't force copy because getting jammed in an ndarray anyway -&gt; 5384 arrays = _homogenize(arrays, index, dtype) 5385 5386 # from BlockManager perspective miniconda2/envs/readout2/lib/python2.7/site-packages/pandas/core/frame.pyc in _homogenize(data, index, dtype) 5693 v = lib.fast_multiget(v, oindex.values, default=NA) 5694 v = _sanitize_array(v, index, dtype=dtype, copy=False, -&gt; 5695 raise_cast_failure=False) 5696 5697 homogenized.append(v) miniconda2/envs/readout2/lib/python2.7/site-packages/pandas/core/series.pyc in _sanitize_array(data, index, dtype, copy, raise_cast_failure) 2917 2918 # scalar like -&gt; 2919 if subarr.ndim == 0: 2920 if isinstance(data, list): # pragma: no cover 2921 subarr = np.array(data, dtype=object) AttributeError: 'NoneType' object has no attribute 'ndim'"><pre class="notranslate"><code class="notranslate">In [3]: pd.DataFrame(dict(a=None),index=[0]) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) &lt;ipython-input-3-20b65f605ca3&gt; in &lt;module&gt;() ----&gt; 1 pd.DataFrame(dict(a=None),index=[0]) miniconda2/envs/readout2/lib/python2.7/site-packages/pandas/core/frame.pyc in __init__(self, data, index, columns, dtype, copy) 264 dtype=dtype, copy=copy) 265 elif isinstance(data, dict): --&gt; 266 mgr = self._init_dict(data, index, columns, dtype=dtype) 267 elif isinstance(data, ma.MaskedArray): 268 import numpy.ma.mrecords as mrecords miniconda2/envs/readout2/lib/python2.7/site-packages/pandas/core/frame.pyc in _init_dict(self, data, index, columns, dtype) 400 arrays = [data[k] for k in keys] 401 --&gt; 402 return _arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype) 403 404 def _init_ndarray(self, values, index, columns, dtype=None, copy=False): miniconda2/envs/readout2/lib/python2.7/site-packages/pandas/core/frame.pyc in _arrays_to_mgr(arrays, arr_names, index, columns, dtype) 5382 5383 # don't force copy because getting jammed in an ndarray anyway -&gt; 5384 arrays = _homogenize(arrays, index, dtype) 5385 5386 # from BlockManager perspective miniconda2/envs/readout2/lib/python2.7/site-packages/pandas/core/frame.pyc in _homogenize(data, index, dtype) 5693 v = lib.fast_multiget(v, oindex.values, default=NA) 5694 v = _sanitize_array(v, index, dtype=dtype, copy=False, -&gt; 5695 raise_cast_failure=False) 5696 5697 homogenized.append(v) miniconda2/envs/readout2/lib/python2.7/site-packages/pandas/core/series.pyc in _sanitize_array(data, index, dtype, copy, raise_cast_failure) 2917 2918 # scalar like -&gt; 2919 if subarr.ndim == 0: 2920 if isinstance(data, list): # pragma: no cover 2921 subarr = np.array(data, dtype=object) AttributeError: 'NoneType' object has no attribute 'ndim' </code></pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">This previously worked with a sensible output in 0.18.1:</p> <p dir="auto">In [2]: pd.DataFrame(dict(a=None),index=[0])<br> Out[2]:<br> a<br> 0 None</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> Working version: ## INSTALLED VERSIONS <p dir="auto">commit: None<br> python: 2.7.12.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 3.2.0-4-amd64<br> machine: x86_64<br> processor:<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8</p> <p dir="auto">pandas: 0.18.1<br> nose: 1.3.7<br> pip: 8.1.2<br> setuptools: 27.2.0<br> Cython: 0.24<br> numpy: 1.11.2<br> scipy: 0.17.0<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 4.2.0<br> sphinx: 1.4.1<br> patsy: 0.4.1<br> dateutil: 2.5.3<br> pytz: 2016.7<br> blosc: None<br> bottleneck: 1.0.0<br> tables: 3.2.2<br> numexpr: 2.4.4<br> matplotlib: 1.5.1<br> openpyxl: 2.3.2<br> xlrd: 0.9.4<br> xlwt: 1.0.0<br> xlsxwriter: 0.8.5<br> lxml: 3.6.0<br> bs4: 4.3.2<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.0.12<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: 2.39.0<br> pandas_datareader: None</p> <p dir="auto">Broken version:</p> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.12.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 3.2.0-4-amd64<br> machine: x86_64<br> processor:<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.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: 27.2.0<br> Cython: 0.24<br> numpy: 1.11.2<br> scipy: 0.17.0<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 4.2.0<br> sphinx: 1.4.1<br> patsy: 0.4.1<br> dateutil: 2.5.3<br> pytz: 2016.7<br> blosc: None<br> bottleneck: 1.0.0<br> tables: 3.2.2<br> numexpr: 2.4.4<br> matplotlib: 1.5.1<br> openpyxl: 2.3.2<br> xlrd: 0.9.4<br> xlwt: 1.0.0<br> xlsxwriter: 0.8.5<br> lxml: 3.6.0<br> bs4: 4.3.2<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.0.12<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: 2.39.0<br> pandas_datareader: None</p> </details>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="jax/interpreters/batching.py in _dimsize(dim, aval, x) 294 return reduce(set.union, map(_dimsize, dim, aval, x)) 295 elif type(dim) is int: --&gt; 296 return reduce(set.union, map(partial(_dimsize, dim), aval, x)) 297 elif dim is None: 298 return set() TypeError: reduce() of empty sequence with no initial value"><pre class="notranslate"><code class="notranslate">jax/interpreters/batching.py in _dimsize(dim, aval, x) 294 return reduce(set.union, map(_dimsize, dim, aval, x)) 295 elif type(dim) is int: --&gt; 296 return reduce(set.union, map(partial(_dimsize, dim), aval, x)) 297 elif dim is None: 298 return set() TypeError: reduce() of empty sequence with no initial value </code></pre></div>
<p dir="auto">Let</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def split(pytree, masks): left = jax.tree_map(lambda p, m: p if m else None, pytree, masks) right = jax.tree_map(lambda p, m: None if m else p , pytree, masks) return left, right"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">split</span>(<span class="pl-s1">pytree</span>, <span class="pl-s1">masks</span>): <span class="pl-s1">left</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">tree_map</span>(<span class="pl-k">lambda</span> <span class="pl-s1">p</span>, <span class="pl-s1">m</span>: <span class="pl-s1">p</span> <span class="pl-k">if</span> <span class="pl-s1">m</span> <span class="pl-k">else</span> <span class="pl-c1">None</span>, <span class="pl-s1">pytree</span>, <span class="pl-s1">masks</span>) <span class="pl-s1">right</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">tree_map</span>(<span class="pl-k">lambda</span> <span class="pl-s1">p</span>, <span class="pl-s1">m</span>: <span class="pl-c1">None</span> <span class="pl-k">if</span> <span class="pl-s1">m</span> <span class="pl-k">else</span> <span class="pl-s1">p</span> , <span class="pl-s1">pytree</span>, <span class="pl-s1">masks</span>) <span class="pl-k">return</span> <span class="pl-s1">left</span>, <span class="pl-s1">right</span></pre></div> <p dir="auto">acting on <code class="notranslate">pytree</code>, <code class="notranslate">masks</code> which are PyTrees of identical structure; the latter assumed to have Boolean leaves.</p> <p dir="auto">I would like to define a function <code class="notranslate">merge</code> for which <code class="notranslate">merge(split(...))</code> is the identity.</p> <p dir="auto">(More generally, we might consider taking some tuple of PyTrees with common structure, and merging them all together, replacing the <code class="notranslate">None</code>s in each PyTree with the leaves (or subtrees) of the others.)</p> <p dir="auto">As far as I can see, there is no reasonable way to define such a <code class="notranslate">merge</code> at the moment, so I'm opening this issue in search of a solution. (Which I suspect would involve exposing additional functionality through JAX, so I've tagged this as a feature request.)</p> <hr> <p dir="auto"><strong>Appendix:</strong></p> <p dir="auto">My current solution is to take inspiration from <code class="notranslate">vmap</code> and treat <code class="notranslate">None</code>s as PyTree leaves:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="_sentinel = object() def _merge(*args): for arg in args: if arg is not _sentinel: return arg return _sentinel def merge(*pytrees: PyTree): pytrees = [jax._src.tree_util._replace_nones(_sentinel, pytree) for pytree in pytrees] return jax.tree_map(_merge, *pytrees)"><pre class="notranslate"><span class="pl-s1">_sentinel</span> <span class="pl-c1">=</span> <span class="pl-en">object</span>() <span class="pl-k">def</span> <span class="pl-en">_merge</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>): <span class="pl-k">for</span> <span class="pl-s1">arg</span> <span class="pl-c1">in</span> <span class="pl-s1">args</span>: <span class="pl-k">if</span> <span class="pl-s1">arg</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-s1">_sentinel</span>: <span class="pl-k">return</span> <span class="pl-s1">arg</span> <span class="pl-k">return</span> <span class="pl-s1">_sentinel</span> <span class="pl-k">def</span> <span class="pl-en">merge</span>(<span class="pl-c1">*</span><span class="pl-s1">pytrees</span>: <span class="pl-v">PyTree</span>): <span class="pl-s1">pytrees</span> <span class="pl-c1">=</span> [<span class="pl-s1">jax</span>.<span class="pl-s1">_src</span>.<span class="pl-s1">tree_util</span>.<span class="pl-en">_replace_nones</span>(<span class="pl-s1">_sentinel</span>, <span class="pl-s1">pytree</span>) <span class="pl-k">for</span> <span class="pl-s1">pytree</span> <span class="pl-c1">in</span> <span class="pl-s1">pytrees</span>] <span class="pl-k">return</span> <span class="pl-s1">jax</span>.<span class="pl-en">tree_map</span>(<span class="pl-s1">_merge</span>, <span class="pl-c1">*</span><span class="pl-s1">pytrees</span>)</pre></div> <p dir="auto">However of course this relies on private functionality. Possible solutions might be to:</p> <ul dir="auto"> <li>Expose <code class="notranslate">jax._src.tree_util._replace_nones</code> as public functionality; <ul dir="auto"> <li>I note that its implementation also seems to rely on private functionality, so it's not possible to duplicate as an end user.</li> </ul> </li> <li>Or add an optional argument to <code class="notranslate">tree_map</code> that treats <code class="notranslate">None</code>s as leaves. <ul dir="auto"> <li>c.f. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="575374187" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/2348" data-hovercard-type="issue" data-hovercard-url="/google/jax/issues/2348/hovercard" href="https://github.com/google/jax/issues/2348">#2348</a></li> </ul> </li> </ul>
0
<p dir="auto"><a href="https://developer.android.com/guide/app-bundle/configure" rel="nofollow">https://developer.android.com/guide/app-bundle/configure</a> is this possible with flutter?</p>
<p dir="auto">While I'm aware that Flutter makes use of tree shaking which decreases the file size of the app drastically, I was wondering if the flutter build tools were likely to support Google's new Android App Bundle method of building any time soon?</p> <p dir="auto"><a href="https://developer.android.com/guide/app-bundle/" rel="nofollow">Info on Android App Bundles</a></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">file related modules like <code class="notranslate">file</code>, <code class="notranslate">template</code> that have a <code class="notranslate">mode</code> parameter</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0 config file = /home/kon/venvs/ansible-test/etc/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0 config file = /home/kon/venvs/ansible-test/etc/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">just an entry for the inventory path</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Linux ktsakiltzidis 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux Distributor ID: Debian Description: Debian GNU/Linux 9.2 (stretch) Release: 9.2 Codename: stretch"><pre class="notranslate"><code class="notranslate">Linux ktsakiltzidis 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux Distributor ID: Debian Description: Debian GNU/Linux 9.2 (stretch) Release: 9.2 Codename: stretch </code></pre></div> <h5 dir="auto">SUMMARY</h5> <p dir="auto">using a loop that passes item in the <code class="notranslate">mode</code> parameter<br> results in chmod complaining with <code class="notranslate">mode must be in octal or symbolic form</code></p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: localhost tasks: - name: test file mode template: src: testfile.j2 dest: ~/testing/ansible/testfile{{ item.index }} mode: &quot;{{ item.mode }}&quot; with_items: - index: 0 mode: 0600 - index: 1 mode: 0640"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">test file mode</span> <span class="pl-ent">template</span>: <span class="pl-ent">src</span>: <span class="pl-s">testfile.j2</span> <span class="pl-ent">dest</span>: <span class="pl-s">~/testing/ansible/testfile{{ item.index }}</span> <span class="pl-ent">mode</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ item.mode }}<span class="pl-pds">"</span></span> <span class="pl-ent">with_items</span>: - <span class="pl-ent">index</span>: <span class="pl-c1">0</span> <span class="pl-ent">mode</span>: <span class="pl-c1">0600</span> - <span class="pl-ent">index</span>: <span class="pl-c1">1</span> <span class="pl-ent">mode</span>: <span class="pl-c1">0640</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">no errors, right permissions</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [test apt package list] *************************************************** failed: [localhost] (item={u'index': 0, u'mode': 384}) =&gt; {&quot;details&quot;: &quot;bad symbolic permission for mode: 384&quot;, &quot;failed&quot;: true, &quot;gid&quot;: 1000, &quot;group&quot;: &quot;kon&quot;, &quot;item&quot;: {&quot;index&quot;: 0, &quot;mode&quot;: 384}, &quot;mode&quot;: &quot;0666&quot;, &quot;msg&quot;: &quot;mode must be in octal or symbolic form&quot;, &quot;owner&quot;: &quot;kon&quot;, &quot;path&quot;: &quot;/home/kon/testing/ansible/testfile0&quot;, &quot;size&quot;: 0, &quot;state&quot;: &quot;file&quot;, &quot;uid&quot;: 1000} ok: [localhost] =&gt; (item={u'index': 1, u'mode': 416}) "><pre class="notranslate"><code class="notranslate">TASK [test apt package list] *************************************************** failed: [localhost] (item={u'index': 0, u'mode': 384}) =&gt; {"details": "bad symbolic permission for mode: 384", "failed": true, "gid": 1000, "group": "kon", "item": {"index": 0, "mode": 384}, "mode": "0666", "msg": "mode must be in octal or symbolic form", "owner": "kon", "path": "/home/kon/testing/ansible/testfile0", "size": 0, "state": "file", "uid": 1000} ok: [localhost] =&gt; (item={u'index': 1, u'mode': 416}) </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> <li>Feature Idea</li> <li>Documentation Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ansible-playbook</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">host_key_checking = False</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ansible control server: Red Hat Enterprise Linux Server release 7.4 (Maipo)<br> Node: Red Hat Enterprise Linux Server release 7.4 (Maipo)</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">I have a variable that is a list. Within that list I have a a value called mount_mode set to 0755. When iterating through the list in a loop (with_items) the 0755 value gets interpreted as 493. The only work-around I found is to wrap the 0755 with single-quotes. If I place a variable outside of the list called mode with value 0755 and refer to it in the loop, the 0755 gets interpreted properly without single-quotes.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: servers vars: lvm_lvs: - name: Data Volume vg: vg_myvg1 lv: lv_data size: 25g mount: /data/mydata mount_owner: root mount_group: root mount_mode: 0755 mount_dump: 1 mount_passno: 2 mount_opts: defaults fstype: xfs roles: - { role: lvm }"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">servers</span> <span class="pl-ent">vars</span>: <span class="pl-ent">lvm_lvs</span>: - <span class="pl-ent">name</span>: <span class="pl-s">Data Volume</span> <span class="pl-ent">vg</span>: <span class="pl-s">vg_myvg1</span> <span class="pl-ent">lv</span>: <span class="pl-s">lv_data</span> <span class="pl-ent">size</span>: <span class="pl-c1">25g</span> <span class="pl-ent">mount</span>: <span class="pl-s">/data/mydata</span> <span class="pl-ent">mount_owner</span>: <span class="pl-s">root</span> <span class="pl-ent">mount_group</span>: <span class="pl-s">root</span> <span class="pl-ent">mount_mode</span>: <span class="pl-c1">0755</span> <span class="pl-ent">mount_dump</span>: <span class="pl-c1">1</span> <span class="pl-ent">mount_passno</span>: <span class="pl-c1">2</span> <span class="pl-ent">mount_opts</span>: <span class="pl-s">defaults</span> <span class="pl-ent">fstype</span>: <span class="pl-s">xfs</span> <span class="pl-ent">roles</span>: - <span class="pl-s">{ role: lvm }</span></pre></div> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#Set permissions on mount points - name: Ensure mount point has desired permissions file: path: &quot;{{ item.mount }}&quot; owner: &quot;{{ item.mount_owner }}&quot; group: &quot;{{ item.mount_group }}&quot; mode: &quot;{{ item.mount_mode }}&quot; with_items: &quot;{{ lvm_lvs }}&quot;"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span>Set permissions on mount points</span> - <span class="pl-ent">name</span>: <span class="pl-s">Ensure mount point has desired permissions</span> <span class="pl-ent">file</span>: <span class="pl-ent">path</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ item.mount }}<span class="pl-pds">"</span></span> <span class="pl-ent">owner</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ item.mount_owner }}<span class="pl-pds">"</span></span> <span class="pl-ent">group</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ item.mount_group }}<span class="pl-pds">"</span></span> <span class="pl-ent">mode</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ item.mount_mode }}<span class="pl-pds">"</span></span> <span class="pl-ent">with_items</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ lvm_lvs }}<span class="pl-pds">"</span></span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">{{ item.mount_mode }} should be interpreted as 0755, but instead it gets interpreted as 493.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [lvm : Ensure mount point has desired permissions] **************************************************************************************************************** task path: /home/TESTNET/ap574009/rhel5-eol/migrate_9306/roles/lvm/tasks/main.yml:40 Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/file.py &lt;rhel5_test7&gt; ESTABLISH SSH CONNECTION FOR USER: ap574009 &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 rhel5_test7 '/bin/sh -c '&quot;'&quot;'echo ~ &amp;&amp; sleep 0'&quot;'&quot;'' &lt;rhel5_test7&gt; (0, '/home/TESTNET/ap574009\n', 'OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 1655\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;rhel5_test7&gt; ESTABLISH SSH CONNECTION FOR USER: ap574009 &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 rhel5_test7 '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447 `&quot; &amp;&amp; echo ansible-tmp-1508446533.04-211671926774447=&quot;` echo /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;'' &lt;rhel5_test7&gt; (0, 'ansible-tmp-1508446533.04-211671926774447=/home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447\n', 'OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 1655\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;rhel5_test7&gt; PUT /tmp/tmptaK6vo TO /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/file.py &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 '[rhel5_test7]' &lt;rhel5_test7&gt; (0, 'sftp&gt; put /tmp/tmptaK6vo /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/file.py\n', 'OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 1655\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 2\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 2\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug3: Sent message fd 6 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /home/TESTNET/ap574009 size 0\r\ndebug3: Looking up /tmp/tmptaK6vo\r\ndebug3: Sent message fd 6 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/file.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:28758\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 28758 bytes at 32768\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;rhel5_test7&gt; ESTABLISH SSH CONNECTION FOR USER: ap574009 &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 rhel5_test7 '/bin/sh -c '&quot;'&quot;'chmod u+x /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/ /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/file.py &amp;&amp; sleep 0'&quot;'&quot;'' &lt;rhel5_test7&gt; (0, '', 'OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 1655\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;rhel5_test7&gt; ESTABLISH SSH CONNECTION FOR USER: ap574009 &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 -tt rhel5_test7 '/bin/sh -c '&quot;'&quot;'sudo -H -S -n -u root /bin/sh -c '&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'echo BECOME-SUCCESS-pxllydjcdclgergkezgvynrsosfwocjq; /usr/bin/python /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/file.py; rm -rf &quot;/home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/&quot; &gt; /dev/null 2&gt;&amp;1'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;' &amp;&amp; sleep 0'&quot;'&quot;'' &lt;rhel5_test7&gt; (0, '\r\n{&quot;group&quot;: &quot;root&quot;, &quot;uid&quot;: 0, &quot;mode&quot;: &quot;0755&quot;, &quot;failed&quot;: true, &quot;state&quot;: &quot;directory&quot;, &quot;gid&quot;: 0, &quot;secontext&quot;: &quot;system_u:object_r:unlabeled_t:s0&quot;, &quot;details&quot;: &quot;bad symbolic permission for mode: 493&quot;, &quot;invocation&quot;: {&quot;module_args&quot;: {&quot;directory_mode&quot;: null, &quot;force&quot;: false, &quot;remote_src&quot;: null, &quot;path&quot;: &quot;/data/mydata&quot;, &quot;owner&quot;: &quot;root&quot;, &quot;follow&quot;: false, &quot;group&quot;: &quot;root&quot;, &quot;unsafe_writes&quot;: null, &quot;state&quot;: null, &quot;content&quot;: null, &quot;serole&quot;: null, &quot;diff_peek&quot;: null, &quot;setype&quot;: null, &quot;selevel&quot;: null, &quot;original_basename&quot;: null, &quot;regexp&quot;: null, &quot;validate&quot;: null, &quot;src&quot;: null, &quot;seuser&quot;: null, &quot;recurse&quot;: false, &quot;delimiter&quot;: null, &quot;mode&quot;: &quot;493&quot;, &quot;attributes&quot;: null, &quot;backup&quot;: null}}, &quot;owner&quot;: &quot;root&quot;, &quot;path&quot;: &quot;/data/mydata&quot;, &quot;size&quot;: 6, &quot;msg&quot;: &quot;mode must be in octal or symbolic form&quot;}\r\n', 'OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 1655\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to rhel5_test7 closed.\r\n') Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/file.py &lt;rhel5_test7&gt; ESTABLISH SSH CONNECTION FOR USER: ap574009 &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 rhel5_test7 '/bin/sh -c '&quot;'&quot;'echo ~ &amp;&amp; sleep 0'&quot;'&quot;'' failed: [rhel5_test7] (item={u'name': u'Data Volume', u'vg': u'vg_myvg1', u'mount_group': u'root', u'mount': u'/data/mydata', u'fstype': u'xfs', u'lv': u'lv_data', u'mount_owner': u'root', u'mount_mode': 493, u'mount_dump': 1, u'mount_passno': 2, u'mount_opts': u'defaults', u'size': u'25g'}) =&gt; { &quot;details&quot;: &quot;bad symbolic permission for mode: 493&quot;, &quot;failed&quot;: true, &quot;gid&quot;: 0, &quot;group&quot;: &quot;root&quot;, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;attributes&quot;: null, &quot;backup&quot;: null, &quot;content&quot;: null, &quot;delimiter&quot;: null, &quot;diff_peek&quot;: null, &quot;directory_mode&quot;: null, &quot;follow&quot;: false, &quot;force&quot;: false, &quot;group&quot;: &quot;root&quot;, &quot;mode&quot;: &quot;493&quot;, &quot;original_basename&quot;: null, &quot;owner&quot;: &quot;root&quot;, &quot;path&quot;: &quot;/data/mydata&quot;, &quot;recurse&quot;: false, &quot;regexp&quot;: null, &quot;remote_src&quot;: null, &quot;selevel&quot;: null, &quot;serole&quot;: null, &quot;setype&quot;: null, &quot;seuser&quot;: null, &quot;src&quot;: null, &quot;state&quot;: null, &quot;unsafe_writes&quot;: null, &quot;validate&quot;: null } }, &quot;item&quot;: { &quot;fstype&quot;: &quot;xfs&quot;, &quot;lv&quot;: &quot;lv_data&quot;, &quot;mount&quot;: &quot;/data/mydata&quot;, &quot;mount_dump&quot;: 1, &quot;mount_group&quot;: &quot;root&quot;, &quot;mount_mode&quot;: 493, &quot;mount_opts&quot;: &quot;defaults&quot;, &quot;mount_owner&quot;: &quot;root&quot;, &quot;mount_passno&quot;: 2, &quot;name&quot;: &quot;Data Volume&quot;, &quot;size&quot;: &quot;25g&quot;, &quot;vg&quot;: &quot;vg_myvg1&quot; }, &quot;mode&quot;: &quot;0755&quot;, &quot;msg&quot;: &quot;mode must be in octal or symbolic form&quot;, &quot;owner&quot;: &quot;root&quot;, &quot;path&quot;: &quot;/data/mydata&quot;, &quot;secontext&quot;: &quot;system_u:object_r:unlabeled_t:s0&quot;, &quot;size&quot;: 6, &quot;state&quot;: &quot;directory&quot;, &quot;uid&quot;: 0 }"><pre class="notranslate"><code class="notranslate">TASK [lvm : Ensure mount point has desired permissions] **************************************************************************************************************** task path: /home/TESTNET/ap574009/rhel5-eol/migrate_9306/roles/lvm/tasks/main.yml:40 Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/file.py &lt;rhel5_test7&gt; ESTABLISH SSH CONNECTION FOR USER: ap574009 &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 rhel5_test7 '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"'' &lt;rhel5_test7&gt; (0, '/home/TESTNET/ap574009\n', 'OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 1655\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;rhel5_test7&gt; ESTABLISH SSH CONNECTION FOR USER: ap574009 &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 rhel5_test7 '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447 `" &amp;&amp; echo ansible-tmp-1508446533.04-211671926774447="` echo /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447 `" ) &amp;&amp; sleep 0'"'"'' &lt;rhel5_test7&gt; (0, 'ansible-tmp-1508446533.04-211671926774447=/home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447\n', 'OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 1655\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;rhel5_test7&gt; PUT /tmp/tmptaK6vo TO /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/file.py &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 '[rhel5_test7]' &lt;rhel5_test7&gt; (0, 'sftp&gt; put /tmp/tmptaK6vo /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/file.py\n', 'OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 1655\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug3: Sent message fd 6 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /home/TESTNET/ap574009 size 0\r\ndebug3: Looking up /tmp/tmptaK6vo\r\ndebug3: Sent message fd 6 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/file.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:28758\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 28758 bytes at 32768\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;rhel5_test7&gt; ESTABLISH SSH CONNECTION FOR USER: ap574009 &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 rhel5_test7 '/bin/sh -c '"'"'chmod u+x /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/ /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/file.py &amp;&amp; sleep 0'"'"'' &lt;rhel5_test7&gt; (0, '', 'OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 1655\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;rhel5_test7&gt; ESTABLISH SSH CONNECTION FOR USER: ap574009 &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 -tt rhel5_test7 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-pxllydjcdclgergkezgvynrsosfwocjq; /usr/bin/python /home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/file.py; rm -rf "/home/TESTNET/ap574009/.ansible/tmp/ansible-tmp-1508446533.04-211671926774447/" &gt; /dev/null 2&gt;&amp;1'"'"'"'"'"'"'"'"' &amp;&amp; sleep 0'"'"'' &lt;rhel5_test7&gt; (0, '\r\n{"group": "root", "uid": 0, "mode": "0755", "failed": true, "state": "directory", "gid": 0, "secontext": "system_u:object_r:unlabeled_t:s0", "details": "bad symbolic permission for mode: 493", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "path": "/data/mydata", "owner": "root", "follow": false, "group": "root", "unsafe_writes": null, "state": null, "content": null, "serole": null, "diff_peek": null, "setype": null, "selevel": null, "original_basename": null, "regexp": null, "validate": null, "src": null, "seuser": null, "recurse": false, "delimiter": null, "mode": "493", "attributes": null, "backup": null}}, "owner": "root", "path": "/data/mydata", "size": 6, "msg": "mode must be in octal or symbolic form"}\r\n', 'OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 1655\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to rhel5_test7 closed.\r\n') Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/file.py &lt;rhel5_test7&gt; ESTABLISH SSH CONNECTION FOR USER: ap574009 &lt;rhel5_test7&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=ap574009 -o ConnectTimeout=30 -o ControlPath=/home/TESTNET/ap574009/.ansible/cp/1049f838b2 rhel5_test7 '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"'' failed: [rhel5_test7] (item={u'name': u'Data Volume', u'vg': u'vg_myvg1', u'mount_group': u'root', u'mount': u'/data/mydata', u'fstype': u'xfs', u'lv': u'lv_data', u'mount_owner': u'root', u'mount_mode': 493, u'mount_dump': 1, u'mount_passno': 2, u'mount_opts': u'defaults', u'size': u'25g'}) =&gt; { "details": "bad symbolic permission for mode: 493", "failed": true, "gid": 0, "group": "root", "invocation": { "module_args": { "attributes": null, "backup": null, "content": null, "delimiter": null, "diff_peek": null, "directory_mode": null, "follow": false, "force": false, "group": "root", "mode": "493", "original_basename": null, "owner": "root", "path": "/data/mydata", "recurse": false, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": null, "state": null, "unsafe_writes": null, "validate": null } }, "item": { "fstype": "xfs", "lv": "lv_data", "mount": "/data/mydata", "mount_dump": 1, "mount_group": "root", "mount_mode": 493, "mount_opts": "defaults", "mount_owner": "root", "mount_passno": 2, "name": "Data Volume", "size": "25g", "vg": "vg_myvg1" }, "mode": "0755", "msg": "mode must be in octal or symbolic form", "owner": "root", "path": "/data/mydata", "secontext": "system_u:object_r:unlabeled_t:s0", "size": 6, "state": "directory", "uid": 0 } </code></pre></div>
1
<ul dir="auto"> <li>Electron version: 1.6.8 or 1.7.1</li> <li>Operating system: Windows</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">In windows multiple monitor setup with different DPIs, electron app starts out of bounds</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Should start at the same place where app was last opened</p> <h3 dir="auto">How to reproduce</h3> <ol dir="auto"> <li>Have two monitors with 200% and 100% DPI</li> <li>Start electron app and move the app to monitor with 100% DPI (non maximized)</li> <li>Quit and Restart the app</li> </ol> <p dir="auto">App starts out of the bounds in the 100% DPI monitor.</p> <p dir="auto">This is a regression after <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="210439587" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/8786" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/8786/hovercard" href="https://github.com/electron/electron/pull/8786">#8786</a> . I reverted this change and this issue no longer repros.</p>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong><br> 12.0.0</li> <li><strong>Operating System:Windows 10</strong><br> Windows 10</li> <li><strong>Last Known Working Electron version:</strong><br> 11.x.x</li> </ul> <h3 dir="auto">Expected Behavior</h3> <h3 dir="auto">Actual Behavior</h3> <h3 dir="auto">To Reproduce</h3> <h3 dir="auto">Screenshots</h3> <h3 dir="auto">Additional Information</h3>
0
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> Feature Reqeust</p> <p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p> <h3 dir="auto">The Problem</h3> <p dir="auto">In <a href="https://github.com/vuejs/vue-loader">vue-loader</a>, we process Vue single file components that can contain multiple language blocks:</p> <div class="highlight highlight-text-html-vue notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;template&gt;/* ... */&lt;/template&gt; &lt;script&gt;/* ... */&lt;/script&gt; &lt;style&gt;/* ... */&lt;/style&gt;"><pre class="notranslate">&lt;<span class="pl-ent">template</span>&gt;/* ... */&lt;/<span class="pl-ent">template</span>&gt; <span class="pl-s1">&lt;<span class="pl-ent">script</span>&gt;<span class="pl-c"><span class="pl-c">/*</span> ... <span class="pl-c">*/</span></span>&lt;/<span class="pl-ent">script</span>&gt;</span> <span class="pl-s1">&lt;<span class="pl-ent">style</span>&gt;<span class="pl-c"><span class="pl-c">/*</span> ... <span class="pl-c">*/</span></span>&lt;/<span class="pl-ent">style</span>&gt;</span></pre></div> <p dir="auto">Each of these blocks need to be delegated to other webpack loaders for potential pre-processing. The way it currently works is by overloading the same source module with different inline loader chains:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// (output from vue-loader) import template from '!!vue-template-compiler!selector?part=template!self.vue' import script from '!!babel-loader?babelOptions!selector?part=script!self.vue' import style from '!!style-loader!css-loader!selector?part=style!self.vue'"><pre class="notranslate"><span class="pl-c">// (output from vue-loader)</span> <span class="pl-k">import</span> <span class="pl-s1">template</span> <span class="pl-k">from</span> <span class="pl-s">'!!vue-template-compiler!selector?part=template!self.vue'</span> <span class="pl-k">import</span> <span class="pl-s1">script</span> <span class="pl-k">from</span> <span class="pl-s">'!!babel-loader?babelOptions!selector?part=script!self.vue'</span> <span class="pl-k">import</span> <span class="pl-s1">style</span> <span class="pl-k">from</span> <span class="pl-s">'!!style-loader!css-loader!selector?part=style!self.vue'</span></pre></div> <p dir="auto">This does work and we've been using it for quite a long time. However, this leads to a number of problems:</p> <ul dir="auto"> <li> <p dir="auto">Because all loader options must be inlined, it's impossible to use non-serializable option values.</p> </li> <li> <p dir="auto">Because the requests all end in <code class="notranslate">*.vue</code>, we cannot rely on the configured rules in the main webpack config. The user has to duplicate the same config in both <code class="notranslate">module.rules</code> and vue-loader's own <code class="notranslate">loaders</code> option, or we have to somehow infer it correctly.</p> <p dir="auto">This can be circumvented if the pre-processor supports a fs-based config file, e.g. <code class="notranslate">.babelrc</code> or <code class="notranslate">.postcssrc</code>, but in some cases the user for some reason cannot use a config file, or the loader in question simply does not support config files.</p> </li> <li> <p dir="auto">If the user chains another loader before <code class="notranslate">vue-loader</code>, we have to respect that too. This causes the chained loader to be invoked many times (1 extra call for every language block in a vue file).</p> </li> <li> <p dir="auto">(cosmetic) these inline requests result in extremely long module names and makes error and stats output difficult to read.</p> </li> </ul> <h3 dir="auto">Proposed API</h3> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/TheLarkInn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/TheLarkInn">@TheLarkInn</a> had an experimental idea of a <a href="https://github.com/TheLarkInn/virtual-dependency-loader">virtual-dependency-loader</a> which is almost what we want. Except it doesn't seem to work as intended. I tested it with a virtual dependency with a filename ending in <code class="notranslate">.js</code>, and a configured <code class="notranslate">babel-loader</code> does not apply to the loaded virtual module.</p> <p dir="auto">I propose a new loader context API <code class="notranslate">loadVirtualModule</code> that is similar to <code class="notranslate">loadModule</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// in a loader module.exports = function (source) { const cb = this.async() const descriptor = vueCompiler.parseComponent(source) this.loadVirtualModule({ code: descriptor.script.content, map: descriptor.script.map, filename: './does-not-exist.js' }, (err, code, map) =&gt; { // the script part of the source, processed with all matching loaders // for does-not-exist.js }) // even better if it returns Promise Promise.all([ this.loadVirtualModule({ ... }), // script this.loadVirtualModule({ ... }), // template this.loadVirtualModule({ ... }), // style ]).then(parts =&gt; { const { code, map } = vueCompiler.assemble(parts) cb(null, code, map) }) }"><pre class="notranslate"><span class="pl-c">// in a loader</span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-en">exports</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">source</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">cb</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">async</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">descriptor</span> <span class="pl-c1">=</span> <span class="pl-s1">vueCompiler</span><span class="pl-kos">.</span><span class="pl-en">parseComponent</span><span class="pl-kos">(</span><span class="pl-s1">source</span><span class="pl-kos">)</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">loadVirtualModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">code</span>: <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">script</span><span class="pl-kos">.</span><span class="pl-c1">content</span><span class="pl-kos">,</span> <span class="pl-c1">map</span>: <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">script</span><span class="pl-kos">.</span><span class="pl-c1">map</span><span class="pl-kos">,</span> <span class="pl-c1">filename</span>: <span class="pl-s">'./does-not-exist.js'</span> <span class="pl-kos">}</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-s1">code</span><span class="pl-kos">,</span> <span class="pl-s1">map</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// the script part of the source, processed with all matching loaders</span> <span class="pl-c">// for does-not-exist.js</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c">// even better if it returns Promise</span> <span class="pl-v">Promise</span><span class="pl-kos">.</span><span class="pl-en">all</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">loadVirtualModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> ... <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c">// script</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">loadVirtualModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> ... <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c">// template</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">loadVirtualModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> ... <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c">// style</span> <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-s1">parts</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> code<span class="pl-kos">,</span> map <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">vueCompiler</span><span class="pl-kos">.</span><span class="pl-en">assemble</span><span class="pl-kos">(</span><span class="pl-s1">parts</span><span class="pl-kos">)</span> <span class="pl-s1">cb</span><span class="pl-kos">(</span><span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s1">code</span><span class="pl-kos">,</span> <span class="pl-s1">map</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 would greatly simplify the implementation of <code class="notranslate">vue-loader</code> and solve the problems we are facing above.</p>
<p dir="auto">Is there a way to mangle/uglify Webpack globals? Option for it? Even hacky way?</p> <p dir="auto">Few examples: <code class="notranslate">__webpack_exports__</code>, <code class="notranslate">moduleName__WEBPACK_IMPORTED_MODULE_0__</code></p> <p dir="auto">My bundle is extremely size-sensitive and these are <strong>10-15% of my bundle</strong>.<br> <a href="https://stackoverflow.com/questions/61216115/uglify-webpack-globals" rel="nofollow">https://stackoverflow.com/questions/61216115/uglify-webpack-globals</a></p> <p dir="auto">Really sorry about question here but I've adventured like a week in SO, gitter, etc - no answers.</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/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">I searched in FAQ and docs and I didn't find an answer.</p> <p dir="auto">Why and when use Dubbo?<br> Given that REST APIs are increasingly common, why use RPC instead of web services?<br> What's the advantages to use RPC instead REST web services?<br> What's the point that I'm don't catching?<br> I talk with people that have the same doubt. I think that this point could be answered in FAQ.</p> <p dir="auto">Thanks.</p>
<ul dir="auto"> <li>[√] I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li>[√] I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.5-SNAPSHOT</li> <li>Operating System version: win10</li> <li>Java version: 1.8.0_152</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>在dubbo-samples-grpc项目的基础上加上springboot 2.2.2.RELEASE</li> <li>启动server</li> <li>启动client<br> 4.请求一次http,调用grpc格式的接口,请求成功<br> 5.单纯重启server<br> 6.erver启动后,再次请求http,调用grpc格式的接口</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">接口请求成功</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">请求失败</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.dubbo.rpc.RpcException: Failed to invoke the method sayHello in the service com.vanrui.api.helloworld.DubboGreeterGrpc$IGreeter. Tried 3 times of the providers [10.1.252.98:50051] (1/1) from the registry 127.0.0.1:2181 on the consumer 10.1.252.98 using the dubbo version 2.7.5-SNAPSHOT. Last error is: Failed to invoke remote service: interface com.vanrui.api.helloworld.DubboGreeterGrpc$IGreeter, method: sayHello, cause: UNAVAILABLE: Channel shutdown invoked] with root cause io.grpc.StatusRuntimeException: UNAVAILABLE: Channel shutdown invoked at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:233) ~[grpc-stub-1.19.0.jar:1.19.0] at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:214) ~[grpc-stub-1.19.0.jar:1.19.0] at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:139) ~[grpc-stub-1.19.0.jar:1.19.0] at com.vanrui.api.helloworld.GreeterGrpc$GreeterBlockingStub.sayHello(GreeterGrpc.java:178) ~[classes/:na] at com.vanrui.api.helloworld.DubboGreeterGrpc$DubboGreeterStub.sayHello(DubboGreeterGrpc.java:52) ~[classes/:na] at org.apache.dubbo.common.bytecode.Wrapper0.invokeMethod(Wrapper0.java) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:84) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.grpc.GrpcInvoker.doInvoke(GrpcInvoker.java:49) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:162) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.AsyncToSyncInvoker.invoke(AsyncToSyncInvoker.java:52) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:89) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:50) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:55) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:78) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:82) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:255) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.cluster.interceptor.ClusterInterceptor.intercept(ClusterInterceptor.java:47) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$InterceptorInvokerNode.invoke(AbstractCluster.java:92) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:78) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:60) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.common.bytecode.proxy0.sayHello(proxy0.java) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at com.vanrui.HelloController.hello(HelloController.java:24) ~[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_152] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_152] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_152] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_152] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1591) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.29.jar:9.0.29] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_152] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_152] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.29.jar:9.0.29] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_152]"><pre class="notranslate"><code class="notranslate">Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.dubbo.rpc.RpcException: Failed to invoke the method sayHello in the service com.vanrui.api.helloworld.DubboGreeterGrpc$IGreeter. Tried 3 times of the providers [10.1.252.98:50051] (1/1) from the registry 127.0.0.1:2181 on the consumer 10.1.252.98 using the dubbo version 2.7.5-SNAPSHOT. Last error is: Failed to invoke remote service: interface com.vanrui.api.helloworld.DubboGreeterGrpc$IGreeter, method: sayHello, cause: UNAVAILABLE: Channel shutdown invoked] with root cause io.grpc.StatusRuntimeException: UNAVAILABLE: Channel shutdown invoked at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:233) ~[grpc-stub-1.19.0.jar:1.19.0] at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:214) ~[grpc-stub-1.19.0.jar:1.19.0] at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:139) ~[grpc-stub-1.19.0.jar:1.19.0] at com.vanrui.api.helloworld.GreeterGrpc$GreeterBlockingStub.sayHello(GreeterGrpc.java:178) ~[classes/:na] at com.vanrui.api.helloworld.DubboGreeterGrpc$DubboGreeterStub.sayHello(DubboGreeterGrpc.java:52) ~[classes/:na] at org.apache.dubbo.common.bytecode.Wrapper0.invokeMethod(Wrapper0.java) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:84) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.grpc.GrpcInvoker.doInvoke(GrpcInvoker.java:49) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:162) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.AsyncToSyncInvoker.invoke(AsyncToSyncInvoker.java:52) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:89) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:50) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:55) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:78) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:82) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:255) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.cluster.interceptor.ClusterInterceptor.intercept(ClusterInterceptor.java:47) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$InterceptorInvokerNode.invoke(AbstractCluster.java:92) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:78) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:60) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at org.apache.dubbo.common.bytecode.proxy0.sayHello(proxy0.java) ~[dubbo-2.7.5-SNAPSHOT.jar:2.7.5-SNAPSHOT] at com.vanrui.HelloController.hello(HelloController.java:24) ~[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_152] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_152] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_152] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_152] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1591) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.29.jar:9.0.29] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_152] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_152] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.29.jar:9.0.29] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_152] </code></pre></div>
0
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/declare-javascript-variables#?solution=%2F%2F%20Example%0Avar%20ourName%3B%0A%0A%0A%0A%2F%2F%20Define%20myName%20below%20this%20line%0A%0Avar%20myName%3B%0A%0A" rel="nofollow">Declare JavaScript Variables</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36</code>.</p> <p dir="auto">Today I actually received an error:</p> <p dir="auto">Error 504 Ray ID: 28c56387b0b90ecd • 2016-03-31 17:06:54 UTC<br> Gateway time-out</p> <p dir="auto">This is the link:</p> <p dir="auto"><a href="https://www.freecodecamp.com/challenges/declare-javascript-variables#?solution=%2F%2F%20Example%0Avar%20ourName%3B%0A%0A%0A%0A%2F%2F%20Define%20myName%20below%20this%20line%0A%0Avar%20myName%3B%0A%0A" rel="nofollow">https://www.freecodecamp.com/challenges/declare-javascript-variables#?solution=%2F%2F%20Example%0Avar%20ourName%3B%0A%0A%0A%0A%2F%2F%20Define%20myName%20below%20this%20line%0A%0Avar%20myName%3B%0A%0A</a></p>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/adjusting-the-padding-of-an-element#?solution=%3Cstyle%3E%0A%20%20.injected-text%20%7B%0A%20%20%20%20margin-bottom%3A%20-25px%3B%0A%20%20%20%20text-align%3A%20center%3B%0A%20%20%7D%0A%0A%20%20.box%20%7B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-color%3A%20black%3B%0A%20%20%20%20border-width%3A%205px%3B%0A%20%20%20%20text-align%3A%20center%3B%0A%20%20%7D%0A%0A%20%20.yellow-box%20%7B%0A%20%20%20%20background-color%3A%20yellow%3B%0A%20%20%20%20padding%3A%2010px%3B%0A%20%20%7D%0A%20%20%0A%20%20.red-box%20%7B%0A%20%20%20%20background-color%3A%20red%3B%0A%20%20%20%20padding%3A%2020px%3B%0A%20%20%7D%0A%0A%20%20.green-box%20%7B%0A%20%20%20%20background-color%3A%20green%3B%0A%20%20%20%20padding%3A%2020px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%3Ch5%20class%3D%22injected-text%22%3Emargin%3C%2Fh5%3E%0A%0A%3Cdiv%20class%3D%22box%20yellow-box%22%3E%0A%20%20%3Ch5%20class%3D%22box%20red-box%22%3Epadding%3C%2Fh5%3E%0A%20%20%3Ch5%20class%3D%22box%20green-box%22%3Epadding%3C%2Fh5%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Adjusting the Padding of an Element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style&gt; .injected-text { margin-bottom: -25px; text-align: center; } .box { border-style: solid; border-color: black; border-width: 5px; text-align: center; } .yellow-box { background-color: yellow; padding: 10px; } .red-box { background-color: red; padding: 20px; } .green-box { background-color: green; padding: 20px; } &lt;/style&gt; &lt;h5 class=&quot;injected-text&quot;&gt;margin&lt;/h5&gt; &lt;div class=&quot;box yellow-box&quot;&gt; &lt;h5 class=&quot;box red-box&quot;&gt;padding&lt;/h5&gt; &lt;h5 class=&quot;box green-box&quot;&gt;padding&lt;/h5&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">injected-text</span> { <span class="pl-c1">margin-bottom</span><span class="pl-kos">:</span> <span class="pl-c1">-25<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } .<span class="pl-c1">box</span> { <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-color</span><span class="pl-kos">:</span> black; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } .<span class="pl-c1">yellow-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> yellow; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; } .<span class="pl-c1">red-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> red; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span>; } .<span class="pl-c1">green-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">injected-text</span>"<span class="pl-kos">&gt;</span>margin<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</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">box yellow-box</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box red-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box green-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</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">Edit by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raisedadead/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raisedadead">@raisedadead</a>:</p> <h4 dir="auto">Camper is unable to advance between challenges due to slow/poor connectivity.</h4>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> The app works fine if built with ng build --prod.<br> The build with ng build --prod --aot completes successfully, but the app won't start with the following exception:</p> <p dir="auto">main.7c16020….bundle.js:694 EXCEPTION: Cannot read property 'replace' of undefinedt.handleError @ main.7c16020….bundle.js:694(anonymous function) @ main.7c16020….bundle.js:428t.invoke @ main.7c16020….bundle.js:1486onInvoke @ main.7c16020….bundle.js:512t.invoke @ main.7c16020….bundle.js:1486n.run @ main.7c16020….bundle.js:1486(anonymous function) @ main.7c16020….bundle.js:1486t.invokeTask @ main.7c16020….bundle.js:1486onInvokeTask @ main.7c16020….bundle.js:512t.invokeTask @ main.7c16020….bundle.js:1486n.runTask @ main.7c16020….bundle.js:1486o @ main.7c16020….bundle.js:1486<br> main.7c16020….bundle.js:694 ORIGINAL STACKTRACE:t.handleError @ main.7c16020….bundle.js:694(anonymous function) @ main.7c16020….bundle.js:428t.invoke @ main.7c16020….bundle.js:1486onInvoke @ main.7c16020….bundle.js:512t.invoke @ main.7c16020….bundle.js:1486n.run @ main.7c16020….bundle.js:1486(anonymous function) @ main.7c16020….bundle.js:1486t.invokeTask @ main.7c16020….bundle.js:1486onInvokeTask @ main.7c16020….bundle.js:512t.invokeTask @ main.7c16020….bundle.js:1486n.runTask @ main.7c16020….bundle.js:1486o @ main.7c16020….bundle.js:1486<br> main.7c16020….bundle.js:694 TypeError: Cannot read property 'replace' of undefined<br> at a (main.7c16020….bundle.js:610)<br> at new t (main.7c16020….bundle.js:617)<br> at e.t.renderComponent (main.7c16020….bundle.js:617)<br> at t.renderComponent (main.7c16020….bundle.js:71)<br> at e.t (main.7c16020….bundle.js:120)<br> at new e (main.7c16020….bundle.js:1472)<br> at i (main.7c16020….bundle.js:1472)<br> at e.createInternal (main.7c16020….bundle.js:1472)<br> at e.t.create (main.7c16020….bundle.js:120)<br> at t.create (main.7c16020….bundle.js:92)</p> <p dir="auto"><strong>Expected behavior</strong><br> The app should start</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">Get the code (2 projects) at <a href="https://github.com/Farata/angular2typescript/tree/master/chapter10/extras">https://github.com/Farata/angular2typescript/tree/master/chapter10/extras</a></p> <ol dir="auto"> <li>Start the standalone node server,</li> <li>In the auction_cli npm run build</li> <li>Open the browser at localhost:8000. The app works</li> <li>Add --aot to the build script</li> <li>In the auction_cli npm run build</li> <li>Open the browser at localhost:8000. The app gives the above exception</li> </ol> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> OS X, NodeJS server</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.1.0</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [all ]</p> </li> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.7</p> </li> </ul>
<p dir="auto"><strong>Steps to reproduce and a minimal demo of the problem</strong><br> demo <a href="http://plnkr.co/edit/7uoVecfa62i8No8GtQHI?p=preview" rel="nofollow">http://plnkr.co/edit/7uoVecfa62i8No8GtQHI?p=preview</a><br> Angular2 beta 16 or higher - When I hide first section with nested components using *ngIf, ngOnDestroy of every nested component is triggered - this is OK.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;div *ngIf=&quot;!ff2&quot;&gt; &lt;my-component &gt;&lt;/my-component&gt; &lt;my-component &gt;&lt;/my-component&gt; &lt;my-component &gt;&lt;/my-component&gt; &lt;my-component &gt;&lt;/my-component&gt; &lt;my-component &gt;&lt;/my-component&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate"> &lt;div *ngIf="!ff2"&gt; &lt;my-component &gt;&lt;/my-component&gt; &lt;my-component &gt;&lt;/my-component&gt; &lt;my-component &gt;&lt;/my-component&gt; &lt;my-component &gt;&lt;/my-component&gt; &lt;my-component &gt;&lt;/my-component&gt; &lt;/div&gt; </code></pre></div> <p dir="auto">Outpu in console is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" init init init init init destroy destroy destroy destroy destroy "><pre class="notranslate"><code class="notranslate"> init init init init init destroy destroy destroy destroy destroy </code></pre></div> <p dir="auto">But when I hide second section where subcomponents are duplicated by *ngFor, not every ngOnDestroy is triggered.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div *ngIf=&quot;!ff&quot;&gt; &lt;my-component *ngFor=&quot;#i of [1,2,3,4,5,6]&quot; &gt;&lt;/my-component&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div *ngIf="!ff"&gt; &lt;my-component *ngFor="#i of [1,2,3,4,5,6]" &gt;&lt;/my-component&gt; &lt;/div&gt; </code></pre></div> <p dir="auto">output in console is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(6) init (3) destroy"><pre class="notranslate"><code class="notranslate">(6) init (3) destroy </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> not every ngOnDestroy is triggered</p> <p dir="auto"><strong>Expected/desired behavior</strong><br> every ngOnDestroy should be triggered</p> <p dir="auto"><strong>Other information</strong><br> in angular2 beta 9 it was working correctly<br> <a href="http://plnkr.co/edit/Q8tLJKlpF6wEVcMWfxH1?p=preview" rel="nofollow">http://plnkr.co/edit/Q8tLJKlpF6wEVcMWfxH1?p=preview</a></p>
0
<p dir="auto">Atom should support following the shortcuts/"shell links" Windows uses.<br> Currently when dragging a file to Atom, or when selecting a shortcut in the tree view, the binary file is opened directly. (<a href="https://msdn.microsoft.com/en-us/library/dd891294.aspx" rel="nofollow">format <img src="https://camo.githubusercontent.com/36382830e9af82cbef959975adf6b6485f1af991938b7d52d84d830bbbff1fd8/687474703a2f2f626974732e77696b696d656469612e6f72672f7374617469632d312e3235776d6631372f736b696e732f566563746f722f696d616765732f65787465726e616c2d6c696e6b2d6c74722d69636f6e2e706e673f323031352d30322d31315431393a33353a30305a" alt="msdn" data-canonical-src="http://bits.wikimedia.org/static-1.25wmf17/skins/Vector/images/external-link-ltr-icon.png?2015-02-11T19:35:00Z" style="max-width: 100%;"></a>)</p>
<p dir="auto">Currently, dragging a shortcut to a folder in Atom (on Windows) opens the <code class="notranslate">.lnk</code> file itself rather than the target of the shortcut; the latter behavior would make more sense. I keep a bunch of shortcuts to project folders on my Desktop and it would be nice to be able to drag the shortcuts directly into Atom and have the project itself be opened (rather than the <code class="notranslate">.lnk</code>)</p>
1
<p dir="auto">I have tried to download the documentation in PDF from the official site (<a href="http://flask.pocoo.org/" rel="nofollow">http://flask.pocoo.org/</a>) and the link there (<a href="http://flask.pocoo.org/docs/0.12/.latex/Flask.pdf" rel="nofollow">http://flask.pocoo.org/docs/0.12/.latex/Flask.pdf</a>) is returning error 404.</p>
<p dir="auto">Ran the builder manually to figure out why nothing was building. Builder is sitting waiting for input, which it will never get. Had to enter Ctrl-D at each of the ? prompts.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... Package hyperref Message: Driver (autodetected): hpdftex. (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/hypcap.sty) (./jinjastyle.sty (/usr/share/texlive/texmf-dist/tex/latex/inconsolata/inconsolata.sty)) Writing index file Jinja2.idx (./Jinja2.aux) (/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1ppl.fd) (/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) *geometry* driver: auto-detecting *geometry* detected driver: pdftex (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty)) (./Jinja2.out) (./Jinja2.out) ! Undefined control sequence. \maketitle ...tnoterule \relax \ifsphinxpdfoutput \begingroup \def \\{, } \p... l.55 \maketitle ? "><pre class="notranslate"><code class="notranslate">... Package hyperref Message: Driver (autodetected): hpdftex. (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/hypcap.sty) (./jinjastyle.sty (/usr/share/texlive/texmf-dist/tex/latex/inconsolata/inconsolata.sty)) Writing index file Jinja2.idx (./Jinja2.aux) (/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1ppl.fd) (/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) *geometry* driver: auto-detecting *geometry* detected driver: pdftex (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty)) (./Jinja2.out) (./Jinja2.out) ! Undefined control sequence. \maketitle ...tnoterule \relax \ifsphinxpdfoutput \begingroup \def \\{, } \p... l.55 \maketitle ? </code></pre></div>
1
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Add user profiles inside the right click taskbar menu of terminal app.<br> It should launch the terminal with chosen profile instead of default. Or, if terminal is already opened, open a new tab / new window...</p>
<p dir="auto">The Task Bar context menu</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/189862/57370160-70cea980-715d-11e9-9c0b-718bb68e4ca9.png"><img src="https://user-images.githubusercontent.com/189862/57370160-70cea980-715d-11e9-9c0b-718bb68e4ca9.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">should show the items from the configured profiles that populate the new shell menu</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/189862/57370126-5e547000-715d-11e9-99d6-d3249c9c2d68.png"><img src="https://user-images.githubusercontent.com/189862/57370126-5e547000-715d-11e9-99d6-d3249c9c2d68.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">When there is an untitled window open with untitled buffer and <code class="notranslate">atom .</code> command is used from shell, window is not restored properly (tree-view is hidden and previously open buffers are not restored).</p> <p dir="auto">If there is no atom window open and <code class="notranslate">atom .</code> is used then window is propertly restored.<br> I am using Atom 124.0 on OS X Mavericks.</p>
<p dir="auto">Like I mentioned <a href="https://github.com/atom/atom/issues/3405#issuecomment-53685094" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/3405/hovercard">here in my comment</a> opening a folder won't work for the first time you open it, wether if you drag&amp;drop it or just open it via the shortcut.</p> <p dir="auto">Same Problem on two different computers with Atom (0.124.0) running on Mac OS X (Mavericks).</p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-target-elements-by-id-using-jquery" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-target-elements-by-id-using-jquery</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">First target your <strong>div</strong> element with the id target3 by using the $("#target3") selector.</p> <p dir="auto"><strong>div</strong> needs changing to <strong>button</strong>.</p>
<h4 dir="auto">Challenge Name</h4> <p dir="auto"><a href="https://www.freecodecamp.com/challenges/add-borders-around-your-elements" rel="nofollow">Add Borders Around your Elements</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">I was trying to change the class on "img src" tag, but when I click on the old class (for the changing) I can't write something else.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version:</li> <li>Operating System: Windows 10</li> <li>Mobile, Desktop, or Tablet: Desktop</li> </ul> <h4 dir="auto">Your Code</h4> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1884376/16430754/e1e965dc-3d9a-11e6-9003-4c1cf43265fb.png"><img src="https://cloud.githubusercontent.com/assets/1884376/16430754/e1e965dc-3d9a-11e6-9003-4c1cf43265fb.png" alt="a1e34206-3d7b-11e6-8688-c77d934d8929" style="max-width: 100%;"></a></p> <p dir="auto">Edited by : <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raisedadead/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raisedadead">@raisedadead</a></p>
0
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>yes</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>yes</td> </tr> <tr> <td>Symfony version</td> <td>dunno</td> </tr> </tbody> </table> <p dir="auto">A lot of new features related to the auto-wiring have been added recently:</p> <ul dir="auto"> <li>Autowiring</li> <li>Setter auto-wiring</li> <li>Getter auto-wiring</li> </ul> <p dir="auto">IMO, especially with the last two, it starts to become necessary to have more tooling to debug auto-wiring. For example, I am a developer coming onto an existing Symfony project which make moderate or heavy use of the auto-wiring feature. Regardless of if the usage of this feature has been done wisely or not, in that situation, I should be able to easily tell what services is auto-wired and its surrounding effects (e.g. if <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="197366294" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/21031" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/21031/hovercard" href="https://github.com/symfony/symfony/pull/21031">#21031</a>: what other services are auto-wired?).</p> <p dir="auto">I have in mind a command to list all the auto-wired services with eventually details on which level of auto-wiring is used. But maybe someone has a better or other suggestions in mind?</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nicolas-grekas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nicolas-grekas">@nicolas-grekas</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dunglas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dunglas">@dunglas</a></p>
<p dir="auto">As specified in the <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Core/Authentication/AuthenticationManagerInterface.php">AuthenticationManagerInterface</a>, any implementation of <code class="notranslate">AuthenticationManagerInterface::authenticate</code> should always return a TokenInterface. Some provided implementation do not follow the rule, examples are</p> <ul dir="auto"> <li><a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Core/Authentication/Provider/AnonymousAuthenticationProvider.php#L43"><code class="notranslate">AnonymousAuthenticationProvider</code></a></li> <li><a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php#L56"><code class="notranslate">PreAuthenticatedAuthenticationProvider</code></a></li> <li><a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Core/Authentication/Provider/RememberMeAuthenticationProvider.php#L45"><code class="notranslate">RememberMeAuthenticationProvider</code></a></li> <li><a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Core/Authentication/Provider/UserAuthenticationProvider.php#L61"><code class="notranslate">UserAuthenticationProvider</code></a></li> </ul> <p dir="auto">In addition, the <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Core/Authentication/Provider/AuthenticationProviderInterface.php#L34"><code class="notranslate">AuthenticationProviderInterface::supports</code></a> is not really an interface public method, just like the <code class="notranslate">supports*</code> method from <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php"><code class="notranslate">VoterInterface</code></a> are never used by caller classes. These method are solely used <em>as if</em> they where protected helper functions.</p> <p dir="auto">These issues are not critical but may induce unexpected behaviour. Fixing them may end in some BC break. Any opinion ?</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/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: ALL</li> <li>Operating System version: nop</li> <li>Java version: nop</li> </ul> <h3 dir="auto">Step to reproduce this issue</h3> <ol dir="auto"> <li>enable monitor</li> <li>open admin console</li> <li>consumer links in MonitorService will be wrong - lack of consumers's application name and ip address.</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">They should not be empty.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">lack of them.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="consumer:///com.alibaba.dubbo.monitor.MonitorService?category=consumers&amp;check=false&amp;dubbo=2.0.1&amp;interface=com.alibaba.dubbo.monitor.MonitorService&amp;pid=2867×tamp=1532173971611"><pre class="notranslate"><code class="notranslate">consumer:///com.alibaba.dubbo.monitor.MonitorService?category=consumers&amp;check=false&amp;dubbo=2.0.1&amp;interface=com.alibaba.dubbo.monitor.MonitorService&amp;pid=2867×tamp=1532173971611 </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">This is a performance that goes 0..1, 0..1, 0..1, continually, with a particular period (duration) and curve.</p> <p dir="auto">Useful for things like continuous spinners.</p> <p dir="auto">See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115974271" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/215" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/215/hovercard" href="https://github.com/flutter/flutter/issues/215">#215</a>.</p>
<p dir="auto">I'm working on an update to the CircularProgressIndicator to bring it in line with the Material Design spec (you can see the reasonably correct, although still not perfect Polymer implementation here: <a href="https://elements.polymer-project.org/elements/paper-spinner?view=demo:demo/index.html&amp;active=paper-spinner" rel="nofollow">https://elements.polymer-project.org/elements/paper-spinner?view=demo:demo/index.html&amp;active=paper-spinner</a>)</p> <p dir="auto">This activity indicator will spin indefinitely until it's hidden or stopped.</p> <p dir="auto">While I haven't verified it, it appears in my current implementation there may be a 'paused frame' each time my performance is restarted. By 'paused frame', I mean something different from a dropped frame, but rather a frame where the animation just stops progressing for a frame – when the performance is started again.</p> <p dir="auto">So what I'd like, is the ability to specify a number of iterations (which could be infinite) for a Performance, so that I can expect the animation to be perfectly smooth between the end state of one iteration and the start state of the next.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Hixie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Hixie">@Hixie</a> and I discussed this a bit and may be able to provide more context</p> <p dir="auto">Below is some sample code of what I'm currently doing (I can point you at the full code if that is helpful). Ideally I'd replace the 'Performance' with some new class... 'ContinuousPerformance'... or maybe I'd just use a Performance with a new argument 'iterations'? And I'd be able to remove my status listener that restarts the Performance.</p> <p dir="auto">Please let me know if you need any more detail.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_performance = new Performance(duration: new Duration(milliseconds: _kTotalDuration)); _strokeHeadProgress = new AnimatedValue&lt;double&gt;(0.0, end: 1.0, curve: new Interval(0.0, 0.5, curve: Curves.fastOutSlowIn)); _strokeTailProgress = new AnimatedValue&lt;double&gt;(0.0, end: 1.0, curve: new Interval(0.5, 1.0, curve: Curves.fastOutSlowIn)); _circleRotation = new AnimatedValue&lt;double&gt;(0.0, end: 0.85, curve: Curves.linear); _stepIndex = 0; _performance.addStatusListener((PerformanceStatus status) { if (status == PerformanceStatus.completed) { _stepIndex++; if (_stepIndex &gt;= 5) _stepIndex = 0; _restartAnimation(); } }); _performance.play();"><pre class="notranslate"><code class="notranslate">_performance = new Performance(duration: new Duration(milliseconds: _kTotalDuration)); _strokeHeadProgress = new AnimatedValue&lt;double&gt;(0.0, end: 1.0, curve: new Interval(0.0, 0.5, curve: Curves.fastOutSlowIn)); _strokeTailProgress = new AnimatedValue&lt;double&gt;(0.0, end: 1.0, curve: new Interval(0.5, 1.0, curve: Curves.fastOutSlowIn)); _circleRotation = new AnimatedValue&lt;double&gt;(0.0, end: 0.85, curve: Curves.linear); _stepIndex = 0; _performance.addStatusListener((PerformanceStatus status) { if (status == PerformanceStatus.completed) { _stepIndex++; if (_stepIndex &gt;= 5) _stepIndex = 0; _restartAnimation(); } }); _performance.play(); </code></pre></div>
1
<p dir="auto">It seems "Request" object has no attribute "is_xhr" ,Getting warnings here... How do we fix this?<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/70581416/104300976-16751700-5502-11eb-9b61-51f3baa8d083.png"><img src="https://user-images.githubusercontent.com/70581416/104300976-16751700-5502-11eb-9b61-51f3baa8d083.png" alt="6f2ab2c357e4a36213b6ad42b7d9669" style="max-width: 100%;"></a></p>
<p dir="auto">This has been raised several times <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="561678002" data-permission-text="Title is private" data-url="https://github.com/pallets/flask/issues/3490" data-hovercard-type="issue" data-hovercard-url="/pallets/flask/issues/3490/hovercard" href="https://github.com/pallets/flask/issues/3490">#3490</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="561585108" data-permission-text="Title is private" data-url="https://github.com/pallets/flask/issues/3486" data-hovercard-type="issue" data-hovercard-url="/pallets/flask/issues/3486/hovercard" href="https://github.com/pallets/flask/issues/3486">#3486</a> etc.</p> <p dir="auto">These have been closed due to no stacktrace or the issue being in a third party project.<br> Here are some reproducible examples just using Flask.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; python --version Python 3.8.0 &gt; pip install flask==0.12.4 Successfully installed Jinja2-2.11.1 MarkupSafe-1.1.1 Werkzeug-1.0.0 click-7.0 flask-0.12.4 itsdangerous-1.1.0"><pre class="notranslate"><code class="notranslate">&gt; python --version Python 3.8.0 &gt; pip install flask==0.12.4 Successfully installed Jinja2-2.11.1 MarkupSafe-1.1.1 Werkzeug-1.0.0 click-7.0 flask-0.12.4 itsdangerous-1.1.0 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from flask import Flask, request app = Flask(__name__) @app.route('/') def hello_world(): return &quot;Is xhr&quot; if request.is_xhr else &quot;Isn't xhr&quot;"><pre class="notranslate"><code class="notranslate">from flask import Flask, request app = Flask(__name__) @app.route('/') def hello_world(): return "Is xhr" if request.is_xhr else "Isn't xhr" </code></pre></div> <p dir="auto">Using the documented property <a href="https://flask.palletsprojects.com/en/0.12.x/api/#flask.Request.is_xhr" rel="nofollow">is_xhr</a> gives</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File &quot;/home/mitchell/.virtualenvs/flask/lib/python3.8/site-packages/werkzeug/local.py&quot;, line 347, in __getattr__ return getattr(self._get_current_object(), name) AttributeError: 'Request' object has no attribute 'is_xhr'"><pre class="notranslate"><code class="notranslate"> File "/home/mitchell/.virtualenvs/flask/lib/python3.8/site-packages/werkzeug/local.py", line 347, in __getattr__ return getattr(self._get_current_object(), name) AttributeError: 'Request' object has no attribute 'is_xhr' </code></pre></div> <p dir="auto">Also in <code class="notranslate">jsonify</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from flask import Flask, jsonify app = Flask(__name__) @app.route('/') def hello_world(): return jsonify({ &quot;hello&quot;: &quot;world&quot;, })"><pre class="notranslate"><code class="notranslate">from flask import Flask, jsonify app = Flask(__name__) @app.route('/') def hello_world(): return jsonify({ "hello": "world", }) </code></pre></div> <p dir="auto">gives</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File &quot;/home/mitchell/.virtualenvs/flask/lib/python3.8/site-packages/flask/json.py&quot;, line 298, in jsonify if current_app.config['JSONIFY_PRETTYPRINT_REGULAR'] and not request.is_xhr: File &quot;/home/mitchell/.virtualenvs/flask/lib/python3.8/site-packages/werkzeug/local.py&quot;, line 347, in __getattr__ return getattr(self._get_current_object(), name) AttributeError: 'Request' object has no attribute 'is_xhr'"><pre class="notranslate"><code class="notranslate"> File "/home/mitchell/.virtualenvs/flask/lib/python3.8/site-packages/flask/json.py", line 298, in jsonify if current_app.config['JSONIFY_PRETTYPRINT_REGULAR'] and not request.is_xhr: File "/home/mitchell/.virtualenvs/flask/lib/python3.8/site-packages/werkzeug/local.py", line 347, in __getattr__ return getattr(self._get_current_object(), name) AttributeError: 'Request' object has no attribute 'is_xhr' </code></pre></div> <p dir="auto">Hopefully these purely-flask reproducible examples will help this get sorted out.</p>
1
<p dir="auto">When creating a daterange with a decimal number of minutes, pandas truncates everything before the decimal point. This leads to odd results e.g. if you're expecting to generate something every half minute and instead end up with something every 5 minutes, and even odder results if you have a float that is a whole number.</p> <p dir="auto">A less contrived example is if pandas is used to process the results of some API call where you don't know what unit you'll have to go to to get to a whole number. It would be safe, I guess, to convert everything to nanoseconds, but not especially readable.</p> <h4 dir="auto">A small, complete example of the issue</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import pandas as pd &gt;&gt;&gt; pd.date_range(end='2016-10-07T21:08:58.490180', periods=3, freq='0.5min') DatetimeIndex(['2016-10-07 20:58:58.490180', '2016-10-07 21:03:58.490180', '2016-10-07 21:08:58.490180'], dtype='datetime64[ns]', freq='5T') &gt;&gt;&gt; pd.date_range(end='2016-10-07T21:08:58.490180', periods=3, freq='10080.0min') DatetimeIndex([], dtype='datetime64[ns]', freq='0T')"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s">'2016-10-07T21:08:58.490180'</span>, <span class="pl-s1">periods</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'0.5min'</span>) <span class="pl-v">DatetimeIndex</span>([<span class="pl-s">'2016-10-07 20:58:58.490180'</span>, <span class="pl-s">'2016-10-07 21:03:58.490180'</span>, <span class="pl-s">'2016-10-07 21:08:58.490180'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'datetime64[ns]'</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'5T'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s">'2016-10-07T21:08:58.490180'</span>, <span class="pl-s1">periods</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'10080.0min'</span>) <span class="pl-v">DatetimeIndex</span>([], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'datetime64[ns]'</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'0T'</span>)</pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">For the first example:<br> <code class="notranslate">DatetimeIndex(['2016-10-07 21:07:58.490180', '2016-10-07 21:08:28.490180', '2016-10-07 21:08:58.490180'], dtype='datetime64[ns]', freq='30S')</code></p> <p dir="auto">For the second:<br> <code class="notranslate">DatetimeIndex(['2016-09-23 21:08:58.490180', '2016-09-30 21:08:58.490180', '2016-10-07 21:08:58.490180'], dtype='datetime64[ns]', freq='10080T')</code></p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> ## INSTALLED VERSIONS <p dir="auto">commit: None<br> python: 2.7.6.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 4.4.0-38-generic<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8</p> <p dir="auto">pandas: 0.18.1<br> nose: 1.3.1<br> pip: 1.5.4<br> setuptools: 26.0.0<br> Cython: None<br> numpy: 1.11.1<br> scipy: 0.17.1<br> statsmodels: None<br> xarray: None<br> IPython: 5.1.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.5.3<br> pytz: 2016.4<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.3.1<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 0.999<br> httplib2: 0.9.2<br> apiclient: None<br> sqlalchemy: 1.0.15<br> pymysql: None<br> psycopg2: 2.6.2 (dt dec pq3 ext lo64)<br> jinja2: 2.8<br> boto: 2.41.0<br> pandas_datareader: None</p> </details>
<p dir="auto">I'm new to pandas, so maybe I'm missing something, but I'd expected freq='.5s' to give me 500ms intervals, not 5s intervals:</p> <blockquote> <blockquote> <blockquote> <p dir="auto">pd.date_range(0, periods=5, freq='.5s')[1]<br> Timestamp('1970-01-01 00:00:05', offset='5S')<br> pd.date_range(0, periods=5, freq='500ms')[1]<br> Timestamp('1970-01-01 00:00:00.500000', offset='500L')<br> pd.<strong>version</strong><br> '0.14.1'<br> import sys; sys.version<br> '3.4.1 (default, Jul 6 2014, 20:01:46) \n[GCC 4.9.0]'</p> </blockquote> </blockquote> </blockquote> <p dir="auto">Behaviour is the same under Python 2 and 3.</p>
1
<p dir="auto">I have been looking at the plethora of issues and attempts to fix sparse arrays and broadcast. For anyone not caught up on the general strife, here is a rough (although very incomplete) overview.</p> <h1 dir="auto">Current Problems:</h1> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="194884848" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/19561" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/19561/hovercard" href="https://github.com/JuliaLang/julia/issues/19561">#19561</a>: broadcasting non numeric arrays causes problems because <code class="notranslate">zero(::Type{Any})</code> doesn't exist<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="190605592" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/19372" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/19372/hovercard" href="https://github.com/JuliaLang/julia/issues/19372">#19372</a>: When should broadcast return dense vs sparse arrays?</p> <h1 dir="auto">Current Consensus:</h1> <p dir="auto">Implement zero for strings</p> <ul dir="auto"> <li><code class="notranslate">f(A)</code> returns sparse if <code class="notranslate">A</code> is sparse, and <code class="notranslate">f</code> is zero preserving.</li> <li><code class="notranslate">f(A,B)</code> returns sparse if <code class="notranslate">A</code> and <code class="notranslate">B</code> are sparse, and <code class="notranslate">f</code> is zero preserving on either both or one of the zeros.</li> <li>higher order cases get complicated quickly.</li> </ul> <h1 dir="auto">Proposed Solution:</h1> <p dir="auto">Implement a new type of sparse array that can have a custom set default element.<br> For the first issue, this allows the simple solution of making the default element <code class="notranslate">''</code> which will allow broadcasts to work sensibly.<br> For the second, we get the quite nice property that <code class="notranslate">f(A,B...X</code>) can be done by iterating over the nonzero values of all the various arrays, and then switching the default value to <code class="notranslate">f(0,0...0)</code>. This will be simple to code, and will contain almost all of the advantages of the current approach.</p>
<p dir="auto">Is there any practical way to achieve this? Consider: I have a very large matrix describing edge weights between all pairs of vertices. This is an NxN matrix and is impractical for graphs with orders of 1e7 without using sparse matrices.</p> <p dir="auto">If I want the default edge weight of 1.0, I have to code specially around this to make a sparse matrix entry of "0" really be "1" (which is ok in this specific case because an edge weight of 0 is not defined). It would be much easier if I could specify "create this sparse matrix but any unspecified value should be X".</p> <p dir="auto">Is there already an easy way to do this that I've missed?</p>
1
<p dir="auto">Transferred from <a href="http://code.opencv.org/issues/2318" rel="nofollow">http://code.opencv.org/issues/2318</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| Dmitry Ponv on 2012-08-27 23:52 || Priority: Low || Affected: None || Category: imgproc, video || Tracker: Feature || Difficulty: None || PR: None || Platform: None / None"><pre class="notranslate"><code class="notranslate">|| Dmitry Ponv on 2012-08-27 23:52 || Priority: Low || Affected: None || Category: imgproc, video || Tracker: Feature || Difficulty: None || PR: None || Platform: None / None </code></pre></div> <h2 dir="auto">Hough Circle detection to report the quality/accumulator count of each circle detected</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Currently the Hough circle (and line) detection algorithms do not report the quality/accumulator value of each detected circle. This value &quot;max_count&quot; is thrown out after the function if( max_count &gt; acc_threshold ) { float c[3]; c[0] = cx; c[1] = cy; c[2] = (float)r_best; cvSeqPush( circles, c ); if( circles-&gt;total &gt; circles_max ) return; } This makes the Hough circle detection almost completely useless, because it reports a number of circles and the programmer doesn't know which circles are more dominant than others. The only way for the programmer to know is to run the Hough circle detection repeatedly and decrease minimum accumulator level until a circle shows up. This issue is also posted here http://tech.groups.yahoo.com/group/OpenCV/message/88871 I may have already submitted this feature, but I'm not sure if it went through, I didn't find it in the list,"><pre class="notranslate"><code class="notranslate">Currently the Hough circle (and line) detection algorithms do not report the quality/accumulator value of each detected circle. This value "max_count" is thrown out after the function if( max_count &gt; acc_threshold ) { float c[3]; c[0] = cx; c[1] = cy; c[2] = (float)r_best; cvSeqPush( circles, c ); if( circles-&gt;total &gt; circles_max ) return; } This makes the Hough circle detection almost completely useless, because it reports a number of circles and the programmer doesn't know which circles are more dominant than others. The only way for the programmer to know is to run the Hough circle detection repeatedly and decrease minimum accumulator level until a circle shows up. This issue is also posted here http://tech.groups.yahoo.com/group/OpenCV/message/88871 I may have already submitted this feature, but I'm not sure if it went through, I didn't find it in the list, </code></pre></div> <h2 dir="auto">History</h2> <h5 dir="auto">Kirill Kornyakov on 2012-09-24 12:06</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Dmitry, thank you for the request, but please note: # You shouldn't use High priority for things like this. We need more people asking for the same feature to say if it is important. # You can propose your patch for the feature. It can be submitted as a pull request at the github. - Priority changed from High to Low - Category set to imgproc, video"><pre class="notranslate"><code class="notranslate">Dmitry, thank you for the request, but please note: # You shouldn't use High priority for things like this. We need more people asking for the same feature to say if it is important. # You can propose your patch for the feature. It can be submitted as a pull request at the github. - Priority changed from High to Low - Category set to imgproc, video </code></pre></div> <h5 dir="auto">Mikulas Krupicka on 2012-11-12 00:30</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Indeed, the accumulator output would be useful (for both the Line and Circular Hough). Though it forced me to write my own implementation of Hough transform to get accumulator, it is unfurtunately quite slow."><pre class="notranslate"><code class="notranslate">Indeed, the accumulator output would be useful (for both the Line and Circular Hough). Though it forced me to write my own implementation of Hough transform to get accumulator, it is unfurtunately quite slow. </code></pre></div> <h5 dir="auto">Neo Carlitos on 2013-03-04 10:36</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="+1 It would be useful. I believe the returned circles are ordered according to their accumulator value (?)"><pre class="notranslate"><code class="notranslate">+1 It would be useful. I believe the returned circles are ordered according to their accumulator value (?) </code></pre></div>
<p dir="auto">Transferred from <a href="http://code.opencv.org/issues/1409" rel="nofollow">http://code.opencv.org/issues/1409</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| ivansorokin - on 2011-10-07 15:02 || Priority: Normal || Affected: None || Category: imgproc, video || Tracker: Feature || Difficulty: None || PR: None || Platform: None / None"><pre class="notranslate"><code class="notranslate">|| ivansorokin - on 2011-10-07 15:02 || Priority: Normal || Affected: None || Category: imgproc, video || Tracker: Feature || Difficulty: None || PR: None || Platform: None / None </code></pre></div> <h2 dir="auto">ability to get Hough accumulator value</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Currently it is not possible to get Hough accumulator value (after stage 1 in icvHoughLinesStandard). http://stackoverflow.com/questions/3265987/opencv-get-hough-accumulator-value I also need this value. Currently I've just copy-paste this part of function from OpenCV, but I think it can be extracted in separate function."><pre class="notranslate"><code class="notranslate">Currently it is not possible to get Hough accumulator value (after stage 1 in icvHoughLinesStandard). http://stackoverflow.com/questions/3265987/opencv-get-hough-accumulator-value I also need this value. Currently I've just copy-paste this part of function from OpenCV, but I think it can be extracted in separate function. </code></pre></div> <h2 dir="auto">History</h2> <h5 dir="auto">Alexander Shishkov on 2012-02-12 20:26</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- Description changed from Currently it is not possible to get Hough accumulator value (after stage 1 in... to Currently it is not possible to get Hough accumulator value (after stage 1 in... More"><pre class="notranslate"><code class="notranslate">- Description changed from Currently it is not possible to get Hough accumulator value (after stage 1 in... to Currently it is not possible to get Hough accumulator value (after stage 1 in... More </code></pre></div>
1
<p dir="auto">Although Deno is "headless" that does not mean image/canvas processing would be useless. Why? Many of us use "image as data", for example zxy Tiles for map data (elevation is quite popular)</p> <p dir="auto">And often the results of the computations are exported by creating a canvas with the data and downloading it as an image.</p> <p dir="auto">I realize we have deno-canvas and skia_canvas<br> <a href="https://github.com/DjDeveloperr/deno-canvas">https://github.com/DjDeveloperr/deno-canvas</a><br> <a href="https://github.com/DjDeveloperr/skia_canvas">https://github.com/DjDeveloperr/skia_canvas</a></p> <p dir="auto">But they both have problems, see:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1689638757" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/18919" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/18919/hovercard" href="https://github.com/denoland/deno/issues/18919">#18919</a><br> .. which is continues here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1689659615" data-permission-text="Title is private" data-url="https://github.com/DjDeveloperr/deno-canvas/issues/34" data-hovercard-type="issue" data-hovercard-url="/DjDeveloperr/deno-canvas/issues/34/hovercard" href="https://github.com/DjDeveloperr/deno-canvas/issues/34">DjDeveloperr/deno-canvas#34</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1724852441" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/19247" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/19247/hovercard" href="https://github.com/denoland/deno/issues/19247">#19247</a></p> <p dir="auto">I should add that I used these to test 23 agent based models with deno, replacing a prior fragile Puppeteer solution (to run them in the browser). The runtime dropped drastically: from 3 minutes to 6 seconds (using 23 Deno workers)</p> <p dir="auto">So some really important "image as data" work is limping along with the current canvas/image libraries but having the browser and Deno have exactly the same API would be far better.</p> <p dir="auto">I propose Deno match the browser's canvas/image API, that is createCanvas and ImageBitmap.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="404901651" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1629" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1629/hovercard" href="https://github.com/denoland/deno/issues/1629">#1629</a> is about WebGL, it will likely take a lot of time to implement.<br> I think add <strong>OffscreenCanvas &amp; CanvasRenderingContext2D</strong> interface at first is a good idea for now.<br> A lot of server-side image process like <a href="https://shields.io" rel="nofollow">shields.io</a> can be done in OffscreenCanvas with 2d renderer<br> (and it should be able to load image from disk / web / memory.)</p> <ul dir="auto"> <li>Maybe render text will be a problem<br> Read from ttf directly? &lt;- so we need a FontFace api with local file support<br> Use system font registry?</li> </ul>
1
<h4 dir="auto">Describe the bug</h4> <p dir="auto">NB crashes when there is data in test data what was not used in train data<br> <a href="https://scikit-learn.org/stable/modules/generated/sklearn.naive_bayes.CategoricalNB.html#sklearn.naive_bayes.CategoricalNB" rel="nofollow">https://scikit-learn.org/stable/modules/generated/sklearn.naive_bayes.CategoricalNB.html#sklearn.naive_bayes.CategoricalNB</a></p> <p dir="auto">in real live test data values are different from train data</p>
<h4 dir="auto">Describe the bug</h4> <p dir="auto">NB crashes when there is data in test data what was not used in train data<br> <a href="https://scikit-learn.org/stable/modules/generated/sklearn.naive_bayes.CategoricalNB.html#sklearn.naive_bayes.CategoricalNB" rel="nofollow">https://scikit-learn.org/stable/modules/generated/sklearn.naive_bayes.CategoricalNB.html#sklearn.naive_bayes.CategoricalNB</a></p> <p dir="auto">in real live test data values are different from train data</p>
1
<p dir="auto">When a user enters invalid data in an input field which has some restriction (for example, <code class="notranslate">type="number"</code>) it prevents form from submitting (no event is fired) but there's no visual indication of what is wrong. Is it done on purpose or is it just a bug?</p>
<p dir="auto">Atom shell currently does not support HTML5 form validation notifications -- client side form validation is supported and you cannot submit invalid form entries, however, there is no visual cue or notification for invalid entries as there is in most browsers (see image below).</p> <p dir="auto">Is support for this planned?</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3952537/4208326/3b7cc960-385f-11e4-847a-f52e076a5753.png"><img src="https://cloud.githubusercontent.com/assets/3952537/4208326/3b7cc960-385f-11e4-847a-f52e076a5753.png" alt="" style="max-width: 100%;"></a></p>
1
<p dir="auto">I am experiencing a race condition with a (Squid) proxy server, best described by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rdharrison2/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rdharrison2">@rdharrison2</a> in <a href="https://github.com/kennethreitz/requests/issues/2364#issuecomment-186214402">https://github.com/kennethreitz/requests/issues/2364#issuecomment-186214402</a>:</p> <blockquote> <p dir="auto">In my case I'm making a large number of periodic https requests to a apache2 server with connection keep-alive timeout 5s. There is a race between the server closing a timed out persistent connection and the client making a request on the same connection. Given a bit of network latency the client can often attempt to send a request on the socket before it gets notified it as been closed.</p> </blockquote> <p dir="auto">Rather than implementing a retry logic, I would like to ensure that my requests <code class="notranslate">Session</code> keep-alive "timeout" is lower than that of proxy's. But I cannot seem to find out how.</p> <p dir="auto">Either I'm blind or it's just not supported?</p>
<p dir="auto">Request hooks are being <a href="https://github.com/kennethreitz/requests/blob/master/requests/sessions.py#L264">merged</a> with session hooks; since both hook dicts have a list as the value, one simply overwrites the other.</p>
0
<p dir="auto">Deno is marketed as “A secure JavaScript and TypeScript runtime” and the philosophy behind the flags disabling syscalls seems to be “Deno default behavior prevents you from shooting yourself in the foot security wise”.</p> <p dir="auto">However, by default, Deno accepts to download libraries using http only. In other words, https is not enforced. There are two issues about this (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="372630088" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1063" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1063/hovercard" href="https://github.com/denoland/deno/issues/1063">#1063</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="372681712" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1064" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1064/hovercard" href="https://github.com/denoland/deno/issues/1064">#1064</a>).<br> The first one, has been dismissed with the argument that: [Deno] “should follow the browser conventions here - using a script tag to import http is allowed.” The other one is still open but has not had any activity in a couple months.</p> <p dir="auto">As long as a Deno process instantiates a module with an http import, a “man in the middle attack” is possible:</p> <p dir="auto">It means it is possible to tamper with the code of the module that is downloaded. Even if Deno has implemented integrity checks for modules, there are still some key attack vectors.</p> <p dir="auto">As I understand, there are still two cases when integrity checks are not enforced: The first download of a lib and the update of a lib. Moreover, even in the cases where integrity checks are enforced, someone could just prevent you from downloading this module, or do something even nastier: send garbage for an infinite time.<br> In this last case (according to a test I ran on 1.0.0-rc3), Deno will just be stuck forever downloading the module while seeing its RSS increase until something stops it (user or OS). In this case, any dependency (or sub dependency) could selectively prevent Deno apps from installing , reaching actually a Denial of Service case. (Service being, having Deno running the code).</p> <p dir="auto">Another attack: someone could eavesdrop on the module that is being downloaded. Eventually, Deno users will use authentication to download certain modules. Over http, the credentials will be transmitted in clear. It is noticeable that the popular (and very cool) package manager <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/yarnpkg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yarnpkg">@yarnpkg</a> has been having an issue with this (see <a title="CVE-2019-5448" data-hovercard-type="advisory" data-hovercard-url="/advisories/GHSA-wqfc-cr59-h64p/hovercard" href="https://github.com/advisories/GHSA-wqfc-cr59-h64p">CVE-2019-5448</a>). It is very possible that someone will actually fill a CVE against Deno on that exact topic at one point.</p> <p dir="auto">All of that can be introduced by importing a library in https that would actually import another one using http only.</p> <p dir="auto">Overall, It’s pretty easy to fix. It should just “by default, disallow http for module resolution”. Maybe a flag could be used to re-enable it, following what I understand is the philosophy of the project regarding security flags. This would be a breaking change however.</p> <p dir="auto">I saw that following the prototype pollution events in the JavaScript world, it was decided to remove <code class="notranslate">Object.prototype.__proto__</code> (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="580331580" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/4341" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/4341/hovercard" href="https://github.com/denoland/deno/pull/4341">#4341</a>). Actually, most browsers still support <code class="notranslate">__proto__</code> (<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto</a>).</p> <p dir="auto">Here, the Deno team did the right thing, giving up browser compatibility to increase the default security level of the runtime. This is exactly the opposite of the decision taken regarding downloading modules using http only.</p> <p dir="auto">IMO, this defeats Deno being “Secure” if browser compatibility is more important than security. Deno is not a web browser. Also, web browsers have benefited from a lot of features regarding security hardening. For instance, security headers <a href="https://owasp.org/www-project-secure-headers/" rel="nofollow">https://owasp.org/www-project-secure-headers/</a>. Most of this would not make sense in Deno but they are here to update these behaviors.</p> <p dir="auto">(edit) Summary for ease of archieving:</p> <ul dir="auto"> <li>current version of the project might be holding an instance of CWE-310 and/or CWE-311 out of similarity with <a title="CVE-2019-5448" data-hovercard-type="advisory" data-hovercard-url="/advisories/GHSA-wqfc-cr59-h64p/hovercard" href="https://github.com/advisories/GHSA-wqfc-cr59-h64p">CVE-2019-5448</a></li> <li>current version of the project might be holding an instance of CWE-770</li> </ul>
<p dir="auto">For security reasons? (I believe for script tags in browsers would show warnings on loading an http resource while the page is loaded under https)</p>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7121557/5150816/e978537c-718a-11e4-8b90-91c9b833b138.png"><img src="https://cloud.githubusercontent.com/assets/7121557/5150816/e978537c-718a-11e4-8b90-91c9b833b138.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Since there's a length property in each part of the union this is a legal property access but then we merge the doc descriptions without de-duping or differentiating which description is which (ie if each type had a length property of the same type but with a different description).</p>
<p dir="auto">I have an issue during writing a piece of declaration for existing node.js module - bluebird.js. The module has a method named <code class="notranslate">props</code> which gets an object has promises in it then return an object have same property names. It seems like object-version <code class="notranslate">map</code>. I wanted to add types for that.</p> <p dir="auto">For <code class="notranslate">all</code> I can easily get the types like</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" static all&lt;T1, T2&gt;(values: [Promise.Thenable&lt;T1&gt;, Promise.Thenable&lt;T2&gt;]): Promise&lt;[T1, T2]&gt;; static all&lt;T1, T2, T3&gt;(values: [Promise.Thenable&lt;T1&gt;, Promise.Thenable&lt;T2&gt;, Promise.Thenable&lt;T3&gt;]): Promise&lt;[T1, T2, T3]&gt;; // ..."><pre class="notranslate"> <span class="pl-s1">static</span> <span class="pl-s1">all</span><span class="pl-c1">&lt;</span><span class="pl-smi">T1</span><span class="pl-kos">,</span> <span class="pl-smi">T2</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">values</span>: <span class="pl-kos">[</span><span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-smi">Thenable</span><span class="pl-kos">&lt;</span><span class="pl-smi">T1</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-smi">Thenable</span><span class="pl-kos">&lt;</span><span class="pl-smi">T2</span><span class="pl-kos">&gt;</span><span class="pl-kos">]</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-kos">[</span><span class="pl-smi">T1</span><span class="pl-kos">,</span> <span class="pl-smi">T2</span><span class="pl-kos">]</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">static</span> <span class="pl-smi">all</span><span class="pl-kos">&lt;</span><span class="pl-smi">T1</span><span class="pl-kos">,</span> <span class="pl-smi">T2</span><span class="pl-kos">,</span> <span class="pl-smi">T3</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">values</span>: <span class="pl-kos">[</span><span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-smi">Thenable</span><span class="pl-kos">&lt;</span><span class="pl-smi">T1</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-smi">Thenable</span><span class="pl-kos">&lt;</span><span class="pl-smi">T2</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-smi">Thenable</span><span class="pl-kos">&lt;</span><span class="pl-smi">T3</span><span class="pl-kos">&gt;</span><span class="pl-kos">]</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-kos">[</span><span class="pl-smi">T1</span><span class="pl-kos">,</span> <span class="pl-smi">T2</span><span class="pl-kos">,</span> <span class="pl-smi">T3</span><span class="pl-kos">]</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-c">// ...</span></pre></div> <p dir="auto">But for <code class="notranslate">props</code> the other hand,</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" static props&lt;T1&gt;(object: {[k:string]: Promise.Thenable&lt;T1&gt;}): Promise&lt;{[k:string]: T1}&gt;;"><pre class="notranslate"> <span class="pl-s1">static</span> <span class="pl-s1">props</span><span class="pl-c1">&lt;</span><span class="pl-smi">T1</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">object</span>: <span class="pl-kos">{</span><span class="pl-kos">[</span><span class="pl-s1">k</span>:<span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-smi">Thenable</span><span class="pl-kos">&lt;</span><span class="pl-smi">T1</span><span class="pl-kos">&gt;</span><span class="pl-kos">}</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-kos">{</span><span class="pl-kos">[</span><span class="pl-s1">k</span>:<span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">T1</span><span class="pl-kos">}</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I'm getting this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bluebird/bluebird-tests.ts(530,10): error TS2339: Property 'foo' does not exist on type '{ [k: string]: Foo; }'. bluebird/bluebird-tests.ts(534,10): error TS2339: Property 'bar' does not exist on type '{ [k: string]: Bar; }'."><pre class="notranslate"><code class="notranslate">bluebird/bluebird-tests.ts(530,10): error TS2339: Property 'foo' does not exist on type '{ [k: string]: Foo; }'. bluebird/bluebird-tests.ts(534,10): error TS2339: Property 'bar' does not exist on type '{ [k: string]: Bar; }'. </code></pre></div> <p dir="auto">Is there any tip for issue like this?</p>
0
<h3 dir="auto">Description</h3> <p dir="auto">At the moment it seems you can't trigger a dag with the CLI with the flag "replace_microseconds":</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/apache/airflow/blob/9337aa92c082db36e82eb314585591394fe8ff27/airflow/cli/commands/dag_command.py#L145">airflow/airflow/cli/commands/dag_command.py</a> </p> <p class="mb-0 color-fg-muted"> Line 145 in <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/9337aa92c082db36e82eb314585591394fe8ff27">9337aa9</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="L145" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="145"></td> <td id="LC145" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">dag_id</span><span class="pl-c1">=</span><span class="pl-s1">args</span>.<span class="pl-s1">dag_id</span>, <span class="pl-s1">run_id</span><span class="pl-c1">=</span><span class="pl-s1">args</span>.<span class="pl-s1">run_id</span>, <span class="pl-s1">conf</span><span class="pl-c1">=</span><span class="pl-s1">args</span>.<span class="pl-s1">conf</span>, <span class="pl-s1">execution_date</span><span class="pl-c1">=</span><span class="pl-s1">args</span>.<span class="pl-s1">exec_date</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">However, this argument seems to be available in the "trigger_dag" function:</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/apache/airflow/blob/9337aa92c082db36e82eb314585591394fe8ff27/airflow/api/common/trigger_dag.py#L103">airflow/airflow/api/common/trigger_dag.py</a> </p> <p class="mb-0 color-fg-muted"> Line 103 in <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/9337aa92c082db36e82eb314585591394fe8ff27">9337aa9</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="L103" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="103"></td> <td id="LC103" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">trigger_dag</span>( </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">The proposal is to add this flag, e.g: airflow dags trigger --replace_microseconds=False ...</p> <p dir="auto">I'm willing to implement this, just wanted to check if this is a changed that is okay</p> <h3 dir="auto">Use case/motivation</h3> <p dir="auto"><em>No response</em></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" checked=""> 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>
<h3 dir="auto">Description</h3> <p dir="auto"><code class="notranslate">airflow dags trigger</code> CLI command always defaults with <code class="notranslate">replace_microseconds=True</code> because of the default value in the API. It would be very nice to be able to control this flag from the CLI.</p> <h3 dir="auto">Use case/motivation</h3> <p dir="auto">We use AWS MWAA. The exposed interface is Airflow CLI (yes, we could also ask to get a different interface from AWS MWAA, but I think this is something that was just overlooked for the CLI?), which does not support overriding <code class="notranslate">replace_microseconds</code> parameter when calling <code class="notranslate">airflow dags trigger</code> CLI command.</p> <p dir="auto">For the most part, our dag runs for a given dag do not happen remotely at the same time. However, based on user behavior, they are sometimes triggered within the same second (albeit not microsecond). The first dag run is successfully triggered, but the second dag run fails the <code class="notranslate">replace_microseconds</code> parameter is wiping out the microseconds that we pass. Thus, DagRun.find_duplicates returns True for the second dag run that we're trying to trigger, and this raises the <code class="notranslate">DagRunAlreadyExists</code> exception.</p> <h3 dir="auto">Related issues</h3> <p dir="auto">Not quite - they all seem to be around the experimental api and not directly related to the CLI.</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" checked=""> 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>
1
<p dir="auto"><a href="https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html" rel="nofollow">https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html</a><br> appears to be the API.</p>
<p dir="auto">Hi, i'm having troubles with <a href="https://pub.dartlang.org/packages/image_picker#-example-tab-" rel="nofollow">Image_picker</a> plugin. I can't show image from gallery. However, show image from camera works perfectly.<br> I try add two permissions to read external storage but doesn't work:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot; /&gt;"><pre class="notranslate">&lt;<span class="pl-ent">uses-permission</span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>android.permission.READ_EXTERNAL_STORAGE<span class="pl-pds">"</span></span> /&gt;</pre></div> <h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Add <code class="notranslate">image_picker: ^0.4.10</code> dependency to <code class="notranslate">pubspec.yaml</code></li> <li>Add <code class="notranslate">import 'package:image_picker/image_picker.dart';</code></li> <li>Code which pick image from plugin:</li> </ol> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pickImageFromGallery() async { var image = await ImagePicker.pickImage(ImageSource.gallery); print(image.path); setState(() { _image = image; }); }"><pre class="notranslate"><span class="pl-en">pickImageFromGallery</span>() <span class="pl-k">async</span> { <span class="pl-k">var</span> image <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-c1">ImagePicker</span>.<span class="pl-en">pickImage</span>(<span class="pl-c1">ImageSource</span>.gallery); <span class="pl-en">print</span>(image.path); <span class="pl-en">setState</span>(() { _image <span class="pl-k">=</span> image; }); }</pre></div> <ol start="4" dir="auto"> <li>Show image in a <code class="notranslate">Container</code> or similar:</li> </ol> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Image.file(_image,)"><pre class="notranslate"><span class="pl-c1">Image</span>.<span class="pl-en">file</span>(_image,)</pre></div> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I/flutter (30940): /data/user/0/com.android.providers.downloads/cache/348s.jpg I/flutter (30940): Another exception was thrown: FileSystemException: Cannot open file, path = '/data/user/0/com.android.providers.downloads/cache/348s.jpg' (OS Error: Permission denied, errno = 13)"><pre class="notranslate"><code class="notranslate">I/flutter (30940): /data/user/0/com.android.providers.downloads/cache/348s.jpg I/flutter (30940): Another exception was thrown: FileSystemException: Cannot open file, path = '/data/user/0/com.android.providers.downloads/cache/348s.jpg' (OS Error: Permission denied, errno = 13) </code></pre></div> <p dir="auto">Flutter analyze:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No issues found! (ran in 1.6s)"><pre class="notranslate"><code class="notranslate">No issues found! (ran in 1.6s) </code></pre></div> <p dir="auto">Flutter doctor -v:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel dev, v0.7.0, on Mac OS X 10.13.6 17G65, locale en-AR) • Flutter version 0.7.0 at /Users/marianocastellano/Documents/Flutter/flutter • Framework revision 09fe34708f (8 days ago), 2018-08-22 10:20:51 -0700 • Engine revision 4b271b2e02 • Dart version 2.1.0-dev.1.0.flutter-69fce633b7 [!] Android toolchain - develop for Android devices (Android SDK 28.0.0) • Android SDK at /Users/marianocastellano/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [!] iOS toolchain - develop for iOS devices ✗ Xcode installation is incomplete; a full installation is necessary for iOS development. Download at: https://developer.apple.com/xcode/download/ Or install Xcode via the App Store. Once installed, run: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer ✗ libimobiledevice and ideviceinstaller are not installed. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller ✗ ios-deploy not installed. To install: brew install ios-deploy ✗ CocoaPods not installed. CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side. Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS. For more info, see https://flutter.io/platform-plugins To install: brew install cocoapods pod setup [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 27.1.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [!] IntelliJ IDEA Community Edition (version 2018.1.5) • IntelliJ at /Applications/IntelliJ IDEA CE.app ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [✓] VS Code (version 1.26.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.17.1 [✓] Connected devices (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) ! Doctor found issues in 3 categories."><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel dev, v0.7.0, on Mac OS X 10.13.6 17G65, locale en-AR) • Flutter version 0.7.0 at /Users/marianocastellano/Documents/Flutter/flutter • Framework revision 09fe34708f (8 days ago), 2018-08-22 10:20:51 -0700 • Engine revision 4b271b2e02 • Dart version 2.1.0-dev.1.0.flutter-69fce633b7 [!] Android toolchain - develop for Android devices (Android SDK 28.0.0) • Android SDK at /Users/marianocastellano/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [!] iOS toolchain - develop for iOS devices ✗ Xcode installation is incomplete; a full installation is necessary for iOS development. Download at: https://developer.apple.com/xcode/download/ Or install Xcode via the App Store. Once installed, run: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer ✗ libimobiledevice and ideviceinstaller are not installed. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller ✗ ios-deploy not installed. To install: brew install ios-deploy ✗ CocoaPods not installed. CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side. Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS. For more info, see https://flutter.io/platform-plugins To install: brew install cocoapods pod setup [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 27.1.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [!] IntelliJ IDEA Community Edition (version 2018.1.5) • IntelliJ at /Applications/IntelliJ IDEA CE.app ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [✓] VS Code (version 1.26.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.17.1 [✓] Connected devices (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) ! Doctor found issues in 3 categories. </code></pre></div>
0
<p dir="auto">I have a very time-sensitive application that I'm building.</p> <p dir="auto">I noticed that the first time a worker sends a new task, it has a non-trivial delay due to the declaring of the queues.</p> <p dir="auto">I would like to know if it's possible to remove this delay, or to move it at some init function in my worker.</p> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <p dir="auto">None found</p> <h4 dir="auto">Related Issues</h4> <p dir="auto">None found</p> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 4.2.1 (windowlicker)</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.2.1 (windowlicker) kombu:4.4.0 py:3.6.6 billiard:3.5.0.5 redis:3.2.0 platform -&gt; system:Darwin arch:64bit imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:disabled broker_url: 'redis://localhost:6379//'"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.2.1 (windowlicker) kombu:4.4.0 py:3.6.6 billiard:3.5.0.5 redis:3.2.0 platform -&gt; system:Darwin arch:64bit imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:disabled broker_url: 'redis://localhost:6379//' </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==2.4.2 billiard==3.5.0.5 celery==4.2.1 kombu==4.4.0 pytz==2018.9 redis==3.2.0 vine==1.2.0"><pre class="notranslate"><code class="notranslate">amqp==2.4.2 billiard==3.5.0.5 celery==4.2.1 kombu==4.4.0 pytz==2018.9 redis==3.2.0 vine==1.2.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import time from celery import Celery app = Celery('test', broker='redis://localhost:6379') @app.task() def dummy_task_secondary(): print(&quot;Dummy task completed&quot;) @app.task() def dummy_task_primary(): t = time.time() dummy_task_secondary.delay() print(f&quot;First time it took {time.time() - t}&quot;) t = time.time() dummy_task_secondary.delay() print(f&quot;Second time it took {time.time() - t}&quot;) "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">time</span> <span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'test'</span>, <span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">'redis://localhost:6379'</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>()</span> <span class="pl-k">def</span> <span class="pl-en">dummy_task_secondary</span>(): <span class="pl-en">print</span>(<span class="pl-s">"Dummy task completed"</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>()</span> <span class="pl-k">def</span> <span class="pl-en">dummy_task_primary</span>(): <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-s1">dummy_task_secondary</span>.<span class="pl-en">delay</span>() <span class="pl-en">print</span>(<span class="pl-s">f"First time it took <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-c1">-</span> <span class="pl-s1">t</span><span class="pl-kos">}</span></span>"</span>) <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-s1">dummy_task_secondary</span>.<span class="pl-en">delay</span>() <span class="pl-en">print</span>(<span class="pl-s">f"Second time it took <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-c1">-</span> <span class="pl-s1">t</span><span class="pl-kos">}</span></span>"</span>)</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">There is no difference between the time it takes to send the first task and the second.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">The first time is dramatically slower:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2019-03-11 15:27:42,610: WARNING/ForkPoolWorker-8] First time it took 0.029098987579345703 [2019-03-11 15:27:42,612: WARNING/ForkPoolWorker-8] Second time it took 0.0007290840148925781"><pre class="notranslate"><code class="notranslate">[2019-03-11 15:27:42,610: WARNING/ForkPoolWorker-8] First time it took 0.029098987579345703 [2019-03-11 15:27:42,612: WARNING/ForkPoolWorker-8] Second time it took 0.0007290840148925781 </code></pre></div>
<p dir="auto">I am not sure if this issue is a feature request or a request for guidance. I do not see how this could be accomplished, so I guess it is a feature request -- but perhaps it is already possible?</p> <p dir="auto">I am trying to swap from using class based tasks to decorator tasks. Simple tasks are easy to swap over. However, some of my tasks are based around this class based task: <a href="https://github.com/PolicyStat/jobtastic/blob/v2.1.1/jobtastic/task.py#L313">https://github.com/PolicyStat/jobtastic/blob/v2.1.1/jobtastic/task.py#L313</a></p> <p dir="auto">The Jobtastic Task Class provides a run method that prevents duplicate tasks from running simultaneously and abstracts some cruft that is pretty handy. Then its run method calls <code class="notranslate">calculate_result()</code> to perform the actual work of the task you create.</p> <p dir="auto">What has been holding this back is since the <a href="https://docs.celeryproject.org/en/stable/userguide/tasks.html#custom-task-classes" rel="nofollow">decorator makes your function the run method</a>, how can I implement this functionality without rewriting it in every task? If the run() method of the Jobtastic Task is overridden, the utility of the task is lost.</p> <p dir="auto">Is there a way to incorporate the advanced runtime logic of the Jobtastic Task? Is it possible to tell the decorator what method the wrapped function should become? Or would an additional <code class="notranslate">run()</code> wrapper be required to handle this with a decorated approach?</p>
0
<p dir="auto">The text editor is a little buggy. Every time I go to the next challenge I have to reset the code in order to get the text-editor to be responsive. Specific issues with the text editor include: inability to select a line of code, clicking on a line and having it select the line below, navigating with the arrow keys will often result in a hard return to the next line while half-way through.</p> <p dir="auto">I've had this issue on the last 20+ challenges. I've closed out my browser, closed tabs, refreshed the page and reset the code. None of these permanently solve the issue. I've talked with other coders and they are running into the same issue too.</p> <p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/call-out-optional-actions-with-button-info#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch2%20class%3D%22red-text%20text-center%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%20%20%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%20%20%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back.%20%22%3E%3C%2Fa%3E%0A%0A%20%20%3Cimg%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-running-cats%22%20class%3D%22img-responsive%22%20alt%3D%22Three%20kittens%20running%20towards%20the%20camera.%20%22%3E%0A%20%20%3Cbutton%20class%3D%22btn%20btn-block%20btn-primary%22%3ELike%3C%2Fbutton%3E%0A%20%20%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%20%20%3Cul%3E%0A%20%20%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%20%20%3C%2Ful%3E%0A%20%20%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%20%20%3Col%3E%0A%20%20%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%20%20%3C%2Fol%3E%0A%20%20%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Indoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Outdoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Loving%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Lazy%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Crazy%3C%2Flabel%3E%0A%20%20%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%20required%3E%0A%20%20%20%20%3Cbutton%20type%3D%22submit%22%3ESubmit%3C%2Fbutton%3E%0A%20%20%3C%2Fform%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Call out Optional Actions with Button Info</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;link href=&quot;https://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } &lt;/style&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h2 class=&quot;red-text text-center&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;smaller-image thick-green-border&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot; alt=&quot;A cute orange cat lying on its back. &quot;&gt;&lt;/a&gt; &lt;img src=&quot;https://bit.ly/fcc-running-cats&quot; class=&quot;img-responsive&quot; alt=&quot;Three kittens running towards the camera. &quot;&gt; &lt;button class=&quot;btn btn-block btn-primary&quot;&gt;Like&lt;/button&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Indoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Outdoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Loving&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Lazy&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Crazy&lt;/label&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot; required&gt; &lt;button type=&quot;submit&quot;&gt;Submit&lt;/button&gt; &lt;/form&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } .<span class="pl-c1">smaller-image</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</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">container-fluid</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text text-center</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Click here for <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back. </span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-running-cats</span>" <span class="pl-c1">class</span>="<span class="pl-s">img-responsive</span>" <span class="pl-c1">alt</span>="<span class="pl-s">Three kittens running towards the camera. </span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-primary</span>"<span class="pl-kos">&gt;</span>Like<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Things cats love:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">&gt;</span> Indoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">&gt;</span> Outdoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Loving<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Lazy<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Crazy<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">&gt;</span>Submit<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</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">Challenge <a href="https://www.freecodecamp.com/en/challenges/html5-and-css/change-the-color-of-text" rel="nofollow">change-the-color-of-text</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;h2 style=&quot;color:red&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.&lt;/p&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">style</span>="<span class="pl-s">color:red</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span></pre></div>
0
<p dir="auto">In the currently online pandas 0.19.2 documentation, I see the following inconsistency:</p> <ul dir="auto"> <li>There is <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.pivot_table.html" rel="nofollow">pandas.DataFrame.pivot_table</a>, but also <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.pivot_table.html" rel="nofollow">pandas.pivot_table</a>.</li> <li>In the same way, there is <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.pivot.html" rel="nofollow">pandas.DataFrame.pivot</a> and also <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.pivot.html" rel="nofollow">pandas.pivot</a>. (BTW., the latter has the dataframe argument missing.)</li> <li>There is <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.melt.html" rel="nofollow">pandas.melt</a>, but no pandas.DataFrame.melt.</li> </ul> <p dir="auto">The global versions of these methods (and probably others) are identical to the local ones except for an additional DataFrame argument, I think that all these should only be DataFrame methods. This would e.g. consistently enable chaining.</p> <p dir="auto">So let me suggest that the global versions should be removed, of course after a deprecation period.</p>
<p dir="auto">I think this is pretty duplicative and unless its a <em>major</em> bug fix should be avoided (in whatsnew), though I am +1 for API/enhancements...etc</p> <p dir="auto">need a 1-time cleanout of v0.13.0 txt...then (let's leave prior version alone)</p>
0
<p dir="auto">This may have been filed already, but I did a quick search and couldn't find it. Please close if that's the the case.</p> <p dir="auto">A React component's reusability as a view is highly limited without strong ties in with CSS. Currently, passing className to a component eg <code class="notranslate">&lt;Component className='css-class' /&gt;</code> does nothing unless explicitly consumed by the the implementation of <code class="notranslate">Component</code>. This requires that each implementation to read the immutable prop (possibly use the React css addon) to append the class to the top level DOM or to explicitly set the <code class="notranslate">style</code>. As a result, this creates a lot of code duplication for components that need the flexibility to be used in multiple contexts.</p> <p dir="auto">While, my understanding of the internals may be a bit lacking, I believe that this feature would mesh well with JSX since <code class="notranslate">className</code> and <code class="notranslate">style</code> are already protected keywords. Certainly let me know if I am missing something obvious as to why this would be a bad feature.</p>
<blockquote> <p dir="auto">I was in the middle of using dev-tools <code class="notranslate">Profiler</code> to check what components will be re-rendered, and this error happened when I pressed the stop button of the recorder...</p> </blockquote> <p dir="auto">This is the reprex project links: <a href="https://github.com/web-reprex/prettier-list-different">https://github.com/web-reprex/prettier-list-different</a></p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.13.0-2a7bb41548</p> <p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20430:21)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20275:26)<br> at ProfilingCache_ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20803:11)<br> at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35651:33)<br> at Qh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13178:7)<br> at Bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13879:7)<br> at uk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16673:86)<br> at tk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16193:11)<br> at qk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16185:23)<br> at jk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16169:5)</p> <p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35634:34)<br> at div<br> at div<br> at div<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29016:3)<br> at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37064:34)<br> at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30336:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30416:5)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34462:3)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25252:3)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25855:3)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30558:3)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37572:3)</p>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.5.3</li> <li>Operating System / Platform =&gt; iOS 14.7.1 iOS 15</li> <li>Compiler =&gt; Xcode 12</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">When I use version 4.5.3 to call the stitch method on IOS, the puzzle times an error. I can't debug. I don't know what the reason is. Please take a look. This problem is accidental. It is particularly easy to report an error by transmitting iPad screenshots to sitch.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7530926/129342992-38fa8c5c-f26e-422b-b3ff-57cc3007a6ba.jpg"><img src="https://user-images.githubusercontent.com/7530926/129342992-38fa8c5c-f26e-422b-b3ff-57cc3007a6ba.jpg" alt="661628822758_ pic_hd" style="max-width: 100%;"></a></p> <p dir="auto">The above figure shows the error stack.<br> code:</p> <p dir="auto">Ptr stitcher = Stitcher::create(cv::Stitcher::SCANS);<br> Stitcher::Status status = stitcher-&gt;stitch(imgs, pano);</p>
<ul dir="auto"> <li>OpenCV =&gt; 3.4 / master (probably all 3.x versions)</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>Compiler =&gt; python3.5, opencv3.4.3 (from pip here)</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">we <em>should</em> use <code class="notranslate">XXX_create()</code> functions, but folks will try to use <code class="notranslate">XXX()</code> instead ,<br> leading to cryptic errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; img = np.array((2,2),np.uint8) # a dummy img, just for demo purpose &gt;&gt;&gt; o = cv2.ORB() # this should not be possible, but it is ! &gt;&gt;&gt; o # it is a valid instance &lt;ORB 0000000603D44F90&gt; &gt;&gt;&gt; o.detect(img) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; TypeError: Incorrect type of self (must be 'Feature2D' or its derivative) &gt;&gt;&gt; type(o) # python thinks, everything is ok here ;( &lt;class 'cv2.ORB'&gt; &gt;&gt;&gt; isinstance(o, cv2.Feature2D) # same delusion True &gt;&gt;&gt; &gt;&gt;&gt; s = cv2.xfeatures2d.SIFT() # proper error. Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; AttributeError: module 'cv2.xfeatures2d' has no attribute 'SIFT' &gt;&gt;&gt; s = cv2.xfeatures2d_SIFT() # but uhhh ! &gt;&gt;&gt; s.detect(img) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; TypeError: Incorrect type of self (must be 'Feature2D' or its derivative) &gt;&gt;&gt; &gt;&gt;&gt; c = cv2.CLAHE() # here, too ! &gt;&gt;&gt; c.apply(img) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; TypeError: Incorrect type of self (must be 'CLAHE' or its derivative) "><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; img = np.array((2,2),np.uint8) # a dummy img, just for demo purpose &gt;&gt;&gt; o = cv2.ORB() # this should not be possible, but it is ! &gt;&gt;&gt; o # it is a valid instance &lt;ORB 0000000603D44F90&gt; &gt;&gt;&gt; o.detect(img) Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; TypeError: Incorrect type of self (must be 'Feature2D' or its derivative) &gt;&gt;&gt; type(o) # python thinks, everything is ok here ;( &lt;class 'cv2.ORB'&gt; &gt;&gt;&gt; isinstance(o, cv2.Feature2D) # same delusion True &gt;&gt;&gt; &gt;&gt;&gt; s = cv2.xfeatures2d.SIFT() # proper error. Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; AttributeError: module 'cv2.xfeatures2d' has no attribute 'SIFT' &gt;&gt;&gt; s = cv2.xfeatures2d_SIFT() # but uhhh ! &gt;&gt;&gt; s.detect(img) Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; TypeError: Incorrect type of self (must be 'Feature2D' or its derivative) &gt;&gt;&gt; &gt;&gt;&gt; c = cv2.CLAHE() # here, too ! &gt;&gt;&gt; c.apply(img) Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; TypeError: Incorrect type of self (must be 'CLAHE' or its derivative) </code></pre></div>
1
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alitvak69/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alitvak69">@alitvak69</a> on 2016-10-27T00:03:27Z</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">setup</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0.0 config file = /home/vagrant/ansible/ansible.cfg configured module search path = ['/home/vagrant/ansible/library']"><pre class="notranslate"><code class="notranslate">ansible 2.2.0.0 config file = /home/vagrant/ansible/ansible.cfg configured module search path = ['/home/vagrant/ansible/library'] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h1 dir="auto">Enabled smart gathering</h1> <p dir="auto">gathering: smart</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 16.04.1</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">ipv4_secondaries displays duplicate address information</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Run<br> ansible -m setup hostname.foo -a "filter=ansible_eth1"</p> <p dir="auto">Receive a filtered response with eth1. Here is example of secondaries<br> "ipv4_secondaries": [<br> {<br> "address": "75.145.154.231",<br> "broadcast": "75.145.154.239",<br> "netmask": "255.255.255.240",<br> "network": "75.145.154.224"<br> },<br> {<br> "address": "75.145.154.231",<br> "broadcast": "75.145.154.239",<br> "netmask": "255.255.255.240",<br> "network": "75.145.154.224"<br> }<br> ],</p> <p dir="auto">Information is repeated</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible -m setup hostname.foo -a &quot;filter=ansible_eth1&quot;"><pre class="notranslate"><code class="notranslate">ansible -m setup hostname.foo -a "filter=ansible_eth1" </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;ipv4_secondaries&quot;: [ { &quot;address&quot;: &quot;75.145.154.231&quot;, &quot;broadcast&quot;: &quot;75.145.154.239&quot;, &quot;netmask&quot;: &quot;255.255.255.240&quot;, &quot;network&quot;: &quot;75.145.154.224&quot; }, ], ... "><pre class="notranslate"><code class="notranslate"> "ipv4_secondaries": [ { "address": "75.145.154.231", "broadcast": "75.145.154.239", "netmask": "255.255.255.240", "network": "75.145.154.224" }, ], ... </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Received</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... &quot;ipv4_secondaries&quot;: [ { &quot;address&quot;: &quot;75.145.154.231&quot;, &quot;broadcast&quot;: &quot;75.145.154.239&quot;, &quot;netmask&quot;: &quot;255.255.255.240&quot;, &quot;network&quot;: &quot;75.145.154.224&quot; }, { &quot;address&quot;: &quot;75.145.154.231&quot;, &quot;broadcast&quot;: &quot;75.145.154.239&quot;, &quot;netmask&quot;: &quot;255.255.255.240&quot;, &quot;network&quot;: &quot;75.145.154.224&quot; } ], ... "><pre class="notranslate"><code class="notranslate">... "ipv4_secondaries": [ { "address": "75.145.154.231", "broadcast": "75.145.154.239", "netmask": "255.255.255.240", "network": "75.145.154.224" }, { "address": "75.145.154.231", "broadcast": "75.145.154.239", "netmask": "255.255.255.240", "network": "75.145.154.224" } ], ... </code></pre></div> <p dir="auto">Posting the full verbose output</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/system/setup.py &lt;10.10.10.83&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;10.10.10.83&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r 10.10.10.83 '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo $HOME/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234 `&quot; &amp;&amp; echo ansible-tmp-1477526333.03-252143209167234=&quot;` echo $HOME/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;'' &lt;10.10.10.83&gt; PUT /tmp/tmpZmW3aJ TO /root/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234/setup.py &lt;10.10.10.83&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r '[10.10.10.83]' &lt;10.10.10.83&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;10.10.10.83&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r 10.10.10.83 '/bin/sh -c '&quot;'&quot;'chmod u+x /root/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234/ /root/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234/setup.py &amp;&amp; sleep 0'&quot;'&quot;'' &lt;10.10.10.83&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;10.10.10.83&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r -tt 10.10.10.83 '/bin/sh -c '&quot;'&quot;'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234/setup.py; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'&quot;'&quot;'' voippbx.xcastlabs.com | SUCCESS =&gt; { &quot;ansible_facts&quot;: { &quot;ansible_eth1&quot;: { &quot;active&quot;: true, &quot;device&quot;: &quot;eth1&quot;, &quot;features&quot;: { &quot;busy_poll&quot;: &quot;on [fixed]&quot;, &quot;fcoe_mtu&quot;: &quot;off [fixed]&quot;, &quot;generic_receive_offload&quot;: &quot;on&quot;, &quot;generic_segmentation_offload&quot;: &quot;on&quot;, &quot;highdma&quot;: &quot;on [fixed]&quot;, &quot;l2_fwd_offload&quot;: &quot;off [fixed]&quot;, &quot;large_receive_offload&quot;: &quot;off [fixed]&quot;, &quot;loopback&quot;: &quot;off [fixed]&quot;, &quot;netns_local&quot;: &quot;off [fixed]&quot;, &quot;ntuple_filters&quot;: &quot;off [fixed]&quot;, &quot;receive_hashing&quot;: &quot;off [fixed]&quot;, &quot;rx_all&quot;: &quot;off [fixed]&quot;, &quot;rx_checksumming&quot;: &quot;on [fixed]&quot;, &quot;rx_fcs&quot;: &quot;off [fixed]&quot;, &quot;rx_vlan_filter&quot;: &quot;on [fixed]&quot;, &quot;rx_vlan_offload&quot;: &quot;off [fixed]&quot;, &quot;rx_vlan_stag_filter&quot;: &quot;off [fixed]&quot;, &quot;rx_vlan_stag_hw_parse&quot;: &quot;off [fixed]&quot;, &quot;scatter_gather&quot;: &quot;on&quot;, &quot;tcp_segmentation_offload&quot;: &quot;on&quot;, &quot;tx_checksum_fcoe_crc&quot;: &quot;off [fixed]&quot;, &quot;tx_checksum_ip_generic&quot;: &quot;on&quot;, &quot;tx_checksum_ipv4&quot;: &quot;off [fixed]&quot;, &quot;tx_checksum_ipv6&quot;: &quot;off [fixed]&quot;, &quot;tx_checksum_sctp&quot;: &quot;off [fixed]&quot;, &quot;tx_checksumming&quot;: &quot;on&quot;, &quot;tx_fcoe_segmentation&quot;: &quot;off [fixed]&quot;, &quot;tx_gre_segmentation&quot;: &quot;off [fixed]&quot;, &quot;tx_gso_robust&quot;: &quot;on [fixed]&quot;, &quot;tx_ipip_segmentation&quot;: &quot;off [fixed]&quot;, &quot;tx_lockless&quot;: &quot;off [fixed]&quot;, &quot;tx_nocache_copy&quot;: &quot;off&quot;, &quot;tx_scatter_gather&quot;: &quot;on&quot;, &quot;tx_scatter_gather_fraglist&quot;: &quot;off [fixed]&quot;, &quot;tx_sit_segmentation&quot;: &quot;off [fixed]&quot;, &quot;tx_tcp6_segmentation&quot;: &quot;on&quot;, &quot;tx_tcp_ecn_segmentation&quot;: &quot;on&quot;, &quot;tx_tcp_segmentation&quot;: &quot;on&quot;, &quot;tx_udp_tnl_segmentation&quot;: &quot;off [fixed]&quot;, &quot;tx_vlan_offload&quot;: &quot;off [fixed]&quot;, &quot;tx_vlan_stag_hw_insert&quot;: &quot;off [fixed]&quot;, &quot;udp_fragmentation_offload&quot;: &quot;on&quot;, &quot;vlan_challenged&quot;: &quot;off [fixed]&quot; }, &quot;ipv4&quot;: { &quot;address&quot;: &quot;75.145.154.230&quot;, &quot;broadcast&quot;: &quot;75.145.154.239&quot;, &quot;netmask&quot;: &quot;255.255.255.240&quot;, &quot;network&quot;: &quot;75.145.154.224&quot; }, &quot;ipv4_secondaries&quot;: [ { &quot;address&quot;: &quot;75.145.154.231&quot;, &quot;broadcast&quot;: &quot;75.145.154.239&quot;, &quot;netmask&quot;: &quot;255.255.255.240&quot;, &quot;network&quot;: &quot;75.145.154.224&quot; }, { &quot;address&quot;: &quot;75.145.154.231&quot;, &quot;broadcast&quot;: &quot;75.145.154.239&quot;, &quot;netmask&quot;: &quot;255.255.255.240&quot;, &quot;network&quot;: &quot;75.145.154.224&quot; } ], &quot;ipv6&quot;: [ { &quot;address&quot;: &quot;fe80::5c1c:e5ff:fe35:7c81&quot;, &quot;prefix&quot;: &quot;64&quot;, &quot;scope&quot;: &quot;link&quot; } ], &quot;macaddress&quot;: &quot;5e:1c:e5:35:7c:81&quot;, &quot;module&quot;: &quot;virtio_net&quot;, &quot;mtu&quot;: 1500, &quot;pciid&quot;: &quot;virtio4&quot;, &quot;promisc&quot;: false, &quot;type&quot;: &quot;ether&quot; } }, &quot;changed&quot;: false, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;fact_path&quot;: &quot;/etc/ansible/facts.d&quot;, &quot;filter&quot;: &quot;ansible_eth1&quot;, &quot;gather_subset&quot;: [ &quot;all&quot; ], &quot;gather_timeout&quot;: 10 }, &quot;module_name&quot;: &quot;setup&quot; } } "><pre class="notranslate"><code class="notranslate">Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/system/setup.py &lt;10.10.10.83&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;10.10.10.83&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r 10.10.10.83 '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234 `" &amp;&amp; echo ansible-tmp-1477526333.03-252143209167234="` echo $HOME/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234 `" ) &amp;&amp; sleep 0'"'"'' &lt;10.10.10.83&gt; PUT /tmp/tmpZmW3aJ TO /root/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234/setup.py &lt;10.10.10.83&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r '[10.10.10.83]' &lt;10.10.10.83&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;10.10.10.83&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r 10.10.10.83 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234/ /root/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234/setup.py &amp;&amp; sleep 0'"'"'' &lt;10.10.10.83&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;10.10.10.83&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r -tt 10.10.10.83 '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234/setup.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1477526333.03-252143209167234/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'"'"'' voippbx.xcastlabs.com | SUCCESS =&gt; { "ansible_facts": { "ansible_eth1": { "active": true, "device": "eth1", "features": { "busy_poll": "on [fixed]", "fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "on [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "off [fixed]", "netns_local": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_all": "off [fixed]", "rx_checksumming": "on [fixed]", "rx_fcs": "off [fixed]", "rx_vlan_filter": "on [fixed]", "rx_vlan_offload": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather": "on", "tcp_segmentation_offload": "on", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "tx_checksumming": "on", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_robust": "on [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_lockless": "off [fixed]", "tx_nocache_copy": "off", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tx_sit_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_segmentation": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "udp_fragmentation_offload": "on", "vlan_challenged": "off [fixed]" }, "ipv4": { "address": "75.145.154.230", "broadcast": "75.145.154.239", "netmask": "255.255.255.240", "network": "75.145.154.224" }, "ipv4_secondaries": [ { "address": "75.145.154.231", "broadcast": "75.145.154.239", "netmask": "255.255.255.240", "network": "75.145.154.224" }, { "address": "75.145.154.231", "broadcast": "75.145.154.239", "netmask": "255.255.255.240", "network": "75.145.154.224" } ], "ipv6": [ { "address": "fe80::5c1c:e5ff:fe35:7c81", "prefix": "64", "scope": "link" } ], "macaddress": "5e:1c:e5:35:7c:81", "module": "virtio_net", "mtu": 1500, "pciid": "virtio4", "promisc": false, "type": "ether" } }, "changed": false, "invocation": { "module_args": { "fact_path": "/etc/ansible/facts.d", "filter": "ansible_eth1", "gather_subset": [ "all" ], "gather_timeout": 10 }, "module_name": "setup" } } </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="185541635" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/5403" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/5403/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/5403">ansible/ansible-modules-core#5403</a></p>
<p dir="auto">Hi,</p> <p dir="auto">I've made a very basic gist to demonstrate the current issue that I'm having.</p> <p dir="auto"><a href="https://gist.github.com/thegiantbeast/90efb8cb1a08cdef8c0b">https://gist.github.com/thegiantbeast/90efb8cb1a08cdef8c0b</a></p> <p dir="auto">The problem is that <code class="notranslate">{ role: installVersion, pkgVersion: "{{ currentVersion }}" }</code> is only executed once, although the <code class="notranslate">currentVersion</code> keeps changing between executions (check <em>output</em>).<br> I believe this is related with what I've seen people mention as 'signature', because the task content/variables never change between them, only the actual variables content.</p> <p dir="auto">I even tried with <code class="notranslate">allow_duplicates: true</code> before <code class="notranslate">dependencies:</code> but it didn't work either.<br> This might be related with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49353641" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/9578" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/9578/hovercard" href="https://github.com/ansible/ansible/issues/9578">#9578</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="96822992" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/11707" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/11707/hovercard" href="https://github.com/ansible/ansible/issues/11707">#11707</a> as well, but I can't confirm if that's the case.</p> <p dir="auto">The current workaround that I've found for this is to add an "extra" (read: never used) variable that changes between the execution "blocks". Example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies: - { role: checkVersion, version: &quot;stable&quot; } - { role: installVersion, pkgVersion: &quot;{{ currentVersion }}&quot;, forceExec: &quot;stable&quot; } - { role: checkVersion, version: &quot;beta&quot; } - { role: installVersion, pkgVersion: &quot;{{ currentVersion }}&quot;, forceExec: &quot;beta&quot; } - { role: checkVersion, version: &quot;alpha&quot; } - { role: installVersion, pkgVersion: &quot;{{ currentVersion }}&quot;, forceExec: &quot;alpha&quot; }"><pre class="notranslate"><code class="notranslate">dependencies: - { role: checkVersion, version: "stable" } - { role: installVersion, pkgVersion: "{{ currentVersion }}", forceExec: "stable" } - { role: checkVersion, version: "beta" } - { role: installVersion, pkgVersion: "{{ currentVersion }}", forceExec: "beta" } - { role: checkVersion, version: "alpha" } - { role: installVersion, pkgVersion: "{{ currentVersion }}", forceExec: "alpha" } </code></pre></div> <p dir="auto">But this is not scalable if you have a "block" with 10 or more roles.</p> <p dir="auto">Has anyone ever saw this issue?<br> Not 100% sure if this is a bug or an expected behaviour, and if it's an expected behaviour, what's the best way to do implement (other than adding an extra variable)?</p>
0
<h4 dir="auto">Responsive Design With Bootstrap</h4> <p dir="auto"><a href="https://www.freecodecamp.com/challenges/responsively-style-checkboxes" rel="nofollow">Link to challenge</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">The first checkbox's label, "Loving", drops down to a new line. To me, it looks odd and appears as though the assignment is incorrect or that something is wrong with the student's code.</p> <p dir="auto">A student may hack this by removing the leading space before "Loving", but then it won't visually match the other two checkbox labels, both of which have spaces to separate them from the actual checkbox itelf.</p> <p dir="auto">Perhaps shortening the actual word from "Loving" to "Kind" or "Calm" would be an easy fix?</p> <h4 dir="auto">Browser Information</h4> <p dir="auto">Appears in current versions of Chrome and Firefox. Not tested in any other browsers. Only tested on desktop.</p> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2657301/20356052/6c881b74-abf1-11e6-848a-dc3933295b8c.jpg"><img src="https://cloud.githubusercontent.com/assets/2657301/20356052/6c881b74-abf1-11e6-848a-dc3933295b8c.jpg" alt="overflow" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2657301/20356060/72e610e8-abf1-11e6-84d0-365c89c0f01b.jpg"><img src="https://cloud.githubusercontent.com/assets/2657301/20356060/72e610e8-abf1-11e6-84d0-365c89c0f01b.jpg" alt="nospace" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2657301/20356070/77239004-abf1-11e6-90ac-5c4de57c88fa.jpg"><img src="https://cloud.githubusercontent.com/assets/2657301/20356070/77239004-abf1-11e6-90ac-5c4de57c88fa.jpg" alt="newword" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-modify-array-data-with-indexes" rel="nofollow">http://freecodecamp.com/challenges/waypoint-modify-array-data-with-indexes</a> has an issue. It seems like a bug. Thanks.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5332145/9420506/fb07939e-486e-11e5-8c5f-20906d1bdad9.png"><img width="421" alt="screen shot 2015-08-22 at 01 41 11" src="https://cloud.githubusercontent.com/assets/5332145/9420506/fb07939e-486e-11e5-8c5f-20906d1bdad9.png" style="max-width: 100%;"></a></p>
0
<p dir="auto">Using 2.5.x-dev (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/7e573f4f8a7ff7061ebf3f85835bc307145f2ddf/hovercard" href="https://github.com/symfony/symfony/commit/7e573f4f8a7ff7061ebf3f85835bc307145f2ddf"><tt>7e573f4</tt></a>)</p> <p dir="auto">Duplicated property throws error in appDevDebugProjectContainer :</p> <blockquote> <p dir="auto">PHP Fatal error: Cannot redeclare appDevDebugProjectContainer::$parameters in home/vagrant/var/www/app/cache/dev/appDevDebugProjectContainer.php on line 22</p> </blockquote> <p dir="auto">Maybe coming from this line </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/symfony/symfony/blob/7e573f4f8a7ff7061ebf3f85835bc307145f2ddf/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php#L846">symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php</a> </p> <p class="mb-0 color-fg-muted"> Line 846 in <a data-pjax="true" class="commit-tease-sha" href="/symfony/symfony/commit/7e573f4f8a7ff7061ebf3f85835bc307145f2ddf">7e573f4</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="L846" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="846"></td> <td id="LC846" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> private \$parameters;</span> </td> </tr> </tbody></table> </div> </div> <p></p>
<p dir="auto"><code class="notranslate">ReflectionExtractor</code> currently supports array mutators (<code class="notranslate">add</code>, <code class="notranslate">remove</code>) but it's not very useful as the singular method name is not being checked.</p> <p dir="auto">If we can use <code class="notranslate">doctrine/inflector</code> to singularize the property name, we'll be able to pick up a lot more useful information in many cases. I'll open a PR if this is desirable (looking at the <code class="notranslate">composer.json</code> of Symfony components, I understand that it has to be an optional dependency).</p>
0
<p dir="auto">Here you can see the problems, uncommented the bootstrap.css injection to see the errors in:</p> <p dir="auto"><a href="http://jsfiddle.net/26mrX/" rel="nofollow">http://jsfiddle.net/26mrX/</a></p> <ul dir="auto"> <li>Marker icon looks wrong when icon is draggable: (draggable: true)</li> <li>Map zoom controlers looks wrong and they disappear</li> <li>Much much more problems!!!!...</li> </ul> <p dir="auto">It is incredible that you have this lame problems, shame on you!</p>
<p dir="auto">First of all thanks for your fantastic work. It does SAVE me a lot of time.</p> <p dir="auto">When I put Google Maps into Bootstrap layout, img tag in Google Maps breaks because Bootstrap set <strong>img max-width to 100%</strong>. When I comment max-width, it's working find but I'm not sure whether it'll break something else in Bootstrap or not.</p> <p dir="auto">Bootstrap and Google Maps<br> <a href="http://jsfiddle.net/jhnRD/1/" rel="nofollow">http://jsfiddle.net/jhnRD/1/</a></p> <p dir="auto">Google Maps without Bootstrap<br> <a href="http://jsfiddle.net/aVx8L/" rel="nofollow">http://jsfiddle.net/aVx8L/</a></p> <p dir="auto">Cheers,</p>
1
<p dir="auto">tsc version 1.4.1.0 (1.3.0 work correctly)<br> tsc -w --out ../file.js file.ts</p> <p dir="auto">file.ts</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// &lt;reference path=&quot;./interfaces.ts&quot;/&gt; alert('1');"><pre class="notranslate"><span class="pl-c">/// &lt;reference path="./interfaces.ts"/&gt;</span> <span class="pl-en">alert</span><span class="pl-kos">(</span><span class="pl-s">'1'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">interfaces.ts</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface HashTable&lt;T&gt; { [key:string]: T; } /*interface Test { }*/"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">HashTable</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</span>:<span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">/*interface Test {</span> <span class="pl-c">}*/</span></pre></div> <p dir="auto">( <em>multiline</em> comment closed on <em>last line of file</em>, no emtpy lines after it ). compiled to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/*interface Test { interface HashTable&lt;T&gt; { [key:string]: T; } /*interface Test { /// &lt;reference path=&quot;./interfaces.ts&quot;/&gt; alert('1');"><pre class="notranslate"><span class="pl-c1">/</span><span class="pl-c1">*</span>interface Test <span class="pl-kos">{</span> <span class="pl-s1">interface</span> <span class="pl-v">HashTable</span><span class="pl-c1">&lt;</span><span class="pl-v">T</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</span>:<span class="pl-s1">string</span><span class="pl-kos">]</span>: <span class="pl-v">T</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">*</span>interface Test <span class="pl-kos">{</span> <span class="pl-c">/// &lt;reference path="./interfaces.ts"/&gt;</span> <span class="pl-en">alert</span><span class="pl-kos">(</span><span class="pl-s">'1'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">last line of interfaces.ts dissapeared so comment block doesnt closed and result js file incorrect.</p> <hr> <p dir="auto">without reference<br> typescript</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface HashTable&lt;T&gt; { [key:string]: T; } /*interface Test { */"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">HashTable</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</span>:<span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">/*interface Test { </span> <span class="pl-c">*/</span></pre></div> <p dir="auto">js</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/*interface Test { interface HashTable&lt;T&gt; { [key:string]: T; } /*interface Test { "><pre class="notranslate"><span class="pl-c1">/</span><span class="pl-c1">*</span>interface Test <span class="pl-kos">{</span> <span class="pl-s1">interface</span> <span class="pl-v">HashTable</span><span class="pl-c1">&lt;</span><span class="pl-v">T</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</span>:<span class="pl-s1">string</span><span class="pl-kos">]</span>: <span class="pl-v">T</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">*</span>interface Test <span class="pl-kos">{</span></pre></div>
<p dir="auto">Hi,</p> <p dir="auto"><strong>TS Version</strong>: 1.4</p> <p dir="auto">The following code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var x: any; /* var bar; */"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">x</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-c">/*</span> <span class="pl-c">var bar;</span> <span class="pl-c">*/</span></pre></div> <p dir="auto">Emits the following JavaScript</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var x; /* var bar; var x: any; /* var bar;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">x</span><span class="pl-kos">;</span> <span class="pl-c1">/</span><span class="pl-c1">*</span> <span class="pl-k">var</span> <span class="pl-s1">bar</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">x</span>: <span class="pl-s1">any</span><span class="pl-kos">;</span> <span class="pl-c1">/</span><span class="pl-c1">*</span> <span class="pl-k">var</span> <span class="pl-s1">bar</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Expected</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var x; /* var bar; */"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">x</span><span class="pl-kos">;</span> <span class="pl-c">/*</span> <span class="pl-c">var bar;</span> <span class="pl-c">*/</span></pre></div>
1
<p dir="auto">There are some cases where dpkg/apt can leave file like logging.yml.dpkg-dist files in /etc/elasticsearch and LogConfigurator will pick them up by default. This is bad because those files might contain garbage and break logging. Why not <em>just</em> pick up logging.yml? Is this something like the <a href="http://serverfault.com/a/240182/151116" rel="nofollow">conf.d</a> pattern?</p>
<p dir="auto">elasticsearch 1.3 will try to import .svn/text-base/logging.yml.text-base as json and fail to set up logging as a whole.<br> I think it's not reproducible with subversion 1.7+ since a new .svn-format with hash-based filenames is used. But Debian wheezy/stable is still using subversion 1.6 and is what we use.<br> I found <a href="https://github.com/elasticsearch/elasticsearch/blob/1.3/src/main/java/org/elasticsearch/common/logging/log4j/LogConfigurator.java#L107">https://github.com/elasticsearch/elasticsearch/blob/1.3/src/main/java/org/elasticsearch/common/logging/log4j/LogConfigurator.java#L107</a> which is the problematic part.<br> imo it should at least skip "hidden" directories, if not be limited to some more strict rules (file extension whitelist without the "catch-all" default, ...).</p> <p dir="auto">I thought of only ignoring the failed file, but that could lead to strange errors too.<br> What if you have a logging.json. Then you would have a .svn/text-base/logging.json.text-base, which could import and override the original logging.json (local modified logging.json). =&gt; quite troublesome to find out why the changes don't work until you commit them :)</p> <h5 dir="auto">Known workarounds (also see <a href="https://groups.google.com/forum/#!topic/elasticsearch/8zlwEj12DjI" rel="nofollow">https://groups.google.com/forum/#!topic/elasticsearch/8zlwEj12DjI</a>):</h5> <ol dir="auto"> <li>Add "copy/move to logging.yml" command before startup (so that the file in .svn doesn't start with "logging.")</li> <li>mount an empty directory over .svn (tmpfs, ...). Umount/mount if needed to work with svn &lt;= that's the solution we use, since we mount it readonly over nfs and cp/mv doesn't work</li> </ol> <p dir="auto">I think both workarounds are quite dirty hacks and you shouldn't be forced to use those, just because you use a vcs.</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="books" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4da.png">📚</g-emoji> Documentation</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44090/60986664-41e0d980-a340-11e9-8fa6-89984863d69e.png"><img src="https://user-images.githubusercontent.com/44090/60986664-41e0d980-a340-11e9-8fa6-89984863d69e.png" alt="image" style="max-width: 100%;"></a></p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> FeatureAlphaDropout</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> nn.init.zeros_, nn.init.ones_</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> bilinear missing doc content</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> DistributedDataParallelCPU</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> torch.as_strided</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> F.softplus</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> torch.default_generator</li> </ul>
1
<p dir="auto"><strong><em>(See the comments below for a simpler repro case.)</em></strong></p> <p dir="auto">A model with shared inputs, LSTM, and Lambda layers fails to deserialize. A minimal repro case is here.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from keras.engine import Input, Model from keras.layers import Lambda, concatenate, Dense, LSTM from keras.models import save_model, load_model input_shape = (20, 300) input_1 = Input(input_shape) input_2 = Input(input_shape) lstm = LSTM(32) e1 = lstm(input_1) e2 = lstm(input_2) negative_e1 = Lambda(lambda x: -x)(e1) hidden = concatenate([e1, e2, negative_e1]) logistic_regression = Dense(1, activation=&quot;sigmoid&quot;)(hidden) model = Model(inputs=[input_1, input_2], outputs=logistic_regression) model.compile(optimizer=&quot;adam&quot;, loss=&quot;binary_crossentropy&quot;, metrics=[&quot;accuracy&quot;]) print(&quot;Original model %s&quot; % model) name = &quot;model.hd5&quot; save_model(model, name) restored_model = load_model(name) print(&quot;Restored model %s&quot; % restored_model)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">engine</span> <span class="pl-k">import</span> <span class="pl-v">Input</span>, <span class="pl-v">Model</span> <span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">layers</span> <span class="pl-k">import</span> <span class="pl-v">Lambda</span>, <span class="pl-s1">concatenate</span>, <span class="pl-v">Dense</span>, <span class="pl-v">LSTM</span> <span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">models</span> <span class="pl-k">import</span> <span class="pl-s1">save_model</span>, <span class="pl-s1">load_model</span> <span class="pl-s1">input_shape</span> <span class="pl-c1">=</span> (<span class="pl-c1">20</span>, <span class="pl-c1">300</span>) <span class="pl-s1">input_1</span> <span class="pl-c1">=</span> <span class="pl-v">Input</span>(<span class="pl-s1">input_shape</span>) <span class="pl-s1">input_2</span> <span class="pl-c1">=</span> <span class="pl-v">Input</span>(<span class="pl-s1">input_shape</span>) <span class="pl-s1">lstm</span> <span class="pl-c1">=</span> <span class="pl-v">LSTM</span>(<span class="pl-c1">32</span>) <span class="pl-s1">e1</span> <span class="pl-c1">=</span> <span class="pl-en">lstm</span>(<span class="pl-s1">input_1</span>) <span class="pl-s1">e2</span> <span class="pl-c1">=</span> <span class="pl-en">lstm</span>(<span class="pl-s1">input_2</span>) <span class="pl-s1">negative_e1</span> <span class="pl-c1">=</span> <span class="pl-v">Lambda</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-c1">-</span><span class="pl-s1">x</span>)(<span class="pl-s1">e1</span>) <span class="pl-s1">hidden</span> <span class="pl-c1">=</span> <span class="pl-en">concatenate</span>([<span class="pl-s1">e1</span>, <span class="pl-s1">e2</span>, <span class="pl-s1">negative_e1</span>]) <span class="pl-s1">logistic_regression</span> <span class="pl-c1">=</span> <span class="pl-v">Dense</span>(<span class="pl-c1">1</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">"sigmoid"</span>)(<span class="pl-s1">hidden</span>) <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">Model</span>(<span class="pl-s1">inputs</span><span class="pl-c1">=</span>[<span class="pl-s1">input_1</span>, <span class="pl-s1">input_2</span>], <span class="pl-s1">outputs</span><span class="pl-c1">=</span><span class="pl-s1">logistic_regression</span>) <span class="pl-s1">model</span>.<span class="pl-en">compile</span>(<span class="pl-s1">optimizer</span><span class="pl-c1">=</span><span class="pl-s">"adam"</span>, <span class="pl-s1">loss</span><span class="pl-c1">=</span><span class="pl-s">"binary_crossentropy"</span>, <span class="pl-s1">metrics</span><span class="pl-c1">=</span>[<span class="pl-s">"accuracy"</span>]) <span class="pl-en">print</span>(<span class="pl-s">"Original model %s"</span> <span class="pl-c1">%</span> <span class="pl-s1">model</span>) <span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-s">"model.hd5"</span> <span class="pl-en">save_model</span>(<span class="pl-s1">model</span>, <span class="pl-s1">name</span>) <span class="pl-s1">restored_model</span> <span class="pl-c1">=</span> <span class="pl-en">load_model</span>(<span class="pl-s1">name</span>) <span class="pl-en">print</span>(<span class="pl-s">"Restored model %s"</span> <span class="pl-c1">%</span> <span class="pl-s1">restored_model</span>)</pre></div> <p dir="auto">(This model is a simplification of a strategy used for textual semantic equivalence detection. The actual strategy takes the square of <code class="notranslate">e2 - e1</code> which exhibits the same problem.)</p> <p dir="auto">The <code class="notranslate">restore_model</code> fails with the exception <code class="notranslate">ValueError: Missing layer: input_2</code>.</p> <p dir="auto">This is as simple as I have been able to make the repro case.<br> Changing the model in the following ways makes the bug go away:</p> <ul dir="auto"> <li>Not using multiple inputs</li> <li>Not putting the inputs through a shared LSTM. (It works if you either omit the LSTM or use a separate LSTM for each input.)</li> <li>Not using a Lambda layer. (It works if you omit the Lambda layer, or replace it with a non-lambda function, e.g. <code class="notranslate">keras.layers.add([e1, e2])</code>)</li> </ul> <p dir="auto">This looks similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="184697280" data-permission-text="Title is private" data-url="https://github.com/keras-team/keras/issues/4160" data-hovercard-type="issue" data-hovercard-url="/keras-team/keras/issues/4160/hovercard" href="https://github.com/keras-team/keras/issues/4160">#4160</a>, but doesn't have the nested layers that issue has, so I'm not sure if it's the same bug.</p> <p dir="auto">This is the full stack trace.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/Users/billmcn/src/keras_serialization_bug/keras_serialization_bug.py&quot;, line 28, in &lt;module&gt; restored_model = load_model(name) File &quot;/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/models.py&quot;, line 232, in load_model model = model_from_config(model_config, custom_objects=custom_objects) File &quot;/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/models.py&quot;, line 293, in model_from_config return layer_module.deserialize(config, custom_objects=custom_objects) File &quot;/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/layers/__init__.py&quot;, line 46, in deserialize printable_module_name='layer') File &quot;/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/utils/generic_utils.py&quot;, line 140, in deserialize_keras_object list(custom_objects.items()))) File &quot;/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/engine/topology.py&quot;, line 2374, in from_config process_layer(layer_data) File &quot;/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/engine/topology.py&quot;, line 2361, in process_layer raise ValueError('Missing layer: ' + inbound_layer_name) ValueError: Missing layer: input_2"><pre class="notranslate"><span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"/Users/billmcn/src/keras_serialization_bug/keras_serialization_bug.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">28</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">restored_model</span> <span class="pl-c1">=</span> <span class="pl-en">load_model</span>(<span class="pl-s1">name</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">232</span>, <span class="pl-s1">in</span> <span class="pl-s1">load_model</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-en">model_from_config</span>(<span class="pl-s1">model_config</span>, <span class="pl-s1">custom_objects</span><span class="pl-c1">=</span><span class="pl-s1">custom_objects</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">293</span>, <span class="pl-s1">in</span> <span class="pl-s1">model_from_config</span> <span class="pl-k">return</span> <span class="pl-s1">layer_module</span>.<span class="pl-en">deserialize</span>(<span class="pl-s1">config</span>, <span class="pl-s1">custom_objects</span><span class="pl-c1">=</span><span class="pl-s1">custom_objects</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/layers/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">46</span>, <span class="pl-s1">in</span> <span class="pl-s1">deserialize</span> <span class="pl-s1">printable_module_name</span><span class="pl-c1">=</span><span class="pl-s">'layer'</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/utils/generic_utils.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">140</span>, <span class="pl-s1">in</span> <span class="pl-s1">deserialize_keras_object</span> <span class="pl-en">list</span>(<span class="pl-s1">custom_objects</span>.<span class="pl-en">items</span>()))) <span class="pl-v">File</span> <span class="pl-s">"/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/engine/topology.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2374</span>, <span class="pl-s1">in</span> <span class="pl-s1">from_config</span> <span class="pl-en">process_layer</span>(<span class="pl-s1">layer_data</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/billmcn/anaconda/envs/keras-serialization-bug/lib/python3.5/site-packages/keras/engine/topology.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2361</span>, <span class="pl-s1">in</span> <span class="pl-s1">process_layer</span> <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'Missing layer: '</span> <span class="pl-c1">+</span> <span class="pl-s1">inbound_layer_name</span>) <span class="pl-v">ValueError</span>: <span class="pl-v">Missing</span> <span class="pl-s1">layer</span>: <span class="pl-s1">input_2</span></pre></div> <p dir="auto"><em>Keras version 2.0.4 with TensorFlow backend, Python 3.5.3</em></p> <h2 dir="auto">Checklist</h2> <ul class="contains-task-list"> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check that you are up-to-date with the master branch of Keras. You can update with:<br> pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found <a href="https://www.tensorflow.org/get_started/os_setup" rel="nofollow">here</a>.</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:<br> pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).</p> </li> </ul>
<p dir="auto"><code class="notranslate">AttributeError: module 'tensorflow' has no attribute 'get_default_graph'</code></p> <p dir="auto">I am working through an example of building a simple CNN with tensorflow/keras to classify dogs/cat pictures. I keep getting the above traceback message when executing following line of code (the first layer of my network):<br> <code class="notranslate">Conv2D(32, (3, 3), activation='relu', input_shape=(224,224,3))</code></p> <p dir="auto">Writing <code class="notranslate">tensorflow.keras</code> instead of <code class="notranslate">keras</code> doesn't make a difference, neither does importing any of the other modules etc as suggested in previous threads for similar issues.</p> <p dir="auto">I'm running this all on my macbook on IDLE (for various reasons) - could this problem have something to do with the version of tensorflow I have installed? i.e not <code class="notranslate">tensorflow-GPU==2.0.0-beta1</code></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Mac OSX</li> <li>TensorFlow backend</li> <li>TensorFlow version: 2.0.0</li> <li>Keras version: 2.2.4</li> <li>Python version: 3.6.8</li> <li>CUDA/cuDNN version: n/a</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44614292/61803434-04914700-ae2a-11e9-85a9-ee6ad8254be6.png"><img width="941" alt="Screen Shot 2019-07-24 at 15 43 43" src="https://user-images.githubusercontent.com/44614292/61803434-04914700-ae2a-11e9-85a9-ee6ad8254be6.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44614292/61803435-04914700-ae2a-11e9-826d-dce6d3eb3270.png"><img width="666" alt="Screen Shot 2019-07-24 at 15 44 11" src="https://user-images.githubusercontent.com/44614292/61803435-04914700-ae2a-11e9-826d-dce6d3eb3270.png" style="max-width: 100%;"></a></p>
0
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 2.0.0.2<br> ansible 2.1.0 (devel <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/7e3963420dd8258aacb2b6d617f786185a0ef74a/hovercard" href="https://github.com/ansible/ansible/commit/7e3963420dd8258aacb2b6d617f786185a0ef74a"><tt>7e39634</tt></a>)</p> <h5 dir="auto">Ansible Configuration:</h5> <p dir="auto">N/A</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Ubuntu 15.10</p> <h5 dir="auto">Summary:</h5> <p dir="auto">Ansible 2.0 added a feature to use <em>include</em> statements together with <em>with_items</em> loops. When nesting <em>include</em> statements, (i.e. file <em>A.yml</em> includes <em>B.yml</em>, which includes <em>C.yml</em>) the <em>item</em> variable is not set properly, i.e. the inner <em>include</em> + <em>with_items</em> loop does not override the <em>item</em> value from the outer loop.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto"><em>main.yml</em></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- - include: include_outer.yml with_items: - 1 - 2 - 3"><pre class="notranslate">--- - <span class="pl-ent">include</span>: <span class="pl-s">include_outer.yml</span> <span class="pl-ent">with_items</span>: - <span class="pl-c1">1</span> - <span class="pl-c1">2</span> - <span class="pl-c1">3</span></pre></div> <p dir="auto"><em>include_outer.yml</em></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- - debug: msg: &quot;Outer include: item={{ item }}&quot; - include: include_inner.yml with_items: - A - B - C"><pre class="notranslate">--- - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>Outer include: item={{ item }}<span class="pl-pds">"</span></span> - <span class="pl-ent">include</span>: <span class="pl-s">include_inner.yml</span> <span class="pl-ent">with_items</span>: - <span class="pl-s">A</span> - <span class="pl-s">B</span> - <span class="pl-s">C</span></pre></div> <p dir="auto"><em>include_inner.yml</em></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- - debug: msg: &quot;Inner include: item={{ item }}&quot;"><pre class="notranslate">--- - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>Inner include: item={{ item }}<span class="pl-pds">"</span></span></pre></div> <h5 dir="auto">Expected Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;msg&quot;: &quot;Outer include: item=1&quot; &quot;msg&quot;: &quot;Inner include: item=A&quot; &quot;msg&quot;: &quot;Inner include: item=B&quot; &quot;msg&quot;: &quot;Inner include: item=C&quot; &quot;msg&quot;: &quot;Outer include: item=2&quot; &quot;msg&quot;: &quot;Inner include: item=A&quot; &quot;msg&quot;: &quot;Inner include: item=B&quot; &quot;msg&quot;: &quot;Inner include: item=C&quot; &quot;msg&quot;: &quot;Outer include: item=3&quot; &quot;msg&quot;: &quot;Inner include: item=A&quot; &quot;msg&quot;: &quot;Inner include: item=B&quot; &quot;msg&quot;: &quot;Inner include: item=C&quot;"><pre class="notranslate"><code class="notranslate">"msg": "Outer include: item=1" "msg": "Inner include: item=A" "msg": "Inner include: item=B" "msg": "Inner include: item=C" "msg": "Outer include: item=2" "msg": "Inner include: item=A" "msg": "Inner include: item=B" "msg": "Inner include: item=C" "msg": "Outer include: item=3" "msg": "Inner include: item=A" "msg": "Inner include: item=B" "msg": "Inner include: item=C" </code></pre></div> <h5 dir="auto">Actual Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;msg&quot;: &quot;Outer include: item=1&quot; &quot;msg&quot;: &quot;Inner include: item=1&quot; &quot;msg&quot;: &quot;Inner include: item=1&quot; &quot;msg&quot;: &quot;Inner include: item=1&quot; &quot;msg&quot;: &quot;Outer include: item=2&quot; &quot;msg&quot;: &quot;Inner include: item=2&quot; &quot;msg&quot;: &quot;Inner include: item=2&quot; &quot;msg&quot;: &quot;Inner include: item=2&quot; &quot;msg&quot;: &quot;Outer include: item=3&quot; &quot;msg&quot;: &quot;Inner include: item=3&quot; &quot;msg&quot;: &quot;Inner include: item=3&quot; &quot;msg&quot;: &quot;Inner include: item=3&quot;"><pre class="notranslate"><code class="notranslate">"msg": "Outer include: item=1" "msg": "Inner include: item=1" "msg": "Inner include: item=1" "msg": "Inner include: item=1" "msg": "Outer include: item=2" "msg": "Inner include: item=2" "msg": "Inner include: item=2" "msg": "Inner include: item=2" "msg": "Outer include: item=3" "msg": "Inner include: item=3" "msg": "Inner include: item=3" "msg": "Inner include: item=3" </code></pre></div>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Feature Idea</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">1.8</p> <h5 dir="auto">Environment:</h5> <p dir="auto">N/A</p> <h5 dir="auto">Summary:</h5> <p dir="auto">Please summarize your request in this space. You will earn bonus points for being succinct, but please add enough detail so we can understand the request. Thanks!</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">If this is a bug ticket, please enter the steps you use to reproduce the problem in the space below. If this is a feature request, please enter the steps you would use to use the feature. If an example playbook is useful, please include a short reproducer inline, indented by four spaces. If a longer one is necessary, linking to one uploaded to gist.github.com would be great. Much appreciated!</p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">Docker 1.2 now lets you specify a restart policy (see here: <a href="https://blog.docker.com/2014/08/announcing-docker-1-2-0/" rel="nofollow">https://blog.docker.com/2014/08/announcing-docker-1-2-0/</a>). It should be configurable using the docker module in 1.8.</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">Cannot configure the restart policy using ansible.</p>
0
<p dir="auto">I made a video to show the error.</p> <p dir="auto"><a href="https://www.youtube.com/watch?v=Nn5w-z7-1V4" rel="nofollow">https://www.youtube.com/watch?v=Nn5w-z7-1V4</a></p> <p dir="auto">You don't have to set cookies for it to crash. Once you navigate to their landing page and click or do absolutely anything else it will crash electron.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Nightmare = require('nightmare'), nightmare = Nightmare( { show: true, webPreferences: { webSecurity:false }, openDevTools: { mode: 'detach' }, switches: { 'ignore-certificate-errors': true } }), { readFileSync, writeFileSync } = require('fs'), iframe = require('nightmare-iframe-manager')(Nightmare); var credentials = readFileSync('./cookies.txt', { encoding: 'utf8' }).trim(); credentials = JSON.stringify(credentials); var jcred = JSON.parse(credentials); console.log(jcred); nightmare .useragent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0') .goto('https://www.aliexpress.com') .cookies.set(jcred) .refresh() .wait(10000) .end() .then(function (result) { console.log(result); }) .catch(function (error) { console.error('Search failed:', error); nightmare.end();"><pre class="notranslate"><code class="notranslate">var Nightmare = require('nightmare'), nightmare = Nightmare( { show: true, webPreferences: { webSecurity:false }, openDevTools: { mode: 'detach' }, switches: { 'ignore-certificate-errors': true } }), { readFileSync, writeFileSync } = require('fs'), iframe = require('nightmare-iframe-manager')(Nightmare); var credentials = readFileSync('./cookies.txt', { encoding: 'utf8' }).trim(); credentials = JSON.stringify(credentials); var jcred = JSON.parse(credentials); console.log(jcred); nightmare .useragent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0') .goto('https://www.aliexpress.com') .cookies.set(jcred) .refresh() .wait(10000) .end() .then(function (result) { console.log(result); }) .catch(function (error) { console.error('Search failed:', error); nightmare.end(); </code></pre></div> <p dir="auto">I made a duplicate of this issue in the Nightmare repo but this seemed to be more of an electron issue than a nightmare one since this exact same code worked before.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong><br> 8.0.0-nightly.20191026 (Building from source)</li> <li><strong>Operating System:</strong><br> Windows 10 (1809)</li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Electron to link successfully.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">I am receiving the following link error:</p> <p dir="auto"><code class="notranslate">FAILED: electron.exe electron.exe.pdb ninja -t msvc -e environment.x64 -- ../../third_party/llvm-build/Release+Asserts/bin/lld-link.exe /nologo "-libpath:..\..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\ATLMFC\lib\x64" "-libpath:..\..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\lib\x64" "-libpath:..\..\..\..\..\..\..\..\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "-libpath:..\..\..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "-libpath:..\..\..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64" /OUT:./electron.exe /PDB:./electron.exe.pdb @./electron.exe.rsp lld-link: error: duplicate symbol: public: __cdecl blink::mojom::BlobProxy::BlobProxy(class mojo::MessageReceiverWithResponder *) in obj/third_party/blink/public/mojom/android_mojo_bindings/android_mojo_bindings_jumbo_1.obj and in blink_common.dll lld-link: error: duplicate symbol: public: __cdecl blink::mojom::FileChooserFileInfo::FileChooserFileInfo(void) in obj/third_party/blink/public/mojom/mojom_platform/mojom_platform_jumbo_1.obj and in blink_common.dll lld-link: error: duplicate symbol: public: __cdecl blink::mojom::FindOptions::FindOptions(void) in obj/third_party/blink/public/mojom/mojom_platform/mojom_platform_jumbo_2.obj and in blink_common.dll lld-link: error: duplicate symbol: public: __cdecl blink::mojom::FindOptions::FindOptions(bool, bool, bool, bool, bool) in obj/third_party/blink/public/mojom/mojom_platform/mojom_platform_jumbo_2.obj and in blink_common.dll lld-link: error: duplicate symbol: public: __cdecl blink::mojom::NativeFileInfo::NativeFileInfo(class base::FilePath const &amp;, class std::basic_string&lt;wchar_t, struct std::char_traits&lt;wchar_t&gt;, class std::allocator&lt;wchar_t&gt;&gt; const &amp;) in obj/third_party/blink/public/mojom/mojom_platform/mojom_platform_jumbo_1.obj and in blink_common.dll lld-link: error: duplicate symbol: public: __cdecl blink::mojom::ServiceWorkerRegistrationOptions::ServiceWorkerRegistrationOptions(void) in obj/third_party/blink/public/mojom/mojom_core/mojom_core_jumbo_1.obj and in blink_common.dll lld-link: error: duplicate symbol: public: __cdecl blink::mojom::FileChooserFileInfo::~FileChooserFileInfo(void) in obj/third_party/blink/public/mojom/mojom_platform/mojom_platform_jumbo_1.obj and in blink_common.dll lld-link: error: duplicate symbol: public: __cdecl blink::mojom::FindOptions::~FindOptions(void) in obj/third_party/blink/public/mojom/mojom_platform/mojom_platform_jumbo_2.obj and in blink_common.dll lld-link: error: duplicate symbol: public: __cdecl blink::mojom::NativeFileInfo::~NativeFileInfo(void) in obj/third_party/blink/public/mojom/mojom_platform/mojom_platform_jumbo_1.obj and in blink_common.dll lld-link: error: duplicate symbol: public: __cdecl blink::mojom::ServiceWorkerRegistrationOptions::~ServiceWorkerRegistrationOptions(void) in obj/third_party/blink/public/mojom/mojom_core/mojom_core_jumbo_1.obj and in blink_common.dll lld-link: error: duplicate symbol: public: __cdecl blink::mojom::WindowFeatures::~WindowFeatures(void) in obj/third_party/blink/public/mojom/mojom_platform/mojom_platform_jumbo_6.obj and in blink_common.dll lld-link: error: duplicate symbol: public: static bool __cdecl blink::mojom::BlobReaderClientStubDispatch::Accept(class blink::mojom::BlobReaderClient *, class mojo::Message *) in obj/third_party/blink/public/mojom/android_mojo_bindings/android_mojo_bindings_jumbo_1.obj and in blink_common.dll lld-link: error: duplicate symbol: public: static bool __cdecl blink::mojom::BlobReaderClientStubDispatch::AcceptWithResponder(class blink::mojom::BlobReaderClient *, class mojo::Message *, class std::unique_ptr&lt;class mojo::MessageReceiverWithStatus, struct std::default_delete&lt;class mojo::MessageReceiverWithStatus&gt;&gt;) in obj/third_party/blink/public/mojom/android_mojo_bindings/android_mojo_bindings_jumbo_1.obj and in blink_common.dll lld-link: error: duplicate symbol: public: static bool __cdecl mojo::StructTraits&lt;class blink::mojom::WindowFeaturesDataView, class mojo::StructPtr&lt;class blink::mojom::WindowFeatures&gt;&gt;::Read(class blink::mojom::WindowFeaturesDataView, class mojo::StructPtr&lt;class blink::mojom::WindowFeatures&gt; *) in obj/third_party/blink/public/mojom/mojom_platform/mojom_platform_jumbo_6.obj and in blink_common.dll lld-link: error: duplicate symbol: public: virtual void __cdecl blink::mojom::BlobProxy::ReadAll(class mojo::ScopedHandleBase&lt;class mojo::DataPipeProducerHandle&gt;, class mojo::PendingRemote&lt;class blink::mojom::BlobReaderClient&gt;) in obj/third_party/blink/public/mojom/android_mojo_bindings/android_mojo_bindings_jumbo_1.obj and in blink_common.dll lld-link: error: duplicate symbol: public: virtual void __cdecl blink::mojom::BlobProxy::ReadRange(unsigned __int64, unsigned __int64, class mojo::ScopedHandleBase&lt;class mojo::DataPipeProducerHandle&gt;, class mojo::PendingRemote&lt;class blink::mojom::BlobReaderClient&gt;) in obj/third_party/blink/public/mojom/android_mojo_bindings/android_mojo_bindings_jumbo_1.obj and in blink_common.dll lld-link: error: duplicate symbol: public: void __cdecl blink::mojom::FileChooserFileInfo::set_native_file(class mojo::StructPtr&lt;class blink::mojom::NativeFileInfo&gt;) in obj/third_party/blink/public/mojom/mojom_platform/mojom_platform_jumbo_1.obj and in blink_common.dll ninja: build stopped: subcommand failed.</code></p> <h3 dir="auto">Additional Information</h3> <p dir="auto">Since I'm unable to find anything in the chromium bug tracker or here relating to this error I'm kinda assuming its something silly I've done on my end.. (run the post hooks multiple times maybe?)</p> <p dir="auto">Any pointers of how to fix it would be welcome.. so close to finally building! Thanks.</p>
0
<h3 dir="auto"><g-emoji class="g-emoji" alias="computer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png">💻</g-emoji></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Would you like to work on a fix?</li> </ul> <h3 dir="auto">How are you using Babel?</h3> <p dir="auto">@babel/cli</p> <h3 dir="auto">Input code</h3> <p dir="auto"><a href="https://babeljs.io/repl#?browsers=%3E%201%25&amp;build=&amp;builtIns=false&amp;corejs=false&amp;spec=false&amp;loose=false&amp;code_lz=DYUwLgBA3hAeCsAuaEDu8A0EB0uCe8EAvsRALwQBmArgHYDGYAlgPa0DCAhsMACoAWnMAEkAzgBFqAB2BN6QkABMAFAEoA3EA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=true&amp;fileSize=true&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=true&amp;presets=env%2Ctypescript&amp;prettier=false&amp;targets=&amp;version=7.13.17&amp;externalPlugins=%40babel%2Fplugin-proposal-object-rest-spread%407.14.7&amp;assumptions=%7B%7D" rel="nofollow">https://babeljs.io/repl#?browsers=%3E%201%25&amp;build=&amp;builtIns=false&amp;corejs=false&amp;spec=false&amp;loose=false&amp;code_lz=DYUwLgBA3hAeCsAuaEDu8A0EB0uCe8EAvsRALwQBmArgHYDGYAlgPa0DCAhsMACoAWnMAEkAzgBFqAB2BN6QkABMAFAEoA3EA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=true&amp;fileSize=true&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=true&amp;presets=env%2Ctypescript&amp;prettier=false&amp;targets=&amp;version=7.13.17&amp;externalPlugins=%40babel%2Fplugin-proposal-object-rest-spread%407.14.7&amp;assumptions=%7B%7D</a></p> <p dir="auto">I've also made a reproducible test case in this branch <a href="https://github.com/dan-kez/babel/tree/duplicate_function_call_in_variable_destructuring">https://github.com/dan-kez/babel/tree/duplicate_function_call_in_variable_destructuring</a></p> <h3 dir="auto">Configuration file name</h3> <p dir="auto">babel.config.json</p> <h3 dir="auto">Configuration</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Current and expected behavior</h3> <p dir="auto"><em>Current Behavior:</em><br> As shown in the repl above the <code class="notranslate">functionCallThatIsDuplicated</code> function is called twice in the compiled code. This is not expected as in the original code the api call is only made once.</p> <p dir="auto"><em>Expected Behavior:</em><br> When using <code class="notranslate">@babel/plugin-proposal-object-rest-spread</code> right hand operation is called once and only once to match the original code.</p> <h3 dir="auto">Environment</h3> <p dir="auto">(Reproducible in the REPL link above)</p> <p dir="auto">Below is my project environment but the minimal reproducible example in the REPL link shows the same error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" System: OS: macOS 10.15.7 Binaries: Node: 14.17.5 - ~/.nvm/versions/node/v14.17.5/bin/node Yarn: 1.22.11 - ~/.nvm/versions/node/v14.17.5/bin/yarn npm: 6.14.14 - ~/.nvm/versions/node/v14.17.5/bin/npm Monorepos: Yarn Workspaces: 1.22.11 Lerna: 3.20.2 npmPackages: @babel/cli: 7.12.1 =&gt; 7.12.1 @babel/core: 7.12.3 =&gt; 7.12.3 @babel/helper-compilation-targets: 7.12.1 =&gt; 7.12.1 @babel/plugin-proposal-class-properties: 7.12.1 =&gt; 7.12.1 @babel/plugin-proposal-decorators: 7.12.1 =&gt; 7.12.1 @babel/plugin-proposal-object-rest-spread: 7.12.1 =&gt; 7.12.1 @babel/plugin-syntax-dynamic-import: 7.8.3 =&gt; 7.8.3 @babel/plugin-transform-react-jsx: 7.12.1 =&gt; 7.12.1 @babel/plugin-transform-regenerator: 7.12.1 =&gt; 7.12.1 @babel/preset-env: 7.12.1 =&gt; 7.12.1 @babel/preset-react: 7.12.1 =&gt; 7.12.1 @babel/preset-typescript: 7.12.1 =&gt; 7.12.1 @babel/runtime: 7.12.1 =&gt; 7.12.1 babel-eslint: 10.1.0 =&gt; 10.1.0 babel-jest: 26.6.3 =&gt; 26.6.3 babel-loader: 8.2.2 =&gt; 8.2.2 babel-plugin-lodash: 3.3.4 =&gt; 3.3.4 babel-plugin-module-resolver: 4.0.0 =&gt; 4.0.0 babel-plugin-react-docgen: 4.2.1 =&gt; 4.2.1 babel-plugin-require-context-hook: 1.0.0 =&gt; 1.0.0 babel-plugin-styled-components: 1.11.1 =&gt; 1.11.1 babel-plugin-transform-dynamic-import: 2.1.0 =&gt; 2.1.0 babel-plugin-transform-react-remove-prop-types: 0.4.24 =&gt; 0.4.24 eslint: 7.32.0 =&gt; 7.32.0 eslint-import-resolver-babel-module: 5.3.1 =&gt; 5.3.1 jest: 26.6.3 =&gt; 26.6.3 lerna: 3.20.2 =&gt; 3.20.2 webpack: 4.46.0 =&gt; 4.46.0"><pre class="notranslate"><code class="notranslate"> System: OS: macOS 10.15.7 Binaries: Node: 14.17.5 - ~/.nvm/versions/node/v14.17.5/bin/node Yarn: 1.22.11 - ~/.nvm/versions/node/v14.17.5/bin/yarn npm: 6.14.14 - ~/.nvm/versions/node/v14.17.5/bin/npm Monorepos: Yarn Workspaces: 1.22.11 Lerna: 3.20.2 npmPackages: @babel/cli: 7.12.1 =&gt; 7.12.1 @babel/core: 7.12.3 =&gt; 7.12.3 @babel/helper-compilation-targets: 7.12.1 =&gt; 7.12.1 @babel/plugin-proposal-class-properties: 7.12.1 =&gt; 7.12.1 @babel/plugin-proposal-decorators: 7.12.1 =&gt; 7.12.1 @babel/plugin-proposal-object-rest-spread: 7.12.1 =&gt; 7.12.1 @babel/plugin-syntax-dynamic-import: 7.8.3 =&gt; 7.8.3 @babel/plugin-transform-react-jsx: 7.12.1 =&gt; 7.12.1 @babel/plugin-transform-regenerator: 7.12.1 =&gt; 7.12.1 @babel/preset-env: 7.12.1 =&gt; 7.12.1 @babel/preset-react: 7.12.1 =&gt; 7.12.1 @babel/preset-typescript: 7.12.1 =&gt; 7.12.1 @babel/runtime: 7.12.1 =&gt; 7.12.1 babel-eslint: 10.1.0 =&gt; 10.1.0 babel-jest: 26.6.3 =&gt; 26.6.3 babel-loader: 8.2.2 =&gt; 8.2.2 babel-plugin-lodash: 3.3.4 =&gt; 3.3.4 babel-plugin-module-resolver: 4.0.0 =&gt; 4.0.0 babel-plugin-react-docgen: 4.2.1 =&gt; 4.2.1 babel-plugin-require-context-hook: 1.0.0 =&gt; 1.0.0 babel-plugin-styled-components: 1.11.1 =&gt; 1.11.1 babel-plugin-transform-dynamic-import: 2.1.0 =&gt; 2.1.0 babel-plugin-transform-react-remove-prop-types: 0.4.24 =&gt; 0.4.24 eslint: 7.32.0 =&gt; 7.32.0 eslint-import-resolver-babel-module: 5.3.1 =&gt; 5.3.1 jest: 26.6.3 =&gt; 26.6.3 lerna: 3.20.2 =&gt; 3.20.2 webpack: 4.46.0 =&gt; 4.46.0 </code></pre></div> <h3 dir="auto">Possible solution</h3> <p dir="auto">I'm not familiar with the internal implementation of <code class="notranslate">@babel/plugin-proposal-object-rest-spread</code> but it would be possible to first assign the result of the right hand assignment to a temporary variable and then use that temporary variable in subsequent calls to <code class="notranslate">_objectWithoutProperties</code></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<h2 dir="auto">Feature Request</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I would like to work on this feature!</li> </ul> <p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong><br> Dependency scanners may report <a title="CVE-2019-20149" data-hovercard-type="advisory" data-hovercard-url="/advisories/GHSA-6c8f-qphg-qjgp/hovercard" href="https://github.com/advisories/GHSA-6c8f-qphg-qjgp">CVE-2019-20149</a> for projects that depend on @babel/[email protected]. This is due to dependency on an version of kind-of because of this dependency chain: chokidar@^2.1.8 → braces (2.3.2) → is-number (3.0.0) → kind-of (3.2.2)</p> <p dir="auto"><strong>Describe the solution you'd like</strong><br> Upgrade to chokidar@^3.4.0. This should remove the dependency on is-number and kind-of.</p> <p dir="auto">Note that chokidar@^3.4.0 requires "node": "&gt;= 8.10.0". What is babel 7's policy for minimum supported node version?</p> <p dir="auto"><strong>Describe alternatives you've considered</strong><br> Perhaps overriding the @babel/cli on chokidar dependency via "resolutions" could solve the problem within my code-base. Alternatively, we could maintain a fork with the chokdiar version upgraded.</p> <p dir="auto"><strong>Teachability, Documentation, Adoption, Migration Strategy</strong><br> Upgrade chokidar version, pulling along interface changes.</p>
0
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="408892295" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/5330" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/5330/hovercard" href="https://github.com/celery/celery/issues/5330">#5330</a></li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:4.3.0</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.3.0 (rhubarb) kombu:4.6.4 py:3.5.6 billiard:3.6.1.0 py-amqp:2.5.1 platform -&gt; system:Linux arch:64bit, ELF kernel version:4.19.71-1-lts imp:CPython loader -&gt; celery.loaders.default.Loader settings -&gt; transport:amqp results:disabled"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.3.0 (rhubarb) kombu:4.6.4 py:3.5.6 billiard:3.6.1.0 py-amqp:2.5.1 platform -&gt; system:Linux arch:64bit, ELF kernel version:4.19.71-1-lts imp:CPython loader -&gt; celery.loaders.default.Loader settings -&gt; transport:amqp results:disabled </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 3.5.6</li> <li><strong>Minimal Celery Version</strong>: 4.3.0</li> <li><strong>Minimal Kombu Version</strong>: 4.6.4</li> <li><strong>Minimal Broker Version</strong>: RabbitMQ 3.7.15</li> <li><strong>Minimal Result Backend Version</strong>: 10.4.7-MariaDB</li> <li><strong>Minimal OS and/or Kernel Version</strong>: Linux 4.19.71-1-lts</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==2.5.1 asn1crypto==0.24.0 Babel==2.7.0 bcrypt==3.1.7 billiard==3.6.1.0 celery==4.3.0 certifi==2019.9.11 cffi==1.12.3 chardet==3.0.4 cryptography==2.7 django-celery-results==1.1.2 flower==0.9.3 idna==2.8 importlib-metadata==0.22 kombu==4.6.4 more-itertools==7.2.0 mysqlclient==1.4.4 paramiko==2.6.0 pycparser==2.19 PyNaCl==1.3.0 pytz==2019.2 requests==2.22.0 requests-toolbelt==0.9.1 six==1.12.0 SQLAlchemy==1.3.8 tornado==5.1.1 urllib3==1.25.3 vine==1.3.0 websockets==7.0 zipp==0.6.0"><pre class="notranslate"><code class="notranslate">amqp==2.5.1 asn1crypto==0.24.0 Babel==2.7.0 bcrypt==3.1.7 billiard==3.6.1.0 celery==4.3.0 certifi==2019.9.11 cffi==1.12.3 chardet==3.0.4 cryptography==2.7 django-celery-results==1.1.2 flower==0.9.3 idna==2.8 importlib-metadata==0.22 kombu==4.6.4 more-itertools==7.2.0 mysqlclient==1.4.4 paramiko==2.6.0 pycparser==2.19 PyNaCl==1.3.0 pytz==2019.2 requests==2.22.0 requests-toolbelt==0.9.1 six==1.12.0 SQLAlchemy==1.3.8 tornado==5.1.1 urllib3==1.25.3 vine==1.3.0 websockets==7.0 zipp==0.6.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.task def add(x, y): return x + y @app.task def test(): result_set = ResultSet([]) add_tasks = add.starmap((i, i) for i in range(10)) add_result = add_tasks.apply_async() result_set.add(add_result) return result_set.get(disable_sync_subtasks=False)"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">add</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>): <span class="pl-k">return</span> <span class="pl-s1">x</span> <span class="pl-c1">+</span> <span class="pl-s1">y</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">test</span>(): <span class="pl-s1">result_set</span> <span class="pl-c1">=</span> <span class="pl-v">ResultSet</span>([]) <span class="pl-s1">add_tasks</span> <span class="pl-c1">=</span> <span class="pl-s1">add</span>.<span class="pl-en">starmap</span>((<span class="pl-s1">i</span>, <span class="pl-s1">i</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-c1">10</span>)) <span class="pl-s1">add_result</span> <span class="pl-c1">=</span> <span class="pl-s1">add_tasks</span>.<span class="pl-en">apply_async</span>() <span class="pl-s1">result_set</span>.<span class="pl-en">add</span>(<span class="pl-s1">add_result</span>) <span class="pl-k">return</span> <span class="pl-s1">result_set</span>.<span class="pl-en">get</span>(<span class="pl-s1">disable_sync_subtasks</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">The tasks runs successfully, with the acceptance of possible deadlock</p> <h1 dir="auto">Actual Behavior</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/app/trace.py&quot;, line 385, in trace_task R = retval = fun(*args, **kwargs) File &quot;/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/app/trace.py&quot;, line 648, in __protected_call__ return self.run(*args, **kwargs) File &quot;/home/gsfish/work/netease/project/scan_detect/tasks.py&quot;, line 106, in test return result_set.get(disable_sync_subtasks=False) File &quot;/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/result.py&quot;, line 697, in get on_interval=on_interval, File &quot;/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/result.py&quot;, line 765, in join interval=interval, no_ack=no_ack, on_interval=on_interval, File &quot;/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/result.py&quot;, line 205, in get assert_will_not_block() File &quot;/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/result.py&quot;, line 41, in assert_will_not_block raise RuntimeError(E_WOULDBLOCK) RuntimeError: Never call result.get() within a task! See http://docs.celeryq.org/en/latest/userguide/tasks.html#task-synchronous-subtasks"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/app/trace.py", line 385, in trace_task R = retval = fun(*args, **kwargs) File "/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/app/trace.py", line 648, in __protected_call__ return self.run(*args, **kwargs) File "/home/gsfish/work/netease/project/scan_detect/tasks.py", line 106, in test return result_set.get(disable_sync_subtasks=False) File "/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/result.py", line 697, in get on_interval=on_interval, File "/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/result.py", line 765, in join interval=interval, no_ack=no_ack, on_interval=on_interval, File "/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/result.py", line 205, in get assert_will_not_block() File "/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/result.py", line 41, in assert_will_not_block raise RuntimeError(E_WOULDBLOCK) RuntimeError: Never call result.get() within a task! See http://docs.celeryq.org/en/latest/userguide/tasks.html#task-synchronous-subtasks </code></pre></div>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.<br> This relates to 4.3.0, not 4.4.x</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="450565046" data-permission-text="Title is private" data-url="https://github.com/celery/kombu/issues/1052" data-hovercard-type="issue" data-hovercard-url="/celery/kombu/issues/1052/hovercard" href="https://github.com/celery/kombu/issues/1052">celery/kombu#1052</a></li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: <code class="notranslate">4.3.0 (rhubarb)</code></p> <details> <summary><b><code class="notranslate"> </code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.3.0 (rhubarb) kombu:4.6.0 py:3.7.3 billiard:3.6.0.0 redis:3.2.1 platform -&gt; system:Linux arch:64bit kernel version:4.15.0-50-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:redis://localhost:6379/1"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.3.0 (rhubarb) kombu:4.6.0 py:3.7.3 billiard:3.6.0.0 redis:3.2.1 platform -&gt; system:Linux arch:64bit kernel version:4.15.0-50-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:redis://localhost:6379/1 </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: 4.6.0</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flower==0.9.3 - babel [required: &gt;=1.0,&lt;3.0.0, installed: 2.7.0] - pytz [required: &gt;=2015.7, installed: 2019.1] - celery [required: &gt;=3.1.0, installed: 4.3.0] - billiard [required: &gt;=3.6.0,&lt;4.0, installed: 3.6.0.0] - kombu [required: &gt;=4.4.0,&lt;5.0, installed: 4.6.0] - amqp [required: &gt;=2.5.0,&lt;3.0, installed: 2.5.0] - vine [required: &gt;=1.1.3,&lt;5.0.0a1, installed: 1.3.0] - pytz [required: &gt;dev, installed: 2019.1] - vine [required: &gt;=1.3.0, installed: 1.3.0] - pytz [required: Any, installed: 2019.1] - tornado [required: &gt;=4.2.0,&lt;6.0.0, installed: 5.1.1]"><pre class="notranslate"><code class="notranslate">flower==0.9.3 - babel [required: &gt;=1.0,&lt;3.0.0, installed: 2.7.0] - pytz [required: &gt;=2015.7, installed: 2019.1] - celery [required: &gt;=3.1.0, installed: 4.3.0] - billiard [required: &gt;=3.6.0,&lt;4.0, installed: 3.6.0.0] - kombu [required: &gt;=4.4.0,&lt;5.0, installed: 4.6.0] - amqp [required: &gt;=2.5.0,&lt;3.0, installed: 2.5.0] - vine [required: &gt;=1.1.3,&lt;5.0.0a1, installed: 1.3.0] - pytz [required: &gt;dev, installed: 2019.1] - vine [required: &gt;=1.3.0, installed: 1.3.0] - pytz [required: Any, installed: 2019.1] - tornado [required: &gt;=4.2.0,&lt;6.0.0, installed: 5.1.1] </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> 1. run celery 4.3.0 with a fresh install (make sure you got kombu 4.6.0) 2. run celery inspect ping 3. profit. </p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Ping should work</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">ping says no nodes resonded</p>
0
<p dir="auto">When setting up everything and to download custom files not downloaded Ingun bootstrap file responsive.</p>
<p dir="auto"><a href="http://twitter.github.io/bootstrap/customize.html" rel="nofollow">http://twitter.github.io/bootstrap/customize.html</a> clicked on the 'Customize and Download button.</p> <p dir="auto">Its not responding.</p> <p dir="auto">please provide alternative link for customize download if possible.</p>
1
<p dir="auto">Fast Insider Build 10.0.19008.1000.</p>
<h1 dir="auto">Environment</h1> <p dir="auto">W10 Pro V1903 Build 18362.295<br> PowerToys: 0.11.0<br> Settings Screen</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run &quot;ver&quot; at a command prompt] PowerToys version: PowerToy module for which you are reporting the bug (if applicable):"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt] PowerToys version: PowerToy module for which you are reporting the bug (if applicable): </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Just installed and attempted to open settings. Screen is totally blank/empty.<br> I 'repaired - same issue.<br> Uninstalled, reboot and reinstall - same issue.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Expect to see config options</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Blank window.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a href="https://i.imgur.com/a7oWKgp.png" rel="nofollow">https://i.imgur.com/a7oWKgp.png</a></p>
1
<p dir="auto">why the number of vertices is being rendered 8 or 9 times more than the actual number can it be simplified or at least rendered the same? Is the WebGl taking additional resources for vertices?</p> <p dir="auto">Also I tried lots of simplifiers but even after simplifying still not reaching the target which is 30000 vertices.<br> the current number is around 260000 vertices</p>
<p dir="auto">If an instance of <code class="notranslate">SkinnedMesh</code> is cloned using the <code class="notranslate">SkinnedMesh::clone()</code> method, the resulting clone will have its bones duplicated. See the following explanation of the calling sequence:</p> <p dir="auto">The <code class="notranslate">SkinnedMesh::clone()</code> method will do two things:</p> <ul dir="auto"> <li>First it will call its contructor.</li> <li>Then calls the<code class="notranslate">Mesh::copy()</code> method, which calls <code class="notranslate">Object3D::copy()</code>.</li> </ul> <p dir="auto"><a href="https://github.com/mrdoob/three.js/blob/dev/src/objects/SkinnedMesh.js#L202">https://github.com/mrdoob/three.js/blob/dev/src/objects/SkinnedMesh.js#L202</a></p> <p dir="auto">The constructor creates <code class="notranslate">Bone</code> objects from the geometry data and adds them to the current <code class="notranslate">SkinnedMesh</code> instance at <code class="notranslate">SkinnedMesh::initBones()</code>.</p> <p dir="auto">The later call to <code class="notranslate">Object3D::copy()</code> -which is called with (default) recursion enabled- will clone and add new children. These bones are already children of the new <code class="notranslate">SkinnedMesh</code> instance, so we're cloning and re-adding the same bones again.</p> <p dir="auto">Related to the issue itself, it'd be useful to allow changing the recursive parameter from the clone/copy methods. Here's a possible patch, adding the <code class="notranslate">recursive</code> parameter:</p> <p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/adalessandro/three.js/commit/272d308a5f069a9f8ba16853485b9b7401020502/hovercard" href="https://github.com/adalessandro/three.js/commit/272d308a5f069a9f8ba16853485b9b7401020502">adalessandro@<tt>272d308</tt></a></p> <p dir="auto">Issue reported on <code class="notranslate">dev</code> branch.</p>
0
<p dir="auto">I'm not 100% sure if this is a numpy or python bug, but the behavior is quite weird. I've narrowed it down to two simple test cases, one which works and one which segfaults.</p> <p dir="auto">I can create a SharedMemory object, I can create a numpy array backed by it and read and write to it. I can do the same with a second SharedMemory object referring to the same space, created using the name. But I can't have a function return this np array, or accesses will segfault.</p> <h3 dir="auto">Reproducing code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from multiprocessing import shared_memory import numpy as np def np_array_from_shm_name(name, shape=(2,)): shm = shared_memory.SharedMemory(name=name) np_array = np.ndarray(shape, buffer=shm.buf, dtype=np.int32) np_array[:] = (0,0) print(np_array) # prints [0 0] return np_array if __name__ == &quot;__main__&quot;: shm = shared_memory.SharedMemory(create=True, size=8) shm2 = shared_memory.SharedMemory(name=shm.name) np_array = np.ndarray((2,), buffer=shm.buf, dtype=np.int32) np_array[:] = (0, 0) print(np_array) # prints [0 0] np_array = np.ndarray((2,), buffer=shm2.buf, dtype=np.int32) np_array[:] = (0, 0) print(np_array) # prints [0 0] np_array = np_array_from_shm_name(shm.name) np_array[:] = (0, 0) # segfaults print(np_array) shm.unlink() shm2.unlink()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">multiprocessing</span> <span class="pl-k">import</span> <span class="pl-s1">shared_memory</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-k">def</span> <span class="pl-en">np_array_from_shm_name</span>(<span class="pl-s1">name</span>, <span class="pl-s1">shape</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>,)): <span class="pl-s1">shm</span> <span class="pl-c1">=</span> <span class="pl-s1">shared_memory</span>.<span class="pl-v">SharedMemory</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>) <span class="pl-s1">np_array</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ndarray</span>(<span class="pl-s1">shape</span>, <span class="pl-s1">buffer</span><span class="pl-c1">=</span><span class="pl-s1">shm</span>.<span class="pl-s1">buf</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">int32</span>) <span class="pl-s1">np_array</span>[:] <span class="pl-c1">=</span> (<span class="pl-c1">0</span>,<span class="pl-c1">0</span>) <span class="pl-en">print</span>(<span class="pl-s1">np_array</span>) <span class="pl-c"># prints [0 0]</span> <span class="pl-k">return</span> <span class="pl-s1">np_array</span> <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>: <span class="pl-s1">shm</span> <span class="pl-c1">=</span> <span class="pl-s1">shared_memory</span>.<span class="pl-v">SharedMemory</span>(<span class="pl-s1">create</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">8</span>) <span class="pl-s1">shm2</span> <span class="pl-c1">=</span> <span class="pl-s1">shared_memory</span>.<span class="pl-v">SharedMemory</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">shm</span>.<span class="pl-s1">name</span>) <span class="pl-s1">np_array</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ndarray</span>((<span class="pl-c1">2</span>,), <span class="pl-s1">buffer</span><span class="pl-c1">=</span><span class="pl-s1">shm</span>.<span class="pl-s1">buf</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">int32</span>) <span class="pl-s1">np_array</span>[:] <span class="pl-c1">=</span> (<span class="pl-c1">0</span>, <span class="pl-c1">0</span>) <span class="pl-en">print</span>(<span class="pl-s1">np_array</span>) <span class="pl-c"># prints [0 0]</span> <span class="pl-s1">np_array</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ndarray</span>((<span class="pl-c1">2</span>,), <span class="pl-s1">buffer</span><span class="pl-c1">=</span><span class="pl-s1">shm2</span>.<span class="pl-s1">buf</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">int32</span>) <span class="pl-s1">np_array</span>[:] <span class="pl-c1">=</span> (<span class="pl-c1">0</span>, <span class="pl-c1">0</span>) <span class="pl-en">print</span>(<span class="pl-s1">np_array</span>) <span class="pl-c"># prints [0 0]</span> <span class="pl-s1">np_array</span> <span class="pl-c1">=</span> <span class="pl-en">np_array_from_shm_name</span>(<span class="pl-s1">shm</span>.<span class="pl-s1">name</span>) <span class="pl-s1">np_array</span>[:] <span class="pl-c1">=</span> (<span class="pl-c1">0</span>, <span class="pl-c1">0</span>) <span class="pl-c"># segfaults</span> <span class="pl-en">print</span>(<span class="pl-s1">np_array</span>) <span class="pl-s1">shm</span>.<span class="pl-en">unlink</span>() <span class="pl-s1">shm2</span>.<span class="pl-en">unlink</span>()</pre></div> <h3 dir="auto">Error message:</h3> <p dir="auto">Thread 1 "python3-dbg" received signal SIGSEGV, Segmentation fault.<br> 0x00007ffff692e0e9 in INT_setitem (op=0, ov=0x7ffff7491000, vap=0x7fffd68cbd60) at numpy/core/src/multiarray/arraytypes.c.src:235<br> 235 numpy/core/src/multiarray/arraytypes.c.src: No such file or directory.<br> (gdb) py-bt<br> Traceback (most recent call first):<br> File "segfault_poc_simple.py", line 66, in <br> np_array[:] = (0, 0) # segfaults</p> <h3 dir="auto">NumPy/Python version information:</h3> <p dir="auto">1.17.4 3.8.6 (default, Sep 25 2020, 09:36:53)<br> [GCC 10.2.0]</p>
<p dir="auto">This crashes in python2 and python3 with a segfault:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import mmap # create test file a = arange(10., dtype='f4') a.tofile('test') # opens it as a memmap with open('test', 'r+b') as f: mm = mmap.mmap(f.fileno(),0) #view the mmap, then close it x = np.frombuffer(mm, dtype='f4') mm.close() print(x) # segfault"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">mmap</span> <span class="pl-c"># create test file</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-en">arange</span>(<span class="pl-c1">10.</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'f4'</span>) <span class="pl-s1">a</span>.<span class="pl-en">tofile</span>(<span class="pl-s">'test'</span>) <span class="pl-c"># opens it as a memmap</span> <span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s">'test'</span>, <span class="pl-s">'r+b'</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>: <span class="pl-s1">mm</span> <span class="pl-c1">=</span> <span class="pl-s1">mmap</span>.<span class="pl-en">mmap</span>(<span class="pl-s1">f</span>.<span class="pl-en">fileno</span>(),<span class="pl-c1">0</span>) <span class="pl-c">#view the mmap, then close it</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">frombuffer</span>(<span class="pl-s1">mm</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'f4'</span>) <span class="pl-s1">mm</span>.<span class="pl-en">close</span>() <span class="pl-en">print</span>(<span class="pl-s1">x</span>) <span class="pl-c"># segfault</span></pre></div> <p dir="auto">In <code class="notranslate">frombuffer</code> mumpy uses the PEP3118 interface to the mmap to get a pointer to the data, so it seems we are using the interface incorrectly somewhere.</p> <p dir="auto">It seems to me that the "correct" behavior may be for it to be impossible to close the memmap while pointers to it exist; this is the behavior for <code class="notranslate">memoryview</code>s of mmaps. That is, the line <code class="notranslate">mm.close()</code> shoud raise an error <code class="notranslate">BufferError: cannot close exported pointers</code>, as in currently happens in python3:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import mmap &gt;&gt;&gt; with open('test', 'r+b') as f: &gt;&gt;&gt; mm = mmap.mmap(f.fileno(),0) &gt;&gt;&gt; mv = memoryview(mm) &gt;&gt;&gt; mm.close() BufferError: cannot close exported pointers exist"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">mmap</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s">'test'</span>, <span class="pl-s">'r+b'</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>: <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">mm</span> <span class="pl-c1">=</span> <span class="pl-s1">mmap</span>.<span class="pl-en">mmap</span>(<span class="pl-s1">f</span>.<span class="pl-en">fileno</span>(),<span class="pl-c1">0</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">mv</span> <span class="pl-c1">=</span> <span class="pl-en">memoryview</span>(<span class="pl-s1">mm</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">mm</span>.<span class="pl-en">close</span>() <span class="pl-v">BufferError</span>: <span class="pl-s1">cannot</span> <span class="pl-s1">close</span> <span class="pl-s1">exported</span> <span class="pl-s1">pointers</span> <span class="pl-s1">exist</span></pre></div> <p dir="auto">however note also that in python2 we cannot create the memoryview (<code class="notranslate">mv</code>) because of an error <code class="notranslate">TypeError: cannot make memory view because object does not have the buffer interface</code>.</p> <p dir="auto">Note how <a href="https://github.com/python/cpython/blob/b879fe82e7e5c3f7673c9a7fa4aad42bd05445d8/Modules/mmapmodule.c#L727">mmap_buffer_getbuf (link)</a> in the mmap module takes care to keep track of any buffer access to the mmap (the <code class="notranslate">exports</code> counter). Evidently we are somehow bypassing that in numpy.</p>
1
<p dir="auto">Hi,</p> <p dir="auto">I'm editing some files which include Myanmar text. This includes diacritic characters (meaning char + char adding a diacritic (above / below / left / right) the previous char). Atom appears to give each char equal space, meaning that I need to click right of the text to select it, and the highlight appears offset right, too. Each string makes it more difficult to highlight text appearing after it on the line.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/643918/8402027/e85fe6c8-1e71-11e5-92db-2fa52ebd3203.png"><img src="https://cloud.githubusercontent.com/assets/643918/8402027/e85fe6c8-1e71-11e5-92db-2fa52ebd3203.png" alt="screen shot 2015-06-29 at 3 16 43 pm" style="max-width: 100%;"></a></p> <p dir="auto">Put the text နေပြည်တော် in the middle of a long line to see what this looks like. This problem will occur with many other scripts, for example Devanagari used widely in India and Nepal - use this text: देवनागरी. Can you use HTML5 Canvas measureText() ?</p>
<p dir="auto">Halp ticket:</p> <ul dir="auto"> <li>support/e61e5074bc3011e396a434cf997499c3</li> </ul> <blockquote> <p dir="auto">Support for Unicode is incomplete. Unicode characters are shown, but the cursor get stuck, and the navigation with the keyboard arrows stop working.</p> </blockquote> <p dir="auto">The user was using this string as an example <code class="notranslate">ג׳ג׳ג׳dwdwdww</code></p> <p dir="auto">Here's a GIF of me pressing just the right arrow key to get from the beginning of the string to the end:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/38924/2644705/38820a02-bf2b-11e3-8c5c-917400a391d1.gif"><img src="https://cloud.githubusercontent.com/assets/38924/2644705/38820a02-bf2b-11e3-8c5c-917400a391d1.gif" alt="test1006" data-animated-image="" style="max-width: 100%;"></a></p>
1
<p dir="auto">Opening <a href="6to5.org/repl/#?experimental=true&amp;playground=true&amp;evaluate=true&amp;loose=false&amp;code=let%20foo%20%3D%20Symbol%28%27foo%27%29%3B%0Aconsole.log%28String%28foo%29%3D%3D%3D%27Symbol%28foo%29%27%29%3B%0Atry%20%7B%0A%20%20console.log%28foo%20%2B%20%22%22%29%3B%0A%7D%20catch%20%28e%29%20%7B%7D%0Atry%20%7B%0A%20%20console.log%28foo%20%2B%200%29%3B%0A%7D%20catch%20%28e%29%20%7B%7D">this link</a> in Firefox only produces <code class="notranslate">let foo</code> in the left pane.</p>
<p dir="auto">I have a reproducible case where whitspace isn't preserved correctly:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Foo = React.createClass({ render() { return ( &lt;span&gt;foo&lt;/span&gt; ); } }); var Bar = React.createClass({ render() { return ( &lt;div&gt; &lt;Foo/&gt; bar &lt;/div&gt; ); } });"><pre class="notranslate"><code class="notranslate">var Foo = React.createClass({ render() { return ( &lt;span&gt;foo&lt;/span&gt; ); } }); var Bar = React.createClass({ render() { return ( &lt;div&gt; &lt;Foo/&gt; bar &lt;/div&gt; ); } }); </code></pre></div> <p dir="auto">When we render <code class="notranslate">&lt;Bar/&gt;</code> the text <code class="notranslate">foobar</code> is rendered in browser without a space character between <code class="notranslate">foo</code> and <code class="notranslate">bar</code>.</p> <p dir="auto">React's jsx tranformer outputs something like <code class="notranslate">&lt;span&gt; bar&lt;/span&gt;</code> while 6to5 outputs <code class="notranslate">&lt;span&gt;bar&lt;/span&gt;</code>.</p>
0
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I am learning how to create mobile apps at the moment. I cannot give an in-depth bug report. I am reporting a bug because similar code does not render.</p> <p dir="auto">In lib/views/main.dart, setting the TabBarView seems to fail in one application but succeed in another. Of course, I can manually create a widget list and not use a switch and map statements. I wonder if this code is worthy of a bug report.</p> <p dir="auto">working build</p> <p dir="auto"><a href="https://github.com/hungrymonkey/pregnant_watermelon/tree/567712d47f31e26b53eb6ebc203f73324e404248">https://github.com/hungrymonkey/pregnant_watermelon/tree/567712d47f31e26b53eb6ebc203f73324e404248</a></p> <p dir="auto"><a href="https://github.com/hungrymonkey/pregnant_watermelon/blob/567712d47f31e26b53eb6ebc203f73324e404248/lib/main.dart">https://github.com/hungrymonkey/pregnant_watermelon/blob/567712d47f31e26b53eb6ebc203f73324e404248/lib/main.dart</a></p> <p dir="auto">failed build</p> <p dir="auto"><a href="https://github.com/hungrymonkey/weather_app/blob/df30be259af667ffd06546eb73795031a5b7a881/lib/main.dart">https://github.com/hungrymonkey/weather_app/blob/df30be259af667ffd06546eb73795031a5b7a881/lib/main.dart</a></p> <p dir="auto"><a href="https://github.com/hungrymonkey/weather_app/tree/df30be259af667ffd06546eb73795031a5b7a881">https://github.com/hungrymonkey/weather_app/tree/df30be259af667ffd06546eb73795031a5b7a881</a></p> <p dir="auto">Step to repoduce</p> <ol dir="auto"> <li>download weather_app project</li> <li>Build it</li> <li>Run it</li> <li>TabBarView fails and leave a blank page</li> <li>Error is thrown</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I/flutter (31980): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════ I/flutter (31980): The following assertion was thrown during performLayout(): I/flutter (31980): 'package:flutter/src/widgets/sliver.dart': Failed assertion: line 215: 'child != null': is not true. I/flutter (31980): I/flutter (31980): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (31980): more information in this error message to help you determine and fix the underlying cause. I/flutter (31980): In either case, please report this assertion by filing a bug on GitHub: I/flutter (31980): https://github.com/flutter/flutter/issues/new"><pre class="notranslate"><code class="notranslate">I/flutter (31980): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════ I/flutter (31980): The following assertion was thrown during performLayout(): I/flutter (31980): 'package:flutter/src/widgets/sliver.dart': Failed assertion: line 215: 'child != null': is not true. I/flutter (31980): I/flutter (31980): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (31980): more information in this error message to help you determine and fix the underlying cause. I/flutter (31980): In either case, please report this assertion by filing a bug on GitHub: I/flutter (31980): https://github.com/flutter/flutter/issues/new </code></pre></div> <p dir="auto">Expected Results<br> Reproduce the same steps with pregnant watermelon commit 7fbb55828d3b0986fcee559bde351a119803bf1b</p> <p dir="auto">The TabBarView renders properly.</p> <p dir="auto">I am wondering what am I doing differently between pregnant_watermelon and weather_app. The code is almost the same but one fails and the other succeeds. The pages does not matter because I change the page in pregnant_watermelon to the same all MyHomePage and it succeeded.</p> <p dir="auto">Either throw warning sign in pregnant_watermelon or throw a better error in my_weather app to figure out what is going on.</p> <h2 dir="auto">Logs</h2> <p dir="auto">Run your application with <code class="notranslate">flutter run</code> and attach all the log output.</p> <p dir="auto">Run <code class="notranslate">flutter analyze</code> and attach any output of that command also.</p> <p dir="auto"><a href="https://github.com/flutter/flutter/files/1156094/flutter_run_log.txt">flutter_run_log.txt</a></p> <p dir="auto"><a href="https://github.com/flutter/flutter/files/1156100/analyze_log.txt">analyze_log.txt</a></p> <h2 dir="auto">Flutter Doctor</h2> <p dir="auto">Paste the output of running <code class="notranslate">flutter doctor</code> here.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [✓] Flutter (on Linux, locale en_US.UTF-8, channel alpha) • Flutter at /home/rice/flutter • Framework revision d36e2f6191 (4 weeks ago), 2017-06-21 15:09:10 -0700 • Engine revision b0dee695ec • Tools Dart version 1.24.0-dev.6.7 [✓] Android toolchain - develop for Android devices (Android SDK 26.0.0) • Android SDK at /home/rice/Android/Sdk • Platform android-26, build-tools 26.0.0 • Java binary at: /opt/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] Android Studio (version 2.3) • Android Studio at /opt/android-studio • Gradle version 3.2 • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Community Edition (version 2017.1) • Flutter plugin version 15.1 • Dart plugin version 171.4694.29 [✓] Connected devices • SM G900P • 8e90eeee • android-arm • Android 7.1.2 (API 25)"><pre class="notranslate"><code class="notranslate"> [✓] Flutter (on Linux, locale en_US.UTF-8, channel alpha) • Flutter at /home/rice/flutter • Framework revision d36e2f6191 (4 weeks ago), 2017-06-21 15:09:10 -0700 • Engine revision b0dee695ec • Tools Dart version 1.24.0-dev.6.7 [✓] Android toolchain - develop for Android devices (Android SDK 26.0.0) • Android SDK at /home/rice/Android/Sdk • Platform android-26, build-tools 26.0.0 • Java binary at: /opt/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] Android Studio (version 2.3) • Android Studio at /opt/android-studio • Gradle version 3.2 • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Community Edition (version 2017.1) • Flutter plugin version 15.1 • Dart plugin version 171.4694.29 [✓] Connected devices • SM G900P • 8e90eeee • android-arm • Android 7.1.2 (API 25) </code></pre></div> <blockquote> <p dir="auto">For more information about diagnosing and reporting Flutter bugs, please see <a href="https://flutter.io/bug-reports/" rel="nofollow">https://flutter.io/bug-reports/</a>.</p> </blockquote>
<p dir="auto">Can't seem to get a project working with both plugins on iOS and Android. If I remove one or the other I can build and run the project.</p> <h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">add <code class="notranslate">firebase_database: "^0.1.0"</code> to <code class="notranslate">pubspec.yaml</code><br> add <code class="notranslate">firebase_firestore: "^0.0.1+1"</code> to <code class="notranslate">pubspec.yaml</code><br> try to build/run to a device. haven't tried simulators/emulators but I assume it would be the same issue.</p> <h2 dir="auto">Logs</h2> <p dir="auto">on iOS i see</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="duplicate symbol _getQuery in: /Users/KG/Developer/Posse/flutterfirestore/flutterfirestore/build/ios/Release-iphoneos/firebase_database/libfirebase_database.a(FirebaseDatabasePlugin.o) /Users/KG/Developer/Posse/flutterfirestore/flutterfirestore/build/ios/Release-iphoneos/firebase_firestore/libfirebase_firestore.a(FirestorePlugin.o) ld: 1 duplicate symbol for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)"><pre class="notranslate"><code class="notranslate">duplicate symbol _getQuery in: /Users/KG/Developer/Posse/flutterfirestore/flutterfirestore/build/ios/Release-iphoneos/firebase_database/libfirebase_database.a(FirebaseDatabasePlugin.o) /Users/KG/Developer/Posse/flutterfirestore/flutterfirestore/build/ios/Release-iphoneos/firebase_firestore/libfirebase_firestore.a(FirestorePlugin.o) ld: 1 duplicate symbol for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) </code></pre></div> <p dir="auto">on Android<br> <code class="notranslate">&gt; com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzbco;</code></p> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Mac OS X 10.12.6 16G29, locale en-US, channel master) • Flutter at /Users/KG/Developer/Flutter/flutter • Framework revision dc41544793 (29 hours ago), 2017-10-10 12:04:29 -0400 • Engine revision 459f722b86 • Tools Dart version 1.25.0-dev.11.0 [✓] Android toolchain - develop for Android devices (Android SDK 26.0.2) • Android SDK at /Users/KG/Library/Android/sdk • Platform android-26, build-tools 26.0.2 • ANDROID_HOME = /Users/KG/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] iOS toolchain - develop for iOS devices (Xcode 9.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.0, Build version 9A235 • ios-deploy 1.9.2 • CocoaPods version 1.2.1 [✓] Android Studio • Android Studio at /Applications/Android Studio 3.0 Preview.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Community Edition (version 2017.2.5) • Flutter plugin version 18.1 • Dart plugin version 172.4155.35"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS X 10.12.6 16G29, locale en-US, channel master) • Flutter at /Users/KG/Developer/Flutter/flutter • Framework revision dc41544793 (29 hours ago), 2017-10-10 12:04:29 -0400 • Engine revision 459f722b86 • Tools Dart version 1.25.0-dev.11.0 [✓] Android toolchain - develop for Android devices (Android SDK 26.0.2) • Android SDK at /Users/KG/Library/Android/sdk • Platform android-26, build-tools 26.0.2 • ANDROID_HOME = /Users/KG/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] iOS toolchain - develop for iOS devices (Xcode 9.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.0, Build version 9A235 • ios-deploy 1.9.2 • CocoaPods version 1.2.1 [✓] Android Studio • Android Studio at /Applications/Android Studio 3.0 Preview.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Community Edition (version 2017.2.5) • Flutter plugin version 18.1 • Dart plugin version 172.4155.35 </code></pre></div>
0
<p dir="auto"><a href="https://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf" rel="nofollow">https://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf</a></p> <p dir="auto">I think we could pretty much rip this off exactly as is and just substitute pandas functions directly.</p> <p dir="auto">Further could update <code class="notranslate">comparison with R</code> a bit.</p> <p dir="auto">anyone up for this?</p>
<p dir="auto">I'm running into issues using bootstrap samples of the rows of a DataFrame. Example:</p> <pre class="notranslate">import pandas import numpy numpy.random.seed(1) df=pandas.DataFrame({'a':numpy.random.randn(20),'b':numpy.random.randn(20)}) nrows=df.shape[0] # make a bootstrap sample of the rows (nrows indices with replacement) boot_indxs=numpy.random.random_integers(0,nrows-1,nrows) # make a dataframe with sampled rows df2=df.irow(boot_indxs) print df2 # this complains but that's ok since row 5 of df wasn't sampled print df2.ix[:5,:] # this complains, but perhaps it shouldn't since I'm just asking for the first nine # rows of the data frame print df2.irow(range(10)) # this works however which is great print df2.irow(slice(10)) # the problem is then accessing rows without slices # use case: taking a random subset of the rows of the bootstrapped dataframe # to fit a predictive model and test it on the remaining rows print df2.irow(numpy.random.permutation(range(nrows))[:15]) </pre>
0
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e85980473d2860592e724d8a6942f0cdd0772b316134c670b71ba986ee10eec8/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313338373732372f3936363139332f64613730353433632d303533662d313165332d393366632d3030316534653163366162332e706e67"><img src="https://camo.githubusercontent.com/e85980473d2860592e724d8a6942f0cdd0772b316134c670b71ba986ee10eec8/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313338373732372f3936363139332f64613730353433632d303533662d313165332d393366632d3030316534653163366162332e706e67" alt="bs-glitch-example" data-canonical-src="https://f.cloud.github.com/assets/1387727/966193/da70543c-053f-11e3-93fc-001e4e1c6ab3.png" style="max-width: 100%;"></a><br> Here you can see that when the animation is running, the scroll bar appears. OS X 10.6.8 Chrome latest. You can also see a tiny 1px white-ish border in between the navbar and the collapsed nav items, this did not appear in RC1.</p>
<p dir="auto">On firefox 23/chrome/ie10 win7:</p> <p dir="auto">After the animation they diseappear on all browsers (if height &lt;= 340px, of course)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/1acbf1a0f6188877fcab5fca57e37bcf4d5af9c22ec3b3bfd2b624e80874238c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3535363236382f3936313234372f34393535663035342d303463652d313165332d383431312d3662633534623933383931312e706e67"><img src="https://camo.githubusercontent.com/1acbf1a0f6188877fcab5fca57e37bcf4d5af9c22ec3b3bfd2b624e80874238c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3535363236382f3936313234372f34393535663035342d303463652d313165332d383431312d3662633534623933383931312e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/556268/961247/4955f054-04ce-11e3-8411-6bc54b938911.png" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d4db2235badc243939d897bd61b42d80c39dd36ffff055d0528cec725343cb76/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3535363236382f3936313234392f34653831356635302d303463652d313165332d393764312d6561656565653162623563352e706e67"><img src="https://camo.githubusercontent.com/d4db2235badc243939d897bd61b42d80c39dd36ffff055d0528cec725343cb76/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3535363236382f3936313234392f34653831356635302d303463652d313165332d393764312d6561656565653162623563352e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/556268/961249/4e815f50-04ce-11e3-97d1-eaeeee1bb5c5.png" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/f1c339c0aedde0c4afd5d01df674e7471f71711ab857a3f6ecb467ecea8a6cae/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3535363236382f3936313235302f35346231656136362d303463652d313165332d393562612d3232343733316461333362342e706e67"><img src="https://camo.githubusercontent.com/f1c339c0aedde0c4afd5d01df674e7471f71711ab857a3f6ecb467ecea8a6cae/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3535363236382f3936313235302f35346231656136362d303463652d313165332d393562612d3232343733316461333362342e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/556268/961250/54b1ea66-04ce-11e3-95ba-224731da33b4.png" style="max-width: 100%;"></a></p>
1
<p dir="auto"><code class="notranslate">#[derive(Default)]</code> fails on objects that contain a field of an associated type, even if that field is Default.</p> <p dir="auto">For example (also <a href="https://gist.github.com/4c85bcab2cf9f8c56dc2">https://gist.github.com/4c85bcab2cf9f8c56dc2</a>):</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait TR { type Assoc : Clone + Copy + Default; } #[derive(Clone, Copy, Default)] struct Foo&lt;T: TR&gt; { thing : T::Assoc, } impl &lt;T: TR&gt; Foo&lt;T&gt; { fn bar() { // This works let _ : T::Assoc = Default::default(); // This does not. let _ : Foo&lt;T&gt; = Default::default(); } }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">TR</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Assoc</span> <span class="pl-kos">:</span> <span class="pl-smi">Clone</span> + <span class="pl-smi">Copy</span> + <span class="pl-smi">Default</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c1">#<span class="pl-kos">[</span>derive<span class="pl-kos">(</span><span class="pl-v">Clone</span><span class="pl-kos">,</span> <span class="pl-v">Copy</span><span class="pl-kos">,</span> <span class="pl-v">Default</span><span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">struct</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">TR</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">thing</span> <span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos">::</span><span class="pl-smi">Assoc</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span> <span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">TR</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// This works</span> <span class="pl-k">let</span> _ <span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos">::</span><span class="pl-smi">Assoc</span> = <span class="pl-smi">Default</span><span class="pl-kos">::</span><span class="pl-en">default</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// This does not.</span> <span class="pl-k">let</span> _ <span class="pl-kos">:</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> = <span class="pl-smi">Default</span><span class="pl-kos">::</span><span class="pl-en">default</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">This fails with "error: the trait <code class="notranslate">core::default::Default</code> is not implemented for the type <code class="notranslate">T</code> [E0277]". Except that we don't <em>want</em> a default T, we want a default Node.</p> <p dir="auto">Manually implementing Default works as a workaround:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="impl&lt;T: TR&gt; Default for Foo&lt;T&gt; { fn default() -&gt; Self { Foo { thing : Default::default() } } }"><pre class="notranslate"><span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">TR</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Default</span> <span class="pl-k">for</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">default</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Self</span> <span class="pl-kos">{</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">thing</span> <span class="pl-kos">:</span> <span class="pl-smi">Default</span><span class="pl-kos">::</span><span class="pl-en">default</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Happens in 1.3, beta, and nightly as of Sep. 20.</p>
<p dir="auto">In the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#[derive(Copy, Clone)] struct Y&lt;T&gt;(&amp;'static fn(T));"><pre class="notranslate"><code class="notranslate">#[derive(Copy, Clone)] struct Y&lt;T&gt;(&amp;'static fn(T)); </code></pre></div> <p dir="auto">both derives expand to impls that require the corresponding trait to be implemented on the type parameter, e.g.:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#[automatically_derived] impl &lt;T: ::std::marker::Copy&gt; ::std::marker::Copy for Y&lt;T&gt; where T: ::std::marker::Copy { }"><pre class="notranslate"><code class="notranslate">#[automatically_derived] impl &lt;T: ::std::marker::Copy&gt; ::std::marker::Copy for Y&lt;T&gt; where T: ::std::marker::Copy { } </code></pre></div> <p dir="auto">However, this isn't actually necessary, as <code class="notranslate">Y&lt;T&gt;</code> will still be eligible for <code class="notranslate">Copy</code> regardless of whether <code class="notranslate">T</code> is.</p> <p dir="auto">This may be hard to fix, given the compilation phase at which <code class="notranslate">#[derive]</code> works...</p>
1
<p dir="auto">Hi,</p> <p dir="auto">When I run an identical query on 0.90.1 and 0.90.2 I get different results:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;filter&quot;: { &quot;terms&quot;: { &quot;field&quot;: { &quot;id&quot;: &quot;bar&quot;, &quot;type&quot;: &quot;doctype&quot;, &quot;path&quot;: &quot;lookupField&quot; } } }, &quot;query&quot;: { &quot;match_all&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"filter"</span>: { <span class="pl-ent">"terms"</span>: { <span class="pl-ent">"field"</span>: { <span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>bar<span class="pl-pds">"</span></span>, <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>doctype<span class="pl-pds">"</span></span>, <span class="pl-ent">"path"</span>: <span class="pl-s"><span class="pl-pds">"</span>lookupField<span class="pl-pds">"</span></span> } } }, <span class="pl-ent">"query"</span>: { <span class="pl-ent">"match_all"</span>: {} } }</pre></div> <p dir="auto">In 0.90.1 when filter returned no results the result of the query was also empty, i.e. 0 hits.<br> In 0.90.2 it returns everything. <del>The latter behavior is probably better and more expected</del>, but I haven't seen it documented anywhere. Did I miss something?</p>
<p dir="auto">Given the following script: <a href="https://gist.github.com/dakrone/6034875">https://gist.github.com/dakrone/6034875</a></p> <p dir="auto">I was expecting the same output for both queries (no documents matched), but instead I get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="∴ ./missing-filter-bug.zsh Regular filter for null_value=true, existence=false { &quot;took&quot; : 2, &quot;timed_out&quot; : false, &quot;_shards&quot; : { &quot;total&quot; : 1, &quot;successful&quot; : 1, &quot;failed&quot; : 0 }, &quot;hits&quot; : { &quot;total&quot; : 2, &quot;max_score&quot; : 1.0, &quot;hits&quot; : [ { &quot;_index&quot; : &quot;missing-test&quot;, &quot;_type&quot; : &quot;doc&quot;, &quot;_id&quot; : &quot;1&quot;, &quot;_score&quot; : 1.0, &quot;_source&quot; : { &quot;id&quot;: &quot;1&quot; } }, { &quot;_index&quot; : &quot;missing-test&quot;, &quot;_type&quot; : &quot;doc&quot;, &quot;_id&quot; : &quot;2&quot;, &quot;_score&quot; : 1.0, &quot;_source&quot; : { &quot;id&quot;: &quot;2&quot;, &quot;myfield&quot;: &quot;foo&quot; } } ] } } Filtered query with filter for null_value=true, existence=false { &quot;took&quot; : 1, &quot;timed_out&quot; : false, &quot;_shards&quot; : { &quot;total&quot; : 1, &quot;successful&quot; : 1, &quot;failed&quot; : 0 }, &quot;hits&quot; : { &quot;total&quot; : 0, &quot;max_score&quot; : null, &quot;hits&quot; : [ ] } }"><pre class="notranslate"><code class="notranslate">∴ ./missing-filter-bug.zsh Regular filter for null_value=true, existence=false { "took" : 2, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "failed" : 0 }, "hits" : { "total" : 2, "max_score" : 1.0, "hits" : [ { "_index" : "missing-test", "_type" : "doc", "_id" : "1", "_score" : 1.0, "_source" : { "id": "1" } }, { "_index" : "missing-test", "_type" : "doc", "_id" : "2", "_score" : 1.0, "_source" : { "id": "2", "myfield": "foo" } } ] } } Filtered query with filter for null_value=true, existence=false { "took" : 1, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "failed" : 0 }, "hits" : { "total" : 0, "max_score" : null, "hits" : [ ] } } </code></pre></div>
1
<p dir="auto">Using chrome on windows, on a fresh session, launching the modal from demo page<br> <a href="http://getbootstrap.com/javascript/" rel="nofollow">http://getbootstrap.com/javascript/</a></p> <p dir="auto">click "close" or "x" works fine the first time, the second time it fails to close...</p>
<p dir="auto">Hi,</p> <p dir="auto">The code used on last Thursday worked fine. But after updated to latest code on Monday (GMT+8), the modal dialog when clicks to dismiss for seconds onward cannot be close.</p> <p dir="auto">I am checking on source code line 932, if I commented out this line then it is working again.</p> <p dir="auto">this.$element<br> .removeClass('in')<br> .attr('aria-hidden', true)<br> //.off('click.dismiss.modal')</p> <p dir="auto">Am I missing anything...?</p> <p dir="auto">Sorry for the grammar. Thanks.</p>
1
<h2 dir="auto">Conversion from BigInt</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="gmp (78) | failed at 2021-01-19T21:39:56.822 Test Failed at /nobackup/users/vchuravy/dev/julia/test/gmp.jl:501 Expression: T(big&quot;2&quot; ^ (n + 1) - big&quot;2&quot; ^ (n - precision(T))) === T(Inf) Evaluated: -Inf16 === Inf16"><pre class="notranslate"><code class="notranslate">gmp (78) | failed at 2021-01-19T21:39:56.822 Test Failed at /nobackup/users/vchuravy/dev/julia/test/gmp.jl:501 Expression: T(big"2" ^ (n + 1) - big"2" ^ (n - precision(T))) === T(Inf) Evaluated: -Inf16 === Inf16 </code></pre></div> <h3 dir="auto">On Power9 <code class="notranslate">julia -C pwr9</code></h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; T=Float16; n = exponent(floatmax(T)) 15 julia&gt; T(big&quot;2&quot; ^ (n + 1) - big&quot;2&quot; ^ (n - precision(T))) Inf16"><pre lang="julia-repl" class="notranslate"><code class="notranslate">julia&gt; T=Float16; n = exponent(floatmax(T)) 15 julia&gt; T(big"2" ^ (n + 1) - big"2" ^ (n - precision(T))) Inf16 </code></pre></div> <h3 dir="auto">On Power9 <code class="notranslate">julia -C pwr8</code></h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; T=Float16; n = exponent(floatmax(T)) 15 julia&gt; T(big&quot;2&quot; ^ (n + 1) - big&quot;2&quot; ^ (n - precision(T))) -Inf16"><pre lang="julia-repl" class="notranslate"><code class="notranslate">julia&gt; T=Float16; n = exponent(floatmax(T)) 15 julia&gt; T(big"2" ^ (n + 1) - big"2" ^ (n - precision(T))) -Inf16 </code></pre></div> <p dir="auto">Gist: <a href="https://gist.github.com/vchuravy/a0170b4d42e46d800aae53b3a80bb582">https://gist.github.com/vchuravy/a0170b4d42e46d800aae53b3a80bb582</a></p> <p dir="auto">Duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="767899399" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/38896" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/38896/hovercard" href="https://github.com/JuliaLang/julia/issues/38896">#38896</a> which I closed since fixing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="767021083" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/38883" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/38883/hovercard" href="https://github.com/JuliaLang/julia/pull/38883">#38883</a> made it harder to reproduce until <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="787855886" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/39300" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/39300/hovercard" href="https://github.com/JuliaLang/julia/pull/39300">#39300</a></p> <p dir="auto">Upstream: <a href="https://bugs.llvm.org/show_bug.cgi?id=49092" rel="nofollow">https://bugs.llvm.org/show_bug.cgi?id=49092</a></p>
<p dir="auto">Presently calls like _jl_lapack_geqp3 are simple wrappers around calls to Lapack subroutines. They do return the info value as the value of the function call instead of a pointer argument that is modified in the subroutine. However, they do not themselves do the "double call" where the first call to the Lapack subroutine returns the desired size of the work array and the second call does the actual computation.</p> <p dir="auto">There have been a couple of suggestions on julia-dev on how to restructure this. One is to use Lapacke which provides C calling sequences for Lapack subroutines. However, after looking at the code for Lapacke I think it would be better to incorporate that functionality in Julia code.</p> <p dir="auto">I propose extending the <em>jl_lapack</em>* functions to perform the allocation of any work or iwork arrays, doing the double call within this function if needed.</p> <p dir="auto">I think it should also be possible to simplify the calling sequences by extracting the "leading dimension" arguments like lda if A is a StridedMatrix{T} argument. Many if the higher-level functions that call the <em>jl_lapack</em>* functions themselves do the check of stride(A,1) == 1 and extract stride(A,2) as lda To me it seems that the information on the dimensions and strides of A should be accessed within the <em>jl_lapack</em>* functions, not be passed to them, if A is defined to have type StridedMatrix{T}. At least I can't think of a situation where the M, N, A, LDA arguments would be other than size(A,1), size(A,2), A, stride(A, 2) when A is a StridedMatrix{T}.</p> <p dir="auto">I can make such changes and submit a pull request if this is deemed reasonable.</p>
0
<p dir="auto">In some PRs for adding validation to functions: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1448885706" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/24924" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/24924/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/24924">#24924</a> or <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1463740254" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/25026" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/25026/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/25026">#25026</a>, there will be double validation, by the function and another by the estimator. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/adrinjalali/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/adrinjalali">@adrinjalali</a> and I share the same concern about keeping constraints in sync between the function and the estimator: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1448885706" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/24924" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/24924/hovercard?comment_id=1029871876&amp;comment_type=review_comment" href="https://github.com/scikit-learn/scikit-learn/pull/24924#discussion_r1029871876">#24924 (comment)</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1463740254" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/25026" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/25026/hovercard?comment_id=1328780076&amp;comment_type=issue_comment" href="https://github.com/scikit-learn/scikit-learn/pull/25026#issuecomment-1328780076">#25026 (comment)</a>.</p> <p dir="auto">The test for validation is very strict about including a constraint for every parameter. I see the purpose of having this strictness is such that when a new parameter is added, then a constraint is also included.</p> <p dir="auto">I propose adding a <code class="notranslate">parameters_to_validate</code> to <code class="notranslate">validate_params</code> which is a collection of strings that states which parameters should be validated. This way when a new parameter is added, the default is to add a constraint for the new parameter, but it can be ignored by adding it to the <code class="notranslate">parameters_to_validate</code> list.</p> <p dir="auto">CC <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jeremiedbb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jeremiedbb">@jeremiedbb</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/glemaitre/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/glemaitre">@glemaitre</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/adrinjalali/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/adrinjalali">@adrinjalali</a></p>
<p dir="auto">I think we agreed that "labels" is a bad name for what it does in cross-validation. We could rename it to groups in the model-selection module, akin to what we did in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="170333219" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/7169" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/7169/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/7169">#7169</a>.<br> This is kind of a "now or never". It definitely has cost. I think it might be worth it (I just had a discussion where someone was looking for this exact feature but couldn't find it because of the name).<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jnothman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jnothman">@jnothman</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/GaelVaroquaux/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/GaelVaroquaux">@GaelVaroquaux</a> certainly have opinions ;)</p>
0
<p dir="auto">Choose one: is this a bug report or feature request? Bug</p> <p dir="auto">Given a rest property inside an object destructuring, Babel generates member expressions to access the inner object incorrectly.</p> <h3 dir="auto">Input Code</h3> <p dir="auto"><strong>Gist:</strong> <a href="https://gist.github.com/also/578b123c2be5aecc53f7fd79c9547313">https://gist.github.com/also/578b123c2be5aecc53f7fd79c9547313</a></p> <p dir="auto"><strong>Repl:</strong> <a href="https://babeljs.io/repl/#?babili=false&amp;evaluate=true&amp;lineWrap=false&amp;presets=stage-3&amp;targets=&amp;browsers=&amp;builtIns=false&amp;debug=false&amp;code=const%20o%20%3D%20%7Ba%3A%20%7Bb%3A%20%7Bc%3A%20%7Bd%3A%20%7Bx%3A%201%2C%20y%3A%202%2C%20z%3A%203%7D%7D%7D%7D%7D%3B%0A%0Afunction%20works()%20%7B%0A%20%20const%20%7Ba%3A%20%7Bb%3A%20%7Bc%3A%20%7Bd%3A%20temp%7D%7D%7D%7D%20%3D%20o%3B%0A%20%20const%20%7Bx%2C%20y%2C%20...rest%7D%20%3D%20temp%3B%0A%20%20return%20rest%3B%0A%7D%0A%0Afunction%20broken()%20%7B%0A%20%20const%20%7Ba%3A%20%7Bb%3A%20%7Bc%3A%20%7Bd%3A%20%7Bx%2C%20y%2C%20...rest%7D%7D%7D%7D%7D%20%3D%20o%3B%0A%20%20return%20rest%3B%0A%7D%0A%0Aconsole.log(works())%3B%0Aconsole.log(broken())%3B%0A" rel="nofollow">https://babeljs.io/repl/#?babili=false&amp;evaluate=true&amp;lineWrap=false&amp;presets=stage-3&amp;targets=&amp;browsers=&amp;builtIns=false&amp;debug=false&amp;code=const%20o%20%3D%20%7Ba%3A%20%7Bb%3A%20%7Bc%3A%20%7Bd%3A%20%7Bx%3A%201%2C%20y%3A%202%2C%20z%3A%203%7D%7D%7D%7D%7D%3B%0A%0Afunction%20works()%20%7B%0A%20%20const%20%7Ba%3A%20%7Bb%3A%20%7Bc%3A%20%7Bd%3A%20temp%7D%7D%7D%7D%20%3D%20o%3B%0A%20%20const%20%7Bx%2C%20y%2C%20...rest%7D%20%3D%20temp%3B%0A%20%20return%20rest%3B%0A%7D%0A%0Afunction%20broken()%20%7B%0A%20%20const%20%7Ba%3A%20%7Bb%3A%20%7Bc%3A%20%7Bd%3A%20%7Bx%2C%20y%2C%20...rest%7D%7D%7D%7D%7D%20%3D%20o%3B%0A%20%20return%20rest%3B%0A%7D%0A%0Aconsole.log(works())%3B%0Aconsole.log(broken())%3B%0A</a><br> Note that when testing in the repl, the bug is only apparent when es2015 is disabled, because es2015 compiles away the destructuring.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const {a: {b: {c: {d: {x, y, ...rest}}}}} = o;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span><span class="pl-c1">a</span>: <span class="pl-kos">{</span><span class="pl-c1">b</span>: <span class="pl-kos">{</span><span class="pl-c1">c</span>: <span class="pl-kos">{</span><span class="pl-c1">d</span>: <span class="pl-kos">{</span>x<span class="pl-kos">,</span> y<span class="pl-kos">,</span> ...<span class="pl-s1">rest</span><span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">o</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;plugins&quot;: [ &quot;transform-object-rest-spread&quot; ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-s">"transform-object-rest-spread"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Babel should apply the <code class="notranslate">_objectWithoutProperties</code> helper to <code class="notranslate">o.a.b.c.d</code>.</p> <h3 dir="auto">Current Behavior</h3> <p dir="auto">The generated member expressions <code class="notranslate">o.d.c.b.a</code> for the destructuring are backwards:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { a: { b: { c: { d: { x, y } } } } } = o, rest = _objectWithoutProperties(o.d.c.b.a, [&quot;x&quot;, &quot;y&quot;]);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-kos">{</span> <span class="pl-c1">b</span>: <span class="pl-kos">{</span> <span class="pl-c1">c</span>: <span class="pl-kos">{</span> <span class="pl-c1">d</span>: <span class="pl-kos">{</span> x<span class="pl-kos">,</span> y <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">o</span><span class="pl-kos">,</span> <span class="pl-s1">rest</span> <span class="pl-c1">=</span> <span class="pl-en">_objectWithoutProperties</span><span class="pl-kos">(</span><span class="pl-s1">o</span><span class="pl-kos">.</span><span class="pl-c1">d</span><span class="pl-kos">.</span><span class="pl-c1">c</span><span class="pl-kos">.</span><span class="pl-c1">b</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"x"</span><span class="pl-kos">,</span> <span class="pl-s">"y"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Choose one: is this a bug report or feature request?</p> <p dir="auto">Bug</p> <h3 dir="auto">Input Code</h3> <p dir="auto"><a href="https://github.com/daerion/babel-rest-spread-bug">https://github.com/daerion/babel-rest-spread-bug</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const defunct = { outer: { inner: { three: 'three', four: 'four' } } } const { outer: { inner: { three, ...other } } } = defunct"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">defunct</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">outer</span>: <span class="pl-kos">{</span> <span class="pl-c1">inner</span>: <span class="pl-kos">{</span> <span class="pl-c1">three</span>: <span class="pl-s">'three'</span><span class="pl-kos">,</span> <span class="pl-c1">four</span>: <span class="pl-s">'four'</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-c1">outer</span>: <span class="pl-kos">{</span> <span class="pl-c1">inner</span>: <span class="pl-kos">{</span> three<span class="pl-kos">,</span> ...<span class="pl-s1">other</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">defunct</span></pre></div> <h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;plugins&quot;: [ [ &quot;transform-object-rest-spread&quot; ] ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span> <span class="pl-s">"transform-object-rest-spread"</span> <span class="pl-kos">]</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Using the above example, two constants should be assigned:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log('three: %s', three) // 'three' console.dir(other) // { four: 'four' }"><pre class="notranslate"><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">'three: %s'</span><span class="pl-kos">,</span> <span class="pl-s1">three</span><span class="pl-kos">)</span> <span class="pl-c">// 'three'</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">dir</span><span class="pl-kos">(</span><span class="pl-s1">other</span><span class="pl-kos">)</span> <span class="pl-c">// { four: 'four' }</span></pre></div> <p dir="auto">Or, more explicitly, <code class="notranslate">other</code> should be an object containing all values from <code class="notranslate">defunct.outer.inner</code> except for <code class="notranslate">three</code>.</p> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Transpiling the above code results in the following (declarations omitted for brevity, see repository linked above for full source):</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { outer: { inner: { three } } } = defunct, other = _objectWithoutProperties(defunct.inner.outer, ['three']);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> <span class="pl-c1">outer</span>: <span class="pl-kos">{</span> <span class="pl-c1">inner</span>: <span class="pl-kos">{</span> three <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">defunct</span><span class="pl-kos">,</span> <span class="pl-s1">other</span> <span class="pl-c1">=</span> <span class="pl-en">_objectWithoutProperties</span><span class="pl-kos">(</span><span class="pl-s1">defunct</span><span class="pl-kos">.</span><span class="pl-c1">inner</span><span class="pl-kos">.</span><span class="pl-c1">outer</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">'three'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I.e. instead of constructing <code class="notranslate">other</code> from <code class="notranslate">defunct.outer.inner</code>, babel will attempt to use <code class="notranslate">defunct.inner.outer</code>, which is undefined. This happens also when nesting objects even further (again, see linked repo).</p> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td><code class="notranslate">6.24.1</code></td> </tr> <tr> <td>transform-object-rest-spread</td> <td><code class="notranslate">6.23.0</code></td> </tr> <tr> <td>node</td> <td><code class="notranslate">7.9.0</code> and <code class="notranslate">6.10.2</code></td> </tr> <tr> <td>npm</td> <td><code class="notranslate">4.2.0</code> and <code class="notranslate">3.10.10</code></td> </tr> <tr> <td>Operating System</td> <td>Ubuntu 16.10</td> </tr> </tbody> </table>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/27461460/43340079-248c826c-9216-11e8-9dbc-f7218cd2a7f0.png"><img src="https://user-images.githubusercontent.com/27461460/43340079-248c826c-9216-11e8-9dbc-f7218cd2a7f0.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I want my keyboard to able to write number without any decimal points. How to achieve it? I've tried giving either true or false in <code class="notranslate">decimal</code> in <code class="notranslate">TextInputType.numberWithOptions</code> but didn't work.</p> <p dir="auto">Flutter doctor info.</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 dev, v0.5.7, on Mac OS X 10.13.6 17G65, locale en-KR) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1) [✓] Android Studio (version 3.1) [!] VS Code (version 1.25.1) [✓] Connected devices (3 available) ! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel dev, v0.5.7, on Mac OS X 10.13.6 17G65, locale en-KR) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1) [✓] Android Studio (version 3.1) [!] VS Code (version 1.25.1) [✓] Connected devices (3 available) ! Doctor found issues in 1 category. </code></pre></div>
<h3 dir="auto">Bug</h3> <p dir="auto">I am using <code class="notranslate">keyboardType: TextInputType.number</code></p> <p dir="auto">And the docs say that it doesn't include decimal point. But I am seeing decimal, tested on emulator, simulator and iPhone 6s Real device.</p> <p dir="auto">I even tried the other way</p> <p dir="auto"><code class="notranslate">keyboardType: TextInputType.numberWithOptions(decimal: false),</code></p> <p dir="auto">That didn't help either.</p> <p dir="auto">So, it's a bug that needs to be fixed.</p> <h3 dir="auto">Flutter doctor</h3> <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 beta, v1.0.0, on Mac OS X 10.14 18A389, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) [✓] Android Studio (version 3.2) [✓] Connected device (1 available) • No issues found!"><pre class="notranslate"><code class="notranslate">Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.14 18A389, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) [✓] Android Studio (version 3.2) [✓] Connected device (1 available) • No issues found! </code></pre></div> <h3 dir="auto">Devices</h3> <p dir="auto">Simulator (12.1.0)<br> Emulator (API 27)<br> iPhone 6s (12.0.1)</p> <p dir="auto">All devices are using default keyboard app provided by their platform</p>
1
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5097283/2020-08-19.txt">2020-08-19.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.18363.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/19/2020 16:51:53<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):<br> No</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):<br> finalizer<br> orphan</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):<br> Bug Report</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br> Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.3", GitCommit:"c6411395e09da356c608896d3d9725acab821418", GitTreeState:"clean", BuildDate:"2016-07-22T20:29:38Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"darwin/amd64"}<br> Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5+coreos.0", GitCommit:"f70c2e5b2944cb5d622621a706bdec3d8a5a9c5e", GitTreeState:"clean", BuildDate:"2016-10-31T19:16:47Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: CoreOS Tectonic on AWS</li> <li><strong>OS</strong> (e.g. from /etc/os-release): <code class="notranslate">CoreOS stable (1185.3.0)</code></li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): <code class="notranslate">Linux ip-10-0-0-50.us-west-1.compute.internal 4.7.3-coreos-r2 #1 SMP Tue Nov 1 01:38:43 UTC 2016 x86_64 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz GenuineIntel GNU/Linux</code></li> <li><strong>Install tools</strong>: CoreOS Tectonic Installer (self-hosted cluster)</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> When deleting a ReplicaSet, the orphan parameter is populated, but the pods are never removed, blocking the RS from being deleted.</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> RS is deleted</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br> Create a RS and attempt to delete it from either the UI or kubectl.</p> <ol dir="auto"> <li>Create RS and spin up pods</li> <li>Delete the RS</li> <li>Delete will succeed, but the object will never disappear. The orphan parameter is applied to the object.</li> <li>With <code class="notranslate">kubectl edit</code>, removing the orphan parameter will result in successful deletion.</li> </ol> <p dir="auto"><strong>Anything else do we need to know</strong>:<br> The Tectonic Console issues delete requests with <code class="notranslate">orphanDependents=false</code>. It seems like the orphan component is not running at all. I'm not sure where to best debug that or in which control loop it runs.</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): panic thirdpartyresourcedata</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.0&quot;, GitCommit:&quot;a16c0a7f71a6f93c7e0f222d961f4675cd97a46b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-09-26T18:16:57Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;} Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.0+coreos.0&quot;, GitCommit:&quot;278a1f7034bdba61cba443722647da1a8204a6fc&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-09-26T20:48:37Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0+coreos.0", GitCommit:"278a1f7034bdba61cba443722647da1a8204a6fc", GitTreeState:"clean", BuildDate:"2016-09-26T20:48:37Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"} </code></pre></div> <p dir="auto">Also present in current master</p> <p dir="auto"><strong>What happened</strong>:<br> As part of attempt to support third party resources in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181661866" data-permission-text="Title is private" data-url="https://github.com/helm/helm/issues/1295" data-hovercard-type="pull_request" data-hovercard-url="/helm/helm/pull/1295/hovercard" href="https://github.com/helm/helm/pull/1295">helm/helm#1295</a>, I've found that the default client attempts a weird patch behaviour:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PATCH /apis/stable.k8s.psg.io/v1/namespaces/hello-world/certificates/hello-world HTTP/1.1 Host: localhost:8080 User-Agent: tiller/v1.4.1 (linux/amd64) kubernetes/$Format Content-Length: 388 Accept: application/json, */* Content-Type: application/strategic-merge-patch+json Accept-Encoding: gzip {&quot;data&quot;:&quot;eyJhcGlWZXJzaW9uIjoic3RhYmxlLms4cy5wc2cuaW8vdjEiLCJraW5kIjoiQ2VydGlmaWNhdGUiLCJtZXRhZGF0YSI6eyJuYW1lIjoiaGVsbG8td29ybGQifSwic3BlYyI6eyJkb21haW4iOiJoZWxsby13b3JsZC5rOHMuZXUtd2VzdC0xLmF3cy5zaGQuZGV2Lmxhc3RtaWxlLmNvbSIsImVtYWlsIjoibStoZWxsby13b3JsZEBvY2Fkby5jb20iLCJwcm92aWRlciI6InJvdXRlNTMifX0=&quot;,&quot;kind&quot;:&quot;ThirdPartyResourceData&quot;,&quot;metadata&quot;:{&quot;labels&quot;:null},&quot;spec&quot;:null,&quot;status&quot;:null}"><pre class="notranslate"><code class="notranslate">PATCH /apis/stable.k8s.psg.io/v1/namespaces/hello-world/certificates/hello-world HTTP/1.1 Host: localhost:8080 User-Agent: tiller/v1.4.1 (linux/amd64) kubernetes/$Format Content-Length: 388 Accept: application/json, */* Content-Type: application/strategic-merge-patch+json Accept-Encoding: gzip {"data":"eyJhcGlWZXJzaW9uIjoic3RhYmxlLms4cy5wc2cuaW8vdjEiLCJraW5kIjoiQ2VydGlmaWNhdGUiLCJtZXRhZGF0YSI6eyJuYW1lIjoiaGVsbG8td29ybGQifSwic3BlYyI6eyJkb21haW4iOiJoZWxsby13b3JsZC5rOHMuZXUtd2VzdC0xLmF3cy5zaGQuZGV2Lmxhc3RtaWxlLmNvbSIsImVtYWlsIjoibStoZWxsby13b3JsZEBvY2Fkby5jb20iLCJwcm92aWRlciI6InJvdXRlNTMifX0=","kind":"ThirdPartyResourceData","metadata":{"labels":null},"spec":null,"status":null} </code></pre></div> <p dir="auto">This causes kube-apiserver to panic:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I1010 16:04:50.014030 1 handlers.go:162] GET /apis/stable.k8s.psg.io/v1/namespaces/hello-world/certificates/hello-world: (1.486244ms) 200 [[tiller/v1.4.1 (linux/amd64) kubernetes/$Format] 127.0.0.1:53188] E1010 16:04:50.033872 1 runtime.go:64] Observed a panic: &quot;invalid memory address or nil pointer dereference&quot; (runtime error: invalid memory address or nil pointer dereference) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:70 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:63 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:49 /usr/local/go/src/runtime/asm_amd64.s:472 /usr/local/go/src/runtime/panic.go:443 /usr/local/go/src/runtime/panic.go:62 /usr/local/go/src/runtime/sigpanic_unix.go:24 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/codec.go:421 &lt;autogenerated&gt;:5 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/runtime/codec.go:60 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:573 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/rest/update.go:177 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/generic/registry/store.go:355 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/storage/etcd/etcd_helper.go:462 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/generic/registry/store.go:431 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:645 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:953 /usr/local/go/src/runtime/asm_amd64.s:1998 panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x0 pc=0x15e2192] goroutine 1212 [running]: panic(0x4475c00, 0xc820016070) /usr/local/go/src/runtime/panic.go:481 +0x3e6 k8s.io/kubernetes/pkg/util/runtime.HandleCrash(0xc8223d3ef8, 0x1, 0x1) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:56 +0x153 panic(0x4475c00, 0xc820016070) /usr/local/go/src/runtime/panic.go:443 +0x4e9 k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata.(*thirdPartyResourceDataDecoder).Decode(0xc821509740, 0xc821735880, 0x223, 0x35c, 0x0, 0x7fbdf5c06130, 0xc822bdc480, 0x0, 0x0, 0x10739d9, ...) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/codec.go:421 +0x1dc2 k8s.io/kubernetes/pkg/runtime.(*codec).Decode(0xc821509760, 0xc821735880, 0x223, 0x35c, 0x0, 0x7fbdf5c06130, 0xc822bdc480, 0x0, 0x0, 0xc8226a2900, ...) &lt;autogenerated&gt;:5 +0xca k8s.io/kubernetes/pkg/runtime.DecodeInto(0x7fbdf5bc4f88, 0xc821509760, 0xc821735880, 0x223, 0x35c, 0x7fbdf5c06130, 0xc822bdc480, 0x0, 0x0) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/runtime/codec.go:60 +0x98 k8s.io/kubernetes/pkg/apiserver.patchResource.func1(0x7fbdf5c46f90, 0xc822ba05d0, 0x0, 0x0, 0x7fbdf5c06130, 0xc822ed5680, 0x0, 0x0, 0x0, 0x0) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:573 +0x11f7 k8s.io/kubernetes/pkg/api/rest.(*defaultUpdatedObjectInfo).UpdatedObject(0xc822ba6240, 0x7fbdf5c46f90, 0xc822ba05d0, 0x7fbdf5c06130, 0xc822ed5680, 0x0, 0x0, 0x0, 0x0) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/rest/update.go:177 +0x1aa k8s.io/kubernetes/pkg/registry/generic/registry.(*Store).Update.func1(0x7fbdf5c06130, 0xc822ed5680, 0x0, 0x57846d, 0x0, 0x0, 0x0, 0x0, 0x0) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/generic/registry/store.go:355 +0x10d k8s.io/kubernetes/pkg/storage/etcd.(*etcdHelper).GuaranteedUpdate(0xc8201cd700, 0x7fbdf5c46f50, 0xc822ba05d0, 0xc822ba2ae0, 0x57, 0x7fbdf5c06130, 0xc822ed5560, 0x1, 0xc820028af8, 0xc822bcc000, ...) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/storage/etcd/etcd_helper.go:462 +0x49e k8s.io/kubernetes/pkg/registry/generic/registry.(*Store).Update(0xc82018b5e0, 0x7fbdf5c46f90, 0xc822ba05d0, 0xc822ba2645, 0xb, 0x7fbdf5bd9b70, 0xc822ba6240, 0x0, 0x0, 0x40a100, ...) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/generic/registry/store.go:431 +0x401 k8s.io/kubernetes/pkg/apiserver.patchResource.func3(0x0, 0x0, 0x0, 0x0) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:645 +0xda k8s.io/kubernetes/pkg/apiserver.finishRequest.func1(0xc822ba2900, 0xc822ea88c0, 0xc822ba28a0, 0xc822ba2840) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:953 +0xd9 created by k8s.io/kubernetes/pkg/apiserver.finishRequest /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:958 +0xf1 m@hotcpc17686:/export/home/m/go/src/k8s.io/kubernetes$ "><pre class="notranslate"><code class="notranslate">I1010 16:04:50.014030 1 handlers.go:162] GET /apis/stable.k8s.psg.io/v1/namespaces/hello-world/certificates/hello-world: (1.486244ms) 200 [[tiller/v1.4.1 (linux/amd64) kubernetes/$Format] 127.0.0.1:53188] E1010 16:04:50.033872 1 runtime.go:64] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:70 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:63 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:49 /usr/local/go/src/runtime/asm_amd64.s:472 /usr/local/go/src/runtime/panic.go:443 /usr/local/go/src/runtime/panic.go:62 /usr/local/go/src/runtime/sigpanic_unix.go:24 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/codec.go:421 &lt;autogenerated&gt;:5 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/runtime/codec.go:60 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:573 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/rest/update.go:177 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/generic/registry/store.go:355 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/storage/etcd/etcd_helper.go:462 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/generic/registry/store.go:431 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:645 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:953 /usr/local/go/src/runtime/asm_amd64.s:1998 panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x0 pc=0x15e2192] goroutine 1212 [running]: panic(0x4475c00, 0xc820016070) /usr/local/go/src/runtime/panic.go:481 +0x3e6 k8s.io/kubernetes/pkg/util/runtime.HandleCrash(0xc8223d3ef8, 0x1, 0x1) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:56 +0x153 panic(0x4475c00, 0xc820016070) /usr/local/go/src/runtime/panic.go:443 +0x4e9 k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata.(*thirdPartyResourceDataDecoder).Decode(0xc821509740, 0xc821735880, 0x223, 0x35c, 0x0, 0x7fbdf5c06130, 0xc822bdc480, 0x0, 0x0, 0x10739d9, ...) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/thirdpartyresourcedata/codec.go:421 +0x1dc2 k8s.io/kubernetes/pkg/runtime.(*codec).Decode(0xc821509760, 0xc821735880, 0x223, 0x35c, 0x0, 0x7fbdf5c06130, 0xc822bdc480, 0x0, 0x0, 0xc8226a2900, ...) &lt;autogenerated&gt;:5 +0xca k8s.io/kubernetes/pkg/runtime.DecodeInto(0x7fbdf5bc4f88, 0xc821509760, 0xc821735880, 0x223, 0x35c, 0x7fbdf5c06130, 0xc822bdc480, 0x0, 0x0) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/runtime/codec.go:60 +0x98 k8s.io/kubernetes/pkg/apiserver.patchResource.func1(0x7fbdf5c46f90, 0xc822ba05d0, 0x0, 0x0, 0x7fbdf5c06130, 0xc822ed5680, 0x0, 0x0, 0x0, 0x0) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:573 +0x11f7 k8s.io/kubernetes/pkg/api/rest.(*defaultUpdatedObjectInfo).UpdatedObject(0xc822ba6240, 0x7fbdf5c46f90, 0xc822ba05d0, 0x7fbdf5c06130, 0xc822ed5680, 0x0, 0x0, 0x0, 0x0) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/rest/update.go:177 +0x1aa k8s.io/kubernetes/pkg/registry/generic/registry.(*Store).Update.func1(0x7fbdf5c06130, 0xc822ed5680, 0x0, 0x57846d, 0x0, 0x0, 0x0, 0x0, 0x0) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/generic/registry/store.go:355 +0x10d k8s.io/kubernetes/pkg/storage/etcd.(*etcdHelper).GuaranteedUpdate(0xc8201cd700, 0x7fbdf5c46f50, 0xc822ba05d0, 0xc822ba2ae0, 0x57, 0x7fbdf5c06130, 0xc822ed5560, 0x1, 0xc820028af8, 0xc822bcc000, ...) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/storage/etcd/etcd_helper.go:462 +0x49e k8s.io/kubernetes/pkg/registry/generic/registry.(*Store).Update(0xc82018b5e0, 0x7fbdf5c46f90, 0xc822ba05d0, 0xc822ba2645, 0xb, 0x7fbdf5bd9b70, 0xc822ba6240, 0x0, 0x0, 0x40a100, ...) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/registry/generic/registry/store.go:431 +0x401 k8s.io/kubernetes/pkg/apiserver.patchResource.func3(0x0, 0x0, 0x0, 0x0) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:645 +0xda k8s.io/kubernetes/pkg/apiserver.finishRequest.func1(0xc822ba2900, 0xc822ea88c0, 0xc822ba28a0, 0xc822ba2840) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:953 +0xd9 created by k8s.io/kubernetes/pkg/apiserver.finishRequest /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:958 +0xf1 m@hotcpc17686:/export/home/m/go/src/k8s.io/kubernetes$ </code></pre></div> <p dir="auto"><strong>What you expected to happen</strong>:<br> No panic. I suspect this behaviour shouldn't work anyway, but it should return an error rather than letting a user crash the apiserver at-will.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <ul dir="auto"> <li>Use a third party resource such as the Certificate one from <a href="https://github.com/PalmStoneGames/kube-cert-manager">https://github.com/PalmStoneGames/kube-cert-manager</a></li> <li>Create a resource</li> <li>Patch it with something like the following:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{&quot;data&quot;:&quot;eyJhcGlWZXJzaW9uIjoic3RhYmxlLms4cy5wc2cuaW8vdjEiLCJraW5kIjoiQ2VydGlmaWNhdGUiLCJtZXRhZGF0YSI6eyJuYW1lIjoiaGVsbG8td29ybGQifSwic3BlYyI6eyJkb21haW4iOiJoZWxsby13b3JsZC5rOHMuZXUtd2VzdC0xLmF3cy5zaGQuZGV2Lmxhc3RtaWxlLmNvbSIsImVtYWlsIjoibStoZWxsby13b3JsZEBvY2Fkby5jb20iLCJwcm92aWRlciI6InJvdXRlNTMifX0=&quot; ,&quot;kind&quot;:&quot;ThirdPartyResourceData&quot;}"><pre class="notranslate"><code class="notranslate">{"data":"eyJhcGlWZXJzaW9uIjoic3RhYmxlLms4cy5wc2cuaW8vdjEiLCJraW5kIjoiQ2VydGlmaWNhdGUiLCJtZXRhZGF0YSI6eyJuYW1lIjoiaGVsbG8td29ybGQifSwic3BlYyI6eyJkb21haW4iOiJoZWxsby13b3JsZC5rOHMuZXUtd2VzdC0xLmF3cy5zaGQuZGV2Lmxhc3RtaWxlLmNvbSIsImVtYWlsIjoibStoZWxsby13b3JsZEBvY2Fkby5jb20iLCJwcm92aWRlciI6InJvdXRlNTMifX0=" ,"kind":"ThirdPartyResourceData"} </code></pre></div> <p dir="auto"><strong>Anything else do we need to know</strong>:<br> PR to follow with a test case, no fix yet</p>
0
<p dir="auto">Hi folks,</p> <p dir="auto">In Pandas 0.23.0 (on Linux Mint 18.3), i run</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd import numpy as np s = pd.Series([np.nan, 1]) s.fillna(-1).astype(int).astype(str).replace('-1', '')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-c1">1</span>]) <span class="pl-s1">s</span>.<span class="pl-en">fillna</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>).<span class="pl-en">astype</span>(<span class="pl-s1">int</span>).<span class="pl-en">astype</span>(<span class="pl-s1">str</span>).<span class="pl-en">replace</span>(<span class="pl-s">'-1'</span>, <span class="pl-s">''</span>)</pre></div> <p dir="auto">and get the error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-39-6bd382c335e3&gt; in &lt;module&gt;() 1 print(pd.__version__) 2 s = pd.Series([np.nan, 1]) ----&gt; 3 s.fillna(-1).astype(int).astype(str).replace('-1', '') ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/series.py in replace(self, to_replace, value, inplace, limit, regex, method) 3427 return super(Series, self).replace(to_replace=to_replace, value=value, 3428 inplace=inplace, limit=limit, -&gt; 3429 regex=regex, method=method) 3430 3431 @Appender(generic._shared_docs['shift'] % _shared_doc_kwargs) ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/generic.py in replace(self, to_replace, value, inplace, limit, regex, method) 5877 new_data = self._data.replace(to_replace=to_replace, 5878 value=value, inplace=inplace, -&gt; 5879 regex=regex) 5880 else: 5881 msg = ('Invalid &quot;to_replace&quot; type: ' ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/internals.py in replace(self, **kwargs) 3718 3719 def replace(self, **kwargs): -&gt; 3720 return self.apply('replace', **kwargs) 3721 3722 def replace_list(self, src_list, dest_list, inplace=False, regex=False, ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/internals.py in apply(self, f, axes, filter, do_integrity_check, consolidate, **kwargs) 3579 3580 kwargs['mgr'] = self -&gt; 3581 applied = getattr(b, f)(**kwargs) 3582 result_blocks = _extend_blocks(applied, result_blocks) 3583 ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/internals.py in replace(self, to_replace, value, inplace, filter, regex, convert, mgr) 2430 blocks = [self] 2431 -&gt; 2432 if not either_list and is_re(to_replace): 2433 return self._replace_single(to_replace, value, inplace=inplace, 2434 filter=filter, regex=True, ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/dtypes/inference.py in is_re(obj) 217 &quot;&quot;&quot; 218 --&gt; 219 return isinstance(obj, re_type) 220 221 /usr/lib/python3.5/typing.py in __instancecheck__(self, obj) 258 259 def __instancecheck__(self, obj): --&gt; 260 raise TypeError(&quot;Type aliases cannot be used with isinstance().&quot;) 261 262 def __subclasscheck__(self, cls): TypeError: Type aliases cannot be used with isinstance()."><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-39-6bd382c335e3&gt; in &lt;module&gt;() 1 print(pd.__version__) 2 s = pd.Series([np.nan, 1]) ----&gt; 3 s.fillna(-1).astype(int).astype(str).replace('-1', '') ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/series.py in replace(self, to_replace, value, inplace, limit, regex, method) 3427 return super(Series, self).replace(to_replace=to_replace, value=value, 3428 inplace=inplace, limit=limit, -&gt; 3429 regex=regex, method=method) 3430 3431 @Appender(generic._shared_docs['shift'] % _shared_doc_kwargs) ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/generic.py in replace(self, to_replace, value, inplace, limit, regex, method) 5877 new_data = self._data.replace(to_replace=to_replace, 5878 value=value, inplace=inplace, -&gt; 5879 regex=regex) 5880 else: 5881 msg = ('Invalid "to_replace" type: ' ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/internals.py in replace(self, **kwargs) 3718 3719 def replace(self, **kwargs): -&gt; 3720 return self.apply('replace', **kwargs) 3721 3722 def replace_list(self, src_list, dest_list, inplace=False, regex=False, ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/internals.py in apply(self, f, axes, filter, do_integrity_check, consolidate, **kwargs) 3579 3580 kwargs['mgr'] = self -&gt; 3581 applied = getattr(b, f)(**kwargs) 3582 result_blocks = _extend_blocks(applied, result_blocks) 3583 ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/internals.py in replace(self, to_replace, value, inplace, filter, regex, convert, mgr) 2430 blocks = [self] 2431 -&gt; 2432 if not either_list and is_re(to_replace): 2433 return self._replace_single(to_replace, value, inplace=inplace, 2434 filter=filter, regex=True, ~/.virtualenvs/make_gtfs-2RAnZ_bf/lib/python3.5/site-packages/pandas/core/dtypes/inference.py in is_re(obj) 217 """ 218 --&gt; 219 return isinstance(obj, re_type) 220 221 /usr/lib/python3.5/typing.py in __instancecheck__(self, obj) 258 259 def __instancecheck__(self, obj): --&gt; 260 raise TypeError("Type aliases cannot be used with isinstance().") 261 262 def __subclasscheck__(self, cls): TypeError: Type aliases cannot be used with isinstance(). </code></pre></div> <p dir="auto">I expect to get what i got using Pandas 0.22.0, namely</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 1 1 dtype: object"><pre class="notranslate"><code class="notranslate">0 1 1 dtype: object </code></pre></div>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pd.Series(['a', 'b', 'c']).replace('a', 'x')"><pre class="notranslate"><span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s">'c'</span>]).<span class="pl-en">replace</span>(<span class="pl-s">'a'</span>, <span class="pl-s">'x'</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">This raises the following error:</p> <blockquote> <p dir="auto">TypeError: Type aliases cannot be used with isinstance().</p> </blockquote> <p dir="auto">This behavior is exclusive to the new <strong>version 0.23</strong>. Previous versions work as expected.</p> <p dir="auto">Full traceback</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-75-761515b509b4&gt; in &lt;module&gt;() ----&gt; 1 pd.Series(['a','b','c']).replace('a', 'x') ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/series.py in replace(self, to_replace, value, inplace, limit, regex, method) 3427 return super(Series, self).replace(to_replace=to_replace, value=value, 3428 inplace=inplace, limit=limit, -&gt; 3429 regex=regex, method=method) 3430 3431 @Appender(generic._shared_docs['shift'] % _shared_doc_kwargs) ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/generic.py in replace(self, to_replace, value, inplace, limit, regex, method) 5877 new_data = self._data.replace(to_replace=to_replace, 5878 value=value, inplace=inplace, -&gt; 5879 regex=regex) 5880 else: 5881 msg = ('Invalid &quot;to_replace&quot; type: ' ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/internals.py in replace(self, **kwargs) 3718 3719 def replace(self, **kwargs): -&gt; 3720 return self.apply('replace', **kwargs) 3721 3722 def replace_list(self, src_list, dest_list, inplace=False, regex=False, ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/internals.py in apply(self, f, axes, filter, do_integrity_check, consolidate, **kwargs) 3579 3580 kwargs['mgr'] = self -&gt; 3581 applied = getattr(b, f)(**kwargs) 3582 result_blocks = _extend_blocks(applied, result_blocks) 3583 ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/internals.py in replace(self, to_replace, value, inplace, filter, regex, convert, mgr) 2430 blocks = [self] 2431 -&gt; 2432 if not either_list and is_re(to_replace): 2433 return self._replace_single(to_replace, value, inplace=inplace, 2434 filter=filter, regex=True, ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/dtypes/inference.py in is_re(obj) 217 &quot;&quot;&quot; 218 --&gt; 219 return isinstance(obj, re_type) 220 221 /usr/lib/python3.5/typing.py in __instancecheck__(self, obj) 256 257 def __instancecheck__(self, obj): --&gt; 258 raise TypeError(&quot;Type aliases cannot be used with isinstance().&quot;) 259 260 def __subclasscheck__(self, cls): TypeError: Type aliases cannot be used with isinstance()."><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-75-761515b509b4&gt; in &lt;module&gt;() ----&gt; 1 pd.Series(['a','b','c']).replace('a', 'x') ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/series.py in replace(self, to_replace, value, inplace, limit, regex, method) 3427 return super(Series, self).replace(to_replace=to_replace, value=value, 3428 inplace=inplace, limit=limit, -&gt; 3429 regex=regex, method=method) 3430 3431 @Appender(generic._shared_docs['shift'] % _shared_doc_kwargs) ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/generic.py in replace(self, to_replace, value, inplace, limit, regex, method) 5877 new_data = self._data.replace(to_replace=to_replace, 5878 value=value, inplace=inplace, -&gt; 5879 regex=regex) 5880 else: 5881 msg = ('Invalid "to_replace" type: ' ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/internals.py in replace(self, **kwargs) 3718 3719 def replace(self, **kwargs): -&gt; 3720 return self.apply('replace', **kwargs) 3721 3722 def replace_list(self, src_list, dest_list, inplace=False, regex=False, ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/internals.py in apply(self, f, axes, filter, do_integrity_check, consolidate, **kwargs) 3579 3580 kwargs['mgr'] = self -&gt; 3581 applied = getattr(b, f)(**kwargs) 3582 result_blocks = _extend_blocks(applied, result_blocks) 3583 ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/internals.py in replace(self, to_replace, value, inplace, filter, regex, convert, mgr) 2430 blocks = [self] 2431 -&gt; 2432 if not either_list and is_re(to_replace): 2433 return self._replace_single(to_replace, value, inplace=inplace, 2434 filter=filter, regex=True, ~/.virtualenvs/new/lib/python3.5/site-packages/pandas/core/dtypes/inference.py in is_re(obj) 217 """ 218 --&gt; 219 return isinstance(obj, re_type) 220 221 /usr/lib/python3.5/typing.py in __instancecheck__(self, obj) 256 257 def __instancecheck__(self, obj): --&gt; 258 raise TypeError("Type aliases cannot be used with isinstance().") 259 260 def __subclasscheck__(self, cls): TypeError: Type aliases cannot be used with isinstance(). </code></pre></div> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 x 1 b 2 c dtype: object"><pre class="notranslate"><code class="notranslate">0 x 1 b 2 c dtype: object </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.5.1.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 4.13.13-5-pve<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: en_US.UTF-8<br> LANG: en_US.UTF-8<br> LOCALE: en_US.UTF-8</p> <p dir="auto">pandas: 0.23.0<br> pytest: None<br> pip: 8.1.1<br> setuptools: 20.7.0<br> Cython: None<br> numpy: 1.14.3<br> scipy: 1.1.0<br> pyarrow: None<br> xarray: None<br> IPython: 6.4.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.6.1<br> pytz: 2018.4<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> feather: None<br> matplotlib: 2.2.2<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 0.999<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.10<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
1
<p dir="auto">It appears that the Translation Component is present, but failing to operate properly. For example if I intentionally throw an exception, I get hundreds of rows saying <code class="notranslate">WARNING - Translation not found.</code></p> <p dir="auto">this was not true before the upgrade to 2.6.x</p> <p dir="auto">this is in use in the Zikula project and in complete dev mode at the moment. We are also have composer issues since the changeover to 2.6.x</p> <p dir="auto">any help is appreciated.</p> <p dir="auto">ping <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Guite/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Guite">@Guite</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cmfcmf/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cmfcmf">@cmfcmf</a></p>
<p dir="auto">The <code class="notranslate">PropertyPath</code> class currently makes a list of assumptions:</p> <h5 dir="auto">1. Objects are treated by reference</h5> <p dir="auto">When the path <code class="notranslate">author.name</code> is modified, the following methods are called:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="getAuthor() setName() // on the author"><pre class="notranslate"><code class="notranslate">getAuthor() setName() // on the author </code></pre></div> <p dir="auto">Note that <code class="notranslate">setAuthor()</code> is not called.</p> <h5 dir="auto">2. Adders and removers are used if they exist</h5> <p dir="auto">If a collection is written into the path <code class="notranslate">tags</code> and the methods <code class="notranslate">addTag()</code> and <code class="notranslate">removeTag()</code> exist, these are used to merge into the old collection instead of accessing the old collection directly via its <code class="notranslate">ArrayAccess</code> interface. The following methods are called:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="getTags() addTag(...) // instead of $tags[] = ... removeTag(...) // instead of unset($tags[...])"><pre class="notranslate"><code class="notranslate">getTags() addTag(...) // instead of $tags[] = ... removeTag(...) // instead of unset($tags[...]) </code></pre></div> <h5 dir="auto">3. Adders and removers follow English singularization rules</h5> <p dir="auto">If a property path is called <code class="notranslate">children</code>, the guessed adders and removers are <code class="notranslate">addChild()</code> and <code class="notranslate">removeChild()</code>.</p> <h5 dir="auto">Limitations</h5> <p dir="auto">The above assumptions do not hold in all applications:</p> <ol dir="auto"> <li>Sometimes setters should be called (no by-reference handling, see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10616028" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/6965" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/6965/hovercard" href="https://github.com/symfony/symfony/issues/6965">#6965</a>)</li> <li>Sometimes elements should be written directly into collections even though adders/removers exist (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4349742" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/4158" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/4158/hovercard" href="https://github.com/symfony/symfony/issues/4158">#4158</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6216629" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/5257" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/5257/hovercard" href="https://github.com/symfony/symfony/pull/5257">#5257</a>)</li> <li>For other languages than English, singularization does not work</li> </ol> <p dir="auto">So, these assumptions should be made configurable. The challenge is how to build this API in an intuitive way.</p> <h5 dir="auto">Alternative 1: Option arrays</h5> <p dir="auto">The first alternative is to pass the options in an array separately from the property path. For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Path: artikel.stichwörter (= article.tags) Options: array( 'artikel' =&gt; array( 'by_reference' =&gt; false, ), 'artikel.stichwörter' =&gt; array( 'use_adders' =&gt; false, // or 'singular' =&gt; 'stichwort', ), )"><pre class="notranslate"><code class="notranslate">Path: artikel.stichwörter (= article.tags) Options: array( 'artikel' =&gt; array( 'by_reference' =&gt; false, ), 'artikel.stichwörter' =&gt; array( 'use_adders' =&gt; false, // or 'singular' =&gt; 'stichwort', ), ) </code></pre></div> <h5 dir="auto">Alternative 2: Path flags</h5> <p dir="auto">The second alternative is to build the configuration options into the path:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="artikel{!byref}.stichwörter{!adders} // or artikel{!byref}.stichwörter{singular=stichwort}"><pre class="notranslate"><code class="notranslate">artikel{!byref}.stichwörter{!adders} // or artikel{!byref}.stichwörter{singular=stichwort} </code></pre></div> <h5 dir="auto">Alternative 3: Your suggestions</h5> <p dir="auto">Do you have any other ideas? What approach do you prefer?</p>
0
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Foo&lt;T&gt;; impl Foo&lt;int&gt; { fn foo() {} } impl Foo&lt;f64&gt; { fn foo() {} }"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">impl</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">int</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">f64</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="t.rs:6:2: 6:13 error: duplicate definition of value `foo` t.rs:6 fn foo() {} ^~~~~~~~~~~ t.rs:3:2: 3:13 note: first definition of value `foo` here t.rs:3 fn foo() {} ^~~~~~~~~~~"><pre class="notranslate"><code class="notranslate">t.rs:6:2: 6:13 error: duplicate definition of value `foo` t.rs:6 fn foo() {} ^~~~~~~~~~~ t.rs:3:2: 3:13 note: first definition of value `foo` here t.rs:3 fn foo() {} ^~~~~~~~~~~ </code></pre></div> <p dir="auto">This is frustrating.</p>
<p dir="auto">reduction2.rs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="use core::ops::{Add}; fn sum&lt;T, U: Add&lt;U, U&gt;&gt;(seq: &amp;[T], mut u: U, f: &amp;fn(&amp;T) -&gt; U) -&gt; U { for seq.each |x| { u += f(x); }; u } fn F(v: &amp;[float]) -&gt; float { do sum(v, 0.) |x| { *x } }"><pre class="notranslate"><code class="notranslate">use core::ops::{Add}; fn sum&lt;T, U: Add&lt;U, U&gt;&gt;(seq: &amp;[T], mut u: U, f: &amp;fn(&amp;T) -&gt; U) -&gt; U { for seq.each |x| { u += f(x); }; u } fn F(v: &amp;[float]) -&gt; float { do sum(v, 0.) |x| { *x } } </code></pre></div> <p dir="auto">This is compiled with rust as pulled from master. Stack trace follows.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="james@james-VirtualBox ~/r/rank&gt; rustc --version; rust test reduction2.rs rustc 0.6 (2d28d64 2013-05-17 15:52:25 -0700) host: x86_64-unknown-linux-gnu rust: task failed at 'assertion failed: !bcx.ccx().maps.moves_map.contains(&amp;arg_expr.id)', /home/james/rust/src/librustc/middle/trans/callee.rs:745 /usr/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f65d031fdab] /usr/bin/../lib/librustrt.so(+0x2ac49)[0x7f65d0330c49] /usr/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x7f65d0321d78] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(_ZN3sys13begin_unwind_16_615cb041c655a976_07preE+0x63)[0x7f65d2d8bdc3] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0x125d52)[0x7f65d2d8bd52] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(_ZN3sys14__extensions__9meth_91519fail_with17_ac9eb45dc42bd6906_07preE+0x6b)[0x7f65d2ccbceb] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee14trans_arg_expr16_d6bdcf6519b16136_07preE+0x2267)[0x7f65d125abd7] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee10trans_args16_c78fefe5617a1ec6_07preE+0x251)[0x7f65d1257071] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x23b11d)[0x7f65d125611d] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10with_scope17_22a7326c2e584f736_07preE+0x600)[0x7f65d1200ea0] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee16trans_call_inner15_1355cc84959a7b6_07preE+0x13e)[0x7f65d123c96e] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x25dd47)[0x7f65d1278d47] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x25757b)[0x7f65d127257b] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x252d95)[0x7f65d126dd95] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4expr10trans_into15_c7c9f5adcc18a56_07preE+0xc4b)[0x7f65d11ae79b] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10trans_stmt17_91b18a57d4d993546_07preE+0x657)[0x7f65d11ad2d7] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans11controlflow11trans_block17_9854c08ac7b88ca86_07preE+0x1a4)[0x7f65d11aa974] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x259b0f)[0x7f65d1274b0f] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10with_scope17_22a7326c2e584f736_07preE+0x600)[0x7f65d1200ea0] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x24f762)[0x7f65d126a762] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4expr10trans_into15_c7c9f5adcc18a56_07preE+0xa85)[0x7f65d11ae5d5] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans11controlflow11trans_block17_9854c08ac7b88ca86_07preE+0x340)[0x7f65d11aab10] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base13trans_closure17_582aa364a2bb51476_07preE+0xaad)[0x7f65d12e431d] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans7closure13trans_expr_fn16_a5888aeca87762e6_07preE+0x726)[0x7f65d125bff6] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x24f439)[0x7f65d126a439] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4expr14trans_to_datum16_2b8592f90405ae06_07preE+0x1127)[0x7f65d11b2977] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee14trans_arg_expr16_d6bdcf6519b16136_07preE+0xb35)[0x7f65d12594a5] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee10trans_args16_c78fefe5617a1ec6_07preE+0x251)[0x7f65d1257071] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x23b11d)[0x7f65d125611d] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10with_scope17_22a7326c2e584f736_07preE+0x600)[0x7f65d1200ea0] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee16trans_call_inner15_1355cc84959a7b6_07preE+0x13e)[0x7f65d123c96e] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee17trans_method_call17_d6baea2fbe907ff36_07preE+0x7d9)[0x7f65d123d2c9] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x24e4ba)[0x7f65d12694ba] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4expr10trans_into15_c7c9f5adcc18a56_07preE+0xa85)[0x7f65d11ae5d5] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10trans_stmt17_91b18a57d4d993546_07preE+0x657)[0x7f65d11ad2d7] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans11controlflow11trans_block17_9854c08ac7b88ca86_07preE+0x1a4)[0x7f65d11aa974] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base13trans_closure17_582aa364a2bb51476_07preE+0xdae)[0x7f65d12e461e] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base8trans_fn17_7349bdbfff909cc36_07preE+0x691)[0x7f65d115e681] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans12monomorphize14monomorphic_fn16_89a3ce4a93bdc826_07preE+0x4d68)[0x7f65d1163958] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee25trans_fn_ref_with_vtables16_ef718edcdd5474b6_07preE+0xe63)[0x7f65d123a353] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee12trans_fn_ref16_f864ba4eb76f2b16_07preE+0x87f)[0x7f65d12360af] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee5trans16_7a98d43af7ec57c6_07preE+0x78b)[0x7f65d123400b] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x221a88)[0x7f65d123ca88] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x23ab8f)[0x7f65d1255b8f] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10with_scope17_22a7326c2e584f736_07preE+0x600)[0x7f65d1200ea0] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee16trans_call_inner15_1355cc84959a7b6_07preE+0x13e)[0x7f65d123c96e] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee10trans_call17_8f6836f7389cd68a6_07preE+0x39a)[0x7f65d123c53a] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x24e3c2)[0x7f65d12693c2] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4expr10trans_into15_c7c9f5adcc18a56_07preE+0xa85)[0x7f65d11ae5d5] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans11controlflow11trans_block17_9854c08ac7b88ca86_07preE+0x340)[0x7f65d11aab10] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base13trans_closure17_582aa364a2bb51476_07preE+0xdae)[0x7f65d12e461e] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base8trans_fn17_7349bdbfff909cc36_07preE+0x691)[0x7f65d115e681] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10trans_item17_cfa956d4cc97a5dc6_07preE+0xe03)[0x7f65d11545d3] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base9trans_mod17_f526fcf3681e9a666_07preE+0xb6)[0x7f65d12eaea6] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base11trans_crate16_3edbcbf2e01c2a26_07preE+0x344d)[0x7f65d130c56d] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6driver6driver12compile_rest15_134f5496ff5de16_07preE+0x3bc9)[0x7f65d1a49939] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6driver6driver12compile_upto17_747e21c0469b22f26_07preE+0x192)[0x7f65d1a4d442] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6driver6driver13compile_input15_0b1e5b3afc4cd16_07preE+0x107)[0x7f65d1a4d8c7] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN12run_compiler17_63c0a0c62771367c6_07preE+0x2bcb)[0x7f65d1a7e0db] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0xa75dbe)[0x7f65d1a90dbe] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0xa736ac)[0x7f65d1a8e6ac] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0xa6d07c)[0x7f65d1a8807c] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0xa76098)[0x7f65d1a91098] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0xeed05)[0x7f65d2d54d05] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0x16b558)[0x7f65d2dd1558] /usr/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f65d0320764] error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. this is a bug note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues rust: task failed at 'explicit failure', /home/james/rust/src/librustc/rustc.rc:355 /usr/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f65d031fdab] /usr/bin/../lib/librustrt.so(+0x2ac49)[0x7f65d0330c49] /usr/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x7f65d0321d78] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(_ZN3sys13begin_unwind_16_615cb041c655a976_07preE+0x63)[0x7f65d2d8bdc3] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0x125e72)[0x7f65d2d8be72] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0x64144)[0x7f65d2cca144] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN7monitor17_67f3fc1a7e3ddd546_07preE+0x2415)[0x7f65d1a816d5] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0xa76098)[0x7f65d1a91098] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN4main15_c4de63b748e03d6_07preE+0x69)[0x7f65d1a90cf9] /usr/bin/../lib/librust-ff41319e20d2b87e-0.7-pre.so(+0x4208)[0x7f65d0559208] /usr/bin/../lib/librust-ff41319e20d2b87e-0.7-pre.so(+0x2dfe)[0x7f65d0557dfe] /usr/bin/../lib/librust-ff41319e20d2b87e-0.7-pre.so(+0x4c94)[0x7f65d0559c94] /usr/bin/../lib/librust-ff41319e20d2b87e-0.7-pre.so(_ZN4main17_cafdd5fc92b0f2ec6_07preE+0x17c)[0x7f65d055977c] rust(_rust_main+0x2e)[0x400e0e] /usr/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f65d0320764] rust: domain main @0x6ea440 root task failed"><pre class="notranslate"><code class="notranslate">james@james-VirtualBox ~/r/rank&gt; rustc --version; rust test reduction2.rs rustc 0.6 (2d28d64 2013-05-17 15:52:25 -0700) host: x86_64-unknown-linux-gnu rust: task failed at 'assertion failed: !bcx.ccx().maps.moves_map.contains(&amp;arg_expr.id)', /home/james/rust/src/librustc/middle/trans/callee.rs:745 /usr/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f65d031fdab] /usr/bin/../lib/librustrt.so(+0x2ac49)[0x7f65d0330c49] /usr/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x7f65d0321d78] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(_ZN3sys13begin_unwind_16_615cb041c655a976_07preE+0x63)[0x7f65d2d8bdc3] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0x125d52)[0x7f65d2d8bd52] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(_ZN3sys14__extensions__9meth_91519fail_with17_ac9eb45dc42bd6906_07preE+0x6b)[0x7f65d2ccbceb] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee14trans_arg_expr16_d6bdcf6519b16136_07preE+0x2267)[0x7f65d125abd7] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee10trans_args16_c78fefe5617a1ec6_07preE+0x251)[0x7f65d1257071] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x23b11d)[0x7f65d125611d] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10with_scope17_22a7326c2e584f736_07preE+0x600)[0x7f65d1200ea0] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee16trans_call_inner15_1355cc84959a7b6_07preE+0x13e)[0x7f65d123c96e] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x25dd47)[0x7f65d1278d47] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x25757b)[0x7f65d127257b] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x252d95)[0x7f65d126dd95] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4expr10trans_into15_c7c9f5adcc18a56_07preE+0xc4b)[0x7f65d11ae79b] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10trans_stmt17_91b18a57d4d993546_07preE+0x657)[0x7f65d11ad2d7] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans11controlflow11trans_block17_9854c08ac7b88ca86_07preE+0x1a4)[0x7f65d11aa974] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x259b0f)[0x7f65d1274b0f] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10with_scope17_22a7326c2e584f736_07preE+0x600)[0x7f65d1200ea0] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x24f762)[0x7f65d126a762] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4expr10trans_into15_c7c9f5adcc18a56_07preE+0xa85)[0x7f65d11ae5d5] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans11controlflow11trans_block17_9854c08ac7b88ca86_07preE+0x340)[0x7f65d11aab10] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base13trans_closure17_582aa364a2bb51476_07preE+0xaad)[0x7f65d12e431d] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans7closure13trans_expr_fn16_a5888aeca87762e6_07preE+0x726)[0x7f65d125bff6] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x24f439)[0x7f65d126a439] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4expr14trans_to_datum16_2b8592f90405ae06_07preE+0x1127)[0x7f65d11b2977] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee14trans_arg_expr16_d6bdcf6519b16136_07preE+0xb35)[0x7f65d12594a5] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee10trans_args16_c78fefe5617a1ec6_07preE+0x251)[0x7f65d1257071] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x23b11d)[0x7f65d125611d] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10with_scope17_22a7326c2e584f736_07preE+0x600)[0x7f65d1200ea0] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee16trans_call_inner15_1355cc84959a7b6_07preE+0x13e)[0x7f65d123c96e] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee17trans_method_call17_d6baea2fbe907ff36_07preE+0x7d9)[0x7f65d123d2c9] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x24e4ba)[0x7f65d12694ba] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4expr10trans_into15_c7c9f5adcc18a56_07preE+0xa85)[0x7f65d11ae5d5] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10trans_stmt17_91b18a57d4d993546_07preE+0x657)[0x7f65d11ad2d7] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans11controlflow11trans_block17_9854c08ac7b88ca86_07preE+0x1a4)[0x7f65d11aa974] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base13trans_closure17_582aa364a2bb51476_07preE+0xdae)[0x7f65d12e461e] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base8trans_fn17_7349bdbfff909cc36_07preE+0x691)[0x7f65d115e681] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans12monomorphize14monomorphic_fn16_89a3ce4a93bdc826_07preE+0x4d68)[0x7f65d1163958] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee25trans_fn_ref_with_vtables16_ef718edcdd5474b6_07preE+0xe63)[0x7f65d123a353] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee12trans_fn_ref16_f864ba4eb76f2b16_07preE+0x87f)[0x7f65d12360af] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee5trans16_7a98d43af7ec57c6_07preE+0x78b)[0x7f65d123400b] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x221a88)[0x7f65d123ca88] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x23ab8f)[0x7f65d1255b8f] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10with_scope17_22a7326c2e584f736_07preE+0x600)[0x7f65d1200ea0] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee16trans_call_inner15_1355cc84959a7b6_07preE+0x13e)[0x7f65d123c96e] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6callee10trans_call17_8f6836f7389cd68a6_07preE+0x39a)[0x7f65d123c53a] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x24e3c2)[0x7f65d12693c2] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4expr10trans_into15_c7c9f5adcc18a56_07preE+0xa85)[0x7f65d11ae5d5] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans11controlflow11trans_block17_9854c08ac7b88ca86_07preE+0x340)[0x7f65d11aab10] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base13trans_closure17_582aa364a2bb51476_07preE+0xdae)[0x7f65d12e461e] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base8trans_fn17_7349bdbfff909cc36_07preE+0x691)[0x7f65d115e681] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10trans_item17_cfa956d4cc97a5dc6_07preE+0xe03)[0x7f65d11545d3] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base9trans_mod17_f526fcf3681e9a666_07preE+0xb6)[0x7f65d12eaea6] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base11trans_crate16_3edbcbf2e01c2a26_07preE+0x344d)[0x7f65d130c56d] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6driver6driver12compile_rest15_134f5496ff5de16_07preE+0x3bc9)[0x7f65d1a49939] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6driver6driver12compile_upto17_747e21c0469b22f26_07preE+0x192)[0x7f65d1a4d442] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6driver6driver13compile_input15_0b1e5b3afc4cd16_07preE+0x107)[0x7f65d1a4d8c7] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN12run_compiler17_63c0a0c62771367c6_07preE+0x2bcb)[0x7f65d1a7e0db] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0xa75dbe)[0x7f65d1a90dbe] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0xa736ac)[0x7f65d1a8e6ac] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0xa6d07c)[0x7f65d1a8807c] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0xa76098)[0x7f65d1a91098] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0xeed05)[0x7f65d2d54d05] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0x16b558)[0x7f65d2dd1558] /usr/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f65d0320764] error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. this is a bug note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues rust: task failed at 'explicit failure', /home/james/rust/src/librustc/rustc.rc:355 /usr/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f65d031fdab] /usr/bin/../lib/librustrt.so(+0x2ac49)[0x7f65d0330c49] /usr/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x7f65d0321d78] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(_ZN3sys13begin_unwind_16_615cb041c655a976_07preE+0x63)[0x7f65d2d8bdc3] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0x125e72)[0x7f65d2d8be72] /usr/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0x64144)[0x7f65d2cca144] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN7monitor17_67f3fc1a7e3ddd546_07preE+0x2415)[0x7f65d1a816d5] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0xa76098)[0x7f65d1a91098] /usr/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN4main15_c4de63b748e03d6_07preE+0x69)[0x7f65d1a90cf9] /usr/bin/../lib/librust-ff41319e20d2b87e-0.7-pre.so(+0x4208)[0x7f65d0559208] /usr/bin/../lib/librust-ff41319e20d2b87e-0.7-pre.so(+0x2dfe)[0x7f65d0557dfe] /usr/bin/../lib/librust-ff41319e20d2b87e-0.7-pre.so(+0x4c94)[0x7f65d0559c94] /usr/bin/../lib/librust-ff41319e20d2b87e-0.7-pre.so(_ZN4main17_cafdd5fc92b0f2ec6_07preE+0x17c)[0x7f65d055977c] rust(_rust_main+0x2e)[0x400e0e] /usr/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f65d0320764] rust: domain main @0x6ea440 root task failed </code></pre></div>
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.</li> </ul> <hr> <p dir="auto">Hi,</p> <p dir="auto">I tried this example : <a href="https://github.com/zeit/next.js/tree/canary/examples/with-componentdidcatch">with-componentdidcatch</a></p> <p dir="auto">Basically, it's using <code class="notranslate">componentDidCatch</code> in the new <code class="notranslate">_app.js</code>. It intercepts the errors and does a <code class="notranslate">console.log</code> when it intercepts one :</p> <p dir="auto"><a href="https://github.com/zeit/next.js/blob/02bcfb21c81bbc0f76ec8af22d4197952bd9bc15/examples/with-componentdidcatch/pages/_app.js#L3-L9">https://github.com/zeit/next.js/blob/02bcfb21c81bbc0f76ec8af22d4197952bd9bc15/examples/with-componentdidcatch/pages/_app.js#L3-L9</a></p> <h2 dir="auto">Expected Behavior</h2> <ul dir="auto"> <li>I see <code class="notranslate">CUSTOM ERROR HANDLING</code> in the server logs</li> </ul> <h2 dir="auto">Current Behavior</h2> <ul dir="auto"> <li>I don't see <code class="notranslate">CUSTOM ERROR HANDLING</code> in the logs <ul dir="auto"> <li>it's not in server logs</li> <li>it's not in client logs</li> </ul> </li> </ul> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npx create-next-app --example with-componentdidcatch with-componentdidcatch-app cd with-componentdidcatch-app yarn dev"><pre class="notranslate"><code class="notranslate">npx create-next-app --example with-componentdidcatch with-componentdidcatch-app cd with-componentdidcatch-app yarn dev </code></pre></div> <h2 dir="auto">Context</h2> <p dir="auto">The bigger picture here is trying to use error boundaries with next.js.</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.0</td> </tr> <tr> <td>node</td> <td>9.8.0</td> </tr> </tbody> </table>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Normal start of nextjs</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I can't start my server after a update (npm update), I only get this error-message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" error in ./~/next/dist/pages/_document.js?entry Module build failed: Error: Cannot find module 'string-hash' (While processing preset: &quot;/../node_modules/next/dist/server/build/babel/preset.js&quot;) "><pre class="notranslate"><code class="notranslate"> error in ./~/next/dist/pages/_document.js?entry Module build failed: Error: Cannot find module 'string-hash' (While processing preset: "/../node_modules/next/dist/server/build/babel/preset.js") </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>install nextjs (2.4.6) everything works fine</li> <li>update to the latest version, i get the error-message and the app won't start</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>2.4.9</td> </tr> <tr> <td>node</td> <td>7.9.0</td> </tr> <tr> <td>OS</td> <td>ubuntu</td> </tr> </tbody> </table> <p dir="auto">npm- dependencies:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;async&quot;: &quot;^2.5.0&quot;, &quot;boom&quot;: &quot;^4.3.1&quot;, &quot;chart.js&quot;: &quot;^2.5.0&quot;, &quot;cookie&quot;: &quot;^0.3.1&quot;, &quot;es6-promise&quot;: &quot;^4.1.1&quot;, &quot;form-data&quot;: &quot;^2.1.4&quot;, &quot;good&quot;: &quot;^7.1.0&quot;, &quot;h2o2&quot;: &quot;^5.4.0&quot;, &quot;hapi&quot;: &quot;^16.1.1&quot;, &quot;hapi-auth-basic&quot;: &quot;^4.2.0&quot;, &quot;immutability-helper&quot;: &quot;^2.3.0&quot;, &quot;joi-browser&quot;: &quot;^10.0.6&quot;, &quot;lodash&quot;: &quot;^4.17.4&quot;, &quot;log4js&quot;: &quot;^1.1.1&quot;, &quot;moment&quot;: &quot;^2.18.1&quot;, &quot;next&quot;: &quot;2.4.6&quot;, &quot;next-redux-saga&quot;: &quot;^1.0.1&quot;, &quot;next-redux-wrapper&quot;: &quot;^1.2.0&quot;, &quot;qs&quot;: &quot;^6.5.0&quot;, &quot;rc-pagination&quot;: &quot;^1.9.8&quot;, &quot;react&quot;: &quot;^15.6.1&quot;, &quot;react-async-script-loader&quot;: &quot;^0.2.2&quot;, &quot;react-chartjs2&quot;: &quot;^1.1.1&quot;, &quot;react-countup&quot;: &quot;^2.0.3&quot;, &quot;react-cropper&quot;: &quot;^0.12.0&quot;, &quot;react-cropperjs&quot;: &quot;^1.2.5&quot;, &quot;react-datepicker&quot;: &quot;^0.46.0&quot;, &quot;react-datetime&quot;: &quot;^2.8.10&quot;, &quot;react-dom&quot;: &quot;^15.6.1&quot;, &quot;react-dropzone&quot;: &quot;^3.13.3&quot;, &quot;react-image-crop&quot;: &quot;^2.0.3&quot;, &quot;react-no-ssr&quot;: &quot;^1.1.0&quot;, &quot;react-notification-system&quot;: &quot;^0.2.13&quot;, &quot;react-redux&quot;: &quot;^5.0.5&quot;, &quot;react-swal&quot;: &quot;^2.0.0&quot;, &quot;redux&quot;: &quot;^3.7.2&quot;, &quot;redux-actions&quot;: &quot;^2.2.1&quot;, &quot;redux-devtools-extension&quot;: &quot;^2.13.2&quot;, &quot;redux-saga&quot;: &quot;0.15.4&quot;, &quot;redux-thunk&quot;: &quot;^2.2.0&quot;, &quot;request&quot;: &quot;^2.81.0&quot;, &quot;request-promise&quot;: &quot;^4.2.0&quot;, &quot;semantic-ui-react&quot;: &quot;^0.67.1&quot;, &quot;socket.io&quot;: &quot;^2.0.3&quot;, &quot;socket.io-client&quot;: &quot;^2.0.3&quot;, &quot;superagent&quot;: &quot;^3.5.1&quot;, &quot;tai-password-strength&quot;: &quot;^1.1.0&quot;, &quot;wreck&quot;: &quot;^12.2.0&quot;"><pre class="notranslate"><code class="notranslate"> "async": "^2.5.0", "boom": "^4.3.1", "chart.js": "^2.5.0", "cookie": "^0.3.1", "es6-promise": "^4.1.1", "form-data": "^2.1.4", "good": "^7.1.0", "h2o2": "^5.4.0", "hapi": "^16.1.1", "hapi-auth-basic": "^4.2.0", "immutability-helper": "^2.3.0", "joi-browser": "^10.0.6", "lodash": "^4.17.4", "log4js": "^1.1.1", "moment": "^2.18.1", "next": "2.4.6", "next-redux-saga": "^1.0.1", "next-redux-wrapper": "^1.2.0", "qs": "^6.5.0", "rc-pagination": "^1.9.8", "react": "^15.6.1", "react-async-script-loader": "^0.2.2", "react-chartjs2": "^1.1.1", "react-countup": "^2.0.3", "react-cropper": "^0.12.0", "react-cropperjs": "^1.2.5", "react-datepicker": "^0.46.0", "react-datetime": "^2.8.10", "react-dom": "^15.6.1", "react-dropzone": "^3.13.3", "react-image-crop": "^2.0.3", "react-no-ssr": "^1.1.0", "react-notification-system": "^0.2.13", "react-redux": "^5.0.5", "react-swal": "^2.0.0", "redux": "^3.7.2", "redux-actions": "^2.2.1", "redux-devtools-extension": "^2.13.2", "redux-saga": "0.15.4", "redux-thunk": "^2.2.0", "request": "^2.81.0", "request-promise": "^4.2.0", "semantic-ui-react": "^0.67.1", "socket.io": "^2.0.3", "socket.io-client": "^2.0.3", "superagent": "^3.5.1", "tai-password-strength": "^1.1.0", "wreck": "^12.2.0" </code></pre></div>
0
<p dir="auto">I installed Atom for the first time today and receive the following error on installing any package. Google cannot help. Please can anyone provide some suggestions:</p> <hr> <p dir="auto">Installing “[email protected]” failed.Hide output…</p> <p dir="auto">npm ERR! Failed to clone git+<a href="https://github.com/saschagehlich/autocomplete-plus.git#83cfccee996ba10b69a48550717a97fcc9a01c19">https://github.com/saschagehlich/autocomplete-plus.git#83cfccee996ba10b69a48550717a97fcc9a01c19</a> from <a href="https://github.com/saschagehlich/autocomplete-plus.git">https://github.com/saschagehlich/autocomplete-plus.git</a> fatal: could not create work tree dir 'C:\Users\ruser\AppData\Local\Temp\npm-9952-39b32829\1422165134706-0.7615572370123118\83cfccee996ba10b69a48550717a97fcc9a01c19'.: No such file or directory<br> npm ERR! Failed to clone git+<a href="https://github.com/saschagehlich/autocomplete-plus.git#83cfccee996ba10b69a48550717a97fcc9a01c19">https://github.com/saschagehlich/autocomplete-plus.git#83cfccee996ba10b69a48550717a97fcc9a01c19</a> from <a href="https://github.com/saschagehlich/autocomplete-plus.git">https://github.com/saschagehlich/autocomplete-plus.git</a><br> npm ERR! Windows_NT 6.1.7601<br> npm ERR! argv "c:\Users\ruser\AppData\Local\atom\app-0.175.0\resources\app\apm\bin\node.exe" "c:\Users\ruser\AppData\Local\atom\app-0.175.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "c:\Users\ruser\AppData\Local\atom\app-0.175.0\resources\app\apm.apmrc" "--userconfig" "c:\Users\ruser.atom.apmrc" "install" "C:\Users\ruser\AppData\Local\Temp\d-115025-9680-14nzkej\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013"<br> npm ERR! node v0.10.35<br> npm ERR! npm v2.1.18<br> npm ERR! code 128</p> <p dir="auto">npm ERR! Command failed: fatal: could not create work tree dir 'C:\Users\ruser\AppData\Local\Temp\npm-9952-39b32829\1422165134706-0.7615572370123118\83cfccee996ba10b69a48550717a97fcc9a01c19'.: No such file or directory<br> npm ERR!<br> npm ERR!<br> npm ERR! If you need help, you may report this error at:<br> npm ERR! <a href="https://github.com/npm/npm/issues">http://github.com/npm/npm/issues</a></p>
<p dir="auto">I update my atom install going from the previous zip download, wiping all that away and using the new installer, but now certain packages won't install.</p> <p dir="auto">Here is my error output from the install command</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git fatal: could not create work tree dir 'C:\Users\Lucas\AppData\Local\Temp\npm-7196-e008f472\1421899379200-0.9844579449854791\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git npm ERR! Windows_NT 6.2.9200 npm ERR! argv &quot;c:\\Users\\Lucas\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\bin\\\\node.exe&quot; &quot;c:\\Users\\Lucas\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;--globalconfig&quot; &quot;c:\\Users\\Lucas\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\.apmrc&quot; &quot;--userconfig&quot; &quot;C:\\Users\\Lucas\\.atom\\.apmrc&quot; &quot;install&quot; &quot;C:\\Users\\Lucas\\AppData\\Local\\Temp\\d-115021-6940-1k7emay\\package.tgz&quot; &quot;--target=0.20.0&quot; &quot;--arch=ia32&quot; &quot;--msvs_version=2013&quot; npm ERR! node v0.10.35 npm ERR! npm v2.1.18 npm ERR! code 128 npm ERR! Command failed: fatal: could not create work tree dir 'C:\Users\Lucas\AppData\Local\Temp\npm-7196-e008f472\1421899379200-0.9844579449854791\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory npm ERR! npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! &lt;http://github.com/npm/npm/issues&gt;"><pre class="notranslate"><code class="notranslate">npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git fatal: could not create work tree dir 'C:\Users\Lucas\AppData\Local\Temp\npm-7196-e008f472\1421899379200-0.9844579449854791\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git npm ERR! Windows_NT 6.2.9200 npm ERR! argv "c:\\Users\\Lucas\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\bin\\\\node.exe" "c:\\Users\\Lucas\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\Lucas\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\.apmrc" "--userconfig" "C:\\Users\\Lucas\\.atom\\.apmrc" "install" "C:\\Users\\Lucas\\AppData\\Local\\Temp\\d-115021-6940-1k7emay\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013" npm ERR! node v0.10.35 npm ERR! npm v2.1.18 npm ERR! code 128 npm ERR! Command failed: fatal: could not create work tree dir 'C:\Users\Lucas\AppData\Local\Temp\npm-7196-e008f472\1421899379200-0.9844579449854791\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory npm ERR! npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! &lt;http://github.com/npm/npm/issues&gt; </code></pre></div> <p dir="auto">I have gotten Themes and some packages, like color-picker to install but most fail and it is this same error.</p> <p dir="auto">Is this more an NPM issue? I have looked at other issues but none seemed to throw this error.</p>
1
<h5 dir="auto">Issue Type: Bug Report</h5> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">$ ansible --version<br> ansible 2.0.0.2<br> config file = /home/xaeth/.ansible.cfg<br> configured module search path = Default w/o overrides</p> <h5 dir="auto">Ansible Configuration:</h5> <p dir="auto">What have you changed about your Ansible installation?</p> <p dir="auto">My /etc/ansible/ansible.cfg is default Fedora version, which appears to be the stock examples cfg. My cfg changes the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ssh_connection] ssh_args = -o ForwardAgent=yes -o PubkeyAuthentication=yes"><pre class="notranslate"><code class="notranslate">[ssh_connection] ssh_args = -o ForwardAgent=yes -o PubkeyAuthentication=yes </code></pre></div> <h5 dir="auto">Environment:</h5> <p dir="auto">Fedora 22</p> <h5 dir="auto">Summary:</h5> <p dir="auto">As of v2 limiting is broken with static inventory.</p> <h5 dir="auto">Reproduction:</h5> <p dir="auto">Using the attached <a href="https://github.com/ansible/ansible/files/102805/inventory.txt">inventory.txt</a></p> <ul dir="auto"> <li>Ansible 1.9.4</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible all --list-hosts -i inventory.txt -l 'app1' app1-n01.dc1.dev.example.com app1-n02.dc1.dev.example.com app1-n01.dc2.dev.example.com app1-n02.dc2.dev.example.com $ ansible all --list-hosts -i inventory.txt -l 'app2' app2-n01.dc1.dev.example.com app2-n02.dc1.dev.example.com app2-n01.dc2.dev.example.com app2-n02.dc2.dev.example.com $ ansible all --list-hosts -i inventory.txt -l 'app1:&amp;dc1' app1-n01.dc1.dev.example.com app1-n02.dc1.dev.example.com"><pre class="notranslate"><code class="notranslate">$ ansible all --list-hosts -i inventory.txt -l 'app1' app1-n01.dc1.dev.example.com app1-n02.dc1.dev.example.com app1-n01.dc2.dev.example.com app1-n02.dc2.dev.example.com $ ansible all --list-hosts -i inventory.txt -l 'app2' app2-n01.dc1.dev.example.com app2-n02.dc1.dev.example.com app2-n01.dc2.dev.example.com app2-n02.dc2.dev.example.com $ ansible all --list-hosts -i inventory.txt -l 'app1:&amp;dc1' app1-n01.dc1.dev.example.com app1-n02.dc1.dev.example.com </code></pre></div> <ul dir="auto"> <li>Ansible 2.0.0.2</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible all --list-hosts -i inventory.txt -l 'app1' hosts (8): app2-n01.dc1.dev.example.com app2-n02.dc1.dev.example.com app2-n01.dc2.dev.example.com app2-n02.dc2.dev.example.com app1-n01.dc1.dev.example.com app1-n02.dc1.dev.example.com app1-n01.dc2.dev.example.com app1-n02.dc2.dev.example.com $ ansible all --list-hosts -i inventory.txt -l 'app2' hosts (8): app2-n01.dc1.dev.example.com app2-n02.dc1.dev.example.com app2-n01.dc2.dev.example.com app2-n02.dc2.dev.example.com app1-n01.dc1.dev.example.com app1-n02.dc1.dev.example.com app1-n01.dc2.dev.example.com app1-n02.dc2.dev.example.com $ ansible all --list-hosts -i inventory.txt -l 'app1:&amp;dc1' hosts (8): app2-n01.dc1.dev.example.com app2-n02.dc1.dev.example.com app2-n01.dc2.dev.example.com app2-n02.dc2.dev.example.com app1-n01.dc1.dev.example.com app1-n02.dc1.dev.example.com app1-n01.dc2.dev.example.com app1-n02.dc2.dev.example.com"><pre class="notranslate"><code class="notranslate">$ ansible all --list-hosts -i inventory.txt -l 'app1' hosts (8): app2-n01.dc1.dev.example.com app2-n02.dc1.dev.example.com app2-n01.dc2.dev.example.com app2-n02.dc2.dev.example.com app1-n01.dc1.dev.example.com app1-n02.dc1.dev.example.com app1-n01.dc2.dev.example.com app1-n02.dc2.dev.example.com $ ansible all --list-hosts -i inventory.txt -l 'app2' hosts (8): app2-n01.dc1.dev.example.com app2-n02.dc1.dev.example.com app2-n01.dc2.dev.example.com app2-n02.dc2.dev.example.com app1-n01.dc1.dev.example.com app1-n02.dc1.dev.example.com app1-n01.dc2.dev.example.com app1-n02.dc2.dev.example.com $ ansible all --list-hosts -i inventory.txt -l 'app1:&amp;dc1' hosts (8): app2-n01.dc1.dev.example.com app2-n02.dc1.dev.example.com app2-n01.dc2.dev.example.com app2-n02.dc2.dev.example.com app1-n01.dc1.dev.example.com app1-n02.dc1.dev.example.com app1-n01.dc2.dev.example.com app1-n02.dc2.dev.example.com </code></pre></div>
<p dir="auto">as described <a href="https://groups.google.com/forum/#!topic/ansible-project/sxuZfahMRUI" rel="nofollow">here</a>, this doesn't work</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible all -i hosts --limit ~host1 --list-hosts hosts (10): host1 host2 host3 host4 host5 host6 host7 host8 host9 host10"><pre class="notranslate"><code class="notranslate">$ ansible all -i hosts --limit ~host1 --list-hosts hosts (10): host1 host2 host3 host4 host5 host6 host7 host8 host9 host10 </code></pre></div> <p dir="auto">nor this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible all -i hosts --limit host4 --list-hosts hosts (10): host1 host2 host3 host4 host5 host6 host7 host8 host9 host10"><pre class="notranslate"><code class="notranslate">ansible all -i hosts --limit host4 --list-hosts hosts (10): host1 host2 host3 host4 host5 host6 host7 host8 host9 host10 </code></pre></div> <p dir="auto">but this will</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook test.yml -i hosts --limit ~host1 PLAY *************************************************************************** TASK [setup] ******************************************************************* fatal: [host1]: UNREACHABLE! =&gt; {&quot;changed&quot;: false, &quot;msg&quot;: &quot;ERROR! SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue&quot;, &quot;unreachable&quot;: true} fatal: [host10]: UNREACHABLE! =&gt; {&quot;changed&quot;: false, &quot;msg&quot;: &quot;ERROR! SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue&quot;, &quot;unreachable&quot;: true} PLAY RECAP ********************************************************************* host1 : ok=0 changed=0 unreachable=1 failed=0 host10 : ok=0 changed=0 unreachable=1 failed=0 "><pre class="notranslate"><code class="notranslate">ansible-playbook test.yml -i hosts --limit ~host1 PLAY *************************************************************************** TASK [setup] ******************************************************************* fatal: [host1]: UNREACHABLE! =&gt; {"changed": false, "msg": "ERROR! SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue", "unreachable": true} fatal: [host10]: UNREACHABLE! =&gt; {"changed": false, "msg": "ERROR! SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue", "unreachable": true} PLAY RECAP ********************************************************************* host1 : ok=0 changed=0 unreachable=1 failed=0 host10 : ok=0 changed=0 unreachable=1 failed=0 </code></pre></div> <p dir="auto">ansible version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.0.0 config file = /etc/ansible/ansible.cfg configured module search path = /usr/share/ansible"><pre class="notranslate"><code class="notranslate">ansible 2.0.0.0 config file = /etc/ansible/ansible.cfg configured module search path = /usr/share/ansible </code></pre></div> <p dir="auto">installation through <code class="notranslate">pip install --user ansible --upgrade</code>.<br> My hosts file was generate with <code class="notranslate">for f in $(seq 1 10); do echo "host$f" &gt;&gt; hosts; done</code></p>
1
<p dir="auto"><strong>Steps to reproduce and a minimal demo of the problem</strong></p> <p dir="auto"><a href="http://plnkr.co/edit/QcbOZCLEMxDqB9Hal0ef?p=preview" rel="nofollow">http://plnkr.co/edit/QcbOZCLEMxDqB9Hal0ef?p=preview</a></p> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">Just press <code class="notranslate">a</code> in the search field to get a list of options and then press down key. The selected result is constantly reset. Selecting one will keep the single result open.</p> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">Here's a version of the plunkr without <code class="notranslate">angular2-polyfills.js</code> to show the difference.</p> <p dir="auto"><a href="http://plnkr.co/edit/FIygVljA8bIWaoAFehDr?p=preview" rel="nofollow">http://plnkr.co/edit/FIygVljA8bIWaoAFehDr?p=preview</a></p> <p dir="auto">Any insights in why just including <code class="notranslate">angular2-polyfills.js</code> causes this inwanted change would be great. At first I thought it was an issue which could be solved by <code class="notranslate">ngZone.runOutsideAngular</code> but that was before I narrowed it down to simply including <code class="notranslate">angular2-polyfills.js</code></p>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto"><code class="notranslate">:host(selector):before</code> rules are rewritten to <code class="notranslate">selector:before[_nghost_xyz_1]</code>, which never matches anything.<br> Note that <code class="notranslate">:host:before</code> without a selector was fixed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181841790" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/12171" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/12171/hovercard" href="https://github.com/angular/angular/pull/12171">#12171</a> (issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181788444" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/12165" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/12165/hovercard" href="https://github.com/angular/angular/issues/12165">#12165</a>), it is now rewritten to <code class="notranslate">[_nghost_xyz_1]:before</code>.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto"><code class="notranslate">:host(.foo):before</code> should match the <code class="notranslate">:before</code> of <code class="notranslate">:host</code> if it matches <code class="notranslate">.foo</code>. <a href="https://plnkr.co/edit/vItv5x9qrKikoj0f2wkN?p=preview" rel="nofollow">This plunkr</a> contains a working example in native ShadowDOM.</p> <p dir="auto">In this case I'd expect the <code class="notranslate">:host(selector):before</code> rule to be rewritten to <code class="notranslate">selector[_nghost_xyz_1]:before</code>.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">Use any <code class="notranslate">:host(selector):before</code> CSS selector. Example found <a href="https://plnkr.co/edit/id2szqWRmCOidI0c7q5a?p=preview" rel="nofollow">here</a> (slightly modified the plunkr <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/krassx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/krassx">@krassx</a> posted in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181788444" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/12165" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/12165/hovercard" href="https://github.com/angular/angular/issues/12165">#12165</a>)</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong></p> <ul dir="auto"> <li>2.1.2</li> <li>next (<code class="notranslate">npm i @angular/{common,compiler,core,forms,http,platform-browser,platform-browser-dynamic}@next</code>)</li> </ul> </li> <li> <p dir="auto"><strong>Browser:</strong> all</p> </li> <li> <p dir="auto"><strong>Language:</strong> all</p> </li> </ul>
0
<p dir="auto">I see two different conventions being used for including optional arguments in docstrings, one where the argument alone is wrapped in <code class="notranslate">[arg]</code>, and one where the preceding comma is included <code class="notranslate">[, arg]</code>. I happen to find the second one a bit visually confusing, but the first one looks like a vector is created so it's not really optimal either. What are peoples thoughts about this? Should base try to at least be consistent here? Below is an example where the two styles are mixed up, sometimes even on the same line</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="help?&gt; round round(z::Complex[, RoundingModeReal, [RoundingModeImaginary]]) # comma included for the first argument but not the second? round(z::Complex[, RoundingModeReal, [RoundingModeImaginary]]; digits=, base=10) # what's up with the value for digits? round(z::Complex[, RoundingModeReal, [RoundingModeImaginary]]; sigdigits=, base=10) ─────────────────────────────────────────────────────────────────────────────────────────── round([T,] x, [r::RoundingMode]) # comma included for T but not for r round(x, [r::RoundingMode]; digits::Integer=0, base = 10) # comma not included for r round(x, [r::RoundingMode]; sigdigits::Integer, base = 10)"><pre class="notranslate">help?<span class="pl-k">&gt;</span> round <span class="pl-c1">round</span>(z<span class="pl-k">::</span><span class="pl-c1">Complex</span>[, RoundingModeReal, [RoundingModeImaginary]]) <span class="pl-c"><span class="pl-c">#</span> comma included for the first argument but not the second?</span> <span class="pl-c1">round</span>(z<span class="pl-k">::</span><span class="pl-c1">Complex</span>[, RoundingModeReal, [RoundingModeImaginary]]; digits<span class="pl-k">=</span>, base<span class="pl-k">=</span><span class="pl-c1">10</span>) <span class="pl-c"><span class="pl-c">#</span> what's up with the value for digits?</span> <span class="pl-c1">round</span>(z<span class="pl-k">::</span><span class="pl-c1">Complex</span>[, RoundingModeReal, [RoundingModeImaginary]]; sigdigits<span class="pl-k">=</span>, base<span class="pl-k">=</span><span class="pl-c1">10</span>) ─────────────────────────────────────────────────────────────────────────────────────────── <span class="pl-c1">round</span>([T,] x, [r<span class="pl-k">::</span><span class="pl-c1">RoundingMode</span>]) <span class="pl-c"><span class="pl-c">#</span> comma included for T but not for r</span> <span class="pl-c1">round</span>(x, [r<span class="pl-k">::</span><span class="pl-c1">RoundingMode</span>]; digits<span class="pl-k">::</span><span class="pl-c1">Integer</span><span class="pl-k">=</span><span class="pl-c1">0</span>, base <span class="pl-k">=</span> <span class="pl-c1">10</span>) <span class="pl-c"><span class="pl-c">#</span> comma not included for r</span> <span class="pl-c1">round</span>(x, [r<span class="pl-k">::</span><span class="pl-c1">RoundingMode</span>]; sigdigits<span class="pl-k">::</span><span class="pl-c1">Integer</span>, base <span class="pl-k">=</span> <span class="pl-c1">10</span>)</pre></div> <p dir="auto">I guess it's not the biggest of problems, but the inconsistencies may be a bit confusing, especially to newcomers who need to take in all the other language syntax at the same time.</p>
<p dir="auto">In investigating what appeared to be a code coverage issue with CSV.jl, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/omus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/omus">@omus</a> and I stumbled upon an unusual dispatch issue. It can be summarized like this:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; function foo(x=Type) println(&quot;foo&quot;) end; julia&gt; function foo{T}(x::T) println(&quot;Method foo{T}&quot;) end; julia&gt; foo() Method foo{T}"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">foo</span>(x<span class="pl-k">=</span>Type) <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>foo<span class="pl-pds">"</span></span>) <span class="pl-k">end</span>; julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-c1">{T}</span>(x<span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>Method foo{T}<span class="pl-pds">"</span></span>) <span class="pl-k">end</span>; julia<span class="pl-k">&gt;</span> <span class="pl-c1">foo</span>() Method foo{T}</pre></div> <p dir="auto">As <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/omus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/omus">@omus</a> has pointed out, the issue is that this:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo(x=Type) println(&quot;foo&quot;) end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span>(x<span class="pl-k">=</span>Type) <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>foo<span class="pl-pds">"</span></span>) <span class="pl-k">end</span></pre></div> <p dir="auto">is lowered to:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo() foo(Type) end function foo(x) println(&quot;foo&quot;) end function foo{T}(x::T) println(&quot;Method foo{T}&quot;) end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span>() <span class="pl-c1">foo</span>(Type) <span class="pl-k">end</span> <span class="pl-k">function</span> <span class="pl-en">foo</span>(x) <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>foo<span class="pl-pds">"</span></span>) <span class="pl-k">end</span> <span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-c1">{T}</span>(x<span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>Method foo{T}<span class="pl-pds">"</span></span>) <span class="pl-k">end</span></pre></div> <p dir="auto">and since <code class="notranslate">foo{T}(x::T)</code> is deemed more specific than <code class="notranslate">foo(x)</code>, <code class="notranslate">foo{T}(x::T)</code> is called instead of <code class="notranslate">foo(x)</code>.</p> <p dir="auto">It seems like a warning might be appropriate in this case.</p> <p dir="auto">In the above example, I get the same behaviour on both 0.5 and 0.6, using these versions:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 0.5.1-pre+55 Commit 8d4ef37* (2017-02-13 09:11 UTC) Platform Info: System: Darwin (x86_64-apple-darwin16.4.0) CPU: Intel(R) Core(TM) i7-6567U CPU @ 3.30GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.7.1 (ORCJIT, broadwell)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">versioninfo</span>() Julia Version <span class="pl-c1">0.5</span>.<span class="pl-c1">1</span><span class="pl-k">-</span>pre<span class="pl-k">+</span><span class="pl-c1">55</span> Commit <span class="pl-c1">8</span>d4ef37<span class="pl-k">*</span> (<span class="pl-c1">2017</span><span class="pl-k">-</span><span class="pl-c1">02</span><span class="pl-k">-</span><span class="pl-c1">13</span> <span class="pl-c1">09</span><span class="pl-k">:</span><span class="pl-c1">11</span> UTC) Platform Info<span class="pl-k">:</span> System<span class="pl-k">:</span> Darwin (x86_64<span class="pl-k">-</span>apple<span class="pl-k">-</span>darwin16.<span class="pl-c1">4.0</span>) CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Core</span>(TM) i7<span class="pl-k">-</span><span class="pl-c1">6567</span>U CPU @ <span class="pl-c1">3.30</span>GHz WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span> BLAS<span class="pl-k">:</span> libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK<span class="pl-k">:</span> libopenblas64_ LIBM<span class="pl-k">:</span> libopenlibm LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">3.7</span>.<span class="pl-c1">1</span> (ORCJIT, broadwell)</pre></div> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 0.6.0-pre.alpha.5 Commit b1242df* (2017-02-28 18:33 UTC) Platform Info: OS: macOS (x86_64-apple-darwin16.4.0) CPU: Intel(R) Core(TM) i7-6567U CPU @ 3.30GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.9.1 (ORCJIT, skylake)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">versioninfo</span>() Julia Version <span class="pl-c1">0.6</span>.<span class="pl-c1">0</span><span class="pl-k">-</span>pre<span class="pl-k">.</span>alpha.<span class="pl-c1">5</span> Commit b1242df<span class="pl-k">*</span> (<span class="pl-c1">2017</span><span class="pl-k">-</span><span class="pl-c1">02</span><span class="pl-k">-</span><span class="pl-c1">28</span> <span class="pl-c1">18</span><span class="pl-k">:</span><span class="pl-c1">33</span> UTC) Platform Info<span class="pl-k">:</span> OS<span class="pl-k">:</span> macOS (x86_64<span class="pl-k">-</span>apple<span class="pl-k">-</span>darwin16.<span class="pl-c1">4.0</span>) CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Core</span>(TM) i7<span class="pl-k">-</span><span class="pl-c1">6567</span>U CPU @ <span class="pl-c1">3.30</span>GHz WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span> BLAS<span class="pl-k">:</span> libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK<span class="pl-k">:</span> libopenblas64_ LIBM<span class="pl-k">:</span> libopenlibm LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">3.9</span>.<span class="pl-c1">1</span> (ORCJIT, skylake)</pre></div> <p dir="auto">However, I get different behaviour depending on whether I call <code class="notranslate">foo()</code> in between the definitions.</p> <p dir="auto">In 0.5:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; function foo(x=Type) println(&quot;foo&quot;) end; julia&gt; foo() foo julia&gt; function foo{T}(x::T) println(&quot;Method foo{T}&quot;) end; julia&gt; foo() foo"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">foo</span>(x<span class="pl-k">=</span>Type) <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>foo<span class="pl-pds">"</span></span>) <span class="pl-k">end</span>; julia<span class="pl-k">&gt;</span> <span class="pl-c1">foo</span>() foo julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-c1">{T}</span>(x<span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>Method foo{T}<span class="pl-pds">"</span></span>) <span class="pl-k">end</span>; julia<span class="pl-k">&gt;</span> <span class="pl-c1">foo</span>() foo</pre></div> <p dir="auto">In 0.6:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; function foo(x=Type) println(&quot;foo&quot;) end; julia&gt; foo() foo julia&gt; function foo{T}(x::T) println(&quot;Method foo{T}&quot;) end; julia&gt; foo() Method foo{T}"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">foo</span>(x<span class="pl-k">=</span>Type) <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>foo<span class="pl-pds">"</span></span>) <span class="pl-k">end</span>; julia<span class="pl-k">&gt;</span> <span class="pl-c1">foo</span>() foo julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-c1">{T}</span>(x<span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>Method foo{T}<span class="pl-pds">"</span></span>) <span class="pl-k">end</span>; julia<span class="pl-k">&gt;</span> <span class="pl-c1">foo</span>() Method foo{T}</pre></div>
0
<p dir="auto">It would be useful to have auto complete for the <code class="notranslate">command</code>and <code class="notranslate">when</code> fields in the keybindings.json.<br> I don't think this would be too hard for when as as far as I understand extensions cannot add new events. However commands may be slightly trickier as you would have to incorporate commands from extensions, but these are registered anyway so hopefully would not be a show stopper.<br> Thanks</p>
<ul dir="auto"> <li>VSCode Version: 1.1.1</li> <li>OS Version:RHEL 7 (kernel 3.10.0)</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open a repository and keep a JS file open overnight</li> <li>Next morning you'll get the "Not responding, Reopen" message</li> </ol> <p dir="auto">Clicking reopen doesn't help. I actually have to shut down and restart again. This is the VSCode Linux version - to be clear.</p>
0
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sns.__version__, matplotlib.__version__ ('0.11.1', '3.4.2')"><pre class="notranslate"><span class="pl-s1">sns</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">matplotlib</span>.<span class="pl-s1">__version__</span> (<span class="pl-s">'0.11.1'</span>, <span class="pl-s">'3.4.2'</span>)</pre></div> <p dir="auto">This works</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import seaborn as sns titanic = sns.load_dataset(&quot;titanic&quot;) sns.displot( data=titanic, x=&quot;age&quot;, y='fare', col=&quot;survived&quot;, common_bins=True, )"><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-s1">titanic</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"titanic"</span>) <span class="pl-s1">sns</span>.<span class="pl-en">displot</span>( <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">titanic</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">"age"</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'fare'</span>, <span class="pl-s1">col</span><span class="pl-c1">=</span><span class="pl-s">"survived"</span>, <span class="pl-s1">common_bins</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, )</pre></div> <p dir="auto">This does not</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import seaborn as sns titanic = sns.load_dataset(&quot;titanic&quot;) sns.displot( data=titanic, x=&quot;age&quot;, y='fare', col=&quot;survived&quot;, common_bins=False, ) /home/samuel/miniconda3/envs/py38/lib/python3.8/site-packages/numpy/core/fromnumeric.py:87: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray return ufunc.reduce(obj, axis, dtype, out, **passkwargs) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /tmp/ipykernel_10645/1850804617.py in &lt;module&gt; 2 3 titanic = sns.load_dataset(&quot;titanic&quot;) ----&gt; 4 sns.displot( 5 data=titanic, 6 x=&quot;age&quot;, ~/miniconda3/envs/py38/lib/python3.8/site-packages/seaborn/distributions.py in displot(data, x, y, hue, row, col, weights, kind, rug, rug_kws, log_scale, legend, palette, hue_order, hue_norm, color, col_wrap, row_order, col_order, height, aspect, facet_kws, **kwargs) 2230 2231 _assign_default_kwargs(hist_kws, p.plot_bivariate_histogram, histplot) -&gt; 2232 p.plot_bivariate_histogram(**hist_kws) 2233 2234 elif kind == &quot;kde&quot;: ~/miniconda3/envs/py38/lib/python3.8/site-packages/seaborn/distributions.py in plot_bivariate_histogram(self, common_bins, common_norm, thresh, pthresh, pmax, color, legend, cbar, cbar_ax, cbar_kws, estimate_kws, **plot_kws) 763 vmax = self._quantile_to_level(full_heights, pmax) 764 else: --&gt; 765 vmax = plot_kws.pop(&quot;vmax&quot;, np.max(full_heights)) 766 else: 767 vmax = None &lt;__array_function__ internals&gt; in amax(*args, **kwargs) ~/miniconda3/envs/py38/lib/python3.8/site-packages/numpy/core/fromnumeric.py in amax(a, axis, out, keepdims, initial, where) 2703 5 2704 &quot;&quot;&quot; -&gt; 2705 return _wrapreduction(a, np.maximum, 'max', axis, None, out, 2706 keepdims=keepdims, initial=initial, where=where) 2707 ~/miniconda3/envs/py38/lib/python3.8/site-packages/numpy/core/fromnumeric.py in _wrapreduction(obj, ufunc, method, axis, dtype, out, **kwargs) 85 return reduction(axis=axis, out=out, **passkwargs) 86 ---&gt; 87 return ufunc.reduce(obj, axis, dtype, out, **passkwargs) 88 89 ValueError: could not broadcast input array from shape (16,53) into shape (16)"><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-s1">titanic</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"titanic"</span>) <span class="pl-s1">sns</span>.<span class="pl-en">displot</span>( <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">titanic</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">"age"</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'fare'</span>, <span class="pl-s1">col</span><span class="pl-c1">=</span><span class="pl-s">"survived"</span>, <span class="pl-s1">common_bins</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, ) <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">samuel</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">py38</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">8</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">numpy</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">fromnumeric</span>.<span class="pl-s1">py</span>:<span class="pl-c1">87</span>: <span class="pl-v">VisibleDeprecationWarning</span>: <span class="pl-v">Creating</span> <span class="pl-s1">an</span> <span class="pl-s1">ndarray</span> <span class="pl-k">from</span> <span class="pl-s1">ragged</span> <span class="pl-s1">nested</span> <span class="pl-s1">sequences</span> (<span class="pl-s1">which</span> <span class="pl-c1">is</span> <span class="pl-s1">a</span> <span class="pl-s1">list</span><span class="pl-c1">-</span><span class="pl-s1">or</span><span class="pl-c1">-</span><span class="pl-s1">tuple</span> <span class="pl-s1">of</span> <span class="pl-s1">lists</span><span class="pl-c1">-</span><span class="pl-s1">or</span><span class="pl-c1">-</span><span class="pl-s1">tuples</span><span class="pl-c1">-</span><span class="pl-s1">or</span> <span class="pl-s1">ndarrays</span> <span class="pl-k">with</span> <span class="pl-s1">different</span> <span class="pl-s1">lengths</span> <span class="pl-c1">or</span> <span class="pl-s1">shapes</span>) <span class="pl-c1">is</span> <span class="pl-s1">deprecated</span>. <span class="pl-v">If</span> <span class="pl-s1">you</span> <span class="pl-s1">meant</span> <span class="pl-s1">to</span> <span class="pl-s1">do</span> <span class="pl-s1">this</span>, <span class="pl-s1">you</span> <span class="pl-s1">must</span> <span class="pl-s1">specify</span> <span class="pl-s">'dtype=object'</span> <span class="pl-s1">when</span> <span class="pl-s1">creating</span> <span class="pl-s1">the</span> <span class="pl-s1">ndarray</span> <span class="pl-s1">return</span> <span class="pl-s1">ufunc</span>.<span class="pl-en">reduce</span>(<span class="pl-s1">obj</span>, <span class="pl-s1">axis</span>, <span class="pl-s1">dtype</span>, <span class="pl-s1">out</span>, <span class="pl-c1">**</span><span class="pl-s1">passkwargs</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">ValueError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">ipykernel_10645</span><span class="pl-c1">/</span><span class="pl-c1">1850804617.</span><span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-s1">titanic</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"titanic"</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">4</span> <span class="pl-s1">sns</span>.<span class="pl-en">displot</span>( <span class="pl-c1">5</span> <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">titanic</span>, <span class="pl-c1">6</span> <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">"age"</span>, <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">py38</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">8</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">seaborn</span><span class="pl-c1">/</span><span class="pl-s1">distributions</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">displot</span>(<span class="pl-s1">data</span>, <span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">hue</span>, <span class="pl-s1">row</span>, <span class="pl-s1">col</span>, <span class="pl-s1">weights</span>, <span class="pl-s1">kind</span>, <span class="pl-s1">rug</span>, <span class="pl-s1">rug_kws</span>, <span class="pl-s1">log_scale</span>, <span class="pl-s1">legend</span>, <span class="pl-s1">palette</span>, <span class="pl-s1">hue_order</span>, <span class="pl-s1">hue_norm</span>, <span class="pl-s1">color</span>, <span class="pl-s1">col_wrap</span>, <span class="pl-s1">row_order</span>, <span class="pl-s1">col_order</span>, <span class="pl-s1">height</span>, <span class="pl-s1">aspect</span>, <span class="pl-s1">facet_kws</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">2230</span> <span class="pl-c1">2231</span> <span class="pl-s1">_assign_default_kwargs</span>(<span class="pl-s1">hist_kws</span>, <span class="pl-s1">p</span>.<span class="pl-s1">plot_bivariate_histogram</span>, <span class="pl-s1">histplot</span>) <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">2232</span> <span class="pl-s1">p</span>.<span class="pl-en">plot_bivariate_histogram</span>(<span class="pl-c1">**</span><span class="pl-s1">hist_kws</span>) <span class="pl-c1">2233</span> <span class="pl-c1">2234</span> <span class="pl-k">elif</span> <span class="pl-s1">kind</span> <span class="pl-c1">==</span> <span class="pl-s">"kde"</span>: <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">py38</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">8</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">seaborn</span><span class="pl-c1">/</span><span class="pl-s1">distributions</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">plot_bivariate_histogram</span>(<span class="pl-s1">self</span>, <span class="pl-s1">common_bins</span>, <span class="pl-s1">common_norm</span>, <span class="pl-s1">thresh</span>, <span class="pl-s1">pthresh</span>, <span class="pl-s1">pmax</span>, <span class="pl-s1">color</span>, <span class="pl-s1">legend</span>, <span class="pl-s1">cbar</span>, <span class="pl-s1">cbar_ax</span>, <span class="pl-s1">cbar_kws</span>, <span class="pl-s1">estimate_kws</span>, <span class="pl-c1">**</span><span class="pl-s1">plot_kws</span>) <span class="pl-c1">763</span> <span class="pl-s1">vmax</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_quantile_to_level</span>(<span class="pl-s1">full_heights</span>, <span class="pl-s1">pmax</span>) <span class="pl-c1">764</span> <span class="pl-s1">else</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">765</span> <span class="pl-s1">vmax</span> <span class="pl-c1">=</span> <span class="pl-s1">plot_kws</span>.<span class="pl-en">pop</span>(<span class="pl-s">"vmax"</span>, <span class="pl-s1">np</span>.<span class="pl-en">max</span>(<span class="pl-s1">full_heights</span>)) <span class="pl-c1">766</span> <span class="pl-s1">else</span>: <span class="pl-c1">767</span> <span class="pl-s1">vmax</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span> <span class="pl-c1">&lt;</span><span class="pl-s1">__array_function__</span> <span class="pl-s1">internals</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-en">amax</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">py38</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">8</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">numpy</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">fromnumeric</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">amax</span>(<span class="pl-s1">a</span>, <span class="pl-s1">axis</span>, <span class="pl-s1">out</span>, <span class="pl-s1">keepdims</span>, <span class="pl-s1">initial</span>, <span class="pl-s1">where</span>) <span class="pl-c1">2703</span> <span class="pl-c1">5</span> <span class="pl-c1">2704</span> """ <span class="pl-c1">-&gt;</span> <span class="pl-c1">2705</span> <span class="pl-k">return</span> <span class="pl-en">_wrapreduction</span>(<span class="pl-s1">a</span>, <span class="pl-s1">np</span>.<span class="pl-s1">maximum</span>, <span class="pl-s">'max'</span>, <span class="pl-s1">axis</span>, <span class="pl-c1">None</span>, <span class="pl-s1">out</span>, <span class="pl-c1">2706</span> <span class="pl-s1">keepdims</span><span class="pl-c1">=</span><span class="pl-s1">keepdims</span>, <span class="pl-s1">initial</span><span class="pl-c1">=</span><span class="pl-s1">initial</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span><span class="pl-s1">where</span>) <span class="pl-c1">2707</span> <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">py38</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">8</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">numpy</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">fromnumeric</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_wrapreduction</span>(<span class="pl-s1">obj</span>, <span class="pl-s1">ufunc</span>, <span class="pl-s1">method</span>, <span class="pl-s1">axis</span>, <span class="pl-s1">dtype</span>, <span class="pl-s1">out</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">85</span> <span class="pl-k">return</span> <span class="pl-en">reduction</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s1">axis</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-s1">out</span>, <span class="pl-c1">**</span><span class="pl-s1">passkwargs</span>) <span class="pl-c1">86</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">87</span> <span class="pl-s1">return</span> <span class="pl-s1">ufunc</span>.<span class="pl-en">reduce</span>(<span class="pl-s1">obj</span>, <span class="pl-s1">axis</span>, <span class="pl-s1">dtype</span>, <span class="pl-s1">out</span>, <span class="pl-c1">**</span><span class="pl-s1">passkwargs</span>) <span class="pl-c1">88</span> <span class="pl-c1">89</span> <span class="pl-v">ValueError</span>: <span class="pl-s1">could</span> <span class="pl-c1">not</span> <span class="pl-s1">broadcast</span> <span class="pl-s1">input</span> <span class="pl-s1">array</span> <span class="pl-k">from</span> <span class="pl-en">shape</span> (<span class="pl-c1">16</span>,<span class="pl-c1">53</span>) <span class="pl-s1">into</span> <span class="pl-en">shape</span> (<span class="pl-c1">16</span>)</pre></div> <p dir="auto">I thought asking for different bins size (in a more complicated example) would work, but apparently adding a y variable make stuff blows up. Asking only for a x variable or more rows/columns seems fine though, so I'm wondering if the bivariate case is supposed to 1. work or 2. is allowing something which is not supposed to be working and should instead report a warning/error for that case.</p>
<p dir="auto">I'm noticing a new behavior in clustermap. The top and bottom of the figure get clipped. The command used to produce complete squares a few months ago. Here's an example:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26352146/67225950-1f139600-f402-11e9-98cc-2547bda5d4a4.png"><img src="https://user-images.githubusercontent.com/26352146/67225950-1f139600-f402-11e9-98cc-2547bda5d4a4.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">For your records, I ran the following code:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="%matplotlib inline import numpy as np import seaborn as sns np.random.seed(98) x = np.random.rand(10,10) sns.clustermap(x)"><pre class="notranslate"><span class="pl-c1">%</span><span class="pl-s1">matplotlib</span> <span class="pl-s1">inline</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-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">98</span>) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">rand</span>(<span class="pl-c1">10</span>,<span class="pl-c1">10</span>) <span class="pl-s1">sns</span>.<span class="pl-en">clustermap</span>(<span class="pl-s1">x</span>)</pre></div> <p dir="auto">It just looks like a bug, so I thought I'd report it.</p> <p dir="auto">Thanks.</p>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.35]</li> <li>Operating System: [Windows 11]</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> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import time import re import asyncio from playwright.async_api import async_playwright def handle_request(req, ): global code url_regex = re.compile(r&quot;xfinitydigitalhome://auth\?&quot;) try: url = req.headers['location'] print('response url:' + req.url) if url_regex.search(url): print(&quot;Request URL:&quot;, url) regexp_1 = r'&amp;code=(.*)' match_2 = re.search(regexp_1, url) code = match_2.group(1) print(&quot;code&quot;) print(code) return code except: pass async def main(): async with async_playwright() as pw: url = 'https://xerxes-sub.xerxessecure.com/xerxes-ctrl/oauth/authorize?redirect_uri=xfinitydigitalhome%3A%2F%2Fauth&amp;client_id=xfinity-digital-home&amp;response_type=code&amp;prompt=select_account&amp;state=pcmI1pOdQC-sF-b2XSyNhg&amp;code_challenge=plBIQIkEAuywK76tE4uTPI7yGIU0OTOjuvQHnlB7c3Q&amp;code_challenge_method=S256&amp;rm_hint=true&amp;partner_id=comcast&amp;mso_partner_hint=true' browser = await pw.chromium.launch(headless=False) context = await browser.new_context( proxy={ 'server': 'http://sample.com:port', # replace with your proxy server and port 'username': 'username', # replace with your username 'password': 'passwd' }, ignore_https_errors=True) page = await context.new_page() page.set_default_navigation_timeout(0) page.on(&quot;response&quot;, handle_request) print('goto: ' + url) await page.goto(url, timeout=0, wait_until=&quot;networkidle&quot;) await page.wait_for_selector('#user', timeout=30000) await page.type('#user', username) print('type username') await page.click('#sign_in') time.sleep(60) await browser.close() asyncio.get_event_loop().run_until_complete(main())"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">time</span> <span class="pl-k">import</span> <span class="pl-s1">re</span> <span class="pl-k">import</span> <span class="pl-s1">asyncio</span> <span class="pl-k">from</span> <span class="pl-s1">playwright</span>.<span class="pl-s1">async_api</span> <span class="pl-k">import</span> <span class="pl-s1">async_playwright</span> <span class="pl-k">def</span> <span class="pl-en">handle_request</span>(<span class="pl-s1">req</span>, ): <span class="pl-k">global</span> <span class="pl-s1">code</span> <span class="pl-s1">url_regex</span> <span class="pl-c1">=</span> <span class="pl-s1">re</span>.<span class="pl-en">compile</span>(<span class="pl-s">r"xfinitydigitalhome://auth\?"</span>) <span class="pl-k">try</span>: <span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s1">req</span>.<span class="pl-s1">headers</span>[<span class="pl-s">'location'</span>] <span class="pl-en">print</span>(<span class="pl-s">'response url:'</span> <span class="pl-c1">+</span> <span class="pl-s1">req</span>.<span class="pl-s1">url</span>) <span class="pl-k">if</span> <span class="pl-s1">url_regex</span>.<span class="pl-en">search</span>(<span class="pl-s1">url</span>): <span class="pl-en">print</span>(<span class="pl-s">"Request URL:"</span>, <span class="pl-s1">url</span>) <span class="pl-s1">regexp_1</span> <span class="pl-c1">=</span> <span class="pl-s">r'&amp;code=(.*)'</span> <span class="pl-s1">match_2</span> <span class="pl-c1">=</span> <span class="pl-s1">re</span>.<span class="pl-en">search</span>(<span class="pl-s1">regexp_1</span>, <span class="pl-s1">url</span>) <span class="pl-s1">code</span> <span class="pl-c1">=</span> <span class="pl-s1">match_2</span>.<span class="pl-en">group</span>(<span class="pl-c1">1</span>) <span class="pl-en">print</span>(<span class="pl-s">"code"</span>) <span class="pl-en">print</span>(<span class="pl-s1">code</span>) <span class="pl-k">return</span> <span class="pl-s1">code</span> <span class="pl-k">except</span>: <span class="pl-k">pass</span> <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">main</span>(): <span class="pl-k">async</span> <span class="pl-k">with</span> <span class="pl-en">async_playwright</span>() <span class="pl-k">as</span> <span class="pl-s1">pw</span>: <span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s">'https://xerxes-sub.xerxessecure.com/xerxes-ctrl/oauth/authorize?redirect_uri=xfinitydigitalhome%3A%2F%2Fauth&amp;client_id=xfinity-digital-home&amp;response_type=code&amp;prompt=select_account&amp;state=pcmI1pOdQC-sF-b2XSyNhg&amp;code_challenge=plBIQIkEAuywK76tE4uTPI7yGIU0OTOjuvQHnlB7c3Q&amp;code_challenge_method=S256&amp;rm_hint=true&amp;partner_id=comcast&amp;mso_partner_hint=true'</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">pw</span>.<span class="pl-s1">chromium</span>.<span class="pl-en">launch</span>(<span class="pl-s1">headless</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span>.<span class="pl-en">new_context</span>( <span class="pl-s1">proxy</span><span class="pl-c1">=</span>{ <span class="pl-s">'server'</span>: <span class="pl-s">'http://sample.com:port'</span>, <span class="pl-c"># replace with your proxy server and port</span> <span class="pl-s">'username'</span>: <span class="pl-s">'username'</span>, <span class="pl-c"># replace with your username</span> <span class="pl-s">'password'</span>: <span class="pl-s">'passwd'</span> }, <span class="pl-s1">ignore_https_errors</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span>.<span class="pl-en">new_page</span>() <span class="pl-s1">page</span>.<span class="pl-en">set_default_navigation_timeout</span>(<span class="pl-c1">0</span>) <span class="pl-s1">page</span>.<span class="pl-en">on</span>(<span class="pl-s">"response"</span>, <span class="pl-s1">handle_request</span>) <span class="pl-en">print</span>(<span class="pl-s">'goto: '</span> <span class="pl-c1">+</span> <span class="pl-s1">url</span>) <span class="pl-k">await</span> <span class="pl-s1">page</span>.<span class="pl-en">goto</span>(<span class="pl-s1">url</span>, <span class="pl-s1">timeout</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">wait_until</span><span class="pl-c1">=</span><span class="pl-s">"networkidle"</span>) <span class="pl-k">await</span> <span class="pl-s1">page</span>.<span class="pl-en">wait_for_selector</span>(<span class="pl-s">'#user'</span>, <span class="pl-s1">timeout</span><span class="pl-c1">=</span><span class="pl-c1">30000</span>) <span class="pl-k">await</span> <span class="pl-s1">page</span>.<span class="pl-en">type</span>(<span class="pl-s">'#user'</span>, <span class="pl-s1">username</span>) <span class="pl-en">print</span>(<span class="pl-s">'type username'</span>) <span class="pl-k">await</span> <span class="pl-s1">page</span>.<span class="pl-en">click</span>(<span class="pl-s">'#sign_in'</span>) <span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">60</span>) <span class="pl-k">await</span> <span class="pl-s1">browser</span>.<span class="pl-en">close</span>() <span class="pl-s1">asyncio</span>.<span class="pl-en">get_event_loop</span>().<span class="pl-en">run_until_complete</span>(<span class="pl-en">main</span>())</pre></div> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">All the network responses should be intercepted in <code class="notranslate">handle_request</code></p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">I set a proxy to playwright as the code that I have listed above, it works, but not all the response are intercepted, some of the requests just weren't shown, I have also tried using <code class="notranslate">page.route</code>, it has the same issue too. I have no idea why, it works fine without a proxy.</p> <p dir="auto">I am %100 sure some of the requests are sent by the browser, I checked the network tab of Chromium, I saw the requests, but not intercepted by playwright.</p>
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version:1.29.1</li> <li>Operating System: Windows</li> <li>Node.js version:v16.13.0</li> <li>Browser: [e.g. All, Chromium, Firefox, WebKit] WebKit</li> <li>Extra: [any specific details about your environment]</li> </ul> <p dir="auto">Pre-requisites:<br> Create a copy of example.spec.ts and just rename the test name<br> Create another test in second file (I have just copied the same test and updated the test name)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/57455260/209997864-2f223bce-64da-467c-8475-0de8f72cb1fe.png"><img src="https://user-images.githubusercontent.com/57455260/209997864-2f223bce-64da-467c-8475-0de8f72cb1fe.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Steps to reproduce:</p> <ol dir="auto"> <li>Select Default Profile as Webkit<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/57455260/209997232-242b8caa-47e4-4641-9a38-79d4c32993aa.png"><img src="https://user-images.githubusercontent.com/57455260/209997232-242b8caa-47e4-4641-9a38-79d4c32993aa.png" alt="image" style="max-width: 100%;"></a></li> <li>Click on Run all icon</li> <li>Notice that, first test passed but second and third tests failed<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/57455260/209997639-771df1c5-4e24-4164-8b55-881eae417ca5.png"><img src="https://user-images.githubusercontent.com/57455260/209997639-771df1c5-4e24-4164-8b55-881eae417ca5.png" alt="image" style="max-width: 100%;"></a><br> Error details:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/57455260/209997697-dfe1172d-7f0b-49a6-abda-e962545cbfae.png"><img src="https://user-images.githubusercontent.com/57455260/209997697-dfe1172d-7f0b-49a6-abda-e962545cbfae.png" alt="image" style="max-width: 100%;"></a></li> </ol>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run &quot;ver&quot; at a command prompt] PowerToys version: PowerToy module for which you are reporting the bug (if applicable):"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt] PowerToys version: PowerToy module for which you are reporting the bug (if applicable): </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <h1 dir="auto">Expected behavior</h1> <h1 dir="auto">Actual behavior</h1> <h1 dir="auto">Screenshots</h1>
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> In the FancyZone editor I would like to see the dimensions of each zone as they are resized.</h2> <p dir="auto">While resizing each zone I would like to see the current dimensions in the center of each. Stickie points at standard resolutions (VGA, FHD, etc) or dimensions would also be a nice feature.</p> <hr> <p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p>
0
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I am new on flutter.I am loading material icons using Icon(Icons.receipt,size: 16) but error logs says Could not get cmap table size.</p> <h2 dir="auto">Logs</h2> <h2 dir="auto">flutter run --verbose</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:404:7) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:401:18) #3 _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64) #4 _rootRunUnary (dart:async/zone.dart:1132:38) #5 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #6 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #7 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #8 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #9 Future._complete (dart:async/future_impl.dart:476:7) #10 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #11 _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18) #12 _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13) #13 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart) #14 _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64) #15 _rootRunUnary (dart:async/zone.dart:1132:38) #16 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #17 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #18 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #19 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #20 Future._complete (dart:async/future_impl.dart:476:7) #21 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #22 _AsyncAwaitCompleter.complete.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:33:20) #23 _rootRun (dart:async/zone.dart:1124:13) #24 _CustomZone.run (dart:async/zone.dart:1021:19) #25 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:947:23) #26 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #27 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #28 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13) #29 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)"><pre class="notranslate"><code class="notranslate">#0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:404:7) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:401:18) #3 _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64) #4 _rootRunUnary (dart:async/zone.dart:1132:38) #5 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #6 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #7 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #8 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #9 Future._complete (dart:async/future_impl.dart:476:7) #10 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #11 _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18) #12 _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13) #13 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart) #14 _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64) #15 _rootRunUnary (dart:async/zone.dart:1132:38) #16 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #17 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #18 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #19 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #20 Future._complete (dart:async/future_impl.dart:476:7) #21 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #22 _AsyncAwaitCompleter.complete.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:33:20) #23 _rootRun (dart:async/zone.dart:1124:13) #24 _CustomZone.run (dart:async/zone.dart:1021:19) #25 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:947:23) #26 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #27 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #28 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13) #29 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5) </code></pre></div> <h2 dir="auto">flutter analyze</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="info • Unused import: 'package:tenders/screens/buyer.dart' • lib/main.dart:2:8 • unused_import info • Unused import: 'package:tenders/screens/register.dart' • lib/main.dart:4:8 • unused_import info • Unused import: 'package:tenders/screens/splash.dart' • lib/main.dart:8:8 • unused_import info • Unused import: 'package:tenders/screens/postTender.dart' • lib/main.dart:9:8 • unused_import info • Unused import: 'dart:async' • lib/screens/buyer.dart:2:8 • unused_import info • Unused import: 'package:tenders/screens/login.dart' • lib/screens/buyer.dart:4:8 • unused_import info • Unused import: 'package:tenders/screens/vendorBuyer.dart' • lib/screens/buyer.dart:5:8 • unused_import info • Unused import: 'dart:developer' • lib/screens/postTenderForm.dart:2:8 • unused_import"><pre class="notranslate"><code class="notranslate">info • Unused import: 'package:tenders/screens/buyer.dart' • lib/main.dart:2:8 • unused_import info • Unused import: 'package:tenders/screens/register.dart' • lib/main.dart:4:8 • unused_import info • Unused import: 'package:tenders/screens/splash.dart' • lib/main.dart:8:8 • unused_import info • Unused import: 'package:tenders/screens/postTender.dart' • lib/main.dart:9:8 • unused_import info • Unused import: 'dart:async' • lib/screens/buyer.dart:2:8 • unused_import info • Unused import: 'package:tenders/screens/login.dart' • lib/screens/buyer.dart:4:8 • unused_import info • Unused import: 'package:tenders/screens/vendorBuyer.dart' • lib/screens/buyer.dart:5:8 • unused_import info • Unused import: 'dart:developer' • lib/screens/postTenderForm.dart:2:8 • unused_import </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="## flutter doctor -v [✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.UTF-8) • Flutter version 1.0.0 at /home/shoaib/Downloads/flutter • Framework revision 5391447fae (13 days ago), 2018-11-29 19:41:26 -0800 • Engine revision 7375a0f414 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /home/shoaib/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /home/shoaib/Android/Sdk • Java binary at: /opt/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 /opt/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.27.2) • VS Code at /usr/share/code • Flutter extension version 2.21.1 [!] Connected device ! No devices available"><pre class="notranslate"><code class="notranslate">## flutter doctor -v [✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.UTF-8) • Flutter version 1.0.0 at /home/shoaib/Downloads/flutter • Framework revision 5391447fae (13 days ago), 2018-11-29 19:41:26 -0800 • Engine revision 7375a0f414 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /home/shoaib/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /home/shoaib/Android/Sdk • Java binary at: /opt/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 /opt/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.27.2) • VS Code at /usr/share/code • Flutter extension version 2.21.1 [!] Connected device ! No devices available </code></pre></div>
<p dir="auto">I think I got the same error as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="359361488" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/21719" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/21719/hovercard" href="https://github.com/flutter/flutter/issues/21719">#21719</a> when I use default font. And I've noticed that it depends on internet connection! Error is thrown only when I turn off internet on device. (Android)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib/main.dart on Mi A1 in debug mode... Built build/app/outputs/apk/debug/app-debug.apk. E/flutter (26171): [ERROR:flutter/third_party/txt/src/minikin/FontFamily.cpp(184)] Could not get cmap table size! E/flutter (26171): F/flutter (26171): [FATAL:flutter/third_party/txt/src/minikin/FontCollection.cpp(94)] nTypefaces == 0 F/libc (26171): Fatal signal 6 (SIGABRT), code -6 in tid 26188 (1.ui), pid 26171"><pre class="notranslate"><code class="notranslate">Launching lib/main.dart on Mi A1 in debug mode... Built build/app/outputs/apk/debug/app-debug.apk. E/flutter (26171): [ERROR:flutter/third_party/txt/src/minikin/FontFamily.cpp(184)] Could not get cmap table size! E/flutter (26171): F/flutter (26171): [FATAL:flutter/third_party/txt/src/minikin/FontCollection.cpp(94)] nTypefaces == 0 F/libc (26171): Fatal signal 6 (SIGABRT), code -6 in tid 26188 (1.ui), pid 26171 </code></pre></div> <p dir="auto"><em>Originally posted by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gordinmitya/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gordinmitya">@gordinmitya</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="359361488" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/21719" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/21719/hovercard?comment_id=433736246&amp;comment_type=issue_comment" href="https://github.com/flutter/flutter/issues/21719#issuecomment-433736246">#21719 (comment)</a></em></p>
1
<h1 dir="auto"><a href="https://github.com/zeit/next.js/tree/canary/examples/with-firebase-hosting">With Firebase Hosting Example</a></h1> <p dir="auto">Hi guys, when i deploy with-firebase-hosting example to firebase hosting, it has error <strong>"Internal Server Error"</strong></p> <p dir="auto">Error Log:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18276928/45266082-b7a9b980-b47f-11e8-9007-13e00d6459c3.png"><img src="https://user-images.githubusercontent.com/18276928/45266082-b7a9b980-b47f-11e8-9007-13e00d6459c3.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Can anyone help me?<br> Thanks in advance!</p>
<h1 dir="auto"><a href="https://github.com/zeit/next.js/tree/canary/examples/with-firebase-hosting">With Firebase Hosting Example</a></h1> <p dir="auto">Hi guys, when i deploy with-firebase-hosting example to firebase hosting, it has error <strong>"Internal Server Error"</strong></p> <p dir="auto">Error Log:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18276928/45266082-b7a9b980-b47f-11e8-9007-13e00d6459c3.png"><img src="https://user-images.githubusercontent.com/18276928/45266082-b7a9b980-b47f-11e8-9007-13e00d6459c3.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Can anyone help me?<br> Thanks in advance!</p>
1
<h4 dir="auto">Description</h4> <p dir="auto"><code class="notranslate">sklearn/utils/multiclass.type_of_target(y)</code> returns different results for practically identical 'y' values when <code class="notranslate">y</code> a <code class="notranslate">list</code> and when <code class="notranslate">y</code> is an <code class="notranslate">numpy array</code>.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.utils import multiclass import numpy as np x = [[1, 1], [0, 1]] y = np.asarray(x) a = multiclass.type_of_target(x) b = multiclass.type_of_target(y) print(a, b) assert a == b"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">utils</span> <span class="pl-k">import</span> <span class="pl-s1">multiclass</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> [[<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">0</span>, <span class="pl-c1">1</span>]] <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">x</span>) <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">multiclass</span>.<span class="pl-en">type_of_target</span>(<span class="pl-s1">x</span>) <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">multiclass</span>.<span class="pl-en">type_of_target</span>(<span class="pl-s1">y</span>) <span class="pl-en">print</span>(<span class="pl-s1">a</span>, <span class="pl-s1">b</span>) <span class="pl-k">assert</span> <span class="pl-s1">a</span> <span class="pl-c1">==</span> <span class="pl-s1">b</span></pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">'multilabel-indicator, multilabel-indicator'<br> No assertion error</p> <h4 dir="auto">Actual Results</h4> <p dir="auto">'multiclass-multioutput, multilabel-indicator'<br> Throws assertion error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="AssertionError"><pre class="notranslate"><code class="notranslate">AssertionError </code></pre></div> <h2 dir="auto">System Info</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="System: python: 3.6.7rc2 (v3.6.7rc2:4893861ab5, Oct 13 2018, 05:25:29) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] executable: /Users/maxwellaladago/Documents/pub/sklearn-dev/venv/bin/python machine: Darwin-18.7.0-x86_64-i386-64bit Python deps: pip: 19.2.2 setuptools: 39.1.0 sklearn: 0.22.dev0 numpy: 1.17.0 scipy: 1.3.1 Cython: 0.29.13 pandas: None matplotlib: None joblib: 0.13.2"><pre class="notranslate"><code class="notranslate">System: python: 3.6.7rc2 (v3.6.7rc2:4893861ab5, Oct 13 2018, 05:25:29) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] executable: /Users/maxwellaladago/Documents/pub/sklearn-dev/venv/bin/python machine: Darwin-18.7.0-x86_64-i386-64bit Python deps: pip: 19.2.2 setuptools: 39.1.0 sklearn: 0.22.dev0 numpy: 1.17.0 scipy: 1.3.1 Cython: 0.29.13 pandas: None matplotlib: None joblib: 0.13.2 </code></pre></div> <p dir="auto">Will you consider a PR for this? Also, can you clarify what <a href="https://github.com/scikit-learn/scikit-learn/blob/e8f2708e05a9982e86320d994abcbcf02a1536d9/sklearn/utils/multiclass.py#L109"><code class="notranslate">is_multilable's</code></a> behaviour should be? The documentation says it <code class="notranslate">Check if y is in a multilabel format</code> but it seems to be checking whether <code class="notranslate">y</code> is a <code class="notranslate">multi_label_indicator</code> except that y is not restricted to be either 0 or 1.</p>
<p dir="auto">Multilabel <code class="notranslate">Y</code> is currently represented as a 2d <code class="notranslate">np.ndarray</code> or <code class="notranslate">scipy.sparse</code> matrix of binary indicators. We explicitly forbid a list of lists or list of arrays, even if it represents the same binary indicators, in <code class="notranslate">sklearn.utils.multiclass.type_of_target</code> etc. This prohibition is for legacy reasons (lists of lists used to indicate multilabel data with different semantics) and we should be able to safely support non-array array-likes as multilabel representations.</p> <p dir="auto">Everywhere that multilabel is supported (metrics, estimators), this format should be too.</p> <p dir="auto">Derived from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="120380314" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/5959" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/5959/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/5959">#5959</a>.</p>
1
<p dir="auto">On Windows 32 bit, current Python 2.7.8 from Python.org Python, numpy 1.9.1 superpack installer, scipy 0.14.0 superpack installer.</p> <p dir="auto">I run the following <code class="notranslate">test.py</code> Python script from the shell:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import scipy.sparse._sparsetools import sys sys.exit(2)"><pre class="notranslate"><code class="notranslate">import scipy.sparse._sparsetools import sys sys.exit(2) </code></pre></div> <p dir="auto">with <code class="notranslate">c:\Python27\python.exe test.py</code>. I check the return code with <code class="notranslate">echo %errorlevel%</code> and get 0, when I am expecting 2. I get 2 if I comment out the scipy import. This is after emptying out <code class="notranslate">scipy.__init__.py</code> and <code class="notranslate">scipy.sparse.__init__.py</code>. The import of <code class="notranslate">_sparsetools</code> appears to be removing control of the process exit code. This is a real problem for example with buildbot tests, because test runs that are failing nevertheless have an exit code of 0 - see for example the end of <a href="http://nipy.bic.berkeley.edu/builders/dipy-py2.7-win32/builds/106/steps/shell_6/logs/stdio" rel="nofollow">http://nipy.bic.berkeley.edu/builders/dipy-py2.7-win32/builds/106/steps/shell_6/logs/stdio</a></p> <p dir="auto">Any ideas what might be going on?</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1314" rel="nofollow">http://projects.scipy.org/scipy/ticket/1314</a> on 2010-10-18 by trac user markMiscavage, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wnbell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wnbell">@wnbell</a>.</em></p> <p dir="auto">I have this bug in a larger program but I've narrowed it down to a script consisting of just :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import sys import scipy.sparse.sparsetools sys.exit(&quot;EXIT&quot;)"><pre class="notranslate"><code class="notranslate">import sys import scipy.sparse.sparsetools sys.exit("EXIT") </code></pre></div> <p dir="auto">This will always exit with code 0. It seems it is the .pyd files in the sparsetools folder that are the source of this problem. I have the same problem in both 0.7.1 and 0.8.0 builds of scipy. I am using python 2.6 on a Windows 7 - 64 bit system.</p>
1
<p dir="auto">A checkbox is checked if one clicks on the white space to the right from its label. We have checkboxes that control billing stuff and people are being charged by mistake because of this issue.</p> <p dir="auto">The issue appears in all browsers.<br> Is there a way to fix it in the library? If not - is there a simple workaround for this?</p> <p dir="auto">Thank you.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/7e7fc4e097c6b059b55583bd4cd05cf28c446a31a734cca839627c6d3c67062e/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3838303431312f3135343935352f65623565396261652d373632662d313165322d393432652d6661366632633663393236352e706e67"><img src="https://camo.githubusercontent.com/7e7fc4e097c6b059b55583bd4cd05cf28c446a31a734cca839627c6d3c67062e/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3838303431312f3135343935352f65623565396261652d373632662d313165322d393432652d6661366632633663393236352e706e67" alt="checkbox_click_area" data-canonical-src="https://f.cloud.github.com/assets/880411/154955/eb5e9bae-762f-11e2-942e-fa6f2c6c9265.png" style="max-width: 100%;"></a></p>
<p dir="auto"><a href="https://developer.mozilla.org/en-US/docs/HTML/Element/fieldset" rel="nofollow">In HTML5, <code class="notranslate">&lt;fieldset&gt;</code> gains support for the <code class="notranslate">disabled</code> attribute</a>, allowing you to disable an entire fieldset at once. However, Bootstrap does not seem to style all input elements under disabled fieldsets appropriately; some aren't grayed-out like individually disabled input elements. They should be.</p>
0
<h4 dir="auto">Describe the bug</h4> <p dir="auto">When fitting a GPR with y-values having std=0 (and normalize=True), an error occurs. The error relates to dividing by 0 in sklearn/gaussian_processes/_gpr.py: </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/scikit-learn/scikit-learn/blob/fd1ff73c64816159f08fb4cbb322c6050b03a3ac/sklearn/gaussian_process/_gpr.py#L201">scikit-learn/sklearn/gaussian_process/_gpr.py</a> </p> <p class="mb-0 color-fg-muted"> Line 201 in <a data-pjax="true" class="commit-tease-sha" href="/scikit-learn/scikit-learn/commit/fd1ff73c64816159f08fb4cbb322c6050b03a3ac">fd1ff73</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L201" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="201"></td> <td id="LC201" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">y</span> <span class="pl-c1">=</span> (<span class="pl-s1">y</span> <span class="pl-c1">-</span> <span class="pl-s1">self</span>.<span class="pl-s1">_y_train_mean</span>) <span class="pl-c1">/</span> <span class="pl-s1">self</span>.<span class="pl-s1">_y_train_std</span> </td> </tr> </tbody></table> </div> </div> <p></p> <h4 dir="auto">Steps/Code to Reproduce</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.gaussian_process import GaussianProcessRegressor from sklearn.gaussian_process.kernels import ConstantKernel, Matern X = [[1.,2.],[2.,2.]] y = [0,0] m52 = ConstantKernel(1.0) * Matern(nu=2.5) gpr = GaussianProcessRegressor(kernel=m52, normalize_y=True, n_restarts_optimizer=3) gpr.fit(X,y) "><pre class="notranslate"><code class="notranslate">from sklearn.gaussian_process import GaussianProcessRegressor from sklearn.gaussian_process.kernels import ConstantKernel, Matern X = [[1.,2.],[2.,2.]] y = [0,0] m52 = ConstantKernel(1.0) * Matern(nu=2.5) gpr = GaussianProcessRegressor(kernel=m52, normalize_y=True, n_restarts_optimizer=3) gpr.fit(X,y) </code></pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">Either the regressor could internally switch normalize_y to False, when np.std(y)==0 or set the std to 1. Or warn the user of the eminent error instead of an error message that can be difficult to understand.</p> <h4 dir="auto">Actual Results</h4> <p dir="auto">"runfile('C:/users/sqbl/onedrive - novo nordisk/dokumenter/python/12 gitlab inout/po20200908/processoptimizer/ProcessOptimizer/learning/gaussian_process/untitled0.py', wdir='C:/users/sqbl/onedrive - novo nordisk/dokumenter/python/12 gitlab inout/po20200908/processoptimizer/ProcessOptimizer/learning/gaussian_process', current_namespace=True)<br> C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\sklearn\gaussian_process_gpr.py:201: RuntimeWarning: invalid value encountered in true_divide<br> y = (y - self._y_train_mean) / self._y_train_std<br> Traceback (most recent call last):</p> <p dir="auto">File "C:\users\sqbl\onedrive - novo nordisk\dokumenter\python\12 gitlab inout\po20200908\processoptimizer\ProcessOptimizer\learning\gaussian_process\untitled0.py", line 16, in <br> gpr.fit(X,y)</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\sklearn\gaussian_process_gpr.py", line 234, in fit<br> self.kernel_.bounds))]</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\sklearn\gaussian_process_gpr.py", line 503, in _constrained_optimization<br> bounds=bounds)</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\scipy\optimize_minimize.py", line 618, in minimize<br> callback=callback, **options)</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\scipy\optimize\lbfgsb.py", line 308, in _minimize_lbfgsb<br> finite_diff_rel_step=finite_diff_rel_step)</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\scipy\optimize\optimize.py", line 262, in _prepare_scalar_function<br> finite_diff_rel_step, bounds, epsilon=epsilon)</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\scipy\optimize_differentiable_functions.py", line 76, in <strong>init</strong><br> self._update_fun()</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\scipy\optimize_differentiable_functions.py", line 166, in _update_fun<br> self._update_fun_impl()</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\scipy\optimize_differentiable_functions.py", line 73, in update_fun<br> self.f = fun_wrapped(self.x)</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\scipy\optimize_differentiable_functions.py", line 70, in fun_wrapped<br> return fun(x, *args)</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\scipy\optimize\optimize.py", line 74, in <strong>call</strong><br> self._compute_if_needed(x, *args)</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\scipy\optimize\optimize.py", line 68, in _compute_if_needed<br> fg = self.fun(x, *args)</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\sklearn\gaussian_process_gpr.py", line 225, in obj_func<br> theta, eval_gradient=True, clone_kernel=False)</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\sklearn\gaussian_process_gpr.py", line 476, in log_marginal_likelihood<br> alpha = cho_solve((L, True), y_train) # Line 3</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\scipy\linalg\decomp_cholesky.py", line 194, in cho_solve<br> b1 = asarray_chkfinite(b)</p> <p dir="auto">File "C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\lib\site-packages\numpy\lib\function_base.py", line 486, in asarray_chkfinite<br> "array must not contain infs or NaNs")</p> <p dir="auto">ValueError: array must not contain infs or NaNs"</p> <h4 dir="auto">Versions</h4> <p dir="auto">System:<br> python: 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)]<br> executable: C:\Users\sqbl\AppData\Local\Continuum\anaconda3\envs\updatePO20200908\python.exe<br> machine: Windows-10-10.0.17763-SP0</p> <p dir="auto">Python dependencies:<br> pip: 20.2.2<br> setuptools: 41.6.0<br> sklearn: 0.23.2<br> numpy: 1.19.1<br> scipy: 1.5.2<br> Cython: None<br> pandas: 1.1.2<br> matplotlib: 3.3.1<br> joblib: 0.16.0<br> threadpoolctl: 2.1.0</p> <p dir="auto">Built with OpenMP: True</p>
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="532692478" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/15782" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/15782/hovercard?comment_id=685086334&amp;comment_type=issue_comment" href="https://github.com/scikit-learn/scikit-learn/pull/15782#issuecomment-685086334">#15782 (comment)</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rkern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rkern">@rkern</a> writes regarding that fix:</p> <blockquote> <p dir="auto">FWIW, this broke a few downstream users where y_train.std() == 0 (e.g. only one datapoint) when being used for Bayesian optimization. This probably needs a guard for such a case (which is common in the Bayesian optimization use case)</p> </blockquote> <p dir="auto">More detail in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="667038712" data-permission-text="Title is private" data-url="https://github.com/bayesian-optimization/BayesianOptimization/issues/243" data-hovercard-type="issue" data-hovercard-url="/bayesian-optimization/BayesianOptimization/issues/243/hovercard?comment_id=685004696&amp;comment_type=issue_comment" href="https://github.com/bayesian-optimization/BayesianOptimization/issues/243#issuecomment-685004696">bayesian-optimization/BayesianOptimization#243 (comment)</a>:</p> <blockquote> <p dir="auto">The normalize_y=True option which is used now divides out the standard deviation of the y data, not just subtracting the mean. When there is just one data point, this results in a NaN.</p> </blockquote>
1
<p dir="auto">Sometimes I'll get an element selector error and will be unsure why it's wrong, and will need to re-run the test, using <code class="notranslate">page.pause</code> before the failing step.</p> <p dir="auto">Would be nice to have the ability to just directly search the page on the failed step instead of needing to re-run the test with a pause.</p>
<h3 dir="auto">Feature request</h3> <p dir="auto">it would be very useful if the same selector explorer thing that that's available in the inspector was also present for the dom snapshots in the trace viewer</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/57028336/127108876-b96709c1-d9ef-4925-8dc3-f7b3452d4c6a.png"><img src="https://user-images.githubusercontent.com/57028336/127108876-b96709c1-d9ef-4925-8dc3-f7b3452d4c6a.png" alt="image" style="max-width: 100%;"></a></p>
1
<h2 dir="auto">Wider gamuts and more bits</h2> <p dir="auto">As I mentioned before in <a href="https://github.com/microsoft/PowerToys/issues/864#issuecomment-656997751" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/864/hovercard">#864</a> and related to parts of what is being discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="670280759" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/5397" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/5397/hovercard" href="https://github.com/microsoft/PowerToys/issues/5397">#5397</a>, the new color picker power toy is limited to representations of sRGB with eight bits per channel, although screens and workflows are moving to color spaces with a wider gamut and to higher bit depths or representations with arbitrary precision. These should be supported natively.</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>PowerToys version: maybe each version (Tested v0.23.0 and v0.24.0)</li> <li>PowerToy Utility: FZEditor</li> <li>Running PowerToys as Admin: yes</li> <li>Windows build number: 2004 (OS Build 19041.264)</li> </ul> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <p dir="auto">Open normally.</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3> <p dir="auto">It cannot be opened</p> <h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/49258735/96346428-67759a80-10ce-11eb-96d9-25658defd087.png"><img src="https://user-images.githubusercontent.com/49258735/96346428-67759a80-10ce-11eb-96d9-25658defd087.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Crash log's here</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5395914/FZEditorCrashLog.txt">FZEditorCrashLog.txt</a></p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div id=&quot;test&quot;&gt; {{ message }} &lt;my-component&gt;&lt;/my-component&gt; &lt;/div&gt; &lt;script&gt; var MyComponent = Vue.extend({ template: '&lt;div&gt;A custom component!&lt;/div&gt;', data: function () { console.log('data'); return { a: 1 } } }); new Vue({ el: '#test', data: { message: 'Hello Vue.js!' }, components: { 'my-component': MyComponent } }); &lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;div id="test"&gt; {{ message }} &lt;my-component&gt;&lt;/my-component&gt; &lt;/div&gt; &lt;script&gt; var MyComponent = Vue.extend({ template: '&lt;div&gt;A custom component!&lt;/div&gt;', data: function () { console.log('data'); return { a: 1 } } }); new Vue({ el: '#test', data: { message: 'Hello Vue.js!' }, components: { 'my-component': MyComponent } }); &lt;/script&gt; </code></pre></div> <p dir="auto">这里面console.log('data');会执行2次,用1.0.18版本以下则不会,怎么回事呢?</p>
<h3 dir="auto">Vue.js version</h3> <p dir="auto">1.0.21</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="http://jsbin.com/doxonuviwe/edit?html" rel="nofollow">http://jsbin.com/doxonuviwe/edit?html</a></p> <h3 dir="auto">Steps to reproduce</h3> <ul dir="auto"> <li>Register a Vue component with data function.</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" Vue.component('my-hello', { data: function() { console.log('hello') return {}; } }); new Vue({ el: 'body' });"><pre class="notranslate"><span class="pl-v">Vue</span><span class="pl-kos">.</span><span class="pl-en">component</span><span class="pl-kos">(</span><span class="pl-s">'my-hello'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-en">data</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'hello'</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-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">new</span> <span class="pl-v">Vue</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">el</span>: <span class="pl-s">'body'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <ul dir="auto"> <li>Instantiate the component.</li> </ul> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;my-hello&gt;&lt;/my-hello&gt; &lt;my-hello&gt;&lt;/my-hello&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">my-hello</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">my-hello</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">my-hello</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">my-hello</span><span class="pl-kos">&gt;</span></pre></div> <ul dir="auto"> <li>You will see in the console (DevTool):</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="hello hello hello hello"><pre class="notranslate"><code class="notranslate">hello hello hello hello </code></pre></div> <h3 dir="auto">What is Expected?</h3> <p dir="auto">Data function should be called twice since there is only two instances of Vue component.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Data function called four times.</p> <h3 dir="auto">Quick Fix</h3> <p dir="auto">Set the data in the <code class="notranslate">created</code> hook.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Vue.component('my-component', { created: function() { this.$data = {}; // Set your data here. }, });"><pre class="notranslate"><code class="notranslate">Vue.component('my-component', { created: function() { this.$data = {}; // Set your data here. }, }); </code></pre></div> <p dir="auto">Hope this helpful.</p>
1
<p dir="auto">Calling pandas.io.sql.read_frame can results in data frame with duplicate column names. For example when SQL query contains joins on tables with duplicate columns.</p> <p dir="auto">Data frames with duplicate column names cause errors in many pandas functions. I can't even rename columns as df.columns = new_columns generates errors.</p> <p dir="auto">I think correct behavior would be for pandas.io.sql.read_frame have an option to "deduplicate" column names (for example by adding a number) or generate an error with duplicate column names.</p>
<p dir="auto">tz naive case:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="index = pd.Index([23, 26, 30]) dti = pd.DatetimeIndex(['2015-09-23', '2015-09-26', '2015-09-30']) ser = pd.Series(dti, index=index).reindex(range(23, 31)) df = pd.DataFrame(ser) &gt;&gt;&gt; ser # for reference 23 2015-09-23 24 NaT 25 NaT 26 2015-09-26 27 NaT 28 NaT 29 NaT 30 2015-09-30 dtype: datetime64[ns] &gt;&gt;&gt; ser.interpolate() 23 2015-09-23 24 NaT 25 NaT 26 2015-09-26 27 NaT 28 NaT 29 NaT 30 2015-09-30 dtype: datetime64[ns] &gt;&gt;&gt; df.interpolate() 0 23 2015-09-23 24 NaT 25 NaT 26 2015-09-26 27 NaT 28 NaT 29 NaT 30 2015-09-30"><pre class="notranslate"><code class="notranslate">index = pd.Index([23, 26, 30]) dti = pd.DatetimeIndex(['2015-09-23', '2015-09-26', '2015-09-30']) ser = pd.Series(dti, index=index).reindex(range(23, 31)) df = pd.DataFrame(ser) &gt;&gt;&gt; ser # for reference 23 2015-09-23 24 NaT 25 NaT 26 2015-09-26 27 NaT 28 NaT 29 NaT 30 2015-09-30 dtype: datetime64[ns] &gt;&gt;&gt; ser.interpolate() 23 2015-09-23 24 NaT 25 NaT 26 2015-09-26 27 NaT 28 NaT 29 NaT 30 2015-09-30 dtype: datetime64[ns] &gt;&gt;&gt; df.interpolate() 0 23 2015-09-23 24 NaT 25 NaT 26 2015-09-26 27 NaT 28 NaT 29 NaT 30 2015-09-30 </code></pre></div> <p dir="auto">tz-aware case</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="index = pd.Index([23, 26, 30]) dti = pd.DatetimeIndex(['2015-09-23', '2015-09-26', '2015-09-30'], tz='US/Central') ser = pd.Series(dti, index=index).reindex(range(23, 31)) df = pd.DataFrame(ser) &gt;&gt;&gt; ser 23 2015-09-23 00:00:00-05:00 24 NaT 25 NaT 26 2015-09-26 00:00:00-05:00 27 NaT 28 NaT 29 NaT 30 2015-09-30 00:00:00-05:00 dtype: datetime64[ns, US/Central] &gt;&gt;&gt; ser.interpolate() 23 2015-09-23 00:00:00-05:00 24 NaT 25 NaT 26 2015-09-26 00:00:00-05:00 27 NaT 28 NaT 29 NaT 30 2015-09-30 00:00:00-05:00 dtype: datetime64[ns, US/Central] &gt;&gt;&gt; df.interpolate() Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/usr/local/lib/python2.7/site-packages/pandas/core/generic.py&quot;, line 4738, in interpolate 'object') == len(_maybe_transposed_self.T): File &quot;/usr/local/lib/python2.7/site-packages/pandas/core/frame.py&quot;, line 1909, in transpose return super(DataFrame, self).transpose(1, 0, **kwargs) File &quot;/usr/local/lib/python2.7/site-packages/pandas/core/generic.py&quot;, line 599, in transpose new_values = self.values.transpose(axes_numbers) File &quot;/usr/local/lib/python2.7/site-packages/pandas/core/base.py&quot;, line 696, in transpose nv.validate_transpose(args, kwargs) File &quot;/usr/local/lib/python2.7/site-packages/pandas/compat/numpy/function.py&quot;, line 54, in __call__ self.defaults) File &quot;/usr/local/lib/python2.7/site-packages/pandas/util/_validators.py&quot;, line 218, in validate_args_and_kwargs validate_kwargs(fname, kwargs, compat_args) File &quot;/usr/local/lib/python2.7/site-packages/pandas/util/_validators.py&quot;, line 157, in validate_kwargs _check_for_default_values(fname, kwds, compat_args) File &quot;/usr/local/lib/python2.7/site-packages/pandas/util/_validators.py&quot;, line 69, in _check_for_default_values format(fname=fname, arg=key))) ValueError: the 'axes' parameter is not supported in the pandas implementation of transpose()"><pre class="notranslate"><code class="notranslate">index = pd.Index([23, 26, 30]) dti = pd.DatetimeIndex(['2015-09-23', '2015-09-26', '2015-09-30'], tz='US/Central') ser = pd.Series(dti, index=index).reindex(range(23, 31)) df = pd.DataFrame(ser) &gt;&gt;&gt; ser 23 2015-09-23 00:00:00-05:00 24 NaT 25 NaT 26 2015-09-26 00:00:00-05:00 27 NaT 28 NaT 29 NaT 30 2015-09-30 00:00:00-05:00 dtype: datetime64[ns, US/Central] &gt;&gt;&gt; ser.interpolate() 23 2015-09-23 00:00:00-05:00 24 NaT 25 NaT 26 2015-09-26 00:00:00-05:00 27 NaT 28 NaT 29 NaT 30 2015-09-30 00:00:00-05:00 dtype: datetime64[ns, US/Central] &gt;&gt;&gt; df.interpolate() Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/usr/local/lib/python2.7/site-packages/pandas/core/generic.py", line 4738, in interpolate 'object') == len(_maybe_transposed_self.T): File "/usr/local/lib/python2.7/site-packages/pandas/core/frame.py", line 1909, in transpose return super(DataFrame, self).transpose(1, 0, **kwargs) File "/usr/local/lib/python2.7/site-packages/pandas/core/generic.py", line 599, in transpose new_values = self.values.transpose(axes_numbers) File "/usr/local/lib/python2.7/site-packages/pandas/core/base.py", line 696, in transpose nv.validate_transpose(args, kwargs) File "/usr/local/lib/python2.7/site-packages/pandas/compat/numpy/function.py", line 54, in __call__ self.defaults) File "/usr/local/lib/python2.7/site-packages/pandas/util/_validators.py", line 218, in validate_args_and_kwargs validate_kwargs(fname, kwargs, compat_args) File "/usr/local/lib/python2.7/site-packages/pandas/util/_validators.py", line 157, in validate_kwargs _check_for_default_values(fname, kwds, compat_args) File "/usr/local/lib/python2.7/site-packages/pandas/util/_validators.py", line 69, in _check_for_default_values format(fname=fname, arg=key))) ValueError: the 'axes' parameter is not supported in the pandas implementation of transpose() </code></pre></div> <p dir="auto">The ValueError for the DataFrame case is in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="287989505" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/19198" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/19198/hovercard" href="https://github.com/pandas-dev/pandas/issues/19198">#19198</a>.</p>
0
<p dir="auto">Brought to mind by the message from DevMode which tells you that you can use ProdMode but doesn't tell you why or how. Nor do I think it should. I think it should have a link.</p> <p dir="auto">A1 has links which is great! Also helped with size of the production version I'm sure. Let's do that in A2 too!</p>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [x] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[x] bug report [x] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">Suppose we have such an input:<br> <code class="notranslate">&lt;input #nativeControl #ngControl="ngModel" type="number" min="30"&gt;</code></p> <p dir="auto">Now if we enter 25 in that box, the <code class="notranslate">ngControl.valid</code> property will be <code class="notranslate">true</code>, while <code class="notranslate">nativeControl.validity.valid</code> will be <code class="notranslate">false</code> and <code class="notranslate">nativeControl.validity.rangeUnderflow</code> will be <code class="notranslate">true</code>.</p> <p dir="auto">Moreover, if we enter invalid characters (e.g. only dashes) in such a field, <code class="notranslate">ngControl.valid</code> property will be <code class="notranslate">true</code>. At the same time, <code class="notranslate">nativeControl.validity.valid</code> will be false and <code class="notranslate">nativeControl.validity.badInput</code> will be true;</p> <p dir="auto">Another example: <code class="notranslate">&lt;input type="email"&gt;</code> is not validated by Angular (i.e. is always valid), while HTML5 validation correctly sets <code class="notranslate">ValidityState.typeMismatch</code> to <code class="notranslate">true</code> (and <code class="notranslate">ValidityState.valid</code> to <code class="notranslate">false</code>) if invalid email address is entered.</p> <p dir="auto">Currently I'm testing this with chrome but I don't think there will be any differences with other browsers. They all implement HTML5 validation pretty much without any issues.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">I think HTML5 standard already implements validation mechanism pretty well. Please view <a href="url">https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation</a> and <a href="url">https://developer.mozilla.org/en-US/docs/Web/API/ValidityState</a> for example. I think Angular should either emulate, or even directly depend on that mechanism (ValidityState values defined by HTML5).</p> <p dir="auto">Yes I know one can implement custom validator in angular and basically emulate anything, but... I think I'd rather have <code class="notranslate">&lt;input type="email"&gt;</code> validation out of the box, rather than to reinvent the wheel and write new validator just for email checking.</p> <p dir="auto"><strong>[EDIT] Minimal reproduction of the problem with instructions</strong><br> Please view an example: <a href="http://plnkr.co/edit/5pzh5pV2ExF3vKGhgEtq?p=info" rel="nofollow">http://plnkr.co/edit/5pzh5pV2ExF3vKGhgEtq?p=info</a></p> <p dir="auto">Just enter number in first input, or email in second input, and you will see that Angular's validator does not respect <code class="notranslate">min</code> attribute (of <code class="notranslate">&lt;input type="number"&gt;</code>) and also <code class="notranslate">&lt;input type="email"&gt;</code> inputs.</p> <ul dir="auto"> <li><strong>Angular version:</strong> 4.0.X</li> </ul> <ul dir="auto"> <li><strong>Browser:</strong> [all]</li> </ul> <ul dir="auto"> <li><strong>Language:</strong> [TypeScript 2.X]</li> </ul>
0
<p dir="auto">I have hooked up Deno to lint source files on-demand. But there are numerous linting rules which we, as a company, need to ignore. Adding them to <em>every single source file</em> would be highly cumbersome, and undesirable. I will absolutely get push back from developers who will simply refuse to lint their code entirely.</p> <p dir="auto">Is it possible to provide a global list of ignore rules for <code class="notranslate">deno lint</code> in the command line, either with an option or file listing the rules to ignore? If not, could this be added? These would have to be ignored for the purpose of reporting unused ignore rules actually embedded in the file.</p> <p dir="auto">Currently I have to do a kludge that involves prepending each file to be linted with my global list of directives to ignore, which means (a) that error lines are out by 1 because Deno sees the ignore line as part of the input source, (b) Deno reports a bunch of <code class="notranslate">(ban-unused-ignore)</code> errors, and (c) the reported filename is <code class="notranslate">stdin</code> instead of the actual file being linted (which breaks the editor link to the file &amp; line in error).</p>
<p dir="auto">User can enable / disable rules, but not customize the rules <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="417057404" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1880" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1880/hovercard?comment_id=601303015&amp;comment_type=issue_comment" href="https://github.com/denoland/deno/issues/1880#issuecomment-601303015">denoland/deno#1880 (comment)</a></p>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> @babel/plugin-transform-block-scoping (and maybe some other plugin in preset-env) incorrectly renames a FunctionDeclaration in a nested block even though it should behave like a <code class="notranslate">var</code> declaration.</p> <p dir="auto"><strong>Input Code</strong><br> <a href="https://babeljs.io/repl#?babili=false&amp;browsers=%3E%202%25&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=true&amp;code_lz=JYMwFALgTgrgpgSgAQG8BQSkhgOwMYTAD2OSsOYy6mmUcEMUpAqsDhABwCCUUAhgE8AdCChEAtmADaARgA0SAEwKAzAF0EAbgxIAvmn1ps-QiSQQ4AZwiVUOugyZlclbYbwlLRADZwh3ogBzSCsbBC00IA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=false&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=false&amp;presets=&amp;prettier=false&amp;targets=Node-8&amp;version=7.4.5&amp;externalPlugins=%40babel%2Fplugin-transform-block-scoping%407.4.4" rel="nofollow">REPL</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if(true) { function run() { return true; } } function test() { return run(); }"><pre class="notranslate"><span class="pl-k">if</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">function</span> <span class="pl-en">run</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-c1">true</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">test</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-en">run</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"><em>Note</em>: turning <code class="notranslate">function run() {</code> into <code class="notranslate">var run = function() {</code> behaves correctly.</p> <p dir="auto"><strong>Expected behavior/code</strong><br> Same as Input</p> <p dir="auto"><strong>Actual output</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (true) { function _run() { // &lt;------- return true; } } function test() { return run(); }"><pre class="notranslate"><span class="pl-k">if</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">function</span> <span class="pl-en">_run</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// &lt;-------</span> <span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">test</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-en">run</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;plugins&quot;: [&quot;@babel/plugin-transform-block-scoping&quot;] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/plugin-transform-block-scoping"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">or</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [&quot;@babel/preset-env&quot;] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): 7.4.0</li> <li>Node/npm version: Node 10</li> <li>OS: macOS</li> <li>Monorepo: -</li> <li>How you are using Babel: via babel-core</li> </ul>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current behavior</strong><br> Babel is not able to output the optional chaining operator without first transpiling it.</p> <p dir="auto">With a browserslist of: <code class="notranslate">last 2 Chrome versions</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in ./index.js 3:14 Module parse failed: Unexpected token (3:14) File was processed with these loaders: * ./node_modules/babel-loader/lib/index.js You may need an additional loader to handle the result of these loaders. | (() =&gt; { | const x = 'abc'; &gt; const y = x?.length; | })();"><pre class="notranslate"><code class="notranslate">ERROR in ./index.js 3:14 Module parse failed: Unexpected token (3:14) File was processed with these loaders: * ./node_modules/babel-loader/lib/index.js You may need an additional loader to handle the result of these loaders. | (() =&gt; { | const x = 'abc'; &gt; const y = x?.length; | })(); </code></pre></div> <p dir="auto">With a browserslist of: <code class="notranslate">last 2 Chrome versions, IE 11</code>, it succeeds. However the output (as expected) has the optional chaining operator transpiled to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" var x = 'abc'; var y = x === null || x === void 0 ? void 0 : x.length;"><pre class="notranslate"> <span class="pl-k">var</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s">'abc'</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span> <span class="pl-c1">===</span> <span class="pl-c1">null</span> <span class="pl-c1">||</span> <span class="pl-s1">x</span> <span class="pl-c1">===</span> <span class="pl-k">void</span> <span class="pl-c1">0</span> ? <span class="pl-k">void</span> <span class="pl-c1">0</span> : <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Input Code</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const x = 'abc'; const y = x?.length;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s">'abc'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">?.</span><span class="pl-c1">length</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior</strong><br> Babel would succeed even when the browserslist only lists browsers that currently support the optional chaining operator.</p> <p dir="auto"><strong>Babel Configuration</strong></p> <ul dir="auto"> <li><code class="notranslate">babel.config.js</code></li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = { presets: ['@babel/preset-env'], };"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">presets</span>: <span class="pl-kos">[</span><span class="pl-s">'@babel/preset-env'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <ul dir="auto"> <li><code class="notranslate">.browserslistrc</code></li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="last 2 Chrome versions"><pre class="notranslate"><code class="notranslate">last 2 Chrome versions </code></pre></div> <ul dir="auto"> <li><code class="notranslate">webpack.config.js</code></li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = { entry: './index.js', module: { rules: [ { test: /\.js$/, use: 'babel-loader', }, ], }, };"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">entry</span>: <span class="pl-s">'./index.js'</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">rules</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>js<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-s">'babel-loader'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <ul dir="auto"> <li><code class="notranslate">index.js</code></li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(() =&gt; { const x = 'abc'; const y = x?.length; })();"><pre class="notranslate"><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-k">const</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s">'abc'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">?.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version: v7.11.6</li> <li>Node/Yarn version: Node 12.18.4/Yarn 1.22.4</li> <li>OS: Windows 10</li> <li>Monorepo: No</li> <li>How you are using Babel: <code class="notranslate">loader</code></li> </ul> <p dir="auto"><strong>Possible Solution</strong></p> <p dir="auto"><strong>Additional context</strong><br> Add any other context about the problem here. Or a screenshot if applicable</p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-build-web-apps-with-expressjs" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-build-web-apps-with-expressjs</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">Steps 18 &amp; 19 on this way point:</p> <p dir="auto">"session &amp; cookie" and JSON Me are not in the current expressworks steps.</p> <p dir="auto">I'd recommend updating the description to simply have the student complete all the steps. PARAM PAM PAM for example, seems like a very useful exercise for the basejumps, but it's not included in the way point steps.</p>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-build-web-apps-with-expressjs" rel="nofollow">http://freecodecamp.com/challenges/waypoint-build-web-apps-with-expressjs</a> has an issue.<br> Session and Cookie is no longer in expressworks. the two that seem to be the replacement for this are called PARAM PAM PAM and WHAT'S IN QUERY. Also, after Hello World, expressworks has a Static step that helps with the Stylish CSS step done right before the PARAM PAM PAM step. I can create a pull request with the new suggested setup if you guys want. Or if there is something that I am not seeing or the page needs to be setup in a different way please let me know.</p>
1