text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">I have generated a million binomial numbers using <code class="notranslate">scipy.stats.binom.rvs(n = 100, p = 0.5, size = 1000000)</code> , and certainly did not expected a histogram to have 'gaps':</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/628457/18817744/7a9f35be-8368-11e6-96ea-6035a6e3252e.png"><img width="524" alt="histogram" src="https://cloud.githubusercontent.com/assets/628457/18817744/7a9f35be-8368-11e6-96ea-6035a6e3252e.png" style="max-width: 100%;"></a></p> <p dir="auto">The funny thing is, that does not happen always. As I don't have the seed I generated these values with, I've attached the particular data causing this issue here: <a href="https://github.com/mwaskom/seaborn/files/491852/observations.txt.gz">observations.txt.gz</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import seaborn as sb import pandas as pd my_data = pd.read_csv('/tmp/observations.txt.gz') sb.distplot(my_data, kde = False)"><pre class="notranslate"><code class="notranslate">import seaborn as sb import pandas as pd my_data = pd.read_csv('/tmp/observations.txt.gz') sb.distplot(my_data, kde = False) </code></pre></div> <p dir="auto">The versions I'm using are:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import seaborn as sb &gt;&gt;&gt; sb.__version__ '0.7.1' &gt;&gt;&gt; import matplotlib as mpl &gt;&gt;&gt; mpl.__version__ '1.5.1'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import seaborn as sb &gt;&gt;&gt; sb.__version__ '0.7.1' &gt;&gt;&gt; import matplotlib as mpl &gt;&gt;&gt; mpl.__version__ '1.5.1' </code></pre></div> <p dir="auto">The histogram is correct in a sense that all bins have their 'mass', however visually (without ticks for each value) it looks a bit off / misleading.</p> <p dir="auto">You can verify all values are present using e.g. <code class="notranslate">pd.Series(my_data).value_counts()</code>. I've noticed these gaps do not depend on the size of the plot.</p>
<p dir="auto">An issue that arises when plotting histograms of discrete data with Matplotlib seems to also come up in <code class="notranslate">distplot</code> as well. That is, there are often empty bins in the histogram that are entirely artifacts of the plot. See here for an example with Poisson data:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/4bef2612a9741b9dc1cc8d7739b676da5c92ca022bfa0aaac8ab2744651c6edb/687474703a2f2f642e70722f692f31653238552b"><img src="https://camo.githubusercontent.com/4bef2612a9741b9dc1cc8d7739b676da5c92ca022bfa0aaac8ab2744651c6edb/687474703a2f2f642e70722f692f31653238552b" alt="poisson data" data-canonical-src="http://d.pr/i/1e28U+" style="max-width: 100%;"></a></p> <p dir="auto">Is there any way that <code class="notranslate">distplot</code> could try to detect this and adjust the bins automagically?</p>
1
<p dir="auto">I trying <code class="notranslate">Native HTTP/2</code> web server.</p> <p dir="auto">I catch exception when run <a href="https://deno.com/blog/v1.9#native-http%2F2-web-server" rel="nofollow">Deno v1.9 Native HTTP/2</a> sample code with debug log.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const body = new TextEncoder().encode(&quot;Hello World&quot;); for await (const conn of Deno.listen({ port: 8000 })) { (async () =&gt; { for await (const res of Deno.serveHttp(conn)) { console.log(res); // &lt;------- Insert debug log. res.respondWith(new Response(body)); } })(); }"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">body</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">TextEncoder</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">encode</span><span class="pl-kos">(</span><span class="pl-s">"Hello World"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-k">await</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">conn</span> <span class="pl-k">of</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">port</span>: <span class="pl-c1">8000</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">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">for</span> <span class="pl-k">await</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">res</span> <span class="pl-k">of</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">serveHttp</span><span class="pl-kos">(</span><span class="pl-s1">conn</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-s1">res</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// &lt;------- Insert debug log.</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-en">respondWith</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">Response</span><span class="pl-kos">(</span><span class="pl-s1">body</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught (in promise) TypeError: this.url is not a function console.log(res); ^ at Request.[Deno.customInspect] (deno:op_crates/fetch/23_request.js:395:19)"><pre class="notranslate"><code class="notranslate">error: Uncaught (in promise) TypeError: this.url is not a function console.log(res); ^ at Request.[Deno.customInspect] (deno:op_crates/fetch/23_request.js:395:19) </code></pre></div> <p dir="auto"><code class="notranslate">this.url()</code> but <code class="notranslate">this</code> has <code class="notranslate">url</code> getter. So, it should not call <code class="notranslate">url()</code>.<br> <a href="https://github.com/denoland/deno/blob/v1.9.2/op_crates/fetch/23_request.js#L395">https://github.com/denoland/deno/blob/v1.9.2/op_crates/fetch/23_request.js#L395</a></p>
<p dir="auto">See example and link to source below.</p> <p dir="auto"><code class="notranslate">example.ts</code>:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const r = new Request('https://example.com'); console.log(r);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Request</span><span class="pl-kos">(</span><span class="pl-s">'https://example.com'</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-s1">r</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% deno run example.ts error: Uncaught TypeError: this.url is not a function console.log(r); ^ at Request.[Deno.customInspect] (deno:op_crates/fetch/23_request.js:395:19) at inspectObject (deno:op_crates/console/02_console.js:925:50) at inspectValue (deno:op_crates/console/02_console.js:481:16) at inspectArgs (deno:op_crates/console/02_console.js:1454:19) at console.log (deno:op_crates/console/02_console.js:1504:9) at file:///Users/jesse/example/example.ts:2:9 % deno --version deno 1.9.2 (release, x86_64-apple-darwin) v8 9.1.269.5 typescript 4.2.2"><pre class="notranslate"><code class="notranslate">% deno run example.ts error: Uncaught TypeError: this.url is not a function console.log(r); ^ at Request.[Deno.customInspect] (deno:op_crates/fetch/23_request.js:395:19) at inspectObject (deno:op_crates/console/02_console.js:925:50) at inspectValue (deno:op_crates/console/02_console.js:481:16) at inspectArgs (deno:op_crates/console/02_console.js:1454:19) at console.log (deno:op_crates/console/02_console.js:1504:9) at file:///Users/jesse/example/example.ts:2:9 % deno --version deno 1.9.2 (release, x86_64-apple-darwin) v8 9.1.269.5 typescript 4.2.2 </code></pre></div> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/denoland/deno/blob/2400ecbe16775b54ccd9782119b09b00e3b0e786/op_crates/fetch/23_request.js#L389-L398">deno/op_crates/fetch/23_request.js</a> </p> <p class="mb-0 color-fg-muted"> Lines 389 to 398 in <a data-pjax="true" class="commit-tease-sha" href="/denoland/deno/commit/2400ecbe16775b54ccd9782119b09b00e3b0e786">2400ecb</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="L389" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="389"></td> <td id="LC389" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">[</span><span class="pl-v">Symbol</span><span class="pl-kos">.</span><span class="pl-en">for</span><span class="pl-kos">(</span><span class="pl-s">"Deno.customInspect"</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">inspect</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> <tr class="border-0"> <td id="L390" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="390"></td> <td id="LC390" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-s1">inner</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> </td> </tr> <tr class="border-0"> <td id="L391" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="391"></td> <td id="LC391" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">bodyUsed</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">bodyUsed</span><span class="pl-kos">,</span> </td> </tr> <tr class="border-0"> <td id="L392" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="392"></td> <td id="LC392" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">headers</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">headers</span><span class="pl-kos">,</span> </td> </tr> <tr class="border-0"> <td id="L393" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="393"></td> <td id="LC393" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">method</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">method</span><span class="pl-kos">,</span> </td> </tr> <tr class="border-0"> <td id="L394" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="394"></td> <td id="LC394" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">redirect</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">redirect</span><span class="pl-kos">,</span> </td> </tr> <tr class="border-0"> <td id="L395" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="395"></td> <td id="LC395" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">url</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">url</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> </td> </tr> <tr class="border-0"> <td id="L396" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="396"></td> <td id="LC396" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L397" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="397"></td> <td id="LC397" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s">`Request <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">inspect</span><span class="pl-kos">(</span><span class="pl-s1">inner</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L398" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="398"></td> <td id="LC398" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> </td> </tr> </tbody></table> </div> </div> <p></p>
1
<p dir="auto">by <strong>robert.swiecki</strong>:</p> <pre class="notranslate">It prints: prog.go:55: undefined: closed prog.go:56: undefined: closed</pre>
<p dir="auto">by <strong>hanbing.liu</strong>:</p> <pre class="notranslate">What steps will reproduce the problem? 1. Check <a href="http://golang.org/doc/go_mem.html" rel="nofollow">http://golang.org/doc/go_mem.html</a> On "is allowed to observe": """ A read r of a variable v is allowed to observe a write w to v if both of the following hold: w happens before r. There is no other write w' to v that happens after w but before r. """ What is the expected output? """ A read r of a variable v is allowed to observe a write w to v if both of the following hold: 1. w happens before r. 2. There is no other write w' to v that happens after w but before r. A read r of a variable v is also allowed to observe a write w to v if w happens concurrently with r. If a w does not fit into either of these two cases, a read r of variable v is not allowed to observe the write w to v. """ What do you see instead? """ A read r of a variable v is allowed to observe a write w to v if both of the following hold: w happens before r. There is no other write w' to v that happens after w but before r. """ Which compiler are you using (5g, 6g, 8g, gccgo)? N/A Which operating system are you using? N/A Which revision are you using? (hg identify) N/A Please provide any additional information below. The existing statement concerning "is allowed to observe" meant to define what are the possible set of w that may provide the value seen by the r. Broadly there are three types of w. (1) those w that happens-before r (2) those w that w happens-after s (3) those w that happens concurrently with r. The existing statement only says what subset of w from (1) is allowed to by observed by r. My revision, will be more explicit on the intended definition of "is allowed to observe". Thanks.</pre>
0
<p dir="auto">Currently this code compiles, but it shouldn't:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait MyMul&lt;RHS, Res&gt; { fn mul(&amp;self, rhs: &amp;RHS) -&gt; Res; } fn foo&lt;T: MyMul&lt;f64, f64&gt;&gt;(a: &amp;T, b: f64) -&gt; f64 { a * b } fn main() { }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">MyMul</span><span class="pl-kos">&lt;</span><span class="pl-smi">RHS</span><span class="pl-kos">,</span> <span class="pl-smi">Res</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">mul</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">rhs</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">RHS</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Res</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">MyMul</span><span class="pl-kos">&lt;</span><span class="pl-smi">f64</span><span class="pl-kos">,</span> <span class="pl-smi">f64</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">:</span> <span class="pl-smi">f64</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">f64</span> <span class="pl-kos">{</span> a <span class="pl-c1">*</span> b <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use t::T; mod t { pub trait T {} } struct S; impl T for S {} impl T {} // oops fn main() {}"><pre class="notranslate"><span class="pl-k">use</span> t<span class="pl-kos">::</span><span class="pl-v">T</span><span class="pl-kos">;</span> <span class="pl-k">mod</span> t <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">trait</span> <span class="pl-smi">T</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">struct</span> <span class="pl-smi">S</span><span class="pl-kos">;</span> <span class="pl-k">impl</span> <span class="pl-smi">T</span> <span class="pl-k">for</span> <span class="pl-smi">S</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">impl</span> <span class="pl-smi">T</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-c">// oops</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a.rs:8:5: 8:6 error: T is not a trait a.rs:8 impl T for S {} ^"><pre class="notranslate"><code class="notranslate">a.rs:8:5: 8:6 error: T is not a trait a.rs:8 impl T for S {} ^ </code></pre></div> <p dir="auto">This should show better error message. If <code class="notranslate">trait T</code> is not in mod, rustc prints "duplicate definition of module <code class="notranslate">T</code>".</p>
0
<p dir="auto">This works:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let strOrArray: Array&lt;string&gt; | string; let str: string; if (typeof strOrArray === 'string') { // No error str = strOrArray; }"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">strOrArray</span>: <span class="pl-smi">Array</span><span class="pl-kos">&lt;</span><span class="pl-smi">string</span><span class="pl-kos">&gt;</span> <span class="pl-c1">|</span> <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">str</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">strOrArray</span> <span class="pl-c1">===</span> <span class="pl-s">'string'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// No error</span> <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s1">strOrArray</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">But not this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Data { strOrArray: Array&lt;string&gt; | string; } let data: Data; let str: string; if (typeof data.strOrArray === 'string') { // Error: // Type 'string[] | string' is not assignable to type 'string'. // Type 'string[]' is not assignable to type 'string'. str = data.strOrArray; }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Data</span> <span class="pl-kos">{</span> <span class="pl-c1">strOrArray</span>: <span class="pl-smi">Array</span><span class="pl-kos">&lt;</span><span class="pl-smi">string</span><span class="pl-kos">&gt;</span> <span class="pl-c1">|</span> <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">let</span> <span class="pl-s1">data</span>: <span class="pl-smi">Data</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">str</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">strOrArray</span> <span class="pl-c1">===</span> <span class="pl-s">'string'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Error:</span> <span class="pl-c">// Type 'string[] | string' is not assignable to type 'string'.</span> <span class="pl-c">// Type 'string[]' is not assignable to type 'string'.</span> <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">strOrArray</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/643434/11994668/e42384d6-aa42-11e5-9816-9b9779e8d801.png"><img src="https://cloud.githubusercontent.com/assets/643434/11994668/e42384d6-aa42-11e5-9816-9b9779e8d801.png" alt="typeguard" style="max-width: 100%;"></a></p> <p dir="auto">Tested with tsc 1.7.5 and Visual Studio Code 0.10.6</p>
<p dir="auto">I just found out that property access expressions doesn't work on type predicate functions and <code class="notranslate">instanceof</code> type guards.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" class A { propA: number; } class B { propB: number; } class C { propC: A; } declare function isA(p1: any): p1 is D; interface D { a: A | B b: A | C; } let d: D; if (isA(d.b)) { d.b.propA; //error } function foo(d: D) { if (d.b instanceof A) { d.b.propA // error } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-c1">propA</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span> <span class="pl-c1">propB</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span> <span class="pl-c1">propC</span>: <span class="pl-smi">A</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">declare</span> <span class="pl-k">function</span> <span class="pl-s1">isA</span><span class="pl-kos">(</span><span class="pl-s1">p1</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-s1">p1</span> is <span class="pl-smi">D</span><span class="pl-kos">;</span> <span class="pl-k">interface</span> <span class="pl-smi">D</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-smi">A</span> <span class="pl-c1">|</span> <span class="pl-smi">B</span> <span class="pl-c1">b</span>: <span class="pl-smi">A</span> <span class="pl-c1">|</span> <span class="pl-smi">C</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">let</span> <span class="pl-s1">d</span>: <span class="pl-smi">D</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">isA</span><span class="pl-kos">(</span><span class="pl-s1">d</span><span class="pl-kos">.</span><span class="pl-c1">b</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">d</span><span class="pl-kos">.</span><span class="pl-c1">b</span><span class="pl-kos">.</span><span class="pl-c1">propA</span><span class="pl-kos">;</span> <span class="pl-c">//error</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">d</span>: <span class="pl-smi">D</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">d</span><span class="pl-kos">.</span><span class="pl-c1">b</span> <span class="pl-k">instanceof</span> <span class="pl-smi">A</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">d</span><span class="pl-kos">.</span><span class="pl-c1">b</span><span class="pl-kos">.</span><span class="pl-c1">propA</span> <span class="pl-c">// error</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I'm not sure if there is an easy fix on this problem. We are provided just a symbol when narrowing. That symbol represent the left most expression and then we walk up the if statement. There is no easy way of controlling symbol by symbol on each namespace in a property access expression in the if-statement-body. Because there is no info about the property access expression provided in <code class="notranslate">getTypeOfSymbolAtLocation(symbol: Symbol, node: Node)</code>.</p> <p dir="auto">I also found that type assertion expressions are also not working in type predicate functions. But I will land a fix on that.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (isA(&lt;A&gt;union)) { a = union; } if (isA(union as A)) { a = union; }"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">isA</span><span class="pl-kos">(</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-s1">union</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">union</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">isA</span><span class="pl-kos">(</span><span class="pl-s1">union</span> <span class="pl-k">as</span> <span class="pl-smi">A</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">union</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.2 (installed from apt)</li> <li>Operating System / Platform =&gt; Ubuntu 20.04</li> <li>Compiler =&gt; gcc 10.3.0</li> </ul> <h5 dir="auto">Detailed description</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="undefined reference to `cv::SparseMatConstIterator::operator--()'"><pre class="notranslate"><code class="notranslate">undefined reference to `cv::SparseMatConstIterator::operator--()' </code></pre></div> <p dir="auto">btw, I searched the source code of version 4.5.5, still not found the definition of <code class="notranslate">cv::SparseMatConstIterator::operator--</code><br> related source file: <a href="https://github.com/opencv/opencv/blob/4.x/modules/core/src/matrix_iterator.cpp"><code class="notranslate">opencv/modules/core/src/matrix_iterator.cpp</code></a></p> <h5 dir="auto">Steps to reproduce</h5> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cv::SparseMatConstIterator iter = sparseMat.end(); iter--;"><pre class="notranslate">cv::SparseMatConstIterator iter = sparseMat.end(); iter--;</pre></div> <h5 dir="auto">Issue submission checklist</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues,<br> forum.opencv.org, Stack Overflow, etc and have not found any solution </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to the latest OpenCV version and the issue is still there </li> </ul>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.2 and 4.2</li> <li>Operating System / Platform =&gt; Ubuntu 18.04 and 20.04 for OpenCV 3.2 and 4.2, respectively</li> <li>Compiler =&gt; clang 12</li> </ul> <h5 dir="auto">Detailed description</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="undefined reference to `cv::ocl::Program::Program(const String&amp;)' undefined reference to `cv::SparseMatConstIterator::operator--()'"><pre class="notranslate"><code class="notranslate">undefined reference to `cv::ocl::Program::Program(const String&amp;)' undefined reference to `cv::SparseMatConstIterator::operator--()' </code></pre></div> <ul dir="auto"> <li><code class="notranslate">cv::ocl::Program::Program(const String&amp;)</code>: defined in <a href="https://github.com/opencv/opencv/blob/3.2.0/modules/core/include/opencv2/core/ocl.hpp#L604">ocl.hpp#L604</a>, but not implemented in OpenCV 3.2</li> <li><code class="notranslate">cv::SparseMatConstIterator::operator--()</code>: defined in <a href="https://github.com/opencv/opencv/blob/3.2.0/modules/core/include/opencv2/core/mat.hpp#L3058-L3061">mat.hpp#L3058-L3061 (3.2)</a>, <a href="https://github.com/opencv/opencv/blob/3.4/modules/core/include/opencv2/core/mat.hpp#L3255-L3258">mat.hpp#L3255-L3258 (3.4)</a>, and <a href="https://github.com/opencv/opencv/blob/4.x/modules/core/include/opencv2/core/mat.hpp#L3255-L3258">mat.hpp#L3255-L3258 (4.x)</a>, but not implemented in OpenCV 3.2/3.4/4.x</li> </ul> <h5 dir="auto">Steps to reproduce</h5> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# install OpenCV 3.2 for Ubuntu 18.04 # install OpenCV 4.2 for Ubuntu 20.04 sudo apt install libopencv-dev"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> install OpenCV 3.2 for Ubuntu 18.04</span> <span class="pl-c"><span class="pl-c">#</span> install OpenCV 4.2 for Ubuntu 20.04</span> sudo apt install libopencv-dev</pre></div> <p dir="auto">For OpenCV 3.2:</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ objdump -TC /usr/lib/x86_64-linux-gnu/libopencv_*.so | grep cv::ocl::Program::Program 0000000000161610 g DF .text 0000000000000011 Base cv::ocl::Program::Program(cv::ocl::Program const&amp;) 000000000016eb20 g DF .text 000000000000000c Base cv::ocl::Program::Program(cv::ocl::ProgramSource const&amp;, cv::String const&amp;, cv::String&amp;) 000000000016eb20 g DF .text 000000000000000c Base cv::ocl::Program::Program(cv::ocl::ProgramSource const&amp;, cv::String const&amp;, cv::String&amp;) 0000000000161600 g DF .text 0000000000000008 Base cv::ocl::Program::Program() 0000000000161600 g DF .text 0000000000000008 Base cv::ocl::Program::Program() 0000000000161610 g DF .text 0000000000000011 Base cv::ocl::Program::Program(cv::ocl::Program const&amp;) 0000000000000000 DF *UND* 0000000000000000 cv::ocl::Program::Program(cv::ocl::ProgramSource const&amp;, cv::String const&amp;, cv::String&amp;)"><pre class="notranslate">$ <span class="pl-s1">objdump -TC /usr/lib/x86_64-linux-gnu/libopencv_<span class="pl-k">*</span>.so <span class="pl-k">|</span> grep cv::ocl::Program::Program</span> <span class="pl-c1">0000000000161610 g DF .text 0000000000000011 Base cv::ocl::Program::Program(cv::ocl::Program const&amp;)</span> <span class="pl-c1">000000000016eb20 g DF .text 000000000000000c Base cv::ocl::Program::Program(cv::ocl::ProgramSource const&amp;, cv::String const&amp;, cv::String&amp;)</span> <span class="pl-c1">000000000016eb20 g DF .text 000000000000000c Base cv::ocl::Program::Program(cv::ocl::ProgramSource const&amp;, cv::String const&amp;, cv::String&amp;)</span> <span class="pl-c1">0000000000161600 g DF .text 0000000000000008 Base cv::ocl::Program::Program()</span> <span class="pl-c1">0000000000161600 g DF .text 0000000000000008 Base cv::ocl::Program::Program()</span> <span class="pl-c1">0000000000161610 g DF .text 0000000000000011 Base cv::ocl::Program::Program(cv::ocl::Program const&amp;)</span> <span class="pl-c1">0000000000000000 DF *UND* 0000000000000000 cv::ocl::Program::Program(cv::ocl::ProgramSource const&amp;, cv::String const&amp;, cv::String&amp;)</span></pre></div> <p dir="auto">For OpenCV 3.2 and 4.2:</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ objdump -TC /usr/lib/x86_64-linux-gnu/libopencv_*.so | grep cv::SparseMatConstIterator::operator 000000000013d890 g DF .text 0000000000000094 Base cv::SparseMatConstIterator::operator++() 0000000000000000 DF *UND* 0000000000000000 cv::SparseMatConstIterator::operator++()"><pre class="notranslate">$ <span class="pl-s1">objdump -TC /usr/lib/x86_64-linux-gnu/libopencv_<span class="pl-k">*</span>.so <span class="pl-k">|</span> grep cv::SparseMatConstIterator::operator</span> <span class="pl-c1">000000000013d890 g DF .text 0000000000000094 Base cv::SparseMatConstIterator::operator++()</span> <span class="pl-c1">0000000000000000 DF *UND* 0000000000000000 cv::SparseMatConstIterator::operator++()</span></pre></div> <h5 dir="auto">Issue submission checklist</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues,<br> forum.opencv.org, Stack Overflow, etc and have not found any solution</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to the latest OpenCV version and the issue is still there</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> There is reproducer code and related data files: videos, images, onnx, etc</li> </ul>
1
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.10</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const a=false; if (a) { console.log('should be unreachable'); }"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">a</span><span class="pl-c1">=</span><span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">a</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">'should be unreachable'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><a href="http://www.typescriptlang.org/play/#src=const%20a%3Dfalse%3B%0D%0Aif%20%20%28a%29%20%7B%0D%0A%09console.log%28'should%20be%20unreachable'%29%3B%0D%0A%7D%0D%0A" rel="nofollow">TypeScript Play</a><br> <strong>Expected behavior:</strong><br> The code should be unreachable in fact that a is immutable. A warning should be placed<br> <strong>Actual behavior:</strong><br> No unreachable warning.</p> <h1 dir="auto">Proposal</h1> <p dir="auto">I know that it could be a little bit difficult to check if we check a property of an object. But for primititves it should work. the compiler already knows if it is a constant and did not allow them to assign twice.</p>
<p dir="auto">Allow duplicated members in multiple interface declarations, as long as they are identical. Optional compiling warnings are acceptable, to assist developers to remove redundant codes at convenient time.</p> <p dir="auto">This should not generate any errors, example:</p> <p dir="auto">shim.d.ts</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Symbol { toString(): string; valueOf(): Object; [Symbol.toStringTag]: string; }"><pre class="notranslate"><span class="pl-s1">interface</span> <span class="pl-v">Symbol</span> <span class="pl-kos">{</span> <span class="pl-c1">toString</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-s1">string</span><span class="pl-kos">;</span> <span class="pl-en">valueOf</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-v">Object</span><span class="pl-kos">;</span> <span class="pl-kos">[</span><span class="pl-v">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">toStringTag</span><span class="pl-kos">]</span>: <span class="pl-s1">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">es6.d.ts</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="... interface Symbol { /** Returns a string representation of an object. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Object; [Symbol.toStringTag]: string; } ..."><pre class="notranslate">... <span class="pl-s1">interface</span> <span class="pl-v">Symbol</span> <span class="pl-kos">{</span> <span class="pl-c">/** Returns a string representation of an object. */</span> <span class="pl-c1">toString</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-s1">string</span><span class="pl-kos">;</span> <span class="pl-c">/** Returns the primitive value of the specified object. */</span> <span class="pl-en">valueOf</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-v">Object</span><span class="pl-kos">;</span> <span class="pl-kos">[</span><span class="pl-v">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">toStringTag</span><span class="pl-kos">]</span>: <span class="pl-s1">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> ...</pre></div>
0
<p dir="auto">Hi, I'm trying to debug my app by visual studio code and when I run the app for debugging, the app starts and stays on a white screen but it's fine when I use the <code class="notranslate">flutter run</code> command on terminal.<br> It works fine when I use android studio!</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[~]$ flutter doctor -v [✓] Flutter (Channel master, v0.9.3-pre.20, on Linux, locale en_US.UTF-8) • Flutter version 0.9.3-pre.20 at /home/moein/Documents/flutter-dev • Framework revision 6d134e0c86 (4 days ago), 2018-09-23 00:43:05 -0700 • Engine revision 57fd394e59 • Dart version 2.1.0-dev.5.0.flutter-654c4babc8 [✓] Android toolchain - develop for Android devices (Android SDK 28.0.0) • Android SDK at /home/moein/Android/Sdk • Android NDK at /home/moein/Android/Sdk/ndk-bundle • Platform android-28, build-tools 28.0.0 • Java binary at: /opt/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] Android Studio (version 3.1) • Android Studio at /opt/android-studio • Flutter plugin version 27.1.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] VS Code (version 1.27.2) • VS Code at /usr/share/code • Flutter extension version 2.18.0 [✓] Connected devices (1 available) • SM J730F • 5200f825ee301577 • android-arm • Android 7.0 (API 24) • No issues found! "><pre class="notranslate"><code class="notranslate">[~]$ flutter doctor -v [✓] Flutter (Channel master, v0.9.3-pre.20, on Linux, locale en_US.UTF-8) • Flutter version 0.9.3-pre.20 at /home/moein/Documents/flutter-dev • Framework revision 6d134e0c86 (4 days ago), 2018-09-23 00:43:05 -0700 • Engine revision 57fd394e59 • Dart version 2.1.0-dev.5.0.flutter-654c4babc8 [✓] Android toolchain - develop for Android devices (Android SDK 28.0.0) • Android SDK at /home/moein/Android/Sdk • Android NDK at /home/moein/Android/Sdk/ndk-bundle • Platform android-28, build-tools 28.0.0 • Java binary at: /opt/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] Android Studio (version 3.1) • Android Studio at /opt/android-studio • Flutter plugin version 27.1.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] VS Code (version 1.27.2) • VS Code at /usr/share/code • Flutter extension version 2.18.0 [✓] Connected devices (1 available) • SM J730F • 5200f825ee301577 • android-arm • Android 7.0 (API 24) • No issues found! </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I am attempting to run a test I created, this is the <code class="notranslate">unit_test.dart</code></p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:do_and_stuff/tools/auth.dart'; import 'package:test/test.dart'; void main() { test('No Username or Password', () async { final result = await Auth.signInEmailAndPassword(&quot;&quot;, &quot;&quot;); expect(&quot;Missing&quot;, result); }); }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:do_and_stuff/tools/auth.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:test/test.dart'</span>; <span class="pl-k">void</span> <span class="pl-en">main</span>() { <span class="pl-en">test</span>(<span class="pl-s">'No Username or Password'</span>, () <span class="pl-k">async</span> { <span class="pl-k">final</span> result <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-c1">Auth</span>.<span class="pl-en">signInEmailAndPassword</span>(<span class="pl-s">""</span>, <span class="pl-s">""</span>); <span class="pl-en">expect</span>(<span class="pl-s">"Missing"</span>, result); }); }</pre></div> <p dir="auto">This is the code for <code class="notranslate">Auth.signInEmailAndPassword</code></p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" static Future&lt;dynamic&gt; signInEmailAndPassword( String givenEmail, String givenPassword) async { try { FirebaseUser user = await _auth.signInWithEmailAndPassword( email: givenEmail, password: givenPassword); Auth.emailAddress = user.email; Auth.googleAccount = false; return true; } catch (error) { return &quot;Missing&quot;; } }"><pre class="notranslate"> <span class="pl-k">static</span> <span class="pl-c1">Future</span>&lt;<span class="pl-c1">dynamic</span>&gt; <span class="pl-en">signInEmailAndPassword</span>( <span class="pl-c1">String</span> givenEmail, <span class="pl-c1">String</span> givenPassword) <span class="pl-k">async</span> { <span class="pl-k">try</span> { <span class="pl-c1">FirebaseUser</span> user <span class="pl-k">=</span> <span class="pl-k">await</span> _auth.<span class="pl-en">signInWithEmailAndPassword</span>( email<span class="pl-k">:</span> givenEmail, password<span class="pl-k">:</span> givenPassword); <span class="pl-c1">Auth</span>.emailAddress <span class="pl-k">=</span> user.email; <span class="pl-c1">Auth</span>.googleAccount <span class="pl-k">=</span> <span class="pl-c1">false</span>; <span class="pl-k">return</span> <span class="pl-c1">true</span>; } <span class="pl-k">catch</span> (error) { <span class="pl-k">return</span> <span class="pl-s">"Missing"</span>; } }</pre></div> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Expected: 'Missing' Actual: MissingPluginException:&lt;MissingPluginException(No implementation found for method signInWithEmailAndPassword on channel plugins.flutter.io/firebase_auth)&gt; Which: not an &lt;Instance of 'String'&gt; package:test expect test\unit_test.dart 7:5 main.&lt;fn&gt; ===== asynchronous gap =========================== dart:async _AsyncAwaitCompleter.completeError test\unit_test.dart main.&lt;fn&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper test\unit_test.dart main.&lt;fn&gt;"><pre class="notranslate"><code class="notranslate">Expected: 'Missing' Actual: MissingPluginException:&lt;MissingPluginException(No implementation found for method signInWithEmailAndPassword on channel plugins.flutter.io/firebase_auth)&gt; Which: not an &lt;Instance of 'String'&gt; package:test expect test\unit_test.dart 7:5 main.&lt;fn&gt; ===== asynchronous gap =========================== dart:async _AsyncAwaitCompleter.completeError test\unit_test.dart main.&lt;fn&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper test\unit_test.dart main.&lt;fn&gt; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter doctor -v [√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.407], locale en-US) • Flutter version 0.9.4 at C:\Users\Daniel\flutter • Framework revision f37c235c32 (10 weeks ago), 2018-09-25 17:45:40 -0400 • Engine revision 74625aed32 • Dart version 2.1.0-dev.5.0.flutter-a2eb050044 [√] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at C:\Users\Daniel\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [√] Android Studio (version 3.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 31.1.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [!] IntelliJ IDEA Ultimate Edition (version 2018.2) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.5 X Flutter plugin not installed; this adds Flutter specific functionality. X 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, 64-bit edition (version 1.29.1) • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [√] Connected devices (1 available) • Pixel XL • HT73X0200063 • android-arm64 • Android 9 (API 28) ! Doctor found issues in 2 categories."><pre class="notranslate"><code class="notranslate">flutter doctor -v [√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.407], locale en-US) • Flutter version 0.9.4 at C:\Users\Daniel\flutter • Framework revision f37c235c32 (10 weeks ago), 2018-09-25 17:45:40 -0400 • Engine revision 74625aed32 • Dart version 2.1.0-dev.5.0.flutter-a2eb050044 [√] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at C:\Users\Daniel\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [√] Android Studio (version 3.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 31.1.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [!] IntelliJ IDEA Ultimate Edition (version 2018.2) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.5 X Flutter plugin not installed; this adds Flutter specific functionality. X 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, 64-bit edition (version 1.29.1) • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [√] Connected devices (1 available) • Pixel XL • HT73X0200063 • android-arm64 • Android 9 (API 28) ! Doctor found issues in 2 categories. </code></pre></div>
0
<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="[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] 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">[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] 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">The safe navigation operator <code class="notranslate">?.</code> is great, but it would be even better if it also supported bracket notation, <code class="notranslate">foo?[bar]</code>. This was first mentioned here, but didn't get any traction<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="58959849" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/791" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/791/hovercard?comment_id=77801474&amp;comment_type=issue_comment" href="https://github.com/angular/angular/issues/791#issuecomment-77801474">#791 (comment)</a></p>
<h1 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> feature request</h1> <h3 dir="auto">Relevant Package</h3> <p dir="auto"><code class="notranslate">@angular/compiler</code></p> <h3 dir="auto">Description</h3> <p dir="auto"><a href="https://github.com/tc39/proposal-optional-chaining">Optional chaining</a>[1] reached stage 4. We've been supporting similar syntax in templates for a while now, calling it the <a href="https://angular.io/guide/template-syntax#safe-navigation-operator" rel="nofollow">"safe navigation operator"</a>[2]. For simplicity and smaller payload, we can consider aligning with the spec in future versions of the framework.</p> <p dir="auto">There are a couple of semantical and syntactical differences between optional chaining and safe navigation.</p> <h2 dir="auto">Syntax</h2> <p dir="auto">Optional chaining has the following syntax:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="obj?.prop // optional static property access obj?.[expr] // optional dynamic property access func?.(...args) // optional function or method call"><pre class="notranslate"><span class="pl-s1">obj</span><span class="pl-kos">?.</span><span class="pl-c1">prop</span> <span class="pl-c">// optional static property access</span> <span class="pl-s1">obj</span><span class="pl-kos">?.</span><span class="pl-kos">[</span><span class="pl-s1">expr</span><span class="pl-kos">]</span> <span class="pl-c">// optional dynamic property access</span> <span class="pl-en">func</span><span class="pl-kos">?.</span><span class="pl-kos">(</span>...<span class="pl-s1">args</span><span class="pl-kos">)</span> <span class="pl-c">// optional function or method call</span></pre></div> <p dir="auto">Safe navigation supports only direct property access. Optional chaining supports this, as well as, method calls and function calls. Function calls are particularly useful in iterators:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="iterator.return?.()"><pre class="notranslate"><span class="pl-s1">iterator</span><span class="pl-kos">.</span><span class="pl-en">return</span><span class="pl-kos">?.</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div> <h2 dir="auto">Semantics</h2> <p dir="auto">With optional chaining, the expression <code class="notranslate">a?.b</code> will be translated to <code class="notranslate">a == null ? undefined : a.b</code>. In Angular, the semantics of the same expression would be <code class="notranslate">null == a ? null : a.b</code>.</p> <p dir="auto">If <code class="notranslate">a</code> is <code class="notranslate">null</code> or <code class="notranslate">undefined</code>, the expression <code class="notranslate">typeof a?.b</code> would evaluate to <code class="notranslate">"object"</code> with optional chaining and <code class="notranslate">"undefined"</code> in Angular's safe navigation operator.</p> <p dir="auto">Except the mentioned difference above, method calls are compiled similarly:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="a?.b() a == null ? undefined : a.b()"><pre class="notranslate"><span class="pl-s1">a</span><span class="pl-kos">?.</span><span class="pl-en">b</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">a</span> <span class="pl-c1">==</span> <span class="pl-c1">null</span> ? <span class="pl-c1">undefined</span> : <span class="pl-s1">a</span><span class="pl-kos">.</span><span class="pl-en">b</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div> <p dir="auto">In both, optional chaining and safe navigation in templates, stacking the operators is translated the same way: <code class="notranslate">(a?.b).c?.d</code> becomes <code class="notranslate">null == a ? null : null == a.b.c ? null : a.b.c.d</code>.</p> <p dir="auto">Another difference seems to be the way parentheses are handled. The optional chaining spec defines that <code class="notranslate">null==e.foo?null:e.foo.b.c</code> should be translated to <code class="notranslate">(a == null ? undefined : a.b).c</code>. In Angular the same expression translates to <code class="notranslate">null == a ? null : a.b.c</code>.</p> <p dir="auto">PS: looks like the last issue is fixed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="532351186" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/34221" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/34221/hovercard" href="https://github.com/angular/angular/pull/34221">#34221</a>.</p> <hr> <p dir="auto">[1] Optional chaining spec <a href="https://github.com/tc39/proposal-optional-chaining">https://github.com/tc39/proposal-optional-chaining</a><br> [2] Safe navigation <a href="https://angular.io/guide/template-syntax#safe-navigation-operator" rel="nofollow">https://angular.io/guide/template-syntax#safe-navigation-operator</a></p>
1
<p dir="auto">The response returned by these clients in their <code class="notranslate">getResponse</code> method is an HttpFoundation response whereas the BrowserKit class (which is their parent classs) tells it returns a BrowserKit response (which has a different API).</p>
<p dir="auto">If you run cache:warmup the twig templates that are in the bundles directory get into the cache folder but not if u use a custom namespace path for twig. I don't know if Symfony renders the cache on first call/open of a custom path template.</p> <p dir="auto"><a href="http://symfony.com/doc/current/cookbook/templating/namespaced_paths.html" rel="nofollow">http://symfony.com/doc/current/cookbook/templating/namespaced_paths.html</a></p>
0
<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">I am trying to activate a child aux route. Here is the routing config:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const routes: Routes = [ { path: '', children: [ { path: '', redirectTo: 'component-one', pathMatch: 'full' }, { path: 'component-one', component: ComponentOne }, { path: 'component-two', component: ComponentTwo } { path: 'component-aux', component: ComponentAux, outlet: 'sidebar' } ] } ];"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-s1">routes</span>: <span class="pl-v">Routes</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">children</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">redirectTo</span>: <span class="pl-s">'component-one'</span><span class="pl-kos">,</span> <span class="pl-c1">pathMatch</span>: <span class="pl-s">'full'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'component-one'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">ComponentOne</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'component-two'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">ComponentTwo</span> <span class="pl-kos">}</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'component-aux'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">ComponentAux</span><span class="pl-kos">,</span> <span class="pl-c1">outlet</span>: <span class="pl-s">'sidebar'</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">When I try to navigate to <code class="notranslate">/component-one(outlet:component-aux)</code> I get <code class="notranslate">Cannot match any routes: 'component-aux'</code>.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Navigate to that route without any errors.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <ol dir="auto"> <li>Go to <a href="https://plnkr.co/edit/jVjS8tRSLbhpTO9qRxll?p=preview" rel="nofollow">https://plnkr.co/edit/jVjS8tRSLbhpTO9qRxll?p=preview</a></li> <li>Click the 'navigate' button</li> </ol> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">This looks as a valid routing configuration that should be supported.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.0.X</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</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> =</p> </li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [ ] feature request [ ] support request =&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 [ ] 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">Aux-Routes are not found when using two levels of "default routes" (with <code class="notranslate">path:''</code>).<br> This config works:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" RouterModule.forRoot([ { path: 'tasks', component: TasksComponent, //container-component has two outlets! children: [ { path: '', component:TaskListComponent }, { path: 'overview/:id', component: TasksComponent, outlet: 'right' }, ] } ],"><pre class="notranslate"> <span class="pl-smi">RouterModule</span><span class="pl-kos">.</span><span class="pl-c1">forRoot</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'tasks'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">TasksComponent</span><span class="pl-kos">,</span> <span class="pl-c">//container-component has two outlets! </span> <span class="pl-c1">children</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>:<span class="pl-smi">TaskListComponent</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'overview/:id'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">TasksComponent</span><span class="pl-kos">,</span> <span class="pl-c1">outlet</span>: <span class="pl-s">'right'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">,</span></pre></div> <p dir="auto">I can open the Tasks-overview by doing:</p> <p dir="auto"><code class="notranslate">http://localhost:4200/tasks/(right:overview/3)</code></p> <p dir="auto">See this plnkr and click "to list", "open aux"</p> <p dir="auto">As I want to extract the whole Tasks-Functionality into a <code class="notranslate">TasksModule</code> I need to be able to do something like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" RouterModule.forRoot([ { path: 'tasks', : children: [ // this one would be in main module //this is defined in the TasksModule: { path: '', component: TasksComponent, //container-component has two outlets! children: [ { path: '', component:TaskListComponent }, { path: 'overview/:id', component: TasksComponent, outlet: 'right' }, ] } ],"><pre class="notranslate"> <span class="pl-smi">RouterModule</span><span class="pl-kos">.</span><span class="pl-c1">forRoot</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'tasks'</span><span class="pl-kos">,</span> : <span class="pl-c1">children</span>: <span class="pl-kos">[</span> <span class="pl-c">// this one would be in main module</span> <span class="pl-c">//this is defined in the TasksModule:</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">TasksComponent</span><span class="pl-kos">,</span> <span class="pl-c">//container-component has two outlets! </span> <span class="pl-c1">children</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>:<span class="pl-smi">TaskListComponent</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'overview/:id'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">TasksComponent</span><span class="pl-kos">,</span> <span class="pl-c1">outlet</span>: <span class="pl-s">'right'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">,</span></pre></div> <p dir="auto">I would assume both configs are equivalent, and all of the "normal" routing works perfectly fine. But now the link above <code class="notranslate">http://localhost:4200/tasks/(right:overview/3)</code> leads to:</p> <p dir="auto"><code class="notranslate">Uncaught (in promise): Error: Cannot match any routes: 'tasks'</code></p> <p dir="auto">See this plnkr: <a href="http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview" rel="nofollow">http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview</a></p> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">Aux-Routes should also work with empty-path parents</p> <p dir="auto"><strong>Reproduction of the problem</strong></p> <p dir="auto">Working version: <a href="http://plnkr.co/edit/Twx4hXQ0TLfHfrYSe4MO?p=preview" rel="nofollow">http://plnkr.co/edit/Twx4hXQ0TLfHfrYSe4MO?p=preview</a><br> Non-working version: <a href="http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview" rel="nofollow">http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview</a></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Both versions of route definition should lead to the same behavior</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">With the current implementation it is impossible to create an encapsulated Config / Module for the tasks behaviour and include it under a certain path into the main config e.g. "myTasks".</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vsavkin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vsavkin">@vsavkin</a></p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.5</li> <li><strong>Browser:</strong> [all ]</li> <li><strong>Language:</strong> [TS ]</li> </ul>
1
<p dir="auto">I have few filters in dashboards and until i click on the <strong>Filter button</strong> in sidebar the dashboard data does not load. I have option <strong>Select the first value</strong> checked in one of the filter and unchecking the same loads the data easily.<br> But i need this selecting the first vale.</p> <p dir="auto">Any fix for this</p>
<h2 dir="auto">[SIP] Proposal for moving frontend assets to the base of the repo</h2> <h3 dir="auto">Motivation</h3> <p dir="auto">Currently frontend assets are embedded in the superset package under <code class="notranslate">superset/assets/</code>, which is symlinked in<code class="notranslate">superset/assets/static</code>. This is really confusing for newcomers to the project as it's unclear why code appears to be duplicated. Additionally this is a UNIX symlink so the link isn't created on Windows machines.</p> <p dir="auto">Moreover is seems there's code (eg, <code class="notranslate">MANIFEST.in</code>, <code class="notranslate">Dockerfile</code> ) that tries to work around the fact that the entire frontend exists in the superset module and most of these files are not needed during runtime. Things like whitelisting files and removing files after builds are workarounds to the actual issue and only add complexity to the problem.</p> <h3 dir="auto">Proposed Change</h3> <ul dir="auto"> <li>Move the frontend code into a top level directory, something like <code class="notranslate">frontend</code> or <code class="notranslate">client</code></li> <li>Configure webpack to output the built/dist files to <code class="notranslate">superset/assets/dist</code>. This can include the package.json (needed for version info) and any other necessary runtime files.</li> <li>remove the symlinks.</li> <li>update build scripts</li> <li>make sure everything works (local builds, docker builds, python package, CI, etc.)</li> <li>update documentation.</li> </ul> <h3 dir="auto">New or Changed Public Interfaces</h3> <p dir="auto">[no changes]</p> <h3 dir="auto">New dependencies</h3> <p dir="auto">[no changes]</p> <h3 dir="auto">Migration Plan and Compatibility</h3> <p dir="auto">No major/breaking changes should be necessary. The bulk of the work would be around making sure no existing builds/scripts break and documentation is updated. Since most of the changes will only be moving files, rebases should be automatic, though this will probably require a lot of existing branches to be rebased.</p> <h3 dir="auto">Rejected Alternatives</h3> <ol dir="auto"> <li>Remove the symlink and move everything to <code class="notranslate">superset/static/assets</code> and continue to support the whitelisting in <code class="notranslate">MANIFEST.in</code> and the cleanup in <code class="notranslate">Dockerfile</code> and possibly other places.</li> <li>Continue to support the current file organization and continue to field questions such as: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="535986551" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/8804" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/8804/hovercard" href="https://github.com/apache/superset/issues/8804">#8804</a></li> </ol>
0
<h3 dir="auto">Description</h3> <p dir="auto">I am unable to install the latest version of JAX 0.4.12 through the command:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip install --upgrade &quot;jax[cuda12_pip]&quot; -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html"><pre class="notranslate"><code class="notranslate">pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html </code></pre></div> <p dir="auto">Version 0.4.11 is installed instead.</p> <h3 dir="auto">What jax/jaxlib version are you using?</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Which accelerator(s) are you using?</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional system info</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">NVIDIA GPU info</h3> <p dir="auto">+---------------------------------------------------------------------------------------+<br> | NVIDIA-SMI 530.30.02 Driver Version: 530.30.02 CUDA Version: 12.1 |<br> |-----------------------------------------+----------------------+----------------------+<br> | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |<br> | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |<br> | | | MIG M. |<br> |=========================================+======================+======================|<br> | 0 NVIDIA RTX 6000 Ada Gener... Off| 00000000:41:00.0 Off | Off |<br> | 30% 44C P8 26W / 300W| 6MiB / 49140MiB | 0% Default |<br> | | | N/A |<br> +-----------------------------------------+----------------------+----------------------+<br> | 1 NVIDIA RTX 6000 Ada Gener... Off| 00000000:61:00.0 Off | Off |<br> | 30% 39C P8 22W / 300W| 226MiB / 49140MiB | 0% Default |<br> | | | N/A |<br> +-----------------------------------------+----------------------+----------------------+</p> <p dir="auto">+---------------------------------------------------------------------------------------+<br> | Processes: |<br> | GPU GI CI PID Type Process name GPU Memory |<br> | ID ID Usage |<br> |=======================================================================================|<br> | 0 N/A N/A 1925 G /usr/lib/xorg/Xorg 4MiB |<br> | 1 N/A N/A 1925 G /usr/lib/xorg/Xorg 135MiB |<br> | 1 N/A N/A 2061 G /usr/bin/gnome-shell 52MiB |<br> +---------------------------------------------------------------------------------------+</p>
<h3 dir="auto">Description</h3> <p dir="auto">For CUDA 12.1 and cuDNN 8.8 No wheel is available. The suggested whl to use was CUDA 12 and cuDNN 8.9 but this does not work and I only have cuDNN 8.8.</p> <p dir="auto">Thanks,</p> <h3 dir="auto">What jax/jaxlib version are you using?</h3> <p dir="auto">jaxlib==0.4.12</p> <h3 dir="auto">Which accelerator(s) are you using?</h3> <p dir="auto">GPU</p> <h3 dir="auto">Additional system info</h3> <p dir="auto">Python 3.8.10, Ubuntu 20.04.6 LTS</p> <h3 dir="auto">NVIDIA GPU info</h3> <p dir="auto">Mon Jun 12 14:37:26 2023<br> +---------------------------------------------------------------------------------------+<br> | NVIDIA-SMI 530.41.03 Driver Version: 530.41.03 CUDA Version: 12.1 |<br> |-----------------------------------------+----------------------+----------------------+<br> | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |<br> | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |<br> | | | MIG M. |<br> |=========================================+======================+======================|<br> | 0 NVIDIA RTX A6000 Off| 00000000:65:00.0 On | Off |<br> | 32% 61C P2 79W / 300W| 48625MiB / 49140MiB | 0% Default |<br> | | | N/A |<br> +-----------------------------------------+----------------------+----------------------+</p> <p dir="auto">+---------------------------------------------------------------------------------------+<br> | Processes: |<br> | GPU GI CI PID Type Process name GPU Memory |<br> | ID ID Usage |<br> |=======================================================================================|<br> | 0 N/A N/A 1189 G /usr/lib/xorg/Xorg 77MiB |<br> | 0 N/A N/A 1939 G /usr/lib/xorg/Xorg 161MiB |<br> | 0 N/A N/A 2074 G /usr/bin/gnome-shell 75MiB |<br> | 0 N/A N/A 6749 C python3 37240MiB |<br> | 0 N/A N/A 7046 C python3 10934MiB |<br> | 0 N/A N/A 11541 G /usr/lib/firefox/firefox 121MiB |<br> +---------------------------------------------------------------------------------------+</p>
1
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Upon loading asset image (on some phones, in some side state), the flutter engine hangs, while actual process continues to execute. Sometimes, Android produces ANR error.</p> <p dir="auto">I am on <code class="notranslate">v0.3.0</code>. If I switch to <code class="notranslate">beta</code> I get compilation error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Initializing gradle... 1.0s Resolving dependencies... 0.9s Running 'gradlew assembleDebug'... registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) compiler message: Unhandled exception: Crash when compiling file://.....lib/main.dart, at character offset 6566: lib/main.dart: Internal problem: Unhandled this in defaultTreeNode. #0 internalProblem (package:front_end/src/fasta/problems.dart:30) #1 unhandled (package:front_end/src/fasta/problems.dart:43) #2 ConstnessEvaluator.defaultTreeNode (package:front_end/src/fasta/kernel/constness_evaluator.dart:112) #3 TreeVisitor.defaultExpression (package:kernel/visitor.dart:140) #4 TreeVisitor.visitThisExpression (package:kernel/visitor.dart:171) #5 ThisExpression.accept (package:kernel/ast.dart:3341) #6 ConstnessEvaluator.visitPropertyGet (package:front_end/src/fasta/kernel/constness_evaluator.dart:287) #7 PropertyGet.accept (package:kernel/ast.dart:2242) #8 ConstnessEvaluator.visitConstructorInvocation (package:front_end/src/fasta/kernel/constness_evaluator.dart:175) #9 ConstructorInvocation.accept (package:kernel/ast.dart:2983) #10 ConstnessEvaluator.evaluate (package:front_end/src/fasta/kernel/constness_evaluator.dart:99) #11 evaluateConstness (package:front_end/src/fasta/kernel/constness_evaluator.dart:466) #12 BodyBuilder.inferConstness (package:front_end/src/fasta/kernel/body_builder.dart:710) #13 BodyBuilder.finishFunction (package:front_end/src/fasta/kernel/body_builder.dart:697) #14 DietListener.listenerFinishFunction (package:front_end/src/fasta/source/diet_listener.dart:684) #15 DietListener.parseFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:718) #16 DietListener.buildFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:565) #17 DietListener.endMethod (package:front_end/src/fasta/source/diet_listener.dart:530) #18 Parser.parseMethod (package:front_end/src/fasta/parser/parser.dart:3796) #19 Parser.parseClassMemberImpl (package:front_end/src/fasta/parser/parser.dart:3670) #20 Parser.parseClassBody (package:front_end/src/fasta/parser/parser.dart:3467) #21 Parser.parseClass (package:front_end/src/fasta/parser/parser.dart:1699) #22 Parser.parseClassOrNamedMixinApplication (package:front_end/src/fasta/parser/parser.dart:1659) #23 Parser.parseTopLevelKeywordDeclaration (package:front_end/src/fasta/parser/parser.dart:535) #24 Parser.parseTopLevelDeclarationImpl (package:front_end/src/fasta/parser/parser.dart:451) #25 Parser.parseUnit (package:front_end/src/fasta/parser/parser.dart:335) #26 SourceLoader.buildBody (package:front_end/src/fasta/source/source_loader.dart:198) &lt;asynchronous suspension&gt; #27 Loader.buildBodies (package:front_end/src/fasta/loader.dart:157) &lt;asynchronous suspension&gt; #28 KernelTarget.buildComponent (package:front_end/src/fasta/kernel/kernel_target.dart:292) &lt;asynchronous suspension&gt; #29 IncrementalCompiler.computeDelta.&lt;anonymous closure&gt; (package:front_end/src/fasta/incremental_compiler.dart:140) &lt;asynchronous suspension&gt; #30 CompilerContext.runInContext.&lt;anonymous closure&gt; (package:front_end/src/fasta/compiler_context.dart:105) #31 _rootRun (dart:async/zone.dart:1126) #32 _CustomZone.run (dart:async/zone.dart:1023) #33 runZoned (dart:async/zone.dart:1501) #34 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:105) #35 IncrementalCompiler.computeDelta (package:front_end/src/fasta/incremental_compiler.dart:61) &lt;asynchronous suspension&gt; #36 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:33) &lt;asynchronous suspension&gt; #37 FrontendCompiler.compile.&lt;anonymous closure&gt; (package:vm/frontend_server.dart:254) #38 new Future.&lt;anonymous closure&gt; (dart:async/future.dart:174) #39 _rootRun (dart:async/zone.dart:1122) #40 _CustomZone.run (dart:async/zone.dart:1023) #41 _CustomZone.runGuarded (dart:async/zone.dart:925) #42 _CustomZone.bindCallbackGuarded.&lt;anonymous closure&gt; (dart:async/zone.dart:965) #43 _rootRun (dart:async/zone.dart:1126) #44 _CustomZone.run (dart:async/zone.dart:1023) #45 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:949) #46 Timer._createTimer.&lt;anonymous closure&gt; (dart:async-patch/dart:async/timer_patch.dart:21) #47 _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382) #48 _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416) #49 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) #0 internalProblem (package:front_end/src/fasta/problems.dart:30) #1 unhandled (package:front_end/src/fasta/problems.dart:43) #2 ConstnessEvaluator.defaultTreeNode (package:front_end/src/fasta/kernel/constness_evaluator.dart:112) #3 TreeVisitor.defaultExpression (package:kernel/visitor.dart:140) #4 TreeVisitor.visitThisExpression (package:kernel/visitor.dart:171) #5 ThisExpression.accept (package:kernel/ast.dart:3341) #6 ConstnessEvaluator.visitPropertyGet (package:front_end/src/fasta/kernel/constness_evaluator.dart:287) #7 PropertyGet.accept (package:kernel/ast.dart:2242) #8 ConstnessEvaluator.visitConstructorInvocation (package:front_end/src/fasta/kernel/constness_evaluator.dart:175) #9 ConstructorInvocation.accept (package:kernel/ast.dart:2983) #10 ConstnessEvaluator.evaluate (package:front_end/src/fasta/kernel/constness_evaluator.dart:99) #11 evaluateConstness (package:front_end/src/fasta/kernel/constness_evaluator.dart:466) #12 BodyBuilder.inferConstness (package:front_end/src/fasta/kernel/body_builder.dart:710) #13 BodyBuilder.finishFunction (package:front_end/src/fasta/kernel/body_builder.dart:697) #14 DietListener.listenerFinishFunction (package:front_end/src/fasta/source/diet_listener.dart:684) #15 DietListener.parseFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:718) #16 DietListener.buildFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:565) #17 DietListener.endMethod (package:front_end/src/fasta/source/diet_listener.dart:530) #18 Parser.parseMethod (package:front_end/src/fasta/parser/parser.dart:3796) #19 Parser.parseClassMemberImpl (package:front_end/src/fasta/parser/parser.dart:3670) #20 Parser.parseClassBody (package:front_end/src/fasta/parser/parser.dart:3467) #21 Parser.parseClass (package:front_end/src/fasta/parser/parser.dart:1699) #22 Parser.parseClassOrNamedMixinApplication (package:front_end/src/fasta/parser/parser.dart:1659) #23 Parser.parseTopLevelKeywordDeclaration (package:front_end/src/fasta/parser/parser.dart:535) #24 Parser.parseTopLevelDeclarationImpl (package:front_end/src/fasta/parser/parser.dart:451) #25 Parser.parseUnit (package:front_end/src/fasta/parser/parser.dart:335) #26 SourceLoader.buildBody (package:front_end/src/fasta/source/source_loader.dart:198) &lt;asynchronous suspension&gt; #27 Loader.buildBodies (package:front_end/src/fasta/loader.dart:157) &lt;asynchronous suspension&gt; #28 KernelTarget.buildComponent (package:front_end/src/fasta/kernel/kernel_target.dart:292) &lt;asynchronous suspension&gt; #29 IncrementalCompiler.computeDelta.&lt;anonymous closure&gt; (package:front_end/src/fasta/incremental_compiler.dart:140) &lt;asynchronous suspension&gt; #30 CompilerContext.runInContext.&lt;anonymous closure&gt; (package:front_end/src/fasta/compiler_context.dart:105) #31 _rootRun (dart:async/zone.dart:1126) #32 _CustomZone.run (dart:async/zone.dart:1023) #33 runZoned (dart:async/zone.dart:1501) #34 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:105) #35 IncrementalCompiler.computeDelta (package:front_end/src/fasta/incremental_compiler.dart:61) &lt;asynchronous suspension&gt; #36 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:33) &lt;asynchronous suspension&gt; #37 FrontendCompiler.compile.&lt;anonymous closure&gt; (package:vm/frontend_server.dart:254) #38 new Future.&lt;anonymous closure&gt; (dart:async/future.dart:174) #39 _rootRun (dart:async/zone.dart:1122) #40 _CustomZone.run (dart:async/zone.dart:1023) #41 _CustomZone.runGuarded (dart:async/zone.dart:925) #42 _CustomZone.bindCallbackGuarded.&lt;anonymous closure&gt; (dart:async/zone.dart:965) #43 _rootRun (dart:async/zone.dart:1126) #44 _CustomZone.run (dart:async/zone.dart:1023) #45 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:949) #46 Timer._createTimer.&lt;anonymous closure&gt; (dart:async-patch/dart:async/timer_patch.dart:21) #47 _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382) #48 _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416) #49 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) Compiler terminated unexpectedly on .....lib/main.dart FAILURE: Build failed with an exception. * Where: Script '......github.com/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 441 * What went wrong: Execution failed for task ':app:flutterDependenciesDebug'. &gt; Process 'command '......github.com/flutter/bin/flutter'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org BUILD FAILED in 5s Gradle build failed: 1"><pre class="notranslate"><code class="notranslate">Initializing gradle... 1.0s Resolving dependencies... 0.9s Running 'gradlew assembleDebug'... registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) compiler message: Unhandled exception: Crash when compiling file://.....lib/main.dart, at character offset 6566: lib/main.dart: Internal problem: Unhandled this in defaultTreeNode. #0 internalProblem (package:front_end/src/fasta/problems.dart:30) #1 unhandled (package:front_end/src/fasta/problems.dart:43) #2 ConstnessEvaluator.defaultTreeNode (package:front_end/src/fasta/kernel/constness_evaluator.dart:112) #3 TreeVisitor.defaultExpression (package:kernel/visitor.dart:140) #4 TreeVisitor.visitThisExpression (package:kernel/visitor.dart:171) #5 ThisExpression.accept (package:kernel/ast.dart:3341) #6 ConstnessEvaluator.visitPropertyGet (package:front_end/src/fasta/kernel/constness_evaluator.dart:287) #7 PropertyGet.accept (package:kernel/ast.dart:2242) #8 ConstnessEvaluator.visitConstructorInvocation (package:front_end/src/fasta/kernel/constness_evaluator.dart:175) #9 ConstructorInvocation.accept (package:kernel/ast.dart:2983) #10 ConstnessEvaluator.evaluate (package:front_end/src/fasta/kernel/constness_evaluator.dart:99) #11 evaluateConstness (package:front_end/src/fasta/kernel/constness_evaluator.dart:466) #12 BodyBuilder.inferConstness (package:front_end/src/fasta/kernel/body_builder.dart:710) #13 BodyBuilder.finishFunction (package:front_end/src/fasta/kernel/body_builder.dart:697) #14 DietListener.listenerFinishFunction (package:front_end/src/fasta/source/diet_listener.dart:684) #15 DietListener.parseFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:718) #16 DietListener.buildFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:565) #17 DietListener.endMethod (package:front_end/src/fasta/source/diet_listener.dart:530) #18 Parser.parseMethod (package:front_end/src/fasta/parser/parser.dart:3796) #19 Parser.parseClassMemberImpl (package:front_end/src/fasta/parser/parser.dart:3670) #20 Parser.parseClassBody (package:front_end/src/fasta/parser/parser.dart:3467) #21 Parser.parseClass (package:front_end/src/fasta/parser/parser.dart:1699) #22 Parser.parseClassOrNamedMixinApplication (package:front_end/src/fasta/parser/parser.dart:1659) #23 Parser.parseTopLevelKeywordDeclaration (package:front_end/src/fasta/parser/parser.dart:535) #24 Parser.parseTopLevelDeclarationImpl (package:front_end/src/fasta/parser/parser.dart:451) #25 Parser.parseUnit (package:front_end/src/fasta/parser/parser.dart:335) #26 SourceLoader.buildBody (package:front_end/src/fasta/source/source_loader.dart:198) &lt;asynchronous suspension&gt; #27 Loader.buildBodies (package:front_end/src/fasta/loader.dart:157) &lt;asynchronous suspension&gt; #28 KernelTarget.buildComponent (package:front_end/src/fasta/kernel/kernel_target.dart:292) &lt;asynchronous suspension&gt; #29 IncrementalCompiler.computeDelta.&lt;anonymous closure&gt; (package:front_end/src/fasta/incremental_compiler.dart:140) &lt;asynchronous suspension&gt; #30 CompilerContext.runInContext.&lt;anonymous closure&gt; (package:front_end/src/fasta/compiler_context.dart:105) #31 _rootRun (dart:async/zone.dart:1126) #32 _CustomZone.run (dart:async/zone.dart:1023) #33 runZoned (dart:async/zone.dart:1501) #34 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:105) #35 IncrementalCompiler.computeDelta (package:front_end/src/fasta/incremental_compiler.dart:61) &lt;asynchronous suspension&gt; #36 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:33) &lt;asynchronous suspension&gt; #37 FrontendCompiler.compile.&lt;anonymous closure&gt; (package:vm/frontend_server.dart:254) #38 new Future.&lt;anonymous closure&gt; (dart:async/future.dart:174) #39 _rootRun (dart:async/zone.dart:1122) #40 _CustomZone.run (dart:async/zone.dart:1023) #41 _CustomZone.runGuarded (dart:async/zone.dart:925) #42 _CustomZone.bindCallbackGuarded.&lt;anonymous closure&gt; (dart:async/zone.dart:965) #43 _rootRun (dart:async/zone.dart:1126) #44 _CustomZone.run (dart:async/zone.dart:1023) #45 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:949) #46 Timer._createTimer.&lt;anonymous closure&gt; (dart:async-patch/dart:async/timer_patch.dart:21) #47 _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382) #48 _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416) #49 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) #0 internalProblem (package:front_end/src/fasta/problems.dart:30) #1 unhandled (package:front_end/src/fasta/problems.dart:43) #2 ConstnessEvaluator.defaultTreeNode (package:front_end/src/fasta/kernel/constness_evaluator.dart:112) #3 TreeVisitor.defaultExpression (package:kernel/visitor.dart:140) #4 TreeVisitor.visitThisExpression (package:kernel/visitor.dart:171) #5 ThisExpression.accept (package:kernel/ast.dart:3341) #6 ConstnessEvaluator.visitPropertyGet (package:front_end/src/fasta/kernel/constness_evaluator.dart:287) #7 PropertyGet.accept (package:kernel/ast.dart:2242) #8 ConstnessEvaluator.visitConstructorInvocation (package:front_end/src/fasta/kernel/constness_evaluator.dart:175) #9 ConstructorInvocation.accept (package:kernel/ast.dart:2983) #10 ConstnessEvaluator.evaluate (package:front_end/src/fasta/kernel/constness_evaluator.dart:99) #11 evaluateConstness (package:front_end/src/fasta/kernel/constness_evaluator.dart:466) #12 BodyBuilder.inferConstness (package:front_end/src/fasta/kernel/body_builder.dart:710) #13 BodyBuilder.finishFunction (package:front_end/src/fasta/kernel/body_builder.dart:697) #14 DietListener.listenerFinishFunction (package:front_end/src/fasta/source/diet_listener.dart:684) #15 DietListener.parseFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:718) #16 DietListener.buildFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:565) #17 DietListener.endMethod (package:front_end/src/fasta/source/diet_listener.dart:530) #18 Parser.parseMethod (package:front_end/src/fasta/parser/parser.dart:3796) #19 Parser.parseClassMemberImpl (package:front_end/src/fasta/parser/parser.dart:3670) #20 Parser.parseClassBody (package:front_end/src/fasta/parser/parser.dart:3467) #21 Parser.parseClass (package:front_end/src/fasta/parser/parser.dart:1699) #22 Parser.parseClassOrNamedMixinApplication (package:front_end/src/fasta/parser/parser.dart:1659) #23 Parser.parseTopLevelKeywordDeclaration (package:front_end/src/fasta/parser/parser.dart:535) #24 Parser.parseTopLevelDeclarationImpl (package:front_end/src/fasta/parser/parser.dart:451) #25 Parser.parseUnit (package:front_end/src/fasta/parser/parser.dart:335) #26 SourceLoader.buildBody (package:front_end/src/fasta/source/source_loader.dart:198) &lt;asynchronous suspension&gt; #27 Loader.buildBodies (package:front_end/src/fasta/loader.dart:157) &lt;asynchronous suspension&gt; #28 KernelTarget.buildComponent (package:front_end/src/fasta/kernel/kernel_target.dart:292) &lt;asynchronous suspension&gt; #29 IncrementalCompiler.computeDelta.&lt;anonymous closure&gt; (package:front_end/src/fasta/incremental_compiler.dart:140) &lt;asynchronous suspension&gt; #30 CompilerContext.runInContext.&lt;anonymous closure&gt; (package:front_end/src/fasta/compiler_context.dart:105) #31 _rootRun (dart:async/zone.dart:1126) #32 _CustomZone.run (dart:async/zone.dart:1023) #33 runZoned (dart:async/zone.dart:1501) #34 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:105) #35 IncrementalCompiler.computeDelta (package:front_end/src/fasta/incremental_compiler.dart:61) &lt;asynchronous suspension&gt; #36 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:33) &lt;asynchronous suspension&gt; #37 FrontendCompiler.compile.&lt;anonymous closure&gt; (package:vm/frontend_server.dart:254) #38 new Future.&lt;anonymous closure&gt; (dart:async/future.dart:174) #39 _rootRun (dart:async/zone.dart:1122) #40 _CustomZone.run (dart:async/zone.dart:1023) #41 _CustomZone.runGuarded (dart:async/zone.dart:925) #42 _CustomZone.bindCallbackGuarded.&lt;anonymous closure&gt; (dart:async/zone.dart:965) #43 _rootRun (dart:async/zone.dart:1126) #44 _CustomZone.run (dart:async/zone.dart:1023) #45 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:949) #46 Timer._createTimer.&lt;anonymous closure&gt; (dart:async-patch/dart:async/timer_patch.dart:21) #47 _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382) #48 _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416) #49 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) Compiler terminated unexpectedly on .....lib/main.dart FAILURE: Build failed with an exception. * Where: Script '......github.com/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 441 * What went wrong: Execution failed for task ':app:flutterDependenciesDebug'. &gt; Process 'command '......github.com/flutter/bin/flutter'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org BUILD FAILED in 5s Gradle build failed: 1 </code></pre></div> <h2 dir="auto">Logs</h2> <h4 dir="auto">run --verbose</h4> <p dir="auto">Once attempts to load an image, log stops and nothing gets printed.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] 🔥 To hot reload your app on the fly, press &quot;r&quot;. To restart the app entirely, press &quot;R&quot;. [ ] An Observatory debugger and profiler on Nexus 5X is available at: http://127.0.0.1:8105/ [ ] For a more detailed help message, press &quot;h&quot;. To quit, press &quot;q&quot;. [+1039 ms] I/zygote64(13338): Do partial code cache collection, code=61KB, data=42KB [ +2 ms] I/zygote64(13338): After code cache collection, code=61KB, data=42KB [ ] I/zygote64(13338): Increasing code cache capacity to 256KB [ +6 ms] D/DynamitePackage(13338): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl [ +28 ms] I/Ads (13338): Starting ad request. [ +3 ms] I/Ads (13338): Use AdRequest.Builder.addTestDevice(&quot;CC6F187D1887E034DD1E0E8A79FD073E&quot;) to get test ads on this device. [ +79 ms] D/DynamitePackage(13338): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl [ +38 ms] I/WebViewFactory(13338): Loading com.android.chrome version 65.0.3325.109 (code 332510952) [ +12 ms] I/Ads (13338): Starting ad request. [ ] I/Ads (13338): Use AdRequest.Builder.addTestDevice(&quot;CC6F187D1887E034DD1E0E8A79FD073E&quot;) to get test ads on this device. [ +402 ms] I/cr_LibraryLoader(13338): Time to load native libraries: 7 ms (timestamps 7517-7524) [ +22 ms] I/chromium(13338): [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0 [ ] I/cr_LibraryLoader(13338): Expected native library version number &quot;65.0.3325.109&quot;, actual native library version number &quot;65.0.3325.109&quot; [ +433 ms] I/Ads (13338): Trying mediation network: null [ ] I/Ads (13338): Instantiating mediation adapter: com.google.ads.mediation.admob.AdMobAdapter [ +6 ms] W/Ads (13338): Server parameters: {&quot;pubid&quot;:&quot;ca-app-pub-3940256099942544\/1033173712&quot;} [ +22 ms] D/DynamitePackage(13338): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl [ +196 ms] I/Ads (13338): Starting ad request. [ ] I/Ads (13338): Use AdRequest.Builder.addTestDevice(&quot;CC6F187D1887E034DD1E0E8A79FD073E&quot;) to get test ads on this device. [ +156 ms] W/cr_ChildProcLH(13338): Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true [ +31 ms] I/cr_BrowserStartup(13338): Initializing chromium process, singleProcess=false [ ] I/cr_base (13338): Android Locale: en_US requires .pak files: [en-GB.pak, en-US.pak] [ +180 ms] W/oozefit.android(13338): type=1400 audit(0.0:206): avc: denied { read } for name=&quot;vmstat&quot; dev=&quot;proc&quot; ino=4026546034 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0 [ +341 ms] W/cr_media(13338): Requires BLUETOOTH permission [ +86 ms] W/cr_CrashFileManager(13338): /data/user/0/.../cache/WebView/Crash Reports does not exist or is not a directory [ +193 ms] W/VideoCapabilities(13338): Unrecognized profile 2130706433 for video/avc [ +25 ms] I/VideoCapabilities(13338): Unsupported profile 4 for video/mp4v-es [ +456 ms] I/zygote64(13338): Do full code cache collection, code=124KB, data=91KB [ +1 ms] I/zygote64(13338): After code cache collection, code=119KB, data=64KB [ +239 ms] I/Ads (13338): Ad finished loading. [ +96 ms] I/Ads (13338): Ad finished loading. [ ] I/Ads (13338): Scheduling ad refresh 70000 milliseconds from now. [ +156 ms] I/Ads (13338): Ad finished loading. [ +251 ms] I/zygote64(13338): Do partial code cache collection, code=122KB, data=80KB [ ] I/zygote64(13338): After code cache collection, code=122KB, data=80KB [ ] I/zygote64(13338): Increasing code cache capacity to 512KB [ +50 ms] I/chromium(13338): [INFO:CONSOLE(0)] &quot;Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.appcache&quot;, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0) [ ] I/chromium(13338): [INFO:CONSOLE(0)] &quot;Application Cache Checking event&quot;, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0) [ +460 ms] I/chromium(13338): [INFO:CONSOLE(0)] &quot;Application Cache NoUpdate event&quot;, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)"><pre class="notranslate"><code class="notranslate">[ ] 🔥 To hot reload your app on the fly, press "r". To restart the app entirely, press "R". [ ] An Observatory debugger and profiler on Nexus 5X is available at: http://127.0.0.1:8105/ [ ] For a more detailed help message, press "h". To quit, press "q". [+1039 ms] I/zygote64(13338): Do partial code cache collection, code=61KB, data=42KB [ +2 ms] I/zygote64(13338): After code cache collection, code=61KB, data=42KB [ ] I/zygote64(13338): Increasing code cache capacity to 256KB [ +6 ms] D/DynamitePackage(13338): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl [ +28 ms] I/Ads (13338): Starting ad request. [ +3 ms] I/Ads (13338): Use AdRequest.Builder.addTestDevice("CC6F187D1887E034DD1E0E8A79FD073E") to get test ads on this device. [ +79 ms] D/DynamitePackage(13338): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl [ +38 ms] I/WebViewFactory(13338): Loading com.android.chrome version 65.0.3325.109 (code 332510952) [ +12 ms] I/Ads (13338): Starting ad request. [ ] I/Ads (13338): Use AdRequest.Builder.addTestDevice("CC6F187D1887E034DD1E0E8A79FD073E") to get test ads on this device. [ +402 ms] I/cr_LibraryLoader(13338): Time to load native libraries: 7 ms (timestamps 7517-7524) [ +22 ms] I/chromium(13338): [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0 [ ] I/cr_LibraryLoader(13338): Expected native library version number "65.0.3325.109", actual native library version number "65.0.3325.109" [ +433 ms] I/Ads (13338): Trying mediation network: null [ ] I/Ads (13338): Instantiating mediation adapter: com.google.ads.mediation.admob.AdMobAdapter [ +6 ms] W/Ads (13338): Server parameters: {"pubid":"ca-app-pub-3940256099942544\/1033173712"} [ +22 ms] D/DynamitePackage(13338): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl [ +196 ms] I/Ads (13338): Starting ad request. [ ] I/Ads (13338): Use AdRequest.Builder.addTestDevice("CC6F187D1887E034DD1E0E8A79FD073E") to get test ads on this device. [ +156 ms] W/cr_ChildProcLH(13338): Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true [ +31 ms] I/cr_BrowserStartup(13338): Initializing chromium process, singleProcess=false [ ] I/cr_base (13338): Android Locale: en_US requires .pak files: [en-GB.pak, en-US.pak] [ +180 ms] W/oozefit.android(13338): type=1400 audit(0.0:206): avc: denied { read } for name="vmstat" dev="proc" ino=4026546034 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0 [ +341 ms] W/cr_media(13338): Requires BLUETOOTH permission [ +86 ms] W/cr_CrashFileManager(13338): /data/user/0/.../cache/WebView/Crash Reports does not exist or is not a directory [ +193 ms] W/VideoCapabilities(13338): Unrecognized profile 2130706433 for video/avc [ +25 ms] I/VideoCapabilities(13338): Unsupported profile 4 for video/mp4v-es [ +456 ms] I/zygote64(13338): Do full code cache collection, code=124KB, data=91KB [ +1 ms] I/zygote64(13338): After code cache collection, code=119KB, data=64KB [ +239 ms] I/Ads (13338): Ad finished loading. [ +96 ms] I/Ads (13338): Ad finished loading. [ ] I/Ads (13338): Scheduling ad refresh 70000 milliseconds from now. [ +156 ms] I/Ads (13338): Ad finished loading. [ +251 ms] I/zygote64(13338): Do partial code cache collection, code=122KB, data=80KB [ ] I/zygote64(13338): After code cache collection, code=122KB, data=80KB [ ] I/zygote64(13338): Increasing code cache capacity to 512KB [ +50 ms] I/chromium(13338): [INFO:CONSOLE(0)] "Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.appcache", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0) [ ] I/chromium(13338): [INFO:CONSOLE(0)] "Application Cache Checking event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0) [ +460 ms] I/chromium(13338): [INFO:CONSOLE(0)] "Application Cache NoUpdate event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0) </code></pre></div> <h3 dir="auto">analyze OK</h3> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel unknown, v0.3.0, on Mac OS X 10.13.3 17D102, locale en-US) • Flutter version 0.3.0 at /Users/Vladimir/Projects/github.com/flutter • Framework revision c73b8a7cf6 (7 days ago), 2018-04-12 16:17:26 -0700 • Engine revision 8a6e64a8ef • Dart version 2.0.0-dev.47.0.flutter-4126459025 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/Vladimir/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.3, Build version 9E145 • ios-deploy 1.9.2 • CocoaPods version 1.3.1 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents ✗ 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-1024-b01) [✓] IntelliJ IDEA Community Edition (version 2018.1) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 23.1.3 • Dart plugin version 181.4203.498 [✓] Connected devices (1 available) • Nexus 5X • 00c40db5276fbe05 • android-arm64 • Android 8.1.0 (API 27) • No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel unknown, v0.3.0, on Mac OS X 10.13.3 17D102, locale en-US) • Flutter version 0.3.0 at /Users/Vladimir/Projects/github.com/flutter • Framework revision c73b8a7cf6 (7 days ago), 2018-04-12 16:17:26 -0700 • Engine revision 8a6e64a8ef • Dart version 2.0.0-dev.47.0.flutter-4126459025 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/Vladimir/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.3, Build version 9E145 • ios-deploy 1.9.2 • CocoaPods version 1.3.1 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents ✗ 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-1024-b01) [✓] IntelliJ IDEA Community Edition (version 2018.1) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 23.1.3 • Dart plugin version 181.4203.498 [✓] Connected devices (1 available) • Nexus 5X • 00c40db5276fbe05 • android-arm64 • Android 8.1.0 (API 27) • No issues found! </code></pre></div> <h2 dir="auto">Investigation</h2> <p dir="auto">Seems to hang in engine <a href="https://github.com/flutter/engine/blob/master/shell/common/engine.cc#L416"><code class="notranslate">engine.cc</code> on line 416</a></p> <div class="highlight highlight-source-c notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="void Engine::HandleAssetPlatformMessage( fxl::RefPtr&lt;blink::PlatformMessage&gt; message) { fxl::RefPtr&lt;blink::PlatformMessageResponse&gt; response = message-&gt;response(); if (!response) { return; } const auto&amp; data = message-&gt;data(); std::string asset_name(reinterpret_cast&lt;const char*&gt;(data.data()), data.size()); std::vector&lt;uint8_t&gt; asset_data; // !!! hangs on GetAsBuffer() call !!! if (asset_manager_ &amp;&amp; asset_manager_-&gt;GetAsBuffer(asset_name, &amp;asset_data)) { response-&gt;Complete(std::move(asset_data)); } else { response-&gt;CompleteEmpty(); } }"><pre class="notranslate"><span class="pl-smi">void</span> <span class="pl-s1">Engine</span>::<span class="pl-en">HandleAssetPlatformMessage</span>( <span class="pl-smi">fxl</span>::<span class="pl-s1">RefPtr</span><span class="pl-c1">&lt;</span><span class="pl-s1">blink</span>::<span class="pl-s1">PlatformMessage</span><span class="pl-c1">&gt;</span> <span class="pl-s1">message</span>) { <span class="pl-ent">fxl</span>::<span class="pl-s1">RefPtr</span><span class="pl-c1">&lt;</span><span class="pl-s1">blink</span>::<span class="pl-s1">PlatformMessageResponse</span><span class="pl-c1">&gt;</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-s1">message</span><span class="pl-c1">-&gt;</span><span class="pl-en">response</span>(); <span class="pl-k">if</span> (!<span class="pl-s1">response</span>) { <span class="pl-k">return</span>; } <span class="pl-k">const</span> auto<span class="pl-c1">&amp;</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">message</span><span class="pl-c1">-&gt;</span><span class="pl-en">data</span>(); <span class="pl-ent">std</span>::<span class="pl-s1">string</span> <span class="pl-en">asset_name</span>(<span class="pl-s1">reinterpret_cast</span><span class="pl-c1">&lt;</span><span class="pl-s1">const</span> <span class="pl-s1">char</span><span class="pl-c1">*</span><span class="pl-c1">&gt;</span>(<span class="pl-s1">data</span>.<span class="pl-en">data</span>()), <span class="pl-s1">data</span>.<span class="pl-en">size</span>()); <span class="pl-ent">std</span>::<span class="pl-s1">vector</span><span class="pl-c1">&lt;</span><span class="pl-s1">uint8_t</span><span class="pl-c1">&gt;</span> <span class="pl-s1">asset_data</span>; <span class="pl-c">// !!! hangs on GetAsBuffer() call !!!</span> <span class="pl-k">if</span> (<span class="pl-s1">asset_manager_</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">asset_manager_</span><span class="pl-c1">-&gt;</span><span class="pl-en">GetAsBuffer</span>(<span class="pl-s1">asset_name</span>, <span class="pl-c1">&amp;</span><span class="pl-s1">asset_data</span>)) { <span class="pl-s1">response</span><span class="pl-c1">-&gt;</span><span class="pl-en">Complete</span>(<span class="pl-s1">std</span>::<span class="pl-en">move</span>(<span class="pl-s1">asset_data</span>)); } <span class="pl-k">else</span> { <span class="pl-s1">response</span><span class="pl-c1">-&gt;</span><span class="pl-en">CompleteEmpty</span>(); } }</pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Using the <a href="https://github.com/flutter/plugins/tree/master/packages/url_launcher">url_launcher</a> plugin:<br> run the example code calling <code class="notranslate">launch("tel://21213123123")</code></li> </ol> <p dir="auto">(this issue is also documented on <a href="https://stackoverflow.com/questions/53497475/flutter-calling-startactivity-from-outside-of-an-activity-context-requires-th" rel="nofollow">stackoverflow</a></p> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ +133 ms] W/.whitelabel_ap(12464): Accessing hidden field Ljava/net/Socket;-&gt;impl:Ljava/net/SocketImpl; (light greylist, reflection) [ +6 ms] W/.whitelabel_ap(12464): Accessing hidden method Ldalvik/system/CloseGuard;-&gt;get()Ldalvik/system/CloseGuard; (light greylist, linking) [ +5 ms] W/.whitelabel_ap(12464): Accessing hidden method Ldalvik/system/CloseGuard;-&gt;open(Ljava/lang/String;)V (light greylist, linking) [ +2 ms] W/.whitelabel_ap(12464): Accessing hidden method Ljava/net/InetAddress;-&gt;isNumeric(Ljava/lang/String;)Z (light greylist, reflection) [ +3 ms] W/.whitelabel_ap(12464): Accessing hidden field Ljava/io/FileDescriptor;-&gt;descriptor:I (light greylist, JNI) [ +182 ms] W/.whitelabel_ap(12464): Accessing hidden method Ljava/security/spec/ECParameterSpec;-&gt;setCurveName(Ljava/lang/String;)V (light greylist, reflection) [ +22 ms] W/.whitelabel_ap(12464): Accessing hidden method Ldalvik/system/BlockGuard;-&gt;getThreadPolicy()Ldalvik/system/BlockGuard$Policy; (light greylist, linking) [ ] W/.whitelabel_ap(12464): Accessing hidden method Ldalvik/system/BlockGuard$Policy;-&gt;onNetwork()V (light greylist, linking) [+6628 ms] E/MethodChannel#plugins.flutter.io/url_launcher(12464): Failed to handle method call [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.app.ContextImpl.startActivity(ContextImpl.java:912) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.app.ContextImpl.startActivity(ContextImpl.java:888) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.content.ContextWrapper.startActivity(ContextWrapper.java:379) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at io.flutter.plugins.urllauncher.UrlLauncherPlugin.onMethodCall(UrlLauncherPlugin.java:61) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:200) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.os.MessageQueue.nativePollOnce(Native Method) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.os.MessageQueue.next(MessageQueue.java:326) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.os.Looper.loop(Looper.java:160) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.app.ActivityThread.main(ActivityThread.java:6669) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at java.lang.reflect.Method.invoke(Native Method) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) [ +2 ms] E/flutter (12464): [ERROR:flutter/shell/common/shell.cc(184)] Dart Error: Unhandled exception: [ ] E/flutter (12464): PlatformException(error, Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?, null) [ ] E/flutter (12464): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:551:7) [ ] E/flutter (12464): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:292:18) [ ] E/flutter (12464): &lt;asynchronous suspension&gt; [ ] E/flutter (12464): #2 launch (package:url_launcher/url_launcher.dart:66:19) [ ] E/flutter (12464): #3 ContactItem.build.&lt;anonymous closure&gt; (package:whitelabel_app/screen/contacts_screen.dart:69:13) [ ] E/flutter (12464): #4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:507:14) [ ] E/flutter (12464): #5 _InkResponseState.build.&lt;anonymous closure&gt; (package:flutter/src/material/ink_well.dart:562:30) [ ] E/flutter (12464): #6 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24) [ ] E/flutter (12464): #7 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9) [ ] E/flutter (12464): #8 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:204:7) [ ] E/flutter (12464): #9 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27) [ ] E/flutter (12464): #10 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:184:20) [ ] E/flutter (12464): #11 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:158:22) [ ] E/flutter (12464): #12 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:138:7) [ ] E/flutter (12464): #13 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:101:7) [ ] E/flutter (12464): #14 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:85:7) [ ] E/flutter (12464): #15 _invoke1 (dart:ui/hooks.dart:168:13) [ ] E/flutter (12464): #16 _dispatchPointerDataPacket (dart:ui/hooks.dart:122:5) "><pre class="notranslate"><code class="notranslate">[ +133 ms] W/.whitelabel_ap(12464): Accessing hidden field Ljava/net/Socket;-&gt;impl:Ljava/net/SocketImpl; (light greylist, reflection) [ +6 ms] W/.whitelabel_ap(12464): Accessing hidden method Ldalvik/system/CloseGuard;-&gt;get()Ldalvik/system/CloseGuard; (light greylist, linking) [ +5 ms] W/.whitelabel_ap(12464): Accessing hidden method Ldalvik/system/CloseGuard;-&gt;open(Ljava/lang/String;)V (light greylist, linking) [ +2 ms] W/.whitelabel_ap(12464): Accessing hidden method Ljava/net/InetAddress;-&gt;isNumeric(Ljava/lang/String;)Z (light greylist, reflection) [ +3 ms] W/.whitelabel_ap(12464): Accessing hidden field Ljava/io/FileDescriptor;-&gt;descriptor:I (light greylist, JNI) [ +182 ms] W/.whitelabel_ap(12464): Accessing hidden method Ljava/security/spec/ECParameterSpec;-&gt;setCurveName(Ljava/lang/String;)V (light greylist, reflection) [ +22 ms] W/.whitelabel_ap(12464): Accessing hidden method Ldalvik/system/BlockGuard;-&gt;getThreadPolicy()Ldalvik/system/BlockGuard$Policy; (light greylist, linking) [ ] W/.whitelabel_ap(12464): Accessing hidden method Ldalvik/system/BlockGuard$Policy;-&gt;onNetwork()V (light greylist, linking) [+6628 ms] E/MethodChannel#plugins.flutter.io/url_launcher(12464): Failed to handle method call [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.app.ContextImpl.startActivity(ContextImpl.java:912) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.app.ContextImpl.startActivity(ContextImpl.java:888) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.content.ContextWrapper.startActivity(ContextWrapper.java:379) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at io.flutter.plugins.urllauncher.UrlLauncherPlugin.onMethodCall(UrlLauncherPlugin.java:61) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:200) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.os.MessageQueue.nativePollOnce(Native Method) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.os.MessageQueue.next(MessageQueue.java:326) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.os.Looper.loop(Looper.java:160) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at android.app.ActivityThread.main(ActivityThread.java:6669) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at java.lang.reflect.Method.invoke(Native Method) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) [ ] E/MethodChannel#plugins.flutter.io/url_launcher(12464): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) [ +2 ms] E/flutter (12464): [ERROR:flutter/shell/common/shell.cc(184)] Dart Error: Unhandled exception: [ ] E/flutter (12464): PlatformException(error, Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?, null) [ ] E/flutter (12464): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:551:7) [ ] E/flutter (12464): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:292:18) [ ] E/flutter (12464): &lt;asynchronous suspension&gt; [ ] E/flutter (12464): #2 launch (package:url_launcher/url_launcher.dart:66:19) [ ] E/flutter (12464): #3 ContactItem.build.&lt;anonymous closure&gt; (package:whitelabel_app/screen/contacts_screen.dart:69:13) [ ] E/flutter (12464): #4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:507:14) [ ] E/flutter (12464): #5 _InkResponseState.build.&lt;anonymous closure&gt; (package:flutter/src/material/ink_well.dart:562:30) [ ] E/flutter (12464): #6 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24) [ ] E/flutter (12464): #7 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9) [ ] E/flutter (12464): #8 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:204:7) [ ] E/flutter (12464): #9 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27) [ ] E/flutter (12464): #10 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:184:20) [ ] E/flutter (12464): #11 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:158:22) [ ] E/flutter (12464): #12 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:138:7) [ ] E/flutter (12464): #13 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:101:7) [ ] E/flutter (12464): #14 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:85:7) [ ] E/flutter (12464): #15 _invoke1 (dart:ui/hooks.dart:168:13) [ ] E/flutter (12464): #16 _dispatchPointerDataPacket (dart:ui/hooks.dart:122:5) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v1.0.0, on Linux, locale en_AU.UTF-8) • Flutter version 1.0.0 at /home/bjc/Applications/flutter • Framework revision 5391447fae (9 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 28.0.3) • Android SDK at /home/bjc/Applications/android • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = /home/bjc/Applications/android • Java binary at: /usr/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12) • All Android licenses accepted. [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.io/setup/#android-setup for detailed instructions). [!] IntelliJ IDEA Community Edition (version 2018.3) • IntelliJ at /home/bjc/Applications/idea-IC-183.4284.148 ✗ 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 [✓] Connected device (1 available) • Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 9 (API 28) (emulator)"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v1.0.0, on Linux, locale en_AU.UTF-8) • Flutter version 1.0.0 at /home/bjc/Applications/flutter • Framework revision 5391447fae (9 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 28.0.3) • Android SDK at /home/bjc/Applications/android • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = /home/bjc/Applications/android • Java binary at: /usr/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12) • All Android licenses accepted. [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.io/setup/#android-setup for detailed instructions). [!] IntelliJ IDEA Community Edition (version 2018.3) • IntelliJ at /home/bjc/Applications/idea-IC-183.4284.148 ✗ 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 [✓] Connected device (1 available) • Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 9 (API 28) (emulator) </code></pre></div>
0
<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">routerLink</code> with <code class="notranslate">fragment</code> doesn't scroll to the fragment target when the current route already contains the fragment.<br> <strong>Expected behavior</strong></p> <p dir="auto">With a standard <code class="notranslate">&lt;a href="#frag"&gt;&lt;/a&gt;</code>, the browser will always scroll to the target.<br> <strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><a href="http://plnkr.co/edit/6Od3vTp2Che48wO5A9Pc?p=preview" rel="nofollow">http://plnkr.co/edit/6Od3vTp2Che48wO5A9Pc?p=preview</a> although using the router in a Plnkr is virtually impossible<br> <strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">So it behaves correctly<br> <strong>Please tell us about your environment:</strong></p> <p dir="auto">windows, vs 2015, npm, Kestrel behind IIS, ... (what?)</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X</li> </ul> <p dir="auto">2.2.4 in my environment and whatever the Plnkr gives me</p> <ul dir="auto"> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> </ul> <ul dir="auto"> <li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> TypeScript 2.0.3</li> <li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</li> </ul>
<p dir="auto">I'm trying to add an anchor link on my current angular2 app.<br> I've made the navigation first using the fragment attribute and because It didn't work I've referenced the fragment by using the router navigation. I couldn't make it work in both scenarios.</p> <p dir="auto">I've been playing with <a href="https://angular.io/resources/live-examples/router/ts/eplnkr.html" rel="nofollow">https://angular.io/resources/live-examples/router/ts/eplnkr.html</a> and doesn't seem to be working too.</p> <p dir="auto">I followed step by step the tutorial on the routing documentation...</p> <p dir="auto">Can you provide any help?</p>
1
<p dir="auto">This code:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { let _test = main as usize; } "><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> _test = main <span class="pl-k">as</span> <span class="pl-smi">usize</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> </pre></div> <p dir="auto">yields this compiler warning:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo.rs:1:1: 3:2 warning: function cannot return without recurring, #[warn(unconditional_recursion)] on by default foo.rs:1 fn main() { foo.rs:2 let _test = main as usize; foo.rs:3 } foo.rs:2:17: 2:21 note: recursive call site foo.rs:2 let _test = main as usize; ^~~~ foo.rs:1:1: 3:2 help: a `loop` may express intention better if this is on purpose "><pre class="notranslate"><code class="notranslate">foo.rs:1:1: 3:2 warning: function cannot return without recurring, #[warn(unconditional_recursion)] on by default foo.rs:1 fn main() { foo.rs:2 let _test = main as usize; foo.rs:3 } foo.rs:2:17: 2:21 note: recursive call site foo.rs:2 let _test = main as usize; ^~~~ foo.rs:1:1: 3:2 help: a `loop` may express intention better if this is on purpose </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/huonw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/huonw">@huonw</a></p>
<p dir="auto">I think the new unconditional_recursion lint has a bug. For example I get a warning for this code:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![allow(unstable)] fn print_type_of&lt;T&gt;(_: &amp;T) -&gt; () { let type_name = unsafe { (*std::intrinsics::get_tydesc::&lt;T&gt;()).name }; println!(&quot;{}&quot;, type_name); } fn main() { print_type_of(&amp;main); }"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>allow<span class="pl-kos">(</span>unstable<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">fn</span> <span class="pl-en">print_type_of</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span>_<span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">T</span><span class="pl-kos">)</span> -&gt; <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> type_name = <span class="pl-k">unsafe</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span><span class="pl-c1">*</span>std<span class="pl-kos">::</span>intrinsics<span class="pl-kos">::</span><span class="pl-en">get_tydesc</span><span class="pl-kos">::</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">name</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, type_name<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">print_type_of</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span>main<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="&lt;anon&gt;:10:1: 12:2 warning: function cannot return without recurring, #[warn(unconditional_recursion)] on by default &lt;anon&gt;:10 fn main() { &lt;anon&gt;:11 print_type_of(&amp;main); &lt;anon&gt;:12 } &lt;anon&gt;:11:20: 11:24 note: recursive call site &lt;anon&gt;:11 print_type_of(&amp;main); ^~~~ &lt;anon&gt;:10:1: 12:2 help: a `loop` may express intention better if this is on purpose &lt;anon&gt;:10 fn main() { &lt;anon&gt;:11 print_type_of(&amp;main); &lt;anon&gt;:12 }"><pre class="notranslate"><code class="notranslate">&lt;anon&gt;:10:1: 12:2 warning: function cannot return without recurring, #[warn(unconditional_recursion)] on by default &lt;anon&gt;:10 fn main() { &lt;anon&gt;:11 print_type_of(&amp;main); &lt;anon&gt;:12 } &lt;anon&gt;:11:20: 11:24 note: recursive call site &lt;anon&gt;:11 print_type_of(&amp;main); ^~~~ &lt;anon&gt;:10:1: 12:2 help: a `loop` may express intention better if this is on purpose &lt;anon&gt;:10 fn main() { &lt;anon&gt;:11 print_type_of(&amp;main); &lt;anon&gt;:12 } </code></pre></div> <p dir="auto">rustc 1.0.0-nightly (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/458a6a2f6e9dfb6ed3d76f14418ff1f2f5e97f86/hovercard" href="https://github.com/rust-lang/rust/commit/458a6a2f6e9dfb6ed3d76f14418ff1f2f5e97f86"><tt>458a6a2</tt></a> 2015-01-25 21:20:37 +0000)</p>
1
<p dir="auto"><strong>What version of Go are you using (go version)?</strong><br> go version go1.4.2 darwin/amd64</p> <p dir="auto"><strong>What operating system and processor architecture are you using?</strong><br> OS X 10.10.3 x86-64</p> <p dir="auto"><strong>What did you do?</strong><br> Set <code class="notranslate">w.WriteHeader(http.StatusInternalServerError)</code> prior to calling <code class="notranslate">http.ServeFile</code></p> <p dir="auto"><strong>What did you expect to see?</strong><br> A <code class="notranslate">HTTP 500</code> status.</p> <p dir="auto"><strong>What did you see instead?</strong><br> A <code class="notranslate">HTTP 200</code> status (and the usual multiple header writes error for messing it up).</p> <p dir="auto">Currently <code class="notranslate">http.ServeFile</code> (which calls <code class="notranslate">http.ServeContent</code> and then eventually <code class="notranslate">http.serveContent</code>) implicitly sets the status code to HTTP 200 as per <a href="http://golang.org/src/net/http/fs.go#L254" rel="nofollow">this line in src/http/fs.go</a></p> <p dir="auto">From what I can see, removing this line would result in <code class="notranslate">net/http</code> implicitly calling <code class="notranslate">w.WriteHeader(StatusOK)</code> as per usual (<a href="http://golang.org/src/net/http/server.go#L990" rel="nofollow">http://golang.org/src/net/http/server.go#L990</a>) - which is the behaviour I'd expected until running into this.</p> <p dir="auto"><strong>Proposed Fix</strong></p> <ul dir="auto"> <li>Modify <code class="notranslate">http.serveContent</code> to only call <code class="notranslate">w.WriteHeader(code)</code> on an error condition. Set <code class="notranslate">var code int</code> (i.e. zero value) instead of defaulting to <code class="notranslate">code := StatusOK</code>.</li> <li>If <code class="notranslate">code</code> still has the zero value before we write to the ResponseWriter, then don't call <code class="notranslate">WriteHeader</code>.</li> <li>This allows the server to either: a) write the header set by the package user or; b) write the implicit <code class="notranslate">http.StatusOK</code> if no header has been set by the time we're ready to write back.</li> </ul> <p dir="auto">Writing <code class="notranslate">StatusOK</code> in serveContent appears to be redundant.</p>
<pre class="notranslate">windows-386 just failed with: <a href="http://build.golang.org/log/3cd6be46a4c7dbe6774fdc891e6417568f4b2b88" rel="nofollow">http://build.golang.org/log/3cd6be46a4c7dbe6774fdc891e6417568f4b2b88</a> # ..\test # go run run.go -- fixedbugs/bug015.go bug015.go:11: missing error "overflow" FAIL fixedbugs\bug015.go 0.004s exit status 1 Which is: // errorcheck // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main func main() { var i33 int64; if i33 == (1&lt;&lt;64) -1 { // ERROR "overflow" } } I see no recent change that would've caused that. Confused. Also not sure how that could be flaky.</pre>
0
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/crawshaw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/crawshaw">@crawshaw</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hyangah/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hyangah">@hyangah</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rakyll/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rakyll">@rakyll</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nigeltao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nigeltao">@nigeltao</a><br> As Go is high-performant system-level programming language, that also gained fast garbage collector in latest 1.5 release, it can become a perfect choice for game development. There are many OpenGL ES 2 emulation layers for Windows, for example Google's open-source <a href="code.google.com/p/angleproject/">ANGLE</a>, <a href="http://developer.amd.com/tools-and-sdks/graphics-development/amd-opengl-es-sdk/" rel="nofollow">AMD library</a> and others. It would be great if <code class="notranslate">golang.org/x/mobile/...</code> packages were implemented for this OS aside of Mac OS X, as it is probably most popular operating system among game developers. This would be big step to Go promotion, because it would enable large gamedev community to easily develop (cross-platform) games in Go.</p> <p dir="auto">Yes, now one can build apps and launch them on real device, but such workflow is unusable because of very long build time (compile -&gt; zip -&gt; sign -&gt; upload to device -&gt; wait until installation complete). All game engines and frameworks use this scheme with desktop emulation.</p> <p dir="auto">I personally ask for this because I chose Go as language for developing my Android game, but after investigation I decided to work on my own OpenGL binding and other mobile code. Hope this will be considered. Thanks</p>
<p dir="auto">The <a href="http://golang.org/x/mobile/app" rel="nofollow">http://golang.org/x/mobile/app</a> package lets you run all-Go apps on desktop darwin and linux with nothing more than the stock Go build. Just <code class="notranslate">go get</code> and you're programming. This is done via cgo: we ask for a window, get an OpenGL context, and map mouse events to touch events.</p> <p dir="auto">We should do the same for Windows. There are a few complications.</p> <p dir="auto">The first is by default there is C compiler for cgo on windows. On both linux and OS X we can rely on the user to install gcc/xcode because the platform makes it easy. By comparison MinGW is an extra, non-obvious step for windows users and VC++ isn't supported (and not necessarily any more obvious).</p> <p dir="auto">The second is there is no OpenGL. Well, there is kinda, as provided by graphics card makers, but support in particular for OpenGL ES 2 and EGL is spotty. Luckily, Chrome has this problem too and maintain an open source project implementing ES 2 and EGL for Windows on top of DirectX: <a href="https://code.google.com/p/angleproject/" rel="nofollow">https://code.google.com/p/angleproject/</a></p> <p dir="auto">I want to avoid importing angleproject directly into the mobile repository as it has several licenses and I want to keep the notices story for the Go repository simple. So we will need another repository that contains a package that links against angleproject and creates the window.</p> <p dir="auto">Is there any way about needing windows users to install a C compiler? Can we ship a binary .dll in a repository that is downloaded with go get? If we do, what about the cgo parts of <code class="notranslate">mobile/app</code> and <code class="notranslate">mobile/gl</code>? Can they be provided by the .dll even if we fetch it as part of a different repository? For <code class="notranslate">mobile/app</code> probably, but <code class="notranslate">mobile/gl</code> is harder.</p>
1
<p dir="auto">I'm working on figuring out how to reproduce this consistently, but thought I would go ahead and get the issue started. All of the scrambled filenames are <code class="notranslate">.less</code> and <code class="notranslate">.css</code> files, which makes me think it has something to do with the <code class="notranslate">atom-compile-less</code> package, which compiles <code class="notranslate">.less</code> files into <code class="notranslate">.css</code> files automatically upon save.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2852617/8149540/44c793c8-127b-11e5-87b4-02be53ff02aa.png"><img src="https://cloud.githubusercontent.com/assets/2852617/8149540/44c793c8-127b-11e5-87b4-02be53ff02aa.png" alt="screenshot" style="max-width: 100%;"></a></p>
<p dir="auto">Most noticeable in the tree view, resizing it, scrolling, etc. makes it redraw and go away.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/671378/5666877/fe272bc4-9717-11e4-9d81-c6f737e03def.png"><img src="https://cloud.githubusercontent.com/assets/671378/5666877/fe272bc4-9717-11e4-9d81-c6f737e03def.png" alt="screen shot 2015-01-07 at 2 47 31 pm" style="max-width: 100%;"></a></p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zcbenz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zcbenz">@zcbenz</a> Any ideas on this one?</p>
1
<h3 dir="auto">Version</h3> <p dir="auto">2.5.15</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsfiddle.net/cckLd9te/950/" rel="nofollow">https://jsfiddle.net/cckLd9te/950/</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">when you type on the input, view not update with the input value</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">view should display input value properly</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">input value changes to an object</p>
<p dir="auto">Hi,</p> <p dir="auto">I'm new to Vue and I'm having a problem when I update the parent data, the child props is not updated.<br> Here's my code. If you click any of the Save button, element[0] of Parent will be updated to new value which is "Test" but if you check Child prop it wasn't updated.</p> <p dir="auto"><code class="notranslate">&lt;div id="app"&gt;</code><br> <code class="notranslate">&lt;div v-for="item in items"&gt;</code><br> <code class="notranslate">Parent:&gt;&gt; {{item}}</code><br> <code class="notranslate">&lt;child :itemvalue="item" v-on:update-row="updateRow"&gt;</code><br> <code class="notranslate">&lt;/div&gt;</code><br> <code class="notranslate">&lt;/div&gt; </code></p> <p dir="auto"><code class="notranslate">&lt;script type="text/x-template" id="child"&gt;</code><br> <code class="notranslate"> &lt;div&gt; </code><br> <code class="notranslate"> &lt;input type="text" :value="itemvalue" &gt;</code><br> <code class="notranslate"> &lt;button @click="$emit('update-row')"&gt; Save &lt;/button&gt;</code><br> <code class="notranslate"> &lt;/div&gt;</code><br> <code class="notranslate">&lt;/script&gt;</code></p> <p dir="auto"><code class="notranslate">&lt;script&gt;</code><br> <code class="notranslate">Vue.component('child', {</code><br> <code class="notranslate">template: '#child',</code><br> <code class="notranslate"> props: ['itemvalue']</code><br> <code class="notranslate">});</code></p> <p dir="auto"><code class="notranslate">new Vue({</code><br> <code class="notranslate"> el: '#app',</code><br> <code class="notranslate"> data: {</code><br> <code class="notranslate"> items: ['a','b', 'c', 'd', 'e','f', 'g']</code><br> <code class="notranslate"> },</code><br> <code class="notranslate"> methods: {</code><br> <code class="notranslate">updateRow : function (index) {</code><br> <code class="notranslate">this.items[0] = 'test'; //Line XXX</code><br> <code class="notranslate">}</code><br> <code class="notranslate"> }</code><br> <code class="notranslate">});</code><br> <code class="notranslate">&lt;/script&gt;</code></p> <p dir="auto">This will work if I update <code class="notranslate">Line XXX</code> to <code class="notranslate">this.items = ['a','b','c'];</code><br> I just want to change 1 element not the whole array.</p>
0
<p dir="auto">Atom es un excelente editor de codigo fuente, pero su sistema de instalacion es bastante obfuscado y no permite una version portable de su programa. Deseo que en las proximas versiones de Atom pueda ser portable.</p>
<p dir="auto">I don’t really stick to one computer to program, and some computers don’t have editors. Currently I use Sublime Text portable, but it would be great if there was a portable version of Atom.</p>
1
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">When running <code class="notranslate">npm audit --json</code> in this branch here <a href="https://github.com/mgdodge/rollup-plugin-vue-treeshake-bug-vue3/tree/vue2">https://github.com/mgdodge/rollup-plugin-vue-treeshake-bug-vue3/tree/vue2</a><br> I observe lodash, which is not a direct dependency but deduped to the top - doesn't get mentioned in any of the <code class="notranslate">via</code> fields and its <code class="notranslate">effects</code> is empty.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &quot;lodash&quot;: { &quot;name&quot;: &quot;lodash&quot;, &quot;severity&quot;: &quot;high&quot;, &quot;via&quot;: [ { &quot;source&quot;: 1673, &quot;name&quot;: &quot;lodash&quot;, &quot;dependency&quot;: &quot;lodash&quot;, &quot;title&quot;: &quot;Command Injection&quot;, &quot;url&quot;: &quot;https://npmjs.com/advisories/1673&quot;, &quot;severity&quot;: &quot;high&quot;, &quot;range&quot;: &quot;&lt;4.17.21&quot; } ], &quot;effects&quot;: [], &quot;range&quot;: &quot;&lt;4.17.21&quot;, &quot;nodes&quot;: [ &quot;node_modules/lodash&quot; ], &quot;fixAvailable&quot;: true },"><pre class="notranslate"> <span class="pl-s">"lodash"</span>: <span class="pl-kos">{</span> <span class="pl-s">"name"</span>: <span class="pl-s">"lodash"</span><span class="pl-kos">,</span> <span class="pl-s">"severity"</span>: <span class="pl-s">"high"</span><span class="pl-kos">,</span> <span class="pl-s">"via"</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-s">"source"</span>: <span class="pl-c1">1673</span><span class="pl-kos">,</span> <span class="pl-s">"name"</span>: <span class="pl-s">"lodash"</span><span class="pl-kos">,</span> <span class="pl-s">"dependency"</span>: <span class="pl-s">"lodash"</span><span class="pl-kos">,</span> <span class="pl-s">"title"</span>: <span class="pl-s">"Command Injection"</span><span class="pl-kos">,</span> <span class="pl-s">"url"</span>: <span class="pl-s">"https://npmjs.com/advisories/1673"</span><span class="pl-kos">,</span> <span class="pl-s">"severity"</span>: <span class="pl-s">"high"</span><span class="pl-kos">,</span> <span class="pl-s">"range"</span>: <span class="pl-s">"&lt;4.17.21"</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"effects"</span>: <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"range"</span>: <span class="pl-s">"&lt;4.17.21"</span><span class="pl-kos">,</span> <span class="pl-s">"nodes"</span>: <span class="pl-kos">[</span> <span class="pl-s">"node_modules/lodash"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"fixAvailable"</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span></pre></div> <p dir="auto">Other dependencies also affected in a similar way. My hypothesis is it has something to do with dedupe.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Produce correct dependency tree information in <code class="notranslate">via</code> fields</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>git clone <a href="mailto:[email protected]">[email protected]</a>:mgdodge/rollup-plugin-vue-treeshake-bug-vue3.git</li> <li>cd rollup-plugin-vue-treeshake-bug-vue3</li> <li>git checkout vue2</li> <li>npm audit --json<br> OR</li> <li>npm audit --json | grep -B4 -A4 lodash</li> </ol> <p dir="auto">exact link to the package-lock.json at the revision used to reproduce <a href="https://github.com/mgdodge/rollup-plugin-vue-treeshake-bug-vue3/blob/031b3e104f4030e4a43d9b6454291017c1e8c5ad/package-lock.json">https://github.com/mgdodge/rollup-plugin-vue-treeshake-bug-vue3/blob/031b3e104f4030e4a43d9b6454291017c1e8c5ad/package-lock.json</a></p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: linux</li> <li>Node: 16.2.0</li> <li>npm: 7.13.0 (latest)</li> </ul>
0
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Your code here import pandas as pd df = pd.DataFrame({'A':[10, 20, 30], 'B': [ 'foo', '3', '4'], 'T': [pd.Timestamp(&quot;12:31:22&quot;)]*3}) def get_B(g): return g.iloc[0][['B']] print df.groupby('A').apply(get_B) # Observed output: B A 10 NaN 20 3.0 30 4.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">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'A'</span>:[<span class="pl-c1">10</span>, <span class="pl-c1">20</span>, <span class="pl-c1">30</span>], <span class="pl-s">'B'</span>: [ <span class="pl-s">'foo'</span>, <span class="pl-s">'3'</span>, <span class="pl-s">'4'</span>], <span class="pl-s">'T'</span>: [<span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">"12:31:22"</span>)]<span class="pl-c1">*</span><span class="pl-c1">3</span>}) <span class="pl-k">def</span> <span class="pl-en">get_B</span>(<span class="pl-s1">g</span>): <span class="pl-k">return</span> <span class="pl-s1">g</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">0</span>][[<span class="pl-s">'B'</span>]] <span class="pl-k">print</span> <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'A'</span>).<span class="pl-en">apply</span>(<span class="pl-s1">get_B</span>) <span class="pl-c"># Observed output:</span> <span class="pl-v">B</span> <span class="pl-v">A</span> <span class="pl-c1">10</span> <span class="pl-v">NaN</span> <span class="pl-c1">20</span> <span class="pl-c1">3.0</span> <span class="pl-c1">30</span> <span class="pl-c1">4.0</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">groupby.apply() does an unexpected conversion from string to float for column 'B' in the example above. The bug is triggered only when both of the following happen:</p> <ol dir="auto"> <li>A column ('B' in the example above) has string values, some of which are parseable as numbers and some which are not.</li> <li>Another column ('T' in the example above) in the dataframe has timestamps.</li> </ol> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" B A 10 foo 20 3 30 4"><pre class="notranslate"><code class="notranslate"> B A 10 foo 20 3 30 4 </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> # Paste the output here pd.show_versions() here <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.13.final.0<br> python-bits: 64<br> OS: Windows<br> OS-release: 7<br> machine: AMD64<br> processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: None<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.19.2<br> nose: 1.3.7<br> pip: 9.0.1<br> setuptools: 27.2.0<br> Cython: 0.25.2<br> numpy: 1.11.3<br> scipy: 0.18.1<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 5.1.0<br> sphinx: 1.5.1<br> patsy: 0.4.1<br> dateutil: 2.6.0<br> pytz: 2016.10<br> blosc: None<br> bottleneck: 1.2.0<br> tables: 3.2.2<br> numexpr: 2.6.1<br> matplotlib: 1.5.1<br> openpyxl: 2.4.0<br> xlrd: 1.0.0<br> xlwt: 1.1.2<br> xlsxwriter: 0.9.6<br> lxml: 3.7.2<br> bs4: 4.5.3<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.1.4<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8.1<br> boto: 2.45.0<br> pandas_datareader: 0.2.1</p> </details>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd foo = pd.DataFrame.from_records( [ (pd.datetime(2016,1,1), 'red', 'dark', 1, '8'), (pd.datetime(2015,1,1), 'green', 'stormy', 2, '9'), (pd.datetime(2014,1,1), 'blue', 'bright', 3, '10'), (pd.datetime(2013,1,1), 'blue', 'calm', 4, 'potato') ], columns=['observation', 'color', 'mood', 'intensity', 'score']) # The type of 'score' changes depending on the types passed through the groupby print(pd.concat( [ foo.dtypes, foo.loc[:,['observation', 'color', 'mood', 'intensity', 'score']].groupby('color').apply(lambda g: g.iloc[0]).dtypes, foo.loc[:,[ 'color', 'mood', 'intensity', 'score']].groupby('color').apply(lambda g: g.iloc[0]).dtypes ], axis=1, keys=['original DF', 'w/ datetime', 'w/o datetime']))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>.<span class="pl-en">from_records</span>( [ (<span class="pl-s1">pd</span>.<span class="pl-en">datetime</span>(<span class="pl-c1">2016</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>), <span class="pl-s">'red'</span>, <span class="pl-s">'dark'</span>, <span class="pl-c1">1</span>, <span class="pl-s">'8'</span>), (<span class="pl-s1">pd</span>.<span class="pl-en">datetime</span>(<span class="pl-c1">2015</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>), <span class="pl-s">'green'</span>, <span class="pl-s">'stormy'</span>, <span class="pl-c1">2</span>, <span class="pl-s">'9'</span>), (<span class="pl-s1">pd</span>.<span class="pl-en">datetime</span>(<span class="pl-c1">2014</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>), <span class="pl-s">'blue'</span>, <span class="pl-s">'bright'</span>, <span class="pl-c1">3</span>, <span class="pl-s">'10'</span>), (<span class="pl-s1">pd</span>.<span class="pl-en">datetime</span>(<span class="pl-c1">2013</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>), <span class="pl-s">'blue'</span>, <span class="pl-s">'calm'</span>, <span class="pl-c1">4</span>, <span class="pl-s">'potato'</span>) ], <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'observation'</span>, <span class="pl-s">'color'</span>, <span class="pl-s">'mood'</span>, <span class="pl-s">'intensity'</span>, <span class="pl-s">'score'</span>]) <span class="pl-c"># The type of 'score' changes depending on the types passed through the groupby</span> <span class="pl-en">print</span>(<span class="pl-s1">pd</span>.<span class="pl-en">concat</span>( [ <span class="pl-s1">foo</span>.<span class="pl-s1">dtypes</span>, <span class="pl-s1">foo</span>.<span class="pl-s1">loc</span>[:,[<span class="pl-s">'observation'</span>, <span class="pl-s">'color'</span>, <span class="pl-s">'mood'</span>, <span class="pl-s">'intensity'</span>, <span class="pl-s">'score'</span>]].<span class="pl-en">groupby</span>(<span class="pl-s">'color'</span>).<span class="pl-en">apply</span>(<span class="pl-k">lambda</span> <span class="pl-s1">g</span>: <span class="pl-s1">g</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">0</span>]).<span class="pl-s1">dtypes</span>, <span class="pl-s1">foo</span>.<span class="pl-s1">loc</span>[:,[ <span class="pl-s">'color'</span>, <span class="pl-s">'mood'</span>, <span class="pl-s">'intensity'</span>, <span class="pl-s">'score'</span>]].<span class="pl-en">groupby</span>(<span class="pl-s">'color'</span>).<span class="pl-en">apply</span>(<span class="pl-k">lambda</span> <span class="pl-s1">g</span>: <span class="pl-s1">g</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">0</span>]).<span class="pl-s1">dtypes</span> ], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">keys</span><span class="pl-c1">=</span>[<span class="pl-s">'original DF'</span>, <span class="pl-s">'w/ datetime'</span>, <span class="pl-s">'w/o datetime'</span>]))</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">When the results of a groupby contain a Series with a datetime and are aggregated back into a DataFrame, columns of object type are cast numeric when possible. When that Series contains no datetime, they are not.</p> <p dir="auto">The presence of a datetime elsewhere in the Series should not have effects on unrelated columns. Doing no implicit type coercion seems (to me) like the safest option (especially in a language where "1" != 1). But regardless, whether or not type coercion is done for a column 'A' should not depend on the types of all the column 'B's.</p> <p dir="auto">Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="182959741" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14423" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14423/hovercard" href="https://github.com/pandas-dev/pandas/issues/14423">#14423</a> is a different problem over the same code.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">Current:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" original DF w/ datetime w/o datetime color object object object intensity int64 int64 int64 mood object object object observation datetime64[ns] datetime64[ns] NaN score object int64 object"><pre class="notranslate"><code class="notranslate"> original DF w/ datetime w/o datetime color object object object intensity int64 int64 int64 mood object object object observation datetime64[ns] datetime64[ns] NaN score object int64 object </code></pre></div> <p dir="auto">Expected:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" original DF w/ datetime w/o datetime color object object object intensity int64 int64 int64 mood object object object observation datetime64[ns] datetime64[ns] NaN score object object object"><pre class="notranslate"><code class="notranslate"> original DF w/ datetime w/o datetime color object object object intensity int64 int64 int64 mood object object object observation datetime64[ns] datetime64[ns] NaN score object object object </code></pre></div> <p dir="auto"><strong>-or-</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" original DF w/ datetime w/o datetime color object object object intensity int64 int64 int64 mood object object object observation datetime64[ns] datetime64[ns] NaN score object int64 int64"><pre class="notranslate"><code class="notranslate"> original DF w/ datetime w/o datetime color object object object intensity int64 int64 int64 mood object object object observation datetime64[ns] datetime64[ns] NaN score object int64 int64 </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.4.3.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-101-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 <p dir="auto">pandas: 0.19.1<br> nose: 1.3.1<br> pip: 1.5.4<br> setuptools: 3.3<br> Cython: 0.24.1<br> numpy: 1.11.2<br> scipy: 0.18.1<br> statsmodels: None<br> xarray: None<br> IPython: 5.1.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.6.0<br> pytz: 2016.10<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.5.3<br> openpyxl: 2.4.0<br> xlrd: 1.0.0<br> xlwt: None<br> xlsxwriter: None<br> lxml: 3.3.3<br> bs4: 4.2.1<br> html5lib: 0.999<br> httplib2: 0.8<br> apiclient: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: None<br> boto: None<br> pandas_datareader: None</p> </details>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Horizontal pod autoscaling [Skipped][Autoscaling Suite] should scale from 5 pods to 3 pods and from 3 to 1 (scale resource: Memory) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:149 Sep 28 09:06:15.915: timeout waiting 10m0s for pods size to be 3 Horizontal pod autoscaling [Skipped][Autoscaling Suite] should scale from 1 pod to 3 pods (scale resource: CPU) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:42 Sep 28 09:40:07.245: timeout waiting 10m0s for pods size to be 3"><pre class="notranslate"><code class="notranslate">Horizontal pod autoscaling [Skipped][Autoscaling Suite] should scale from 5 pods to 3 pods and from 3 to 1 (scale resource: Memory) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:149 Sep 28 09:06:15.915: timeout waiting 10m0s for pods size to be 3 Horizontal pod autoscaling [Skipped][Autoscaling Suite] should scale from 1 pod to 3 pods (scale resource: CPU) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:42 Sep 28 09:40:07.245: timeout waiting 10m0s for pods size to be 3 </code></pre></div>
<p dir="auto">After <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="107136739" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/14156" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/14156/hovercard" href="https://github.com/kubernetes/kubernetes/pull/14156">#14156</a> was merged, updating of scale sub-resource for (experimental) replication controller stopped working. In affect, the whole horizontal pod autoscaler is not working now. The problem seems to be that experimental scale sub-resource is trying to update experimental replication controller (while it should update the stable one).</p> <p dir="auto">pkg/registry/experimental/controller/etcd/etcd.go:97 return the following error<br> (<a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/registry/experimental/controller/etcd/etcd.go#L97">https://github.com/kubernetes/kubernetes/blob/master/pkg/registry/experimental/controller/etcd/etcd.go#L97</a>):<br> no kind "ReplicationController" is registered for version "experimental/v1alpha1"</p> <p dir="auto">This also cause failure of horizontal pod autoscaler e2e tests.</p>
1
<p dir="auto">I've been trying to get a simple Angular 2 (beta 1) app running with a minified build (using webpack) - with no success. The cause seems to be the mangle option in the UglifyJSPlugin (with mangle: false it works fine but is 260k heavier).</p> <p dir="auto">To reproduce the issue, I have created a minimal version (clone, npm install and then webpack -p to reproduce) <a href="https://github.com/frederik/angular2-webpack-uglify">here</a> and also included the logs and a sample of the uglyfied source.</p> <p dir="auto">I couldn't really see which variables are effected here since errors came up in multiple apps. When I remove ngModel from the view everything goes back to normal. The issues seem to be centered around change detection.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="EXCEPTION: No value accessor for '' in [data.search in e@0:19] EXCEPTION: No value accessor for '' in [data.search in e@0:19] ORIGINAL EXCEPTION: No value accessor for '' ORIGINAL STACKTRACE: Error: No value accessor for '' at new t (http://127.0.0.1:56187/bundle.js:1:12197) at s (http://127.0.0.1:56187/bundle.js:1:26713) at Object.i [as setUpControl] (http://127.0.0.1:56187/bundle.js:1:25991) at t.ngOnChanges (http://127.0.0.1:56187/bundle.js:5:29716) at e.ChangeDetector_e_0.detectChangesInRecordsInternal (viewFactory_e:53:59) at e.detectChangesInRecords (http://127.0.0.1:56187/bundle.js:7:10658) at e.runDetectChanges (http://127.0.0.1:56187/bundle.js:7:10219) at e._detectChangesInViewChildren (http://127.0.0.1:56187/bundle.js:7:12475) at e.runDetectChanges (http://127.0.0.1:56187/bundle.js:7:10329) at e.detectChanges (http://127.0.0.1:56187/bundle.js:7:9902) ERROR CONTEXT: e Live reload enabled."><pre class="notranslate"><code class="notranslate">EXCEPTION: No value accessor for '' in [data.search in e@0:19] EXCEPTION: No value accessor for '' in [data.search in e@0:19] ORIGINAL EXCEPTION: No value accessor for '' ORIGINAL STACKTRACE: Error: No value accessor for '' at new t (http://127.0.0.1:56187/bundle.js:1:12197) at s (http://127.0.0.1:56187/bundle.js:1:26713) at Object.i [as setUpControl] (http://127.0.0.1:56187/bundle.js:1:25991) at t.ngOnChanges (http://127.0.0.1:56187/bundle.js:5:29716) at e.ChangeDetector_e_0.detectChangesInRecordsInternal (viewFactory_e:53:59) at e.detectChangesInRecords (http://127.0.0.1:56187/bundle.js:7:10658) at e.runDetectChanges (http://127.0.0.1:56187/bundle.js:7:10219) at e._detectChangesInViewChildren (http://127.0.0.1:56187/bundle.js:7:12475) at e.runDetectChanges (http://127.0.0.1:56187/bundle.js:7:10329) at e.detectChanges (http://127.0.0.1:56187/bundle.js:7:9902) ERROR CONTEXT: e Live reload enabled. </code></pre></div>
<p dir="auto">When using minified bundles with SystemJS, and a simple snippet like this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;template ngFor #item [ngForOf]=&quot;items&quot; #i=&quot;index&quot;&gt; &lt;li&gt;{{i}}&lt;/li&gt; &lt;li *ngIf=&quot;i % 2 == 0&quot;&gt;number is even&lt;/li&gt; &lt;/template&gt;"><pre class="notranslate"><code class="notranslate"> &lt;template ngFor #item [ngForOf]="items" #i="index"&gt; &lt;li&gt;{{i}}&lt;/li&gt; &lt;li *ngIf="i % 2 == 0"&gt;number is even&lt;/li&gt; &lt;/template&gt; </code></pre></div> <p dir="auto">Will throw</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: this.directive_0_0.ngDoCheck is not a function"><pre class="notranslate"><code class="notranslate">TypeError: this.directive_0_0.ngDoCheck is not a function </code></pre></div> <p dir="auto">This is only reproducible with minified bundles, non-minified work correctly.</p> <p dir="auto">As an example check this <a href="http://plnkr.co/edit/ZWiQqw3nR8xS1MRrpTry?p=preview" rel="nofollow">plnkr</a> (took it from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125250401" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/6304" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/6304/hovercard?comment_id=170200989&amp;comment_type=issue_comment" href="https://github.com/angular/angular/issues/6304#issuecomment-170200989">#6304 (comment)</a>). To reproduce switch between minified and unminified bundles.</p> <p dir="auto">This is also reproducible with Webpack using this line in the config</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" plugins : [ new webpack.optimize.UglifyJsPlugin() ],"><pre class="notranslate"><code class="notranslate"> plugins : [ new webpack.optimize.UglifyJsPlugin() ], </code></pre></div> <p dir="auto">Am I missing something?</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.2.0</li> <li>Operating System / Platform =&gt; Ubuntu 18.04</li> <li>Compiler =&gt; Ubuntu terminal (g++)<br> -Compiled using g++ stitch.cpp -o app pkg-config --cflags --libs opencv "</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">The<a href="https://docs.opencv.org/master/db/deb/tutorial_display_image.html" rel="nofollow"> Image stitching</a> tutorial gives the following error<br><br> <strong>: error: ‘samples’ has not been declared<br> Mat img = imread(samples::findFile(argv[i]));</strong><br> Also when I used the following<br> <strong>using namespace samples;</strong><br> in the code it gives the following error<br> <strong>error: expected namespace-name before ‘;’ token using namespace samples;</strong><br> It looks like the latest version of opencv does not support namespace "samples"<br> It can be corrected by replacing the above line with<br><br> <code class="notranslate">Mat image=imread(argv[1],IMREAD_COLOR);</code></p> <p dir="auto">Can I take up this issue and fix this</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Here is the code from the tutorial<br></p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include &lt;opencv2/core.hpp&gt; #include &lt;opencv2/imgcodecs.hpp&gt; #include &lt;opencv2/highgui.hpp&gt; #include &lt;iostream&gt; using namespace cv; using namespace std; int main( int argc, char** argv ) { String imageName( &quot;HappyFish.jpg&quot; ); // by default if( argc &gt; 1) { imageName = argv[1]; } Mat image; image = imread( samples::findFile( imageName ), IMREAD_COLOR ); // Read the file if( image.empty() ) // Check for invalid input { cout &lt;&lt; &quot;Could not open or find the image&quot; &lt;&lt; std::endl ; return -1; } namedWindow( &quot;Display window&quot;, WINDOW_AUTOSIZE ); // Create a window for display. imshow( &quot;Display window&quot;, image ); // Show our image inside it. waitKey(0); // Wait for a keystroke in the window return 0; }"><pre class="notranslate">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>opencv2/core.hpp<span class="pl-pds">&gt;</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>opencv2/imgcodecs.hpp<span class="pl-pds">&gt;</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>opencv2/highgui.hpp<span class="pl-pds">&gt;</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>iostream<span class="pl-pds">&gt;</span></span> <span class="pl-k">using</span> <span class="pl-k">namespace</span> <span class="pl-en">cv</span><span class="pl-k">;</span> <span class="pl-k">using</span> <span class="pl-k">namespace</span> <span class="pl-en">std</span><span class="pl-k">;</span> <span class="pl-k">int</span> <span class="pl-en">main</span>( <span class="pl-k">int</span> argc, <span class="pl-k">char</span>** argv ) { String <span class="pl-smi">imageName</span>( <span class="pl-s"><span class="pl-pds">"</span>HappyFish.jpg<span class="pl-pds">"</span></span> ); <span class="pl-c"><span class="pl-c">//</span> by default</span> <span class="pl-k">if</span>( argc &gt; <span class="pl-c1">1</span>) { imageName = argv[<span class="pl-c1">1</span>]; } Mat image; image = <span class="pl-c1">imread</span>( <span class="pl-c1">samples::findFile</span>( imageName ), IMREAD_COLOR ); <span class="pl-c"><span class="pl-c">//</span> Read the file</span> <span class="pl-k">if</span>( image.<span class="pl-c1">empty</span>() ) <span class="pl-c"><span class="pl-c">//</span> Check for invalid input</span> { cout &lt;&lt; <span class="pl-s"><span class="pl-pds">"</span>Could not open or find the image<span class="pl-pds">"</span></span> &lt;&lt; std::endl ; <span class="pl-k">return</span> -<span class="pl-c1">1</span>; } <span class="pl-c1">namedWindow</span>( <span class="pl-s"><span class="pl-pds">"</span>Display window<span class="pl-pds">"</span></span>, WINDOW_AUTOSIZE ); <span class="pl-c"><span class="pl-c">//</span> Create a window for display.</span> <span class="pl-c1">imshow</span>( <span class="pl-s"><span class="pl-pds">"</span>Display window<span class="pl-pds">"</span></span>, image ); <span class="pl-c"><span class="pl-c">//</span> Show our image inside it.</span> <span class="pl-c1">waitKey</span>(<span class="pl-c1">0</span>); <span class="pl-c"><span class="pl-c">//</span> Wait for a keystroke in the window</span> <span class="pl-k">return</span> <span class="pl-c1">0</span>; }</pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.3</li> <li>Operating System / Platform =&gt; Ubuntu 16.04 64bit</li> <li>Compiler =&gt; GCC 5.4.0</li> <li>Cuda =&gt; 9.2</li> <li>TBB/MKL =&gt; 2018 Update 3 (2018.3.222)</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto"><code class="notranslate">make VERBOSE=1 install</code> produces the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [ 25%] Linking CXX executable ../../bin/opencv_test_hdf cd /ascldap/users/aparikh/opencv/build/modules/hdf &amp;&amp; /usr/bin/cmake -E cmake_link_script CMakeFiles/opencv_test_hdf.dir/link.txt --verbose=1 /usr/bin/c++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-invalid-offsetof -O3 -DNDEBUG -DNDEBUG -Wl,--gc-sections CMakeFiles/opencv_test_hdf.dir/test/test_main.cpp.o CMakeFiles/opencv_test_hdf.dir/test/test_hdf5.cpp.o -o ../../bin/opencv_test_hdf -L/usr/local/cuda/lib64 ../../lib/libopencv_ts.a ../../lib/libopencv_hdf.so.4.0.0 ../../lib/libopencv_highgui.so.4.0.0 -ldl -lm -lpthread -lrt ../../3rdparty/lib/libippiw.a ../../3rdparty/ippicv/ippicv_lnx/lib/intel64/libippicv.a -lcudart -lnppc -lnppial -lnppicc -lnppicom -lnppidei -lnppif -lnppig -lnppim -lnppist -lnppisu -lnppitc -lnpps -lcublas -lcufft -L/usr/local/cuda/lib64 ../../lib/libopencv_videoio.so.4.0.0 ../../lib/libopencv_imgcodecs.so.4.0.0 ../../lib/libopencv_imgproc.so.4.0.0 ../../lib/libopencv_core.so.4.0.0 ../../lib/libopencv_cudev.so.4.0.0 -Wl,-rpath,/usr/local/cuda/lib64:/ascldap/users/aparikh/opencv/build/lib /usr/bin/ld: warning: libtbb.so.2, needed by ../../lib/libopencv_core.so.4.0.0, not found (try using -rpath or -rpath-link) ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface5::internal::task_base::destroy(tbb::task&amp;)' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::task::note_affinity(unsigned short)' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface7::internal::task_arena_base::internal_current_slot()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long) const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `typeinfo for tbb::task' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::task_group_context::reset()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface7::internal::task_arena_base::internal_terminate()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&amp;) const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::task_group_context::init()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface7::internal::task_arena_base::internal_initialize()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::task_group_context::~task_group_context()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long) const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface7::internal::task_arena_base::internal_execute(tbb::interface7::internal::delegate_base&amp;) const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long) const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)' collect2: error: ld returned 1 exit status modules/hdf/CMakeFiles/opencv_test_hdf.dir/build.make:130: recipe for target 'bin/opencv_test_hdf' failed make[2]: *** [bin/opencv_test_hdf] Error 1 make[2]: Leaving directory '/home/aparikh/opencv/build' CMakeFiles/Makefile2:3617: recipe for target 'modules/hdf/CMakeFiles/opencv_test_hdf.dir/all' failed make[1]: *** [modules/hdf/CMakeFiles/opencv_test_hdf.dir/all] Error 2 make[1]: Leaving directory '/home/aparikh/opencv/build' Makefile:160: recipe for target 'all' failed make: *** [all] Error 2"><pre class="notranslate"><code class="notranslate"> [ 25%] Linking CXX executable ../../bin/opencv_test_hdf cd /ascldap/users/aparikh/opencv/build/modules/hdf &amp;&amp; /usr/bin/cmake -E cmake_link_script CMakeFiles/opencv_test_hdf.dir/link.txt --verbose=1 /usr/bin/c++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-invalid-offsetof -O3 -DNDEBUG -DNDEBUG -Wl,--gc-sections CMakeFiles/opencv_test_hdf.dir/test/test_main.cpp.o CMakeFiles/opencv_test_hdf.dir/test/test_hdf5.cpp.o -o ../../bin/opencv_test_hdf -L/usr/local/cuda/lib64 ../../lib/libopencv_ts.a ../../lib/libopencv_hdf.so.4.0.0 ../../lib/libopencv_highgui.so.4.0.0 -ldl -lm -lpthread -lrt ../../3rdparty/lib/libippiw.a ../../3rdparty/ippicv/ippicv_lnx/lib/intel64/libippicv.a -lcudart -lnppc -lnppial -lnppicc -lnppicom -lnppidei -lnppif -lnppig -lnppim -lnppist -lnppisu -lnppitc -lnpps -lcublas -lcufft -L/usr/local/cuda/lib64 ../../lib/libopencv_videoio.so.4.0.0 ../../lib/libopencv_imgcodecs.so.4.0.0 ../../lib/libopencv_imgproc.so.4.0.0 ../../lib/libopencv_core.so.4.0.0 ../../lib/libopencv_cudev.so.4.0.0 -Wl,-rpath,/usr/local/cuda/lib64:/ascldap/users/aparikh/opencv/build/lib /usr/bin/ld: warning: libtbb.so.2, needed by ../../lib/libopencv_core.so.4.0.0, not found (try using -rpath or -rpath-link) ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface5::internal::task_base::destroy(tbb::task&amp;)' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::task::note_affinity(unsigned short)' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface7::internal::task_arena_base::internal_current_slot()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long) const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `typeinfo for tbb::task' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::task_group_context::reset()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface7::internal::task_arena_base::internal_terminate()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&amp;) const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::task_group_context::init()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface7::internal::task_arena_base::internal_initialize()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::task_group_context::~task_group_context()' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long) const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface7::internal::task_arena_base::internal_execute(tbb::interface7::internal::delegate_base&amp;) const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long) const' ../../lib/libopencv_core.so.4.0.0: undefined reference to `tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)' collect2: error: ld returned 1 exit status modules/hdf/CMakeFiles/opencv_test_hdf.dir/build.make:130: recipe for target 'bin/opencv_test_hdf' failed make[2]: *** [bin/opencv_test_hdf] Error 1 make[2]: Leaving directory '/home/aparikh/opencv/build' CMakeFiles/Makefile2:3617: recipe for target 'modules/hdf/CMakeFiles/opencv_test_hdf.dir/all' failed make[1]: *** [modules/hdf/CMakeFiles/opencv_test_hdf.dir/all] Error 2 make[1]: Leaving directory '/home/aparikh/opencv/build' Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 </code></pre></div> <p dir="auto">Surprisingly, regular <code class="notranslate">make</code> runs fine without any errors. The intel environment variables are set by using <code class="notranslate">source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux</code> in my <code class="notranslate">.bashrc</code>, which is reflected in <code class="notranslate">$LD_LIBRARY_PATH</code> and <code class="notranslate">$LIBRARY_PATH</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ echo $LIBRARY_PATH /opt/intel/compilers_and_libraries_2018.3.222/linux/ipp/lib/intel64:/opt/intel/compilers_and_libraries_2018.3.222/linux/compiler/lib/intel64_lin:/opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64_lin:/opt/intel/compilers_and_libraries_2018.3.222/linux/tbb/lib/intel64/gcc4.7:/opt/intel/compilers_and_libraries_2018.3.222/linux/tbb/lib/intel64/gcc4.7 $ echo $LD_LIBRARY_PATH /opt/intel/compilers_and_libraries_2018.3.222/linux/compiler/lib/intel64:/opt/intel/compilers_and_libraries_2018.3.222/linux/compiler/lib/intel64_lin:/opt/intel/compilers_and_libraries_2018.3.222/linux/ipp/lib/intel64:/opt/intel/compilers_and_libraries_2018.3.222/linux/compiler/lib/intel64_lin:/opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64_lin:/opt/intel/compilers_and_libraries_2018.3.222/linux/tbb/lib/intel64/gcc4.7:/opt/intel/compilers_and_libraries_2018.3.222/linux/tbb/lib/intel64/gcc4.7"><pre class="notranslate"><code class="notranslate">$ echo $LIBRARY_PATH /opt/intel/compilers_and_libraries_2018.3.222/linux/ipp/lib/intel64:/opt/intel/compilers_and_libraries_2018.3.222/linux/compiler/lib/intel64_lin:/opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64_lin:/opt/intel/compilers_and_libraries_2018.3.222/linux/tbb/lib/intel64/gcc4.7:/opt/intel/compilers_and_libraries_2018.3.222/linux/tbb/lib/intel64/gcc4.7 $ echo $LD_LIBRARY_PATH /opt/intel/compilers_and_libraries_2018.3.222/linux/compiler/lib/intel64:/opt/intel/compilers_and_libraries_2018.3.222/linux/compiler/lib/intel64_lin:/opt/intel/compilers_and_libraries_2018.3.222/linux/ipp/lib/intel64:/opt/intel/compilers_and_libraries_2018.3.222/linux/compiler/lib/intel64_lin:/opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64_lin:/opt/intel/compilers_and_libraries_2018.3.222/linux/tbb/lib/intel64/gcc4.7:/opt/intel/compilers_and_libraries_2018.3.222/linux/tbb/lib/intel64/gcc4.7 </code></pre></div> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">My cmake config:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="General configuration for OpenCV 4.0.0-pre ===================================== Version control: 3.4.3-264-gb01f638-dirty Extra modules: Location (extra): /home/aparikh/opencv_contrib/modules Version control (extra): 3.4.3 Platform: Timestamp: 2018-09-11T00:41:46Z Host: Linux 4.15.0-33-generic x86_64 CMake: 3.5.1 CMake generator: Unix Makefiles CMake build tool: /usr/bin/make Configuration: Release CPU/HW features: Baseline: SSE SSE2 SSE3 requested: SSE3 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX SSE4_1 (4 files): + SSSE3 SSE4_1 SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (6 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX AVX2 (10 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX512_SKX (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX C/C++: Built as dynamic libs?: YES C++ Compiler: /usr/bin/c++ (ver 5.4.0) C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG C Compiler: /usr/bin/cc C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG Linker flags (Release): Linker flags (Debug): ccache: NO Precompiled headers: YES Extra dependencies: dl m pthread rt cudart nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda/lib64 3rdparty dependencies: OpenCV modules: To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dpm face features2d flann fuzzy hdf hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto Disabled: js python2 python_bindings_generator world Disabled by dependency: - Unavailable: cnn_3dobj cvv freetype java matlab ovis python3 sfm viz Applications: tests perf_tests apps Documentation: NO Non-free algorithms: YES GUI: GTK+: NO VTK support: NO Media I/O: ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8) JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80) WEBP: /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x0202) PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.20) TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.0.6) JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1) OpenEXR: build (ver 1.7.1) HDR: YES SUNRASTER: YES PXM: YES PFM: YES Video I/O: DC1394: NO FFMPEG: YES avcodec: YES (ver 56.60.100) avformat: YES (ver 56.40.101) avutil: YES (ver 54.31.100) swscale: YES (ver 3.1.101) avresample: NO GStreamer: NO libv4l/libv4l2: NO v4l/v4l2: linux/videodev2.h Parallel framework: TBB (ver 2018.0 interface 10004) Trace: YES (with Intel ITT) Other third-party libraries: Intel IPP: 2017.0.3 [2017.0.3] at: /ascldap/users/aparikh/opencv/build/3rdparty/ippicv/ippicv_lnx Intel IPP IW: sources (2017.0.3) at: /ascldap/users/aparikh/opencv/build/3rdparty/ippicv/ippiw_lnx Lapack: YES (/opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_intel_lp64.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_sequential.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_core.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_intel_lp64.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_sequential.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_core.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_intel_lp64.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_sequential.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_core.so -lpthread -lm -ldl) Eigen: YES (ver 3.3.90) Custom HAL: NO Protobuf: build (3.5.1) NVIDIA CUDA: YES (ver 9.2, CUFFT CUBLAS) NVIDIA GPU arch: 61 NVIDIA PTX archs: OpenCL: YES (no extra features) Include path: /ascldap/users/aparikh/opencv/3rdparty/include/opencl/1.2 Link libraries: Dynamic load Python (for build): /usr/bin/python3 Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO Matlab: NO Install to: /usr/local -----------------------------------------------------------------"><pre class="notranslate"><code class="notranslate">General configuration for OpenCV 4.0.0-pre ===================================== Version control: 3.4.3-264-gb01f638-dirty Extra modules: Location (extra): /home/aparikh/opencv_contrib/modules Version control (extra): 3.4.3 Platform: Timestamp: 2018-09-11T00:41:46Z Host: Linux 4.15.0-33-generic x86_64 CMake: 3.5.1 CMake generator: Unix Makefiles CMake build tool: /usr/bin/make Configuration: Release CPU/HW features: Baseline: SSE SSE2 SSE3 requested: SSE3 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX SSE4_1 (4 files): + SSSE3 SSE4_1 SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (6 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX AVX2 (10 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX512_SKX (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX C/C++: Built as dynamic libs?: YES C++ Compiler: /usr/bin/c++ (ver 5.4.0) C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG C Compiler: /usr/bin/cc C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG Linker flags (Release): Linker flags (Debug): ccache: NO Precompiled headers: YES Extra dependencies: dl m pthread rt cudart nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda/lib64 3rdparty dependencies: OpenCV modules: To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dpm face features2d flann fuzzy hdf hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto Disabled: js python2 python_bindings_generator world Disabled by dependency: - Unavailable: cnn_3dobj cvv freetype java matlab ovis python3 sfm viz Applications: tests perf_tests apps Documentation: NO Non-free algorithms: YES GUI: GTK+: NO VTK support: NO Media I/O: ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8) JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80) WEBP: /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x0202) PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.20) TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.0.6) JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1) OpenEXR: build (ver 1.7.1) HDR: YES SUNRASTER: YES PXM: YES PFM: YES Video I/O: DC1394: NO FFMPEG: YES avcodec: YES (ver 56.60.100) avformat: YES (ver 56.40.101) avutil: YES (ver 54.31.100) swscale: YES (ver 3.1.101) avresample: NO GStreamer: NO libv4l/libv4l2: NO v4l/v4l2: linux/videodev2.h Parallel framework: TBB (ver 2018.0 interface 10004) Trace: YES (with Intel ITT) Other third-party libraries: Intel IPP: 2017.0.3 [2017.0.3] at: /ascldap/users/aparikh/opencv/build/3rdparty/ippicv/ippicv_lnx Intel IPP IW: sources (2017.0.3) at: /ascldap/users/aparikh/opencv/build/3rdparty/ippicv/ippiw_lnx Lapack: YES (/opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_intel_lp64.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_sequential.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_core.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_intel_lp64.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_sequential.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_core.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_intel_lp64.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_sequential.so /opt/intel/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64/libmkl_core.so -lpthread -lm -ldl) Eigen: YES (ver 3.3.90) Custom HAL: NO Protobuf: build (3.5.1) NVIDIA CUDA: YES (ver 9.2, CUFFT CUBLAS) NVIDIA GPU arch: 61 NVIDIA PTX archs: OpenCL: YES (no extra features) Include path: /ascldap/users/aparikh/opencv/3rdparty/include/opencl/1.2 Link libraries: Dynamic load Python (for build): /usr/bin/python3 Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO Matlab: NO Install to: /usr/local ----------------------------------------------------------------- </code></pre></div>
0
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.0</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// A self-contained demonstration of the problem follows... class A { constructor(a: number, b: boolean) { } foo() { } bar: boolean; } function doIt(a: A) { if (a instanceof A) { } } doIt(new A(1, true)); doIt({ foo() { }, bar: false }); // expect type check error"><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span> <span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">a</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">b</span>: <span class="pl-smi">boolean</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-c1">bar</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">doIt</span><span class="pl-kos">(</span><span class="pl-s1">a</span>: <span class="pl-smi">A</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">a</span> <span class="pl-k">instanceof</span> <span class="pl-smi">A</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-en">doIt</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">A</span><span class="pl-kos">(</span><span class="pl-c1">1</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-kos">;</span> <span class="pl-en">doIt</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">bar</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// expect type check error</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">The second to <code class="notranslate">doIt</code> should raise a type check error.</p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">It does not. I assume it was a conscious decision and I wonder why? This break assumptions the <code class="notranslate">instanceof</code> operator makes and has led to subtle bugs on our side.</p>
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.x and nightly</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class C1 { item: string } class C2 { item: string[] } class C3 { item: string } function Foo(x: C1 | C2 | C3): string { if (x instanceof C1) return x.item; else if (x instanceof C2) return x.item[0]; else if (x instanceof C3) return x.item; // Error property item does not exist on C2 }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">C1</span> <span class="pl-kos">{</span> <span class="pl-c1">item</span>: <span class="pl-smi">string</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">C2</span> <span class="pl-kos">{</span> <span class="pl-c1">item</span>: <span class="pl-smi">string</span><span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">C3</span> <span class="pl-kos">{</span> <span class="pl-c1">item</span>: <span class="pl-smi">string</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-smi">Foo</span><span class="pl-kos">(</span><span class="pl-s1">x</span>: <span class="pl-smi">C1</span> <span class="pl-c1">|</span> <span class="pl-smi">C2</span> <span class="pl-c1">|</span> <span class="pl-smi">C3</span><span class="pl-kos">)</span>: <span class="pl-smi">string</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</span> <span class="pl-smi">C1</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">item</span><span class="pl-kos">;</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</span> <span class="pl-smi">C2</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">item</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</span> <span class="pl-smi">C3</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">item</span><span class="pl-kos">;</span> <span class="pl-c">// Error property item does not exist on C2</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> Code should compile</p> <p dir="auto"><strong>Actual behavior:</strong><br> Code has an error as shown</p> <h1 dir="auto">More</h1> <p dir="auto">The following works i.e. if <code class="notranslate">C1</code> and <code class="notranslate">C3</code> differ in structural compatibility:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class C1 { item: string } class C2 { item: string[] } class C3 { items: string } function Foo(x: C1 | C2 | C3): string { if (x instanceof C1) return x.item; else if (x instanceof C2) return x.item[0]; else if (x instanceof C3) return x.items; // Ok }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">C1</span> <span class="pl-kos">{</span> <span class="pl-c1">item</span>: <span class="pl-smi">string</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">C2</span> <span class="pl-kos">{</span> <span class="pl-c1">item</span>: <span class="pl-smi">string</span><span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">C3</span> <span class="pl-kos">{</span> <span class="pl-c1">items</span>: <span class="pl-smi">string</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-smi">Foo</span><span class="pl-kos">(</span><span class="pl-s1">x</span>: <span class="pl-smi">C1</span> <span class="pl-c1">|</span> <span class="pl-smi">C2</span> <span class="pl-c1">|</span> <span class="pl-smi">C3</span><span class="pl-kos">)</span>: <span class="pl-smi">string</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</span> <span class="pl-smi">C1</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">item</span><span class="pl-kos">;</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</span> <span class="pl-smi">C2</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">item</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</span> <span class="pl-smi">C3</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">items</span><span class="pl-kos">;</span> <span class="pl-c">// Ok</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><g-emoji class="g-emoji" alias="rose" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f339.png">🌹</g-emoji></p>
1
<p dir="auto">Hello,</p> <p dir="auto">I found out that Atom collects analytic data to improve the program. There is nothing bad about this idea. But I think, it would be a better way to ask the user to Opt-In this analytics.</p> <p dir="auto">Currently, the user has to disable the metrics plugin (= do an Opt-Out), but I think there should be at least a clear information at the first run to tell the user that data is collected and if he/ she wants to allow the collection of this data.</p> <p dir="auto">Otherwise, this situation could cause maybe sooner or later problems in countries with stricter data privacy laws, e. g. Germany. And nobody wants that.</p> <p dir="auto">Please correct me if I just over read an info about this topic or this issue is a duplicate.</p> <p dir="auto">Kind regards<br> squarerootfury</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/fd1612d70d3c0def3e66aca98c6ecb6622145678248529a9063c98b14b040cb4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3539372f3938333033392f61343135623132322d303833612d313165332d386164662d3961313138333536663561312e676966"><img src="https://camo.githubusercontent.com/fd1612d70d3c0def3e66aca98c6ecb6622145678248529a9063c98b14b040cb4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3539372f3938333033392f61343135623132322d303833612d313165332d386164662d3961313138333536663561312e676966" alt="long line deletion" data-animated-image="" data-canonical-src="https://f.cloud.github.com/assets/597/983039/a415b122-083a-11e3-8adf-9a118356f5a1.gif" style="max-width: 100%;"></a></p> <p dir="auto">That's one long line that's been broken up according to something I don't understand, and I'm going to end of line (cmd-rightarrow) and hitting delete.</p> <p dir="auto">If you're wondering, the text is copy/pasted from my friend Sommer Gentry's thesis, which I happen to have on my computer in PDF format.</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <p dir="auto">Feature Idea</p> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">yum module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">2.3</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/halberom/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/halberom">@halberom</a> on 2015-12-10T12:46:34Z<br> version<br> ansible v2, devel</p> <p dir="auto">issue<br> when changing multiple yum repos (e.g. in a common/base role), it can be necessary to clean the cache so yum will refresh and any future actions will get the updated meta.</p> <p dir="auto">current<br> it's necessary to either run a shell/command,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- command: yum clean all"><pre class="notranslate"><code class="notranslate">- command: yum clean all </code></pre></div> <p dir="auto">which currently gives a warning <code class="notranslate">[WARNING]: Consider using yum module rather than running yum</code></p> <p dir="auto">Or put <code class="notranslate">update_cache: yes</code> in at least one yum (present, installed, latest) task after the repo changes. If there isn't such a yum task after repo changes, then we don't get the updates. Which means we'd need to put <code class="notranslate">update_cache: yes</code> elsewhere we use yum - which is likely overkill.</p> <p dir="auto">desired</p> <ul dir="auto"> <li>the ability to use update_cache as a standalone action</li> <li>(optional) a param to <code class="notranslate">clean XYZ</code>.</li> </ul> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121475660" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/2667" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/2667/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/2667">ansible/ansible-modules-core#2667</a></p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <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 = /opt/uss/ansible/config/2.3.1.cfg configured module search path = [u'/usr/share/ansible'] python version = 2.7.5 (default, Oct 11 2015, 17:47:16) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0 config file = /opt/uss/ansible/config/2.3.1.cfg configured module search path = [u'/usr/share/ansible'] python version = 2.7.5 (default, Oct 11 2015, 17:47:16) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <h5 dir="auto">SUMMARY</h5> <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=""><pre class="notranslate"></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <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> <p dir="auto">From the original issue:</p> <p dir="auto">version<br> <code class="notranslate">ansible v2, devel</code></p> <p dir="auto">issue<br> when changing multiple yum repos (e.g. in a common/base role), it can be necessary to clean the cache so yum will refresh and any future actions will get the updated meta.</p> <p dir="auto">current<br> it's necessary to either run a shell/command,</p> <ul dir="auto"> <li>command: yum clean all</li> </ul> <p dir="auto">which currently gives a warning [WARNING]: Consider using yum module rather than running yum</p> <p dir="auto">Or put update_cache: yes in at least one yum (present, installed, latest) task after the repo changes. If there isn't such a yum task after repo changes, then we don't get the updates. Which means we'd need to put update_cache: yes elsewhere we use yum - which is likely overkill.</p> <p dir="auto">desired</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="the ability to use update_cache as a standalone action (optional) a param to `clean XYZ`."><pre class="notranslate"><code class="notranslate">the ability to use update_cache as a standalone action (optional) a param to `clean XYZ`. </code></pre></div> <h3 dir="auto">LINK: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121475660" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/2667" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/2667/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/2667">ansible/ansible-modules-core#2667</a></h3>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt;ver Microsoft Windows [Version 10.0.18362.175] C:\&gt;where wt.exe C:\Users\Roy\AppData\Local\Microsoft\WindowsApps\wt.exe C:\&gt;echo %LocalAppData% LOCALAPPDATA=C:\Users\Roy\AppData\Local"><pre lang="none" class="notranslate"><code class="notranslate">C:\&gt;ver Microsoft Windows [Version 10.0.18362.175] C:\&gt;where wt.exe C:\Users\Roy\AppData\Local\Microsoft\WindowsApps\wt.exe C:\&gt;echo %LocalAppData% LOCALAPPDATA=C:\Users\Roy\AppData\Local </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Setting "CodePage" within the registry doesn't result in the correct code page within the <code class="notranslate">wt</code> terminal window.</p> <p dir="auto">Neither this ...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt;C:\Windows\System32\reg.exe add HKCU\Console\%LocalAppData^%_Microsoft_WindowsApps_wt.exe /v CodePage /t REG_DWORD /d 65001 /f The operation completed successfully."><pre lang="none" class="notranslate"><code class="notranslate">C:\&gt;C:\Windows\System32\reg.exe add HKCU\Console\%LocalAppData^%_Microsoft_WindowsApps_wt.exe /v CodePage /t REG_DWORD /d 65001 /f The operation completed successfully. </code></pre></div> <p dir="auto">nor this ...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt;C:\Windows\System32\reg.exe add HKCU\Console\C:_Users_Roy_AppData_Local_Microsoft_WindowsApps_wt.exe /v CodePage /t REG_DWORD /d 65001 /f The operation completed successfully."><pre lang="none" class="notranslate"><code class="notranslate">C:\&gt;C:\Windows\System32\reg.exe add HKCU\Console\C:_Users_Roy_AppData_Local_Microsoft_WindowsApps_wt.exe /v CodePage /t REG_DWORD /d 65001 /f The operation completed successfully. </code></pre></div> <p dir="auto">result in the correct codepage within the <code class="notranslate">wt</code> terminal window..</p> <h1 dir="auto">Expected behavior</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:&gt;chcp Active code page: 65001"><pre lang="none" class="notranslate"><code class="notranslate">C:&gt;chcp Active code page: 65001 </code></pre></div> <h1 dir="auto">Actual behavior</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt;chcp Active code page: 437"><pre lang="none" class="notranslate"><code class="notranslate">C:\&gt;chcp Active code page: 437 </code></pre></div>
<h1 dir="auto">Environment</h1> <p dir="auto">Platform ServicePack Version VersionString</p> <hr> <p dir="auto">Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0</p> <p dir="auto">Windows Terminal<br> 0.4.2382.0</p> <p dir="auto">Powershell version<br> $PSVersionTable.PSVersion Major Minor Build Revision</p> <hr> <p dir="auto">5 1 18362 145</p> <p dir="auto">Any other software?<br> no</p> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Type a poorly formed Export-Certificate powershell command such as<br> Export-Certificate -Type CERT -FilePath "cert:\LocalMachine\my\blah" -Force</li> <li>Don't supply any details and hit enter when prompted for<br> "Supply values for the following Parameters CERT:</li> <li>Get a great long exception stack trace that you can't read before windows closes as it crashes to desktop ending the WindowsTerminal process.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Get a stack trace, and the terminal doesn't actually close and crash back to desktop.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Closes window and Crashes back to desktop after printing out stack trace.</p>
0
<p dir="auto">Step 0:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14037032/63910158-2b115600-ca58-11e9-9259-984636ce5c0c.png"><img src="https://user-images.githubusercontent.com/14037032/63910158-2b115600-ca58-11e9-9259-984636ce5c0c.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Step 1:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14037032/63910181-3d8b8f80-ca58-11e9-9105-3bfc046a776d.png"><img src="https://user-images.githubusercontent.com/14037032/63910181-3d8b8f80-ca58-11e9-9105-3bfc046a776d.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Step 2 (after Invalid keyboard event):<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14037032/63910234-70ce1e80-ca58-11e9-83b6-65c91ad2a3db.png"><img src="https://user-images.githubusercontent.com/14037032/63910234-70ce1e80-ca58-11e9-83b6-65c91ad2a3db.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Step 3 (click new window, Previous accidental closure):<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14037032/63910283-9ce99f80-ca58-11e9-86e9-fd7876d7e127.png"><img src="https://user-images.githubusercontent.com/14037032/63910283-9ce99f80-ca58-11e9-86e9-fd7876d7e127.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I didn't find the same issues.<br> I know it's not a friendly operation, but I think it's an unexpected problem.</p>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">As a user I want to be able to paste long commands that are spread over multiple lines where the linebreaks are escaped with <code class="notranslate">\</code>. Example below</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common"><pre class="notranslate">sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common</pre></div> <h2 dir="auto">ACTUAL</h2> <p dir="auto">The actual behavior is that terminal tries to execute each line immediately . See example below</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="learn@DESKTOP-4FCRN5Q:~/projects$ sudo apt-get install \ &gt; Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. learn@DESKTOP-4FCRN5Q:~/projects$ apt-transport-https \ &gt; apt-transport-https: command not found learn@DESKTOP-4FCRN5Q:~/projects$ ca-certificates \ &gt; ca-certificates: command not found learn@DESKTOP-4FCRN5Q:~/projects$ curl \ &gt; curl: try 'curl --help' or 'curl --manual' for more information learn@DESKTOP-4FCRN5Q:~/projects$ gnupg-agent \ &gt; gnupg-agent: command not found"><pre class="notranslate"><code class="notranslate">learn@DESKTOP-4FCRN5Q:~/projects$ sudo apt-get install \ &gt; Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. learn@DESKTOP-4FCRN5Q:~/projects$ apt-transport-https \ &gt; apt-transport-https: command not found learn@DESKTOP-4FCRN5Q:~/projects$ ca-certificates \ &gt; ca-certificates: command not found learn@DESKTOP-4FCRN5Q:~/projects$ curl \ &gt; curl: try 'curl --help' or 'curl --manual' for more information learn@DESKTOP-4FCRN5Q:~/projects$ gnupg-agent \ &gt; gnupg-agent: command not found </code></pre></div> <h2 dir="auto">EXPECTED</h2> <p dir="auto">The multiline command from above example is treated as on command and after being paste waits for the user to press ENTER before it is executed.</p> <blockquote> <p dir="auto">NOTE: The Ubuntu WSL is a good example of how it should behave correctly<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/38438046/68070038-c11f7080-fd68-11e9-8966-0b0623ecc226.png"><img src="https://user-images.githubusercontent.com/38438046/68070038-c11f7080-fd68-11e9-8966-0b0623ecc226.png" alt="image" style="max-width: 100%;"></a></p> </blockquote>
0
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.165.0<br> <strong>System</strong>: Mac OS X 10.10.1<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: spawn gofmt ENOENT</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85 Error: spawn gofmt ENOENT at exports._errnoException (util.js:742:11) at Process.ChildProcess._handle.onexit (child_process.js:1051:32) at child_process.js:1142:20 at process._tickCallback (node.js:378:11) "><pre class="notranslate"><code class="notranslate">At events.js:85 Error: spawn gofmt ENOENT at exports._errnoException (util.js:742:11) at Process.ChildProcess._handle.onexit (child_process.js:1051:32) at child_process.js:1142:20 at process._tickCallback (node.js:378:11) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 2x -4:34.2 core:save (input.hidden-input) 3x -3:03.9 core:backspace (input.hidden-input) 2x -3:02.5 core:save (input.hidden-input) -2:40.0 core:confirm (input.hidden-input) 8x -2:21.9 core:backspace (input.hidden-input) -2:19.8 core:confirm (input.hidden-input) 2x -1:19.6 core:backspace (input.hidden-input) -1:18.0 core:confirm (input.hidden-input) -0:00.0 core:save (input.hidden-input)"><pre class="notranslate"><code class="notranslate"> 2x -4:34.2 core:save (input.hidden-input) 3x -3:03.9 core:backspace (input.hidden-input) 2x -3:02.5 core:save (input.hidden-input) -2:40.0 core:confirm (input.hidden-input) 8x -2:21.9 core:backspace (input.hidden-input) -2:19.8 core:confirm (input.hidden-input) 2x -1:19.6 core:backspace (input.hidden-input) -1:18.0 core:confirm (input.hidden-input) -0:00.0 core:save (input.hidden-input) </code></pre></div> <h3 dir="auto">Config</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: {}, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;fontSize&quot;: 14 } }"><pre class="notranslate"><code class="notranslate">{ "core": {}, "editor": { "invisibles": {}, "fontSize": 14 } } </code></pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User go-format, v1.0.7 go-plus, v3.0.13 gofmt, v0.2.0 linter-golint, v0.2.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> go<span class="pl-k">-</span>format, v1.<span class="pl-ii">0</span>.<span class="pl-ii">7</span> go<span class="pl-k">-</span>plus, v3.<span class="pl-ii">0</span>.<span class="pl-ii">13</span> gofmt, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>golint, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">Hi. I just install go-plus and try to edit file which is created by command in terminal so when I click save I get the exception. Here is the step to reproduce this bug.</p> <ol dir="auto"> <li>Edit file.go</li> <li>Command+s then I get this exception.</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.165.0<br> <strong>System</strong>: Mac OS X 10.10.1<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: spawn gofmt ENOENT</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85 Error: spawn gofmt ENOENT at exports._errnoException (util.js:742:11) at Process.ChildProcess._handle.onexit (child_process.js:1051:32) at child_process.js:1142:20 at process._tickCallback (node.js:378:11) "><pre class="notranslate"><code class="notranslate">At events.js:85 Error: spawn gofmt ENOENT at exports._errnoException (util.js:742:11) at Process.ChildProcess._handle.onexit (child_process.js:1051:32) at child_process.js:1142:20 at process._tickCallback (node.js:378:11) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 2x -1:23.9 tree-view:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -0:24.7 golang:goinfo (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -0:16.6 editor:newline (input.hidden-input) 2x -0:07.9 core:move-right (input.hidden-input) -0:00.0 core:save (input.hidden-input)"><pre class="notranslate"><code class="notranslate"> 2x -1:23.9 tree-view:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -0:24.7 golang:goinfo (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -0:16.6 editor:newline (input.hidden-input) 2x -0:07.9 core:move-right (input.hidden-input) -0:00.0 core:save (input.hidden-input) </code></pre></div> <h3 dir="auto">Config</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;editor&quot;: { &quot;fontSize&quot;: 12 } }"><pre class="notranslate"><code class="notranslate">{ "editor": { "fontSize": 12 } } </code></pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User atom-beautify, v0.17.2 autocomplete-plus, v1.0.0 go-plus, v3.0.11 gofmt, v0.2.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> atom<span class="pl-k">-</span>beautify, v0.<span class="pl-ii">17</span>.<span class="pl-ii">2</span> autocomplete<span class="pl-k">-</span>plus, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> go<span class="pl-k">-</span>plus, v3.<span class="pl-ii">0</span>.<span class="pl-ii">11</span> gofmt, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2639200/3579876/adf4e840-0bca-11e4-84da-3e4192ec6d22.png"><img src="https://cloud.githubusercontent.com/assets/2639200/3579876/adf4e840-0bca-11e4-84da-3e4192ec6d22.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/28033c92148abeb57dd81e83fa9c3abdcad96f665486b686a0a46ed30becaa55/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313738392f323334363535322f37643135383935632d613534332d313165332d393837642d3633636263343436373837612e706e67"><img src="https://camo.githubusercontent.com/28033c92148abeb57dd81e83fa9c3abdcad96f665486b686a0a46ed30becaa55/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313738392f323334363535322f37643135383935632d613534332d313165332d393837642d3633636263343436373837612e706e67" alt="screen shot 2014-03-06 at 8 23 54 am" data-canonical-src="https://f.cloud.github.com/assets/1789/2346552/7d15895c-a543-11e3-987d-63cbc446787a.png" style="max-width: 100%;"></a></p> <p dir="auto">Check it out. Also, when I started typing on this line it mis-aligned the scroll position of the editor permanently.</p>
1
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I am trying to write an application which has the same navigation drawer in all the activities including the one's present in the navigation drawer. Whenever I try to open an activity from the navigation drawer of the same activity, I get the error</p> <h4 dir="auto">main.dart code</h4> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="final GlobalKey&lt;ScaffoldState&gt; _scaffoldState = new GlobalKey&lt;ScaffoldState&gt;(); void main() =&gt; runApp(new MaterialApp( home: new StudentList(), routes: &lt;String, WidgetBuilder&gt;{ 'parentProfile' : (BuildContext context) =&gt; new ParentProfile(), }, debugShowCheckedModeBanner: false, ));"><pre class="notranslate"><span class="pl-k">final</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">ScaffoldState</span>&gt; _scaffoldState <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">ScaffoldState</span>&gt;(); <span class="pl-k">void</span> <span class="pl-en">main</span>() <span class="pl-k">=&gt;</span> <span class="pl-en">runApp</span>(<span class="pl-k">new</span> <span class="pl-c1">MaterialApp</span>( home<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">StudentList</span>(), routes<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">String</span>, <span class="pl-c1">WidgetBuilder</span><span class="pl-k">&gt;</span>{ <span class="pl-s">'parentProfile'</span> <span class="pl-k">:</span> (<span class="pl-c1">BuildContext</span> context) <span class="pl-k">=&gt;</span> <span class="pl-k">new</span> <span class="pl-c1">ParentProfile</span>(), }, debugShowCheckedModeBanner<span class="pl-k">:</span> <span class="pl-c1">false</span>, ));</pre></div> <h4 dir="auto">student_list.dart code</h4> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="final GlobalKey&lt;ScaffoldState&gt; _scaffoldState = new GlobalKey&lt;ScaffoldState&gt;(); class StudentList extends StatelessWidget { @override Widget build(BuildContext context) { return new Scaffold( drawer: new Navigation(), key: _scaffoldState, appBar: new AppBar( title: new Text('Student List'), ), body: new ListView( children: _constructList(), ) ); } }"><pre class="notranslate"><span class="pl-k">final</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">ScaffoldState</span>&gt; _scaffoldState <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">ScaffoldState</span>&gt;(); <span class="pl-k">class</span> <span class="pl-c1">StudentList</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Scaffold</span>( drawer<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Navigation</span>(), key<span class="pl-k">:</span> _scaffoldState, appBar<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">AppBar</span>( title<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Student List'</span>), ), body<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">ListView</span>( children<span class="pl-k">:</span> <span class="pl-en">_constructList</span>(), ) ); } }</pre></div> <h4 dir="auto">parent_profile.dart code</h4> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="final GlobalKey&lt;ScaffoldState&gt; _scaffoldState = new GlobalKey&lt;ScaffoldState&gt;(); class ParentProfile extends StatelessWidget{ @override Widget build(BuildContext context) { return new Scaffold( drawer: new Navigation(), key: _scaffoldState, appBar: new AppBar( title: new Text('Parent Profile'), ), ); } }"><pre class="notranslate"><span class="pl-k">final</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">ScaffoldState</span>&gt; _scaffoldState <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">ScaffoldState</span>&gt;(); <span class="pl-k">class</span> <span class="pl-c1">ParentProfile</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span>{ <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Scaffold</span>( drawer<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Navigation</span>(), key<span class="pl-k">:</span> _scaffoldState, appBar<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">AppBar</span>( title<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Parent Profile'</span>), ), ); } }</pre></div> <h4 dir="auto">nav_drawer.dart code</h4> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart'; class Navigation extends StatelessWidget { @override Widget build(BuildContext context) { return new Drawer( child: new ListView( children: &lt;Widget&gt;[ new DrawerHeader(decoration: new BoxDecoration(color: Colors.indigo), child: new Container(alignment: new Alignment(0.0, 1.0), child: new Text('Pupil Watch',textAlign: TextAlign.center, style: new TextStyle(fontSize: 28.0, color: Colors.white), ), ), ), new ListTile( onTap: () {Navigator.of(context).popAndPushNamed('parentProfile');}, title: new Text(&quot;Parent's Profile&quot;, style: new TextStyle(fontSize: 18.0),)), ], ), ); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>; <span class="pl-k">class</span> <span class="pl-c1">Navigation</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Drawer</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">ListView</span>( children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">DrawerHeader</span>(decoration<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">BoxDecoration</span>(color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.indigo), child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>(alignment<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Alignment</span>(<span class="pl-c1">0.0</span>, <span class="pl-c1">1.0</span>), child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Pupil Watch'</span>,textAlign<span class="pl-k">:</span> <span class="pl-c1">TextAlign</span>.center, style<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TextStyle</span>(fontSize<span class="pl-k">:</span> <span class="pl-c1">28.0</span>, color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.white), ), ), ), <span class="pl-k">new</span> <span class="pl-c1">ListTile</span>( onTap<span class="pl-k">:</span> () {<span class="pl-c1">Navigator</span>.<span class="pl-en">of</span>(context).<span class="pl-en">popAndPushNamed</span>(<span class="pl-s">'parentProfile'</span>);}, title<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">"Parent's Profile"</span>, style<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TextStyle</span>(fontSize<span class="pl-k">:</span> <span class="pl-c1">18.0</span>),)), ], ), ); } }</pre></div> <ol dir="auto"> <li>On opening the app it opens with a listview with a navigation drawer.</li> <li>Open the navigation view and open parent profile</li> <li>This opens the Parent profile activity with a navigation drawer</li> <li>Again open the drawer and click the parent profile</li> <li>This causes the issue and opens the parent profile again but when we click back button results in a black screen</li> <li>Need to click back button again to go to the student list activity</li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25506588/38777274-e7865464-40c2-11e8-9721-9198d8bcd1c0.png"><img src="https://user-images.githubusercontent.com/25506588/38777274-e7865464-40c2-11e8-9721-9198d8bcd1c0.png" alt="screenshot_1523786679" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25506588/38777278-ef461fb8-40c2-11e8-835b-8370e9e3635b.png"><img src="https://user-images.githubusercontent.com/25506588/38777278-ef461fb8-40c2-11e8-835b-8370e9e3635b.png" alt="screenshot_1523786699" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25506588/38777282-f35c2e12-40c2-11e8-98c6-64af6620b617.png"><img src="https://user-images.githubusercontent.com/25506588/38777282-f35c2e12-40c2-11e8-98c6-64af6620b617.png" alt="screenshot_1523786713" style="max-width: 100%;"></a></p> <h2 dir="auto">Logs</h2> <h3 dir="auto">Flutter Run Output</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with &quot;--enable-software-rendering&quot;. Launching lib/main.dart on Android SDK built for x86 in debug mode... Initializing gradle... 1.0s Resolving dependencies... 1.3s Running 'gradlew assembleDebug'... 5.8s Built build\app\outputs\apk\debug\app-debug.apk (30.7MB). I/FlutterActivityDelegate( 9262): onResume setting current activity to this Syncing files to device Android SDK built for x86... 2.6s 🔥 To hot reload your app on the fly, press &quot;r&quot;. To restart the app entirely, press &quot;R&quot;. An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:8104/ For a more detailed help message, press &quot;h&quot;. To quit, press &quot;q&quot;. I/flutter ( 9262): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ I/flutter ( 9262): The following assertion was thrown building FocusScope-[GlobalKey#5e679](dirty, state: I/flutter ( 9262): _FocusScopeState#b92c9): I/flutter ( 9262): 'package:flutter/src/widgets/focus_manager.dart': Failed assertion: line 315 pos 12: 'child._parent I/flutter ( 9262): == null || child._parent == this': is not true. I/flutter ( 9262): I/flutter ( 9262): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter ( 9262): more information in this error message to help you determine and fix the underlying cause. I/flutter ( 9262): In either case, please report this assertion by filing a bug on GitHub: I/flutter ( 9262): https://github.com/flutter/flutter/issues/new I/flutter ( 9262): I/flutter ( 9262): When the exception was thrown, this was the stack: I/flutter ( 9262): #2 FocusScopeNode.setFirstFocus (package:flutter/src/widgets/focus_manager.dart) I/flutter ( 9262): #3 FocusScopeNode.reparentScopeIfNeeded (package:flutter/src/widgets/focus_manager.dart:338:7) I/flutter ( 9262): #4 _FocusScopeState.build (package:flutter/src/widgets/focus_scope.dart:106:28) I/flutter ( 9262): #5 StatefulElement.build (package:flutter/src/widgets/framework.dart:3713:27) I/flutter ( 9262): #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3625:15) I/flutter ( 9262): #7 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #8 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #9 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #10 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #11 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #12 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #13 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #14 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #15 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #16 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4362:32) I/flutter ( 9262): #17 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4752:17) I/flutter ( 9262): #18 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #19 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #21 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #23 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #24 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #25 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #26 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #27 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #28 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #29 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5) I/flutter ( 9262): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #31 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #32 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #33 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #35 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #36 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #37 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #41 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #43 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #44 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #45 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #46 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #47 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4362:32) I/flutter ( 9262): #48 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4752:17) I/flutter ( 9262): #49 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #51 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #52 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #54 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #55 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #56 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #58 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #59 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #60 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #62 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #63 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #64 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #65 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #66 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5) I/flutter ( 9262): #67 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #68 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #72 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #75 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #76 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #79 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #80 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #83 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #84 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #85 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #87 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #88 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #89 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #90 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2883:38) I/flutter ( 9262): #91 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #92 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #93 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #94 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #95 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #96 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #97 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #98 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #99 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #100 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #101 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #102 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #103 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #104 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #105 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #106 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #107 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #108 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #109 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #110 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #111 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #112 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #113 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #114 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #115 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #116 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #117 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #118 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #119 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 9262): #120 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #121 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #122 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #123 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #124 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #125 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #126 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #127 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #128 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #129 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #130 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #131 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #132 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 9262): #133 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #134 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #135 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #136 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #137 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #138 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #139 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #140 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #141 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #142 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #143 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #144 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #145 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #146 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #147 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #148 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #149 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #150 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #151 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 9262): #152 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #153 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #154 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #155 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #156 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #157 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #158 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #159 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #160 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #161 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #162 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #163 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #164 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #165 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #166 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #167 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #168 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #169 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #170 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #171 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #172 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #173 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 9262): #174 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #175 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #176 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #177 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #178 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #179 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #180 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 9262): #181 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #182 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #183 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #184 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4420:32) I/flutter ( 9262): #185 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4752:17) I/flutter ( 9262): #186 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #187 _TheatreElement.update (package:flutter/src/widgets/overlay.dart:507:16) I/flutter ( 9262): #188 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #189 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #190 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #191 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #192 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #193 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #194 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #195 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #196 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #197 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #198 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #199 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #200 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #201 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #202 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #203 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #204 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #205 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #206 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #207 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #208 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #209 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2225:33) I/flutter ( 9262): #210 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:621:20) I/flutter ( 9262): #211 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter ( 9262): #212 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter ( 9262): #213 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter ( 9262): #214 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5) I/flutter ( 9262): #215 _invoke (dart:ui/hooks.dart:120:13) I/flutter ( 9262): #216 _drawFrame (dart:ui/hooks.dart:109:3) I/flutter ( 9262): (elided 2 frames from class _AssertionError) I/flutter ( 9262): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter ( 9262): Another exception was thrown: Duplicate GlobalKey detected in widget tree. I/flutter ( 9262): Another exception was thrown: 'package:flutter/src/widgets/focus_manager.dart': Failed assertion: line 315 pos 12: 'child._parent == null || child._parent == this': is not true. I/chatty ( 9262): uid=10085(com.rashed.pupilwatch) ui_thread identical 2 lines I/flutter ( 9262): Another exception was thrown: 'package:flutter/src/widgets/focus_manager.dart': Failed assertion: line 315 pos 12: 'child._parent == null || child._parent == this': is not true."><pre class="notranslate"><code class="notranslate">Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering". Launching lib/main.dart on Android SDK built for x86 in debug mode... Initializing gradle... 1.0s Resolving dependencies... 1.3s Running 'gradlew assembleDebug'... 5.8s Built build\app\outputs\apk\debug\app-debug.apk (30.7MB). I/FlutterActivityDelegate( 9262): onResume setting current activity to this Syncing files to device Android SDK built for x86... 2.6s 🔥 To hot reload your app on the fly, press "r". To restart the app entirely, press "R". An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:8104/ For a more detailed help message, press "h". To quit, press "q". I/flutter ( 9262): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ I/flutter ( 9262): The following assertion was thrown building FocusScope-[GlobalKey#5e679](dirty, state: I/flutter ( 9262): _FocusScopeState#b92c9): I/flutter ( 9262): 'package:flutter/src/widgets/focus_manager.dart': Failed assertion: line 315 pos 12: 'child._parent I/flutter ( 9262): == null || child._parent == this': is not true. I/flutter ( 9262): I/flutter ( 9262): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter ( 9262): more information in this error message to help you determine and fix the underlying cause. I/flutter ( 9262): In either case, please report this assertion by filing a bug on GitHub: I/flutter ( 9262): https://github.com/flutter/flutter/issues/new I/flutter ( 9262): I/flutter ( 9262): When the exception was thrown, this was the stack: I/flutter ( 9262): #2 FocusScopeNode.setFirstFocus (package:flutter/src/widgets/focus_manager.dart) I/flutter ( 9262): #3 FocusScopeNode.reparentScopeIfNeeded (package:flutter/src/widgets/focus_manager.dart:338:7) I/flutter ( 9262): #4 _FocusScopeState.build (package:flutter/src/widgets/focus_scope.dart:106:28) I/flutter ( 9262): #5 StatefulElement.build (package:flutter/src/widgets/framework.dart:3713:27) I/flutter ( 9262): #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3625:15) I/flutter ( 9262): #7 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #8 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #9 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #10 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #11 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #12 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #13 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #14 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #15 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #16 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4362:32) I/flutter ( 9262): #17 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4752:17) I/flutter ( 9262): #18 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #19 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #21 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #23 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #24 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #25 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #26 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #27 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #28 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #29 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5) I/flutter ( 9262): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #31 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #32 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #33 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #35 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #36 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #37 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #41 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #43 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #44 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #45 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #46 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #47 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4362:32) I/flutter ( 9262): #48 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4752:17) I/flutter ( 9262): #49 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #51 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #52 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #54 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #55 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #56 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #58 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #59 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #60 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #62 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #63 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #64 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #65 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #66 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5) I/flutter ( 9262): #67 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #68 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #72 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #75 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #76 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #79 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #80 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #83 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #84 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #85 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #87 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #88 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #89 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #90 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2883:38) I/flutter ( 9262): #91 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #92 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #93 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #94 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #95 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #96 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #97 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #98 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #99 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #100 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #101 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #102 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #103 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #104 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #105 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #106 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #107 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #108 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #109 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #110 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #111 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #112 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #113 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #114 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #115 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #116 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #117 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #118 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #119 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 9262): #120 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #121 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #122 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #123 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #124 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #125 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #126 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #127 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #128 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #129 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #130 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #131 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #132 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 9262): #133 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #134 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #135 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #136 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #137 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #138 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #139 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #140 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #141 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #142 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #143 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #144 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #145 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #146 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #147 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #148 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #149 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #150 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #151 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 9262): #152 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #153 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #154 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #155 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #156 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #157 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #158 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #159 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #160 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #161 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14) I/flutter ( 9262): #162 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #163 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #164 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #165 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #166 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #167 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #168 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #169 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #170 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #171 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #172 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #173 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 9262): #174 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #175 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #176 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #177 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #178 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #179 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 9262): #180 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 9262): #181 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 9262): #182 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 9262): #183 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 9262): #184 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4420:32) I/flutter ( 9262): #185 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4752:17) I/flutter ( 9262): #186 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #187 _TheatreElement.update (package:flutter/src/widgets/overlay.dart:507:16) I/flutter ( 9262): #188 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #189 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #190 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #191 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #192 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #193 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #194 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #195 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 9262): #196 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #197 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #198 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #199 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #200 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #201 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 9262): #202 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #203 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #204 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #205 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 9262): #206 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 9262): #207 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 9262): #208 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 9262): #209 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2225:33) I/flutter ( 9262): #210 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:621:20) I/flutter ( 9262): #211 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter ( 9262): #212 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter ( 9262): #213 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter ( 9262): #214 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5) I/flutter ( 9262): #215 _invoke (dart:ui/hooks.dart:120:13) I/flutter ( 9262): #216 _drawFrame (dart:ui/hooks.dart:109:3) I/flutter ( 9262): (elided 2 frames from class _AssertionError) I/flutter ( 9262): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter ( 9262): Another exception was thrown: Duplicate GlobalKey detected in widget tree. I/flutter ( 9262): Another exception was thrown: 'package:flutter/src/widgets/focus_manager.dart': Failed assertion: line 315 pos 12: 'child._parent == null || child._parent == this': is not true. I/chatty ( 9262): uid=10085(com.rashed.pupilwatch) ui_thread identical 2 lines I/flutter ( 9262): Another exception was thrown: 'package:flutter/src/widgets/focus_manager.dart': Failed assertion: line 315 pos 12: 'child._parent == null || child._parent == this': is not true. </code></pre></div> <h3 dir="auto">Flutter Analyze Output</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing C:\Users\Rashed\AndroidStudioProjects\pupil_watch... hint - This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib\student_list.dart:31:7 - must_be_immutable hint - The value of the field '_studentImage' isn't used at lib\student_list.dart:34:12 - unused_field 2 issues found. (Ran in 8.8s)"><pre class="notranslate"><code class="notranslate">Analyzing C:\Users\Rashed\AndroidStudioProjects\pupil_watch... hint - This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib\student_list.dart:31:7 - must_be_immutable hint - The value of the field '_studentImage' isn't used at lib\student_list.dart:34:12 - unused_field 2 issues found. (Ran in 8.8s) </code></pre></div> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] Flutter (Channel beta, v0.2.8, on Microsoft Windows [Version 10.0.16299.371], locale en-IN) • Flutter version 0.2.8 at C:\Users\Rashed\flutter • Framework revision b397406561 (13 days ago), 2018-04-02 13:53:20 -0700 • Engine revision c903c217a1 • Dart version 2.0.0-dev.43.0.flutter-52afcba357 [!] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at C:\Users\Rashed\AppData\Local\Android\sdk • Android NDK at C:\Users\Rashed\AppData\Local\Android\sdk\ndk-bundle • Platform android-P, build-tools 27.0.3 • Java binary at: C:\Program Files\Android\Android Studio Preview\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b01) X Android license status unknown. [√] Android Studio (version 3.1) • Android Studio at C:\Program Files\Android\Android Studio • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) [√] Android Studio (version 3.2) • Android Studio at C:\Program Files\Android\Android Studio Preview • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b01) [√] Connected devices (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android P (API 27) (emulator) ! Doctor found issues in 1 category. &gt; For more information about diagnosing and reporting Flutter bugs, please see [https://flutter.io/bug-reports/](https://flutter.io/bug-reports/)."><pre class="notranslate"><code class="notranslate">[√] Flutter (Channel beta, v0.2.8, on Microsoft Windows [Version 10.0.16299.371], locale en-IN) • Flutter version 0.2.8 at C:\Users\Rashed\flutter • Framework revision b397406561 (13 days ago), 2018-04-02 13:53:20 -0700 • Engine revision c903c217a1 • Dart version 2.0.0-dev.43.0.flutter-52afcba357 [!] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at C:\Users\Rashed\AppData\Local\Android\sdk • Android NDK at C:\Users\Rashed\AppData\Local\Android\sdk\ndk-bundle • Platform android-P, build-tools 27.0.3 • Java binary at: C:\Program Files\Android\Android Studio Preview\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b01) X Android license status unknown. [√] Android Studio (version 3.1) • Android Studio at C:\Program Files\Android\Android Studio • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) [√] Android Studio (version 3.2) • Android Studio at C:\Program Files\Android\Android Studio Preview • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b01) [√] Connected devices (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android P (API 27) (emulator) ! Doctor found issues in 1 category. &gt; For more information about diagnosing and reporting Flutter bugs, please see [https://flutter.io/bug-reports/](https://flutter.io/bug-reports/). </code></pre></div>
<p dir="auto">This seems like a regression from the scrolling refactor. Possibly the same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="208614231" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/8271" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/8271/hovercard" href="https://github.com/flutter/flutter/issues/8271">#8271</a>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11857803/23090756/aa72c814-f55a-11e6-941e-ffba1117503d.gif"><img src="https://cloud.githubusercontent.com/assets/11857803/23090756/aa72c814-f55a-11e6-941e-ffba1117503d.gif" alt="progress_indicator mov" data-animated-image="" style="max-width: 100%;"></a></p>
0
<h3 dir="auto">Bug report</h3> <p dir="auto">Pick events are fired twice instead of once following <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="549605493" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/16220" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/16220/hovercard" href="https://github.com/matplotlib/matplotlib/pull/16220">#16220</a>. This example is a bit wacky, but it's the minimal version of a <a href="https://mne.tools/dev/auto_tutorials/raw/plot_30_annotate_raw.html#operations-on-annotations-objects" rel="nofollow">much more complete GUI</a>:</p> <details> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# -*- coding: utf-8 -*- import numpy as np from matplotlib.figure import Figure from matplotlib.text import Text import matplotlib # noqa from matplotlib.pyplot import figure from matplotlib.widgets import Button from mpl_toolkits.axes_grid1.axes_size import Fixed from mpl_toolkits.axes_grid1.axes_divider import make_axes_locatable # matplotlib.use('Agg', force=True) class Figure1(Figure): &quot;&quot;&quot;Interactive figure with scrollbars, for data browsing.&quot;&quot;&quot; def __init__(self, yticks, **kwargs): super().__init__(figsize=(6, 6)) ax_main = self.add_subplot(1, 1, 1, position=[0.1, 0.1, 0.9, 0.9]) div = make_axes_locatable(ax_main) ax_button = div.append_axes(position='bottom', size=Fixed(0.5), pad=0) self._button = Button(ax_button, 'Help') # main plot offsets = np.arange(len(yticks)) ax_main.set(xlim=[0, 1], yticks=offsets) ax_main.set_yticklabels(yticks, picker=True) ax_main.plot([0, 1], [offsets, offsets]) picked = list() def on_pick(event): &quot;&quot;&quot;Handle matplotlib pick events.&quot;&quot;&quot; if isinstance(event.artist, Text): ch_name = event.artist.get_text() print(f'pick {ch_name}') picked.append(ch_name) yticks = list(x * 5 for x in 'ABCD') fig = figure(FigureClass=Figure1, yticks=yticks) fig.canvas.mpl_connect('pick_event', on_pick) fig.canvas.draw() ax = fig.axes[0] x, y = ax.transData.transform_point((-0.1, 0)) func = fig.canvas.button_press_event(x=x, y=y, button=1, guiEvent=None) assert 'AAAAA' in picked assert len(picked) == 1, len(picked)"><pre class="notranslate"><span class="pl-c"># -*- coding: utf-8 -*-</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">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">figure</span> <span class="pl-k">import</span> <span class="pl-v">Figure</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">text</span> <span class="pl-k">import</span> <span class="pl-v">Text</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-c"># noqa</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">import</span> <span class="pl-s1">figure</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">widgets</span> <span class="pl-k">import</span> <span class="pl-v">Button</span> <span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">axes_grid1</span>.<span class="pl-s1">axes_size</span> <span class="pl-k">import</span> <span class="pl-v">Fixed</span> <span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">axes_grid1</span>.<span class="pl-s1">axes_divider</span> <span class="pl-k">import</span> <span class="pl-s1">make_axes_locatable</span> <span class="pl-c"># matplotlib.use('Agg', force=True)</span> <span class="pl-k">class</span> <span class="pl-v">Figure1</span>(<span class="pl-v">Figure</span>): <span class="pl-s">"""Interactive figure with scrollbars, for data browsing."""</span> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">yticks</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-en">super</span>().<span class="pl-en">__init__</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">6</span>, <span class="pl-c1">6</span>)) <span class="pl-s1">ax_main</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-s1">position</span><span class="pl-c1">=</span>[<span class="pl-c1">0.1</span>, <span class="pl-c1">0.1</span>, <span class="pl-c1">0.9</span>, <span class="pl-c1">0.9</span>]) <span class="pl-s1">div</span> <span class="pl-c1">=</span> <span class="pl-en">make_axes_locatable</span>(<span class="pl-s1">ax_main</span>) <span class="pl-s1">ax_button</span> <span class="pl-c1">=</span> <span class="pl-s1">div</span>.<span class="pl-en">append_axes</span>(<span class="pl-s1">position</span><span class="pl-c1">=</span><span class="pl-s">'bottom'</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-v">Fixed</span>(<span class="pl-c1">0.5</span>), <span class="pl-s1">pad</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-s1">self</span>.<span class="pl-s1">_button</span> <span class="pl-c1">=</span> <span class="pl-v">Button</span>(<span class="pl-s1">ax_button</span>, <span class="pl-s">'Help'</span>) <span class="pl-c"># main plot</span> <span class="pl-s1">offsets</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-en">len</span>(<span class="pl-s1">yticks</span>)) <span class="pl-s1">ax_main</span>.<span class="pl-en">set</span>(<span class="pl-s1">xlim</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>, <span class="pl-c1">1</span>], <span class="pl-s1">yticks</span><span class="pl-c1">=</span><span class="pl-s1">offsets</span>) <span class="pl-s1">ax_main</span>.<span class="pl-en">set_yticklabels</span>(<span class="pl-s1">yticks</span>, <span class="pl-s1">picker</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">ax_main</span>.<span class="pl-en">plot</span>([<span class="pl-c1">0</span>, <span class="pl-c1">1</span>], [<span class="pl-s1">offsets</span>, <span class="pl-s1">offsets</span>]) <span class="pl-s1">picked</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>() <span class="pl-k">def</span> <span class="pl-en">on_pick</span>(<span class="pl-s1">event</span>): <span class="pl-s">"""Handle matplotlib pick events."""</span> <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">event</span>.<span class="pl-s1">artist</span>, <span class="pl-v">Text</span>): <span class="pl-s1">ch_name</span> <span class="pl-c1">=</span> <span class="pl-s1">event</span>.<span class="pl-s1">artist</span>.<span class="pl-en">get_text</span>() <span class="pl-en">print</span>(<span class="pl-s">f'pick <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">ch_name</span><span class="pl-kos">}</span></span>'</span>) <span class="pl-s1">picked</span>.<span class="pl-en">append</span>(<span class="pl-s1">ch_name</span>) <span class="pl-s1">yticks</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">x</span> <span class="pl-c1">*</span> <span class="pl-c1">5</span> <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-s">'ABCD'</span>) <span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-en">figure</span>(<span class="pl-v">FigureClass</span><span class="pl-c1">=</span><span class="pl-v">Figure1</span>, <span class="pl-s1">yticks</span><span class="pl-c1">=</span><span class="pl-s1">yticks</span>) <span class="pl-s1">fig</span>.<span class="pl-s1">canvas</span>.<span class="pl-en">mpl_connect</span>(<span class="pl-s">'pick_event'</span>, <span class="pl-s1">on_pick</span>) <span class="pl-s1">fig</span>.<span class="pl-s1">canvas</span>.<span class="pl-en">draw</span>() <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-s1">axes</span>[<span class="pl-c1">0</span>] <span class="pl-s1">x</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-s1">transData</span>.<span class="pl-en">transform_point</span>((<span class="pl-c1">-</span><span class="pl-c1">0.1</span>, <span class="pl-c1">0</span>)) <span class="pl-s1">func</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-s1">canvas</span>.<span class="pl-en">button_press_event</span>(<span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s1">x</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s1">y</span>, <span class="pl-s1">button</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">guiEvent</span><span class="pl-c1">=</span><span class="pl-c1">None</span>) <span class="pl-k">assert</span> <span class="pl-s">'AAAAA'</span> <span class="pl-c1">in</span> <span class="pl-s1">picked</span> <span class="pl-k">assert</span> <span class="pl-en">len</span>(<span class="pl-s1">picked</span>) <span class="pl-c1">==</span> <span class="pl-c1">1</span>, <span class="pl-en">len</span>(<span class="pl-s1">picked</span>)</pre></div> </details> <p dir="auto">If you click on a ylabel (or simulate this with the code above), you get two pick events instead of one.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2365790/109532002-9b9e9600-7a86-11eb-9530-4463d39633f9.png"><img src="https://user-images.githubusercontent.com/2365790/109532002-9b9e9600-7a86-11eb-9530-4463d39633f9.png" alt="Screenshot from 2021-03-01 12-06-30" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">On <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matplotlib/matplotlib/commit/6d79e6eddfe14a10141bab3ce421b2b43bc9a57a/hovercard" href="https://github.com/matplotlib/matplotlib/commit/6d79e6eddfe14a10141bab3ce421b2b43bc9a57a"><tt>6d79e6e</tt></a> / after <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="549605493" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/16220" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/16220/hovercard" href="https://github.com/matplotlib/matplotlib/pull/16220">#16220</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pick AAAAA pick AAAAA Traceback (most recent call last): File &quot;/home/larsoner/Desktop/fig.py&quot;, line 52, in &lt;module&gt; assert len(picked) == 1, len(picked) AssertionError: 2"><pre class="notranslate"><code class="notranslate">pick AAAAA pick AAAAA Traceback (most recent call last): File "/home/larsoner/Desktop/fig.py", line 52, in &lt;module&gt; assert len(picked) == 1, len(picked) AssertionError: 2 </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">On <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matplotlib/matplotlib/commit/74d61451efb9e6dd4916f4facf5614cc66528a4d/hovercard" href="https://github.com/matplotlib/matplotlib/commit/74d61451efb9e6dd4916f4facf5614cc66528a4d"><tt>74d6145</tt></a> / before <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="549605493" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/16220" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/16220/hovercard" href="https://github.com/matplotlib/matplotlib/pull/16220">#16220</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pick AAAAA"><pre class="notranslate"><code class="notranslate">pick AAAAA </code></pre></div> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Matplotlib version (<code class="notranslate">import matplotlib; print(matplotlib.__version__)</code>): <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matplotlib/matplotlib/commit/6d79e6eddfe14a10141bab3ce421b2b43bc9a57a/hovercard" href="https://github.com/matplotlib/matplotlib/commit/6d79e6eddfe14a10141bab3ce421b2b43bc9a57a"><tt>6d79e6e</tt></a> or later</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Tested on Qt5Agg and Agg</li> <li>Python version: 3.9.0</li> </ul> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/anntzer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/anntzer">@anntzer</a> since it was your PR that seems to have caused this.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>duplicate pick events occurring in 3.4.rc1</strong></p> <p dir="auto">In MNE-Python, our CIs that test against 3.4.rc1 are failing, because pick events are getting fired twice for every time an artist is picked (this is not happening on 3.3.4). It's happening in a very complicated interactive figure, and I haven't yet managed to work up an MWE that doesn't depend on MNE-Python. But, I've used <code class="notranslate">git bisect</code> to isolate the first test failure to matplotlib commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matplotlib/matplotlib/commit/6d79e6eddfe14a10141bab3ce421b2b43bc9a57a/hovercard" href="https://github.com/matplotlib/matplotlib/commit/6d79e6eddfe14a10141bab3ce421b2b43bc9a57a"><tt>6d79e6e</tt></a>. I will continue trying to further isolate this, but in the meantime if anyone is familiar with MPL changes in the last 4 months, I'd be happy to hear ideas about what might be going on here.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">This code mirrors what we're doing but is too minimal, in that it doesn't yield doubled pick events:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt from matplotlib.text import Text def pick_handler(event): if isinstance(event.artist, Text): print(&quot;PICKED&quot;) fig, ax = plt.subplots() _ = ax.plot((0, 1), (0, 1)) for lab in ax.get_yticklabels(): lab.set_picker(True) fig.canvas.mpl_connect('pick_event', pick_handler)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">text</span> <span class="pl-k">import</span> <span class="pl-v">Text</span> <span class="pl-k">def</span> <span class="pl-en">pick_handler</span>(<span class="pl-s1">event</span>): <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">event</span>.<span class="pl-s1">artist</span>, <span class="pl-v">Text</span>): <span class="pl-en">print</span>(<span class="pl-s">"PICKED"</span>) <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>() <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">plot</span>((<span class="pl-c1">0</span>, <span class="pl-c1">1</span>), (<span class="pl-c1">0</span>, <span class="pl-c1">1</span>)) <span class="pl-k">for</span> <span class="pl-s1">lab</span> <span class="pl-c1">in</span> <span class="pl-s1">ax</span>.<span class="pl-en">get_yticklabels</span>(): <span class="pl-s1">lab</span>.<span class="pl-en">set_picker</span>(<span class="pl-c1">True</span>) <span class="pl-s1">fig</span>.<span class="pl-s1">canvas</span>.<span class="pl-en">mpl_connect</span>(<span class="pl-s">'pick_event'</span>, <span class="pl-s1">pick_handler</span>)</pre></div> <p dir="auto">This code reproduces, but with <code class="notranslate">mne</code> dependency:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt import mne # make fake data data = np.random.standard_normal((2, 100)) info = mne.create_info(['ch1', 'ch2'], 1000) raw = mne.io.RawArray(data, info) # plot it fig = raw.plot()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">mne</span> <span class="pl-c"># make fake data</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">standard_normal</span>((<span class="pl-c1">2</span>, <span class="pl-c1">100</span>)) <span class="pl-s1">info</span> <span class="pl-c1">=</span> <span class="pl-s1">mne</span>.<span class="pl-en">create_info</span>([<span class="pl-s">'ch1'</span>, <span class="pl-s">'ch2'</span>], <span class="pl-c1">1000</span>) <span class="pl-s1">raw</span> <span class="pl-c1">=</span> <span class="pl-s1">mne</span>.<span class="pl-s1">io</span>.<span class="pl-v">RawArray</span>(<span class="pl-s1">data</span>, <span class="pl-s1">info</span>) <span class="pl-c"># plot it</span> <span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">raw</span>.<span class="pl-en">plot</span>()</pre></div> <p dir="auto">In the resulting figure, clicking on one of the yticklabels (the channel names) is supposed to mark the channel as bad (which among other effects, will turn it light grey). This doesn't happen because the pick event is fired twice, effectively marking and then unmarking the bad channel before a redraw can happen (I have confirmed this by simply inserting a <code class="notranslate">print</code> statement in the pick handler; it prints twice for each click). There is nothing wrong with the code that marks bad channels; you can do it by clicking on the channel trace itself (which responds to <code class="notranslate">button_press_event</code> instead of <code class="notranslate">pick_event</code>, for complicated reasons).</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system:</li> <li>Matplotlib version (<code class="notranslate">import matplotlib; print(matplotlib.__version__)</code>): 3.3.2.post1516+g6d79e6edd</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li> <li>Python version: 3.8.8</li> <li>Jupyter version (if applicable):</li> <li>Other libraries: mne: current <code class="notranslate">main</code> (0.23.dev0)</li> </ul> <p dir="auto">matplotlib installed via <code class="notranslate">pip install -e .</code> from a git clone.</p>
1
<p dir="auto">I added the code in .vimrc:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let &amp;t_SI.=&quot;\e[5 q&quot; let &amp;t_SR.=&quot;\e[4 q&quot; let &amp;t_EI.=&quot;\e[1 q&quot;"><pre class="notranslate"><code class="notranslate">let &amp;t_SI.="\e[5 q" let &amp;t_SR.="\e[4 q" let &amp;t_EI.="\e[1 q" </code></pre></div> <p dir="auto">cursor style can be changed but the word under the cursor is not visible<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/46256982/59994229-af74e080-9685-11e9-84d5-a99d2d25d410.png"><img src="https://user-images.githubusercontent.com/46256982/59994229-af74e080-9685-11e9-84d5-a99d2d25d410.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">In the new Terminal properties page, you can set your "Cursor shape and color"... Cool! But right now you can only set the cursor fg color, and you can not set bg color. For example, I'm trying to set up the "terminal" to look like an old "green screen" terminal. To do so I set console bg color to black and fg color to green. I also set my cursor shape to "box", but when I move the cursor over a char I would like it to 'swap' the bg and fg colors so that the cursor text is green bg and black fg (not "inverse" them because that would make cursor bg White and cursor text dim Magenta)</p>
1
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/34624/kubernetes-pull-build-test-gci-e2e-gce/2334/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/34624/kubernetes-pull-build-test-gci-e2e-gce/2334/</a></p> <p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Simple pod should support exec {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:321 Oct 13 22:23:22.442: Unexpected kubectl exec output. Wanted &quot;running in container&quot;, got &quot;&quot; /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:295"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:321 Oct 13 22:23:22.442: Unexpected kubectl exec output. Wanted "running in container", got "" /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:295 </code></pre></div> <p dir="auto">Happened on a presubmit run in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="182576216" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34624" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/34624/hovercard" href="https://github.com/kubernetes/kubernetes/pull/34624">#34624</a>.</p> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163541783" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28426" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28426/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28426">#28426</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175382873" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32168" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32168/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32168">#32168</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce/478/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce/478/</a></p> <p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Simple pod should support exec {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:321 Sep 29 07:00:46.480: Unexpected kubectl exec output. Wanted &quot;running in container&quot;, got &quot;&quot; /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:295"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:321 Sep 29 07:00:46.480: Unexpected kubectl exec output. Wanted "running in container", got "" /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:295 </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163541783" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28426" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28426/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28426">#28426</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175382873" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32168" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32168/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32168">#32168</a></p>
1
<p dir="auto">I've setup the default dags that come with the installation. Celery/RabbitMQ is working now and when I run a task, I get this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: task_instance.task_id, task_instance.dag_id, task_instance.execution_date [SQL: u'INSERT INTO task_instance (task_id, dag_id, execution_date, start_date, end_date, duration, state, try_number, hostname, unixname, job_id, pool, queue, priority_weight) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'] [parameters: ('print_the_context', 'example_python_operator', '2015-01-01 00:00:00.000000', '2015-07-28 05:27:40.692490', None, None, 'running', 1, 'SRV01', 'root', '8', None, 'celery', 11)]"><pre class="notranslate"><code class="notranslate">sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: task_instance.task_id, task_instance.dag_id, task_instance.execution_date [SQL: u'INSERT INTO task_instance (task_id, dag_id, execution_date, start_date, end_date, duration, state, try_number, hostname, unixname, job_id, pool, queue, priority_weight) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'] [parameters: ('print_the_context', 'example_python_operator', '2015-01-01 00:00:00.000000', '2015-07-28 05:27:40.692490', None, None, 'running', 1, 'SRV01', 'root', '8', None, 'celery', 11)] </code></pre></div>
<p dir="auto">I have a DAG I want to run at 10:30am and 3:30pm every day, but I'm not sure what the best way to specify this is in Airflow. I can't just set the schedule interval on a single DAG, because the interval between jobs is not uniform (alternates between 5 and 19 hours).</p> <p dir="auto">Is there an easy way to make a DAG for the 10:30 case, and then duplicate it with a different name and change the start time to 3:30pm?</p>
0
<p dir="auto">Currently I think the only way to perform multiple commands in succession is to create an extension. It would be good if this was supported by keybindings.json.</p> <p dir="auto">See <a href="http://stackoverflow.com/q/37009184/1156119" rel="nofollow">http://stackoverflow.com/q/37009184/1156119</a></p>
<p dir="auto">When creating keyboard shortcuts, it would be nice if you could pass an array of commands (to execute like a macro) that would run the commands in that order.</p> <p dir="auto">So take this for example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;key&quot;: &quot;ctrl+s&quot;, &quot;command&quot;: [ &quot;editor.action.format&quot;, &quot;editor.action.trimTrailingWhitespace&quot;, &quot;workbench.action.files.save&quot; ], &quot;when&quot;: &quot;editorTextFocus&quot; }"><pre class="notranslate"><code class="notranslate">{ "key": "ctrl+s", "command": [ "editor.action.format", "editor.action.trimTrailingWhitespace", "workbench.action.files.save" ], "when": "editorTextFocus" } </code></pre></div> <p dir="auto">It would format the file, remove trailing white space then save the file.</p>
1
<p dir="auto">im trying to run the voice recognition example</p> <p dir="auto">for some reason specifying a clip_duration_ms diffren from 1000 generate an error while freezing the model.</p> <p dir="auto">so running<br> python tensorflow/examples/speech_commands/freeze.py<br> --wanted_words=yes<br> --clip_duration_ms=2800 --sample_rate=16000 --window_size_ms=20<br> --start_checkpoint=/notebooks/yesmodel/conv.ckpt-10<br> --output_file=/notebooks/yesmodel/conv_frozen.pb</p> <p dir="auto">generate the following message<br> Error: Assign requires shapes of both tensors to match. lhs shape= [320000,3] rhs shape= [62720,3]</p> <p dir="auto">any idea what im doing wrong?</p>
<hr> <h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:No. I am running the Audio recognition tutorial</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Ubuntu 14.04</li> <li><strong>TensorFlow installed from (source or binary)</strong>:source</li> <li><strong>TensorFlow version (use command below)</strong>: 1.3.0</li> <li><strong>Python version</strong>: 3.6</li> <li><strong>Bazel version (if compiling from source)</strong>:0.6.0</li> <li><strong>CUDA/cuDNN version</strong>:</li> <li><strong>GPU model and memory</strong>:</li> <li><strong>Exact command to reproduce</strong>:python tensorflow/examples/speech_commands/freeze.py <br> --start_checkpoint=/tmp/speech_commands_train/conv.ckpt-18000 <br> --output_file=/tmp/my_frozen_graph.pb</li> </ul> <p dir="auto">I am asking about the error (attached below) here(rather than on stackoverflow) because of this related issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="188195671" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/5492" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/5492/hovercard" href="https://github.com/tensorflow/tensorflow/issues/5492">#5492</a> . I want to know if my error can be resolved by tweaking the validate_shape parameter,by setting it to false? . If not, please suggest alternatives.</p> <p dir="auto">The error is as follows:</p> <p dir="auto">Traceback (most recent call last):<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1321, in _do_call<br> return fn(*args)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1300, in _run_fn<br> status, run_metadata)<br> File "/home/cogknit/anaconda3/lib/python3.6/contextlib.py", line 89, in <strong>exit</strong><br> next(self.gen)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 467, in raise_exception_on_not_ok_status<br> c_api.TF_GetCode(status.status))<br> tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [12] rhs shape= [3]<br> [[Node: save/Assign_5 = Assign[T=DT_FLOAT, _class=["loc:@Variable_5"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/cpu:0"](Variable_5, save/RestoreV2_5)]]</p> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File "tensorflow/examples/speech_commands/freeze.py", line 180, in <br> tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run<br> _sys.exit(main(_sys.argv[:1] + flags_passthrough))<br> File "tensorflow/examples/speech_commands/freeze.py", line 117, in main<br> models.load_variables_from_checkpoint(sess, FLAGS.start_checkpoint)<br> File "/home/cogknit/tensorflow/tensorflow/examples/speech_commands/models.py", line 123, in load_variables_from_checkpoint<br> saver.restore(sess, start_checkpoint)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1657, in restore<br> {self.saver_def.filename_tensor_name: save_path})<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 889, in run<br> run_metadata_ptr)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1118, in _run<br> feed_dict_tensor, options, run_metadata)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1315, in _do_run<br> options, run_metadata)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1334, in _do_call<br> raise type(e)(node_def, op, message)<br> tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [12] rhs shape= [3]<br> [[Node: save/Assign_5 = Assign[T=DT_FLOAT, _class=["loc:@Variable_5"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/cpu:0"](Variable_5, save/RestoreV2_5)]]</p> <p dir="auto">Caused by op 'save/Assign_5', defined at:<br> File "tensorflow/examples/speech_commands/freeze.py", line 180, in <br> tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run<br> _sys.exit(main(_sys.argv[:1] + flags_passthrough))<br> File "tensorflow/examples/speech_commands/freeze.py", line 117, in main<br> models.load_variables_from_checkpoint(sess, FLAGS.start_checkpoint)<br> File "/home/cogknit/tensorflow/tensorflow/examples/speech_commands/models.py", line 122, in load_variables_from_checkpoint<br> saver = tf.train.Saver(tf.global_variables())<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1214, in <strong>init</strong><br> self.build()<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1223, in build<br> self._build(self._filename, build_save=True, build_restore=True)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1259, in _build<br> build_save=build_save, build_restore=build_restore)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 747, in _build_internal<br> restore_sequentially, reshape)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 435, in _AddRestoreOps<br> assign_ops.append(saveable.restore(tensors, shapes))<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 160, in restore<br> self.op.get_shape().is_fully_defined())<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/state_ops.py", line 276, in assign<br> validate_shape=validate_shape)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/gen_state_ops.py", line 56, in assign<br> use_locking=use_locking, name=name)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper<br> op_def=op_def)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3082, in create_op<br> op_def=op_def)<br> File "/home/cogknit/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1632, in <strong>init</strong><br> self._traceback = self._graph._extract_stack() # pylint: disable=protected-access</p> <p dir="auto">InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [12] rhs shape= [3]<br> [[Node: save/Assign_5 = Assign[T=DT_FLOAT, _class=["loc:@Variable_5"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/cpu:0"](Variable_5, save/RestoreV2_5)]]</p>
1
<p dir="auto">The problem I found can be reproduced with the <a href="http://www.typescriptlang.org/Playground#src=function%20builder%28%29%20%7B%0D%0A%09return%20new%20class%20House%20%7B%0D%0A%09%09public%20open%28%29%3Avoid%20%7B%0D%0A%09%09%09console.info%28'house%20is%20open'%29%3B%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%7D%0D%0Aconst%20house%20%3D%20builder%28%29%3B%0D%0Ahouse.open%28%29%3B" rel="nofollow">following code</a>, on typescript version 1.7.5. The problem exists in typescript from the release when class expressions (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40826560" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/497" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/497/hovercard" href="https://github.com/microsoft/TypeScript/issues/497">#497</a>) were introduced.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function builder() { return new class House { public open():void { console.info('house is open'); } } } const house = builder(); house.open();"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">builder</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-k">class</span> <span class="pl-smi">House</span> <span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-en">open</span><span class="pl-kos">(</span><span class="pl-kos">)</span>:<span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">info</span><span class="pl-kos">(</span><span class="pl-s">'house is open'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-s1">house</span> <span class="pl-c1">=</span> <span class="pl-en">builder</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">house</span><span class="pl-kos">.</span><span class="pl-en">open</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">is compiled to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function builder() { return new (function () { function House() { } House.prototype.open = function () { console.info('house is open'); }; return House; })(); } var house = builder(); house.open();"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">builder</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-v">House</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-v">House</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">open</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">info</span><span class="pl-kos">(</span><span class="pl-s">'house is open'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-v">House</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">var</span> <span class="pl-s1">house</span> <span class="pl-c1">=</span> <span class="pl-en">builder</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">house</span><span class="pl-kos">.</span><span class="pl-en">open</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">and looks good, but throws in the console:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: house.open is not a function"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: house.open is not a function </code></pre></div> <p dir="auto">Thats, because from <code class="notranslate">builder()</code> is returned constructor of <code class="notranslate">House</code> instead of an instance. The example above works, <a href="http://www.typescriptlang.org/Playground#src=function%20builder%28%29%20%7B%0D%0A%09const%20houseConstructor%20%3D%20class%20House%20%7B%0D%0A%09%09public%20open%28%29%3Avoid%20%7B%0D%0A%09%09%09console.info%28'house%20is%20open'%29%3B%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%09return%20new%20houseConstructor%28%29%3B%0D%0A%7D%0D%0Aconst%20house%20%3D%20builder%28%29%3B%0D%0Ahouse.open%28%29%3B" rel="nofollow">when we assign constructor to a variable</a> and then, create instance with the <code class="notranslate">new</code> keyword.</p>
<p dir="auto">tested on <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/TypeScript/commit/690b87c2097b0101969c941f085b1f660ecc1a7e/hovercard" href="https://github.com/microsoft/TypeScript/commit/690b87c2097b0101969c941f085b1f660ecc1a7e"><tt>690b87c</tt></a></p> <p dir="auto">source code.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="new class { hi() { return &quot;Hi!&quot;; } }().hi();"><pre class="notranslate"><code class="notranslate">new class { hi() { return "Hi!"; } }().hi(); </code></pre></div> <p dir="auto">expected.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="new ((function () { function class_1() { } class_1.prototype.hi = function () { return &quot;Hi!&quot;; }; return class_1; })())().hi();"><pre class="notranslate"><code class="notranslate">new ((function () { function class_1() { } class_1.prototype.hi = function () { return "Hi!"; }; return class_1; })())().hi(); </code></pre></div> <p dir="auto">actual.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="new (function () { function class_1() { } class_1.prototype.hi = function () { return &quot;Hi!&quot;; }; return class_1; })()().hi();"><pre class="notranslate"><code class="notranslate">new (function () { function class_1() { } class_1.prototype.hi = function () { return "Hi!"; }; return class_1; })()().hi(); </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ tsc --target es5 test.ts $ node test.js /private/tmp/tsc-1.6/test.js:8 })()().hi(); ^ TypeError: Cannot read property 'hi' of undefined at Object.&lt;anonymous&gt; (/private/tmp/tsc-1.6/test.js:8:7) at Module._compile (module.js:430:26) at Object.Module._extensions..js (module.js:448:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:471:10) at startup (node.js:117:18) at node.js:951:3"><pre class="notranslate"><code class="notranslate">$ tsc --target es5 test.ts $ node test.js /private/tmp/tsc-1.6/test.js:8 })()().hi(); ^ TypeError: Cannot read property 'hi' of undefined at Object.&lt;anonymous&gt; (/private/tmp/tsc-1.6/test.js:8:7) at Module._compile (module.js:430:26) at Object.Module._extensions..js (module.js:448:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:471:10) at startup (node.js:117:18) at node.js:951:3 </code></pre></div>
1
<p dir="auto">This bug is about cmd/go returning a useful error message when an invalid GOOS/GOARCH pair is used.</p> <p dir="auto">See confusion in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="97704295" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/11908" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/11908/hovercard" href="https://github.com/golang/go/issues/11908">#11908</a>.</p> <p dir="auto">Related request in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="102520524" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/12270" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/12270/hovercard" href="https://github.com/golang/go/issues/12270">#12270</a> (if we fix this bug, we should probably fix both, using the same source of truth)</p>
<p dir="auto">by <strong>myannikos</strong>:</p> <pre class="notranslate">What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. run the attached program (schedtest.go) What is the expected output? "suffixarray done" after a few minutes, normal termination after 1h What do you see instead? --- panic: 4m21.822623s*** last run took 22.669666ss goroutine 4 [running]: main.handler() /home/mjy/svn/morework/gh/trunk/go/gh/schedtest.go:42 +0x159 created by main.main /home/mjy/svn/morework/gh/trunk/go/gh/schedtest.go:49 +0x23 goroutine 1 [sleep]: time.Sleep(0x34630b8a000, 0x40d134) /usr/local/go/src/pkg/runtime/ztime_amd64.c:21 +0x49 main.main() /home/mjy/svn/morework/gh/trunk/go/gh/schedtest.go:50 +0x38 goroutine 2 [syscall]: created by runtime.main /usr/local/go/src/pkg/runtime/proc.c:221 goroutine 3 [running]: index/suffixarray.(*suffixSortable).updateGroups(0xf84002d7c0, 0xf80861e33f, 0xf84002d7c0, 0xf84002d780) /usr/local/go/src/pkg/index/suffixarray/qsufsort.go:150 +0xf4 index/suffixarray.qsufsort(0x255f3f0, 0xbebc2000bebc200, 0x0, 0x0, 0x0, ...) /usr/local/go/src/pkg/index/suffixarray/qsufsort.go:58 +0x28a index/suffixarray.New(0x255f3f0, 0xbebc2000bebc200, 0x0, 0xbebc200, 0x1, ...) /usr/local/go/src/pkg/index/suffixarray/suffixarray.go:36 +0x36 main._func_001() /home/mjy/svn/morework/gh/trunk/go/gh/schedtest.go:29 +0x5e created by main.init·1 /home/mjy/svn/morework/gh/trunk/go/gh/schedtest.go:31 +0xa9 goroutine 5 [syscall]: created by addtimer /usr/local/go/src/pkg/runtime/ztime_amd64.c:72 --- This can be reproduced every time (tested on 3 different hosts with different hardware [8-48 cores] several times). Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? Debian Squeeze x86-64 Which version are you using? (run 'go version') 1.0.3 Please provide any additional information below. Despite GOMAXPROCS(40), this program uses fewer threads usually (but not 1). Attaching gdb to the program during a freeze showed that all but the thread executing the suffixarray goroutine were in runtime.futex (nextgandundlock() =&gt; runtime·notesleep(&amp;m-&gt;havenextg) =&gt; ...), so it seems that the scheduler simply decided to ignore the stalled goroutine for a while. (gdb) info threads Id Target Id Frame * 6 Thread 0x7fe3087d7700 (LWP 4188) 0x0000000000410dbc in nextgandunlock () at /usr/local/go/src/pkg/runtime/proc.c:635 5 Thread 0x7fe30779e700 (LWP 4189) runtime.futex () at /usr/local/go/src/pkg/runtime/sys_linux_amd64.s:238 4 Thread 0x7fe306f9d700 (LWP 4196) runtime.futex () at /usr/local/go/src/pkg/runtime/sys_linux_amd64.s:238 3 Thread 0x7fe30679c700 (LWP 4197) runtime.futex () at /usr/local/go/src/pkg/runtime/sys_linux_amd64.s:238 2 Thread 0x7fe305f9b700 (LWP 4198) runtime.futex () at /usr/local/go/src/pkg/runtime/sys_linux_amd64.s:238 1 Thread 0x7fe3090bb700 (LWP 4187) 0x00000000004d8b95 in sort.doPivot ( data="(*suffixarray.suffixSortable)0xf87c9f9c40", lo=208, hi=400, midlo= 400, midhi=0) at /usr/local/go/src/pkg/sort/sort.go:132 The systems were sometimes slightly busy and others not, the panic still happens always after around 4 minutes (possibly directly related to CPU speed; 2200-2400 MHz Opterons take ~4m10s-4m20s, a 2500 MHz Xeon L5420 took 6m40s to panic with 35s freeze) and until then 1 core/thread is 100% busy as expected. I'm confident this isn't an OS issue (sync/bdflush or other periodic tasks), but unsure whether this is related to the specific workload (index/suffixarray) or not, or perhaps to garbage collection incurred by the workload. It is noteworthy that the stalled/frozen goroutine (the one calling panic()) seems to be scheduled normally most of the time (can be verified by printing a timestamp at every iteration), i.e. it does not stall frequently for smaller periods of time, there are just a few very long freezes. This issue was discovered while working a net/http handler with background initialization using index/suffixarray, the http requests would sometimes take more than 1 minute to get serviced for no apparent reason (normal time &lt; 1s), so this is a critical issue for us.</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/4711/0/schedtest.go" rel="nofollow">schedtest.go</a> (909 bytes)</li> </ol>
0
<p dir="auto">Operating System:<br> Ubuntu 16.04</p> <p dir="auto">Installed version of CUDA and cuDNN:<br> server@server:~$ ls -l /usr/local/cuda/lib64/libcud*<br> -rw-r--r-- 1 root root 560184 9月 7 09:56 /usr/local/cuda/lib64/libcudadevrt.a<br> lrwxrwxrwx 1 root root 16 9月 7 09:56 /usr/local/cuda/lib64/libcudart.so -&gt; libcudart.so.8.0<br> lrwxrwxrwx 1 root root 19 9月 7 09:56 /usr/local/cuda/lib64/libcudart.so.8.0 -&gt; libcudart.so.8.0.27<br> -rwxr-xr-x 1 root root 394472 9月 7 09:56 /usr/local/cuda/lib64/libcudart.so.8.0.27<br> -rw-r--r-- 1 root root 737516 9月 7 09:56 /usr/local/cuda/lib64/libcudart_static.a</p> <p dir="auto">The commit hash (<code class="notranslate">git rev-parse HEAD</code>)<br> server@server:~/tensorflow$ git rev-parse HEAD<br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/2ab7e6326296987ea0ce975afb3434a16d1aa21a/hovercard" href="https://github.com/tensorflow/tensorflow/commit/2ab7e6326296987ea0ce975afb3434a16d1aa21a"><tt>2ab7e63</tt></a></p> <p dir="auto">The output of <code class="notranslate">bazel version</code><br> server@server:~$ bazel version<br> Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar<br> Build time: Thu Jan 01 00:00:00 1970 (0)<br> Build timestamp: Thu Jan 01 00:00:00 1970 (0)<br> Build timestamp as int: 0</p> <p dir="auto">Here is my bazel build result:<br> INFO: From Compiling tensorflow/core/kernels/tile_ops_gpu.cu.cc:<br> nvcc warning : option '--relaxed-constexpr' has been deprecated and replaced by option '--expt-relaxed-constexpr'.<br> nvcc warning : option '--relaxed-constexpr' has been deprecated and replaced by option '--expt-relaxed-constexpr'.<br> INFO: From Compiling tensorflow/core/kernels/tile_ops_gpu.cu.cc:<br> nvcc warning : option '--relaxed-constexpr' has been deprecated and replaced by option '--expt-relaxed-constexpr'.<br> nvcc warning : option '--relaxed-constexpr' has been deprecated and replaced by option '--expt-relaxed-constexpr'.<br> Target //tensorflow/cc:tutorials_example_trainer up-to-date:<br> bazel-bin/tensorflow/cc/tutorials_example_trainer<br> INFO: Elapsed time: 985.075s, Critical Path: 952.03s</p> <p dir="auto">Here is my bazel-bin result:<br> 000008/000006 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000007/000009 lambda = 39.000000 x = [3.605551 -0.000000] y = [10.816654 -3.605551]<br> 000006/000006 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000001/000002 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000002/000006 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000006/000008 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000004/000004 lambda = 1.200000 x = [-0.894427 0.447214] y = [-0.894427 0.894427]<br> 000006/000007 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000005/000005 lambda = 249281724416.000000 x = [0.894427 -0.447214] y = [278705438720.000000 -130.000000]<br> 000008/000003 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000007/000009 lambda = 2.400000 x = [0.948683 -0.316228] y = [2.213594 -0.948683]<br> 000008/000004 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000003/000009 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000000/000004 lambda = 2.255962 x = [0.930408 -0.366524] y = [2.058176 -0.930408]<br> 000001/000002 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000004/000004 lambda = nan x = [ nan 0.707107] y = [ nan nan]<br> 000008/000000 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000003/000008 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000006/000007 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000007/000009 lambda = 2.172414 x = [0.919145 -0.393919] y = [1.969597 -0.919145]<br> 000008/000006 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000008/000003 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000002/000006 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000000/000004 lambda = 2.115613 x = [0.911220 -0.411921] y = [1.909816 -0.911220]<br> 000003/000008 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000008/000004 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000003/000009 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000006/000006 lambda = 1786627917493567488.000000 x = [715827904.000000 348406848.000000] y = [2844297216.000000 -715827904.000000]<br> 000008/000000 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000007/000009 lambda = 2.080292 x = [0.906183 -0.422885] y = [1.872779 -0.906183]<br> 000008/000003 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000003/000008 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000008/000004 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000006/000007 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000008/000006 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000004/000004 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000005/000005 lambda = 3.000000 x = [1.000000 -0.000000] y = [3.000000 -1.000000]<br> 000003/000009 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000008/000000 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000008/000006 lambda = 2.000000 x = [0.894427 -0.447214] y = [1.788854 -0.894427]<br> 000006/000006 lambda = 2.584623 x = [0.969760 -0.244061] y = [2.421158 -0.969760]<br> 000004/000004 lambda = nan x = [ nan nan] y = [ nan nan]<br> 000007/000009 lambda = 2.038786 x = [0.900159 -0.435561] y = [1.829356 -0.900159]</p> <p dir="auto">I've searched the nan problem, according to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="149814648" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/2037" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/2037/hovercard" href="https://github.com/tensorflow/tensorflow/issues/2037">#2037</a>, i've tried "--num_concurrent_sessions=1" and "--num_concurrent_steps=1", and it seems to be fine<br> Here is the output:<br> server@server:~/tensorflow$ bazel-bin/tensorflow/cc/tutorials_example_trainer --use_gpu --num_concurrent_sessions=1 --num_concurrent_steps=1<br> I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally<br> I tensorflow/stream_executor/dso_loader.cc:105] Couldn't open CUDA library libcudnn.so.5. LD_LIBRARY_PATH: /usr/local/cuda-8.0/lib64:<br> I tensorflow/stream_executor/cuda/cuda_dnn.cc:3304] Unable to load cuDNN DSO<br> I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally<br> I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally<br> I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally<br> I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br> I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:<br> name: GeForce GTX TITAN X<br> major: 5 minor: 2 memoryClockRate (GHz) 1.076<br> pciBusID 0000:02:00.0<br> Total memory: 11.92GiB<br> Free memory: 11.40GiB<br> I tensorflow/core/common_runtime/gpu/gpu_device.cc:972] DMA: 0<br> I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 0: Y<br> I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -&gt; (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:02:00.0)<br> 000000/000000 lambda = 1.841570 x = [0.669396 0.742906] y = [3.493999 -0.669396]<br> 000000/000000 lambda = 2.708984 x = [0.982138 -0.188162] y = [2.570089 -0.982138]<br> 000000/000000 lambda = 2.284280 x = [0.934118 -0.356965] y = [2.088423 -0.934118]<br> 000000/000000 lambda = 2.127152 x = [0.912847 -0.408302] y = [1.921937 -0.912847]<br> 000000/000000 lambda = 2.060266 x = [0.903291 -0.429029] y = [1.851815 -0.903291]<br> 000000/000000 lambda = 2.029356 x = [0.898775 -0.438410] y = [1.819504 -0.898775]<br> 000000/000000 lambda = 2.014491 x = [0.896580 -0.442881] y = [1.803979 -0.896580]<br> 000000/000000 lambda = 2.007199 x = [0.895499 -0.445064] y = [1.796367 -0.895499]<br> 000000/000000 lambda = 2.003588 x = [0.894962 -0.446143] y = [1.792599 -0.894962]<br> 000000/000000 lambda = 2.001791 x = [0.894694 -0.446679] y = [1.790724 -0.894694]<br> 000000/000000 lambda = 2.000895 x = [0.894561 -0.446947] y = [1.789788 -0.894561]<br> 000000/000000 lambda = 2.000447 x = [0.894494 -0.447080] y = [1.789321 -0.894494]<br> 000000/000000 lambda = 2.000224 x = [0.894460 -0.447147] y = [1.789088 -0.894460]<br> 000000/000000 lambda = 2.000112 x = [0.894444 -0.447180] y = [1.788971 -0.894444]<br> 000000/000000 lambda = 2.000056 x = [0.894436 -0.447197] y = [1.788913 -0.894436]<br> 000000/000000 lambda = 2.000028 x = [0.894431 -0.447205] y = [1.788883 -0.894431]<br> 000000/000000 lambda = 2.000014 x = [0.894429 -0.447209] y = [1.788869 -0.894429]</p> <p dir="auto">When I build the pip-packages. i got another error.<br> Here is the output:<br> server@server:~/tensorflow$ bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package<br> ERROR: no such package '@local_config_cuda//crosstool': BUILD file not found on package path.<br> ERROR: no such package '@local_config_cuda//crosstool': BUILD file not found on package path.<br> INFO: Elapsed time: 0.037s</p> <p dir="auto">Where am I wrong?</p>
<h3 dir="auto">Environment info</h3> <p dir="auto">Operating System:<br> OS 10.10.5</p> <p dir="auto">Installed version of CUDA and cuDNN:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ls -l /usr/local/cuda/lib/libcud* -rwxr-xr-x 1 root wheel 8280 Apr 13 01:02 /usr/local/cuda/lib/libcuda.dylib lrwxr-xr-x 1 root wheel 45 Apr 13 01:03 /usr/local/cuda/lib/libcudadevrt.a -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudadevrt.a lrwxr-xr-x 1 root wheel 50 Apr 13 01:03 /usr/local/cuda/lib/libcudart.7.5.dylib -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudart.7.5.dylib lrwxr-xr-x 1 root wheel 46 Apr 13 01:03 /usr/local/cuda/lib/libcudart.dylib -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudart.dylib lrwxr-xr-x 1 root wheel 49 Apr 13 01:03 /usr/local/cuda/lib/libcudart_static.a -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudart_static.a -rwxr-xr-x@ 1 production204 staff 60108616 Feb 8 2016 /usr/local/cuda/lib/libcudnn.4.dylib lrwxr-xr-x 1 root admin 47 Aug 29 18:08 /usr/local/cuda/lib/libcudnn.5.dylib -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudnn.5.dylib lrwxr-xr-x 1 root admin 45 Aug 29 18:08 /usr/local/cuda/lib/libcudnn.dylib -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudnn.dylib -rw-r--r--@ 1 production204 staff 59311504 Feb 8 2016 /usr/local/cuda/lib/libcudnn_static.a"><pre class="notranslate"><code class="notranslate">$ ls -l /usr/local/cuda/lib/libcud* -rwxr-xr-x 1 root wheel 8280 Apr 13 01:02 /usr/local/cuda/lib/libcuda.dylib lrwxr-xr-x 1 root wheel 45 Apr 13 01:03 /usr/local/cuda/lib/libcudadevrt.a -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudadevrt.a lrwxr-xr-x 1 root wheel 50 Apr 13 01:03 /usr/local/cuda/lib/libcudart.7.5.dylib -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudart.7.5.dylib lrwxr-xr-x 1 root wheel 46 Apr 13 01:03 /usr/local/cuda/lib/libcudart.dylib -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudart.dylib lrwxr-xr-x 1 root wheel 49 Apr 13 01:03 /usr/local/cuda/lib/libcudart_static.a -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudart_static.a -rwxr-xr-x@ 1 production204 staff 60108616 Feb 8 2016 /usr/local/cuda/lib/libcudnn.4.dylib lrwxr-xr-x 1 root admin 47 Aug 29 18:08 /usr/local/cuda/lib/libcudnn.5.dylib -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudnn.5.dylib lrwxr-xr-x 1 root admin 45 Aug 29 18:08 /usr/local/cuda/lib/libcudnn.dylib -&gt; /Developer/NVIDIA/CUDA-7.5/lib/libcudnn.dylib -rw-r--r--@ 1 production204 staff 59311504 Feb 8 2016 /usr/local/cuda/lib/libcudnn_static.a </code></pre></div> <ol dir="auto"> <li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.<br> (can't get that far, but i'm using 0.10)</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import tensorflow I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcublas.dylib locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcudnn.dylib locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcufft.dylib locally Segmentation fault: 11 "><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import tensorflow I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcublas.dylib locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcudnn.dylib locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcufft.dylib locally Segmentation fault: 11 </code></pre></div> <p dir="auto">If installed from source, provide</p> <ol dir="auto"> <li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="4c49dbebef05442c7e72d6129a30574fcd13f0e1"><pre class="notranslate"><code class="notranslate">4c49dbebef05442c7e72d6129a30574fcd13f0e1 </code></pre></div> <ol dir="auto"> <li>The output of <code class="notranslate">bazel version</code></li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel version Build label: 0.3.1-homebrew Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar Build time: Thu Aug 4 09:59:58 2016 (1470304798) Build timestamp: 1470304798 Build timestamp as int: 1470304798"><pre class="notranslate"><code class="notranslate">$ bazel version Build label: 0.3.1-homebrew Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar Build time: Thu Aug 4 09:59:58 2016 (1470304798) Build timestamp: 1470304798 Build timestamp as int: 1470304798 </code></pre></div> <h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer ERROR: no such package '@local_config_cuda//crosstool': BUILD file not found on package path. ERROR: no such package '@local_config_cuda//crosstool': BUILD file not found on package path. INFO: Elapsed time: 0.076s "><pre class="notranslate"><code class="notranslate">$ bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer ERROR: no such package '@local_config_cuda//crosstool': BUILD file not found on package path. ERROR: no such package '@local_config_cuda//crosstool': BUILD file not found on package path. INFO: Elapsed time: 0.076s </code></pre></div> <h3 dir="auto">What other attempted solutions have you tried?</h3> <ul dir="auto"> <li>Downgrading to cuDNN4, switching between 4 and 5</li> <li>Re-installing bazel</li> <li>Modifying CROSSTOOL file according to various threads</li> <li>Manually linking CUDA libraries during <code class="notranslate">./configure</code> to not use symlinked libraries</li> <li>Various other hacks over the last week <g-emoji class="g-emoji" alias="sob" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f62d.png">😭</g-emoji></li> </ul>
1
<p dir="auto">I am working on adding batchnorm in the discriminator in WGAN-GP. However, I encountered a bug where <strong>gpu memory continues to increase</strong> when using <strong>batchnorm double backprop</strong>. This bug only occurs when using batchnorm. If i remove batchnorm from the model, the bug doesn't occur.</p> <p dir="auto">Here's the code you can experiment with.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch import torch.nn as nn from torch.autograd import Variable # Model (partial discriminator) D = nn.Sequential( nn.Conv2d(3, 64, kernel_size=4, stride=2, padding=1), nn.BatchNorm2d(64), # if you remove this, the bug does not occur. nn.LeakyReLU(0.2)) D.cuda() for i in range(1000): # Input x = Variable(torch.randn(10, 3, 128, 128).cuda(), requires_grad=True) out = D(x) grad = torch.autograd.grad(outputs=out, inputs=x, grad_outputs=torch.ones(out.size()).cuda(), retain_graph=True, create_graph=True, only_inputs=True)[0] grad_norm = grad.pow(2).sum().sqrt() loss = torch.mean((grad_norm - 1)**2) # Reset grad and backprop D.zero_grad() loss.backward() if (i+1) % 10 == 0: print (i+1)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">import</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span> <span class="pl-k">as</span> <span class="pl-s1">nn</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span>.<span class="pl-s1">autograd</span> <span class="pl-k">import</span> <span class="pl-v">Variable</span> <span class="pl-c"># Model (partial discriminator)</span> <span class="pl-v">D</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Sequential</span>( <span class="pl-s1">nn</span>.<span class="pl-v">Conv2d</span>(<span class="pl-c1">3</span>, <span class="pl-c1">64</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span><span class="pl-c1">4</span>, <span class="pl-s1">stride</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-c1">1</span>), <span class="pl-s1">nn</span>.<span class="pl-v">BatchNorm2d</span>(<span class="pl-c1">64</span>), <span class="pl-c"># if you remove this, the bug does not occur.</span> <span class="pl-s1">nn</span>.<span class="pl-v">LeakyReLU</span>(<span class="pl-c1">0.2</span>)) <span class="pl-v">D</span>.<span class="pl-en">cuda</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">1000</span>): <span class="pl-c"># Input </span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Variable</span>(<span class="pl-s1">torch</span>.<span class="pl-en">randn</span>(<span class="pl-c1">10</span>, <span class="pl-c1">3</span>, <span class="pl-c1">128</span>, <span class="pl-c1">128</span>).<span class="pl-en">cuda</span>(), <span class="pl-s1">requires_grad</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">out</span> <span class="pl-c1">=</span> <span class="pl-v">D</span>(<span class="pl-s1">x</span>) <span class="pl-s1">grad</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">autograd</span>.<span class="pl-en">grad</span>(<span class="pl-s1">outputs</span><span class="pl-c1">=</span><span class="pl-s1">out</span>, <span class="pl-s1">inputs</span><span class="pl-c1">=</span><span class="pl-s1">x</span>, <span class="pl-s1">grad_outputs</span><span class="pl-c1">=</span><span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-s1">out</span>.<span class="pl-en">size</span>()).<span class="pl-en">cuda</span>(), <span class="pl-s1">retain_graph</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">create_graph</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">only_inputs</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)[<span class="pl-c1">0</span>] <span class="pl-s1">grad_norm</span> <span class="pl-c1">=</span> <span class="pl-s1">grad</span>.<span class="pl-en">pow</span>(<span class="pl-c1">2</span>).<span class="pl-en">sum</span>().<span class="pl-en">sqrt</span>() <span class="pl-s1">loss</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">mean</span>((<span class="pl-s1">grad_norm</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span>)<span class="pl-c1">**</span><span class="pl-c1">2</span>) <span class="pl-c"># Reset grad and backprop</span> <span class="pl-v">D</span>.<span class="pl-en">zero_grad</span>() <span class="pl-s1">loss</span>.<span class="pl-en">backward</span>() <span class="pl-k">if</span> (<span class="pl-s1">i</span><span class="pl-c1">+</span><span class="pl-c1">1</span>) <span class="pl-c1">%</span> <span class="pl-c1">10</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span>: <span class="pl-en">print</span> (<span class="pl-s1">i</span><span class="pl-c1">+</span><span class="pl-c1">1</span>)</pre></div>
<p dir="auto">This is probably related to the previous <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="246937771" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/2264" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/2264/hovercard" href="https://github.com/pytorch/pytorch/issues/2264">#2264</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a><br> Running many iterations of double backward involving BatchNorm2d may cause out of memory error. There may be a memory leak somewhere? Code to reproduce the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class BatchNormTest(nn.Module): def __init__(self, c, num_classes=2): super(BatchNormTest, self).__init__() self.bn = nn.BatchNorm2d(c) def forward(self, x): out = x out = self.bn(out) out = F.relu(out) return out c = 100 net = BatchNormTest(c) use_cuda = True inputs = Variable(torch.rand(100,c,100,100), requires_grad=True) if use_cuda: net.cuda() inputs = inputs.cuda() # on my server it fails at iteration 14 T = 100 for i in range(T): output = net(inputs) loss1 = torch.sum(output) grad_params = torch.autograd.grad(loss1, inputs, create_graph=True) grad = grad_params[0] loss = torch.sum(grad) loss.backward() print(i)"><pre class="notranslate"><code class="notranslate">import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class BatchNormTest(nn.Module): def __init__(self, c, num_classes=2): super(BatchNormTest, self).__init__() self.bn = nn.BatchNorm2d(c) def forward(self, x): out = x out = self.bn(out) out = F.relu(out) return out c = 100 net = BatchNormTest(c) use_cuda = True inputs = Variable(torch.rand(100,c,100,100), requires_grad=True) if use_cuda: net.cuda() inputs = inputs.cuda() # on my server it fails at iteration 14 T = 100 for i in range(T): output = net(inputs) loss1 = torch.sum(output) grad_params = torch.autograd.grad(loss1, inputs, create_graph=True) grad = grad_params[0] loss = torch.sum(grad) loss.backward() print(i) </code></pre></div> <p dir="auto">The error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="THCudaCheck FAIL file=/private/home/hongyizmit/pytorch/torch/lib/THC/generic/THCStorage.cu line=66 error=2 : out of memory Traceback (most recent call last): File &quot;models/testres.py&quot;, line 37, in &lt;module&gt; loss.backward() File &quot;/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/autograd/variable.py&quot;, line 156, in backward torch.autograd.backward(self, gradient, retain_graph, create_graph, retain_variables) File &quot;/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/autograd/__init__.py&quot;, line 98, in backward variables, grad_variables, retain_graph) File &quot;/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/nn/_functions/thnn/batchnorm_double_backwards.py&quot;, line 80, in batchnorm_double_backwards_fn gG = ggI * first_back_grad_input(gO, 1) File &quot;/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/nn/_functions/thnn/batchnorm_double_backwards.py&quot;, line 73, in first_back_grad_input input_sub_mu.div(sigma2_eps) * sum_exclude_dim1(gO * input_sub_mu)) File &quot;/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/autograd/variable.py&quot;, line 829, in __mul__ return self.mul(other) File &quot;/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/autograd/variable.py&quot;, line 339, in mul return Mul.apply(self, other) File &quot;/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/autograd/_functions/basic_ops.py&quot;, line 48, in forward return a.mul(b) RuntimeError: cuda runtime error (2) : out of memory at /private/home/hongyizmit/pytorch/torch/lib/THC/generic/THCStorage.cu:66"><pre class="notranslate"><code class="notranslate">THCudaCheck FAIL file=/private/home/hongyizmit/pytorch/torch/lib/THC/generic/THCStorage.cu line=66 error=2 : out of memory Traceback (most recent call last): File "models/testres.py", line 37, in &lt;module&gt; loss.backward() File "/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/autograd/variable.py", line 156, in backward torch.autograd.backward(self, gradient, retain_graph, create_graph, retain_variables) File "/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/autograd/__init__.py", line 98, in backward variables, grad_variables, retain_graph) File "/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/nn/_functions/thnn/batchnorm_double_backwards.py", line 80, in batchnorm_double_backwards_fn gG = ggI * first_back_grad_input(gO, 1) File "/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/nn/_functions/thnn/batchnorm_double_backwards.py", line 73, in first_back_grad_input input_sub_mu.div(sigma2_eps) * sum_exclude_dim1(gO * input_sub_mu)) File "/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/autograd/variable.py", line 829, in __mul__ return self.mul(other) File "/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/autograd/variable.py", line 339, in mul return Mul.apply(self, other) File "/private/home/hongyizmit/.conda/envs/torchmaster/lib/python2.7/site-packages/torch/autograd/_functions/basic_ops.py", line 48, in forward return a.mul(b) RuntimeError: cuda runtime error (2) : out of memory at /private/home/hongyizmit/pytorch/torch/lib/THC/generic/THCStorage.cu:66 </code></pre></div>
1
<p dir="auto"><code class="notranslate">&lt;webview&gt;</code> elements are able to detect and/or override many of their guest web pages' actions, such as when guest web pages attempt to close themselves and open new windows. However, there is a need for detecting and overriding another type of guest-page event: when an <code class="notranslate">&lt;input type=file&gt;</code> element in a guest page is activated.</p> <p dir="auto">For instance, in the Objective-C Apple WebKit framework, the WebUIDelegate method <a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/WebKit/Protocols/WebUIDelegate_Protocol/index.html#//apple_ref/occ/instm/NSObject/webView:runOpenPanelForFileButtonWithResultListener:" rel="nofollow"><code class="notranslate">webView:runOpenPanelForFileButtonWithResultListener:</code></a> can <a href="http://stackoverflow.com/questions/5177640/cocoa-webkit-how-to-get-file-upload-file-system-access-in-webkit" rel="nofollow">intercept web pages' attempts to display file-input dialogs</a> and allows the surrounding application to display whatever sort of file dialog it wants instead, passing the chosen files back to the web page.</p> <p dir="auto">Currently, when an <code class="notranslate">&lt;input type=file&gt;</code> element is activated, Electron will always display the system OS's default file-choosing dialog, with no way for the application to intervene, display an alternate UI, or automatically pass specific files back to the web page. The <code class="notranslate">&lt;webview&gt;</code> element should support overriding file-chooser dialogs.</p> <p dir="auto">This issue is somewhat related to Electron issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46982659" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/749" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/749/hovercard" href="https://github.com/electron/electron/issues/749">#749</a>. In particular, NW.js, a project alternative to Electron, somewhat obviates the need for this enhancement by allowing <code class="notranslate">&lt;input type=file&gt;</code> elements' files to be directly set. However, it still has the problem of allowing any guest page to open a file-chooser dialog and modally block the application.</p> <p dir="auto">Perhaps this would ideally be implemented similarly to how Electron has implemented overriding popup windows, but it has to also allow the host application to pass back files to waiting guest web pages—for instance, this could be done by implementing the following:</p> <ol dir="auto"> <li>Adding an <code class="notranslate">overridefileuploads</code> attribute to <code class="notranslate">&lt;webview&gt;</code>, similarly to <code class="notranslate">allowpopups</code>. This attribute is off by default. When it is off, attempts by the guest page to open a file-upload dialog will occur normally, as they currently do. When it is on, the <code class="notranslate">&lt;webview&gt;</code> will modally wait for the <code class="notranslate">uploadFiles(filePaths)</code> method, defined below, to be called.</li> <li>Having <code class="notranslate">&lt;webview&gt;s</code> emit a <code class="notranslate">file-dialog</code> event to <code class="notranslate">&lt;webview&gt;</code>, similarly to <code class="notranslate">new-window</code>. If <code class="notranslate">overidefileupload</code> is on, then this event indicates that its <code class="notranslate">isWaitingForFileUpload()</code> method now returns true.</li> <li>Adding a <code class="notranslate">isWaitingForFileUpload()</code> method to <code class="notranslate">&lt;webview&gt;</code>. Returns true if the <code class="notranslate">&lt;webview&gt;</code> is waiting for files to be chosen (which can only occur if its <code class="notranslate">overridefileuploads</code> attribute is on). During this mode, the <code class="notranslate">&lt;webview&gt;</code> is frozen and cannot execute commands such as <code class="notranslate">cut()</code>, which will cause it to throw an error (or perhaps it would cancel the file upload, as if the Escape key were pressed while a file-upload dialog was activate).</li> <li>Adding a <code class="notranslate">uploadFiles(filePaths)</code> method to <code class="notranslate">&lt;webview&gt;</code>. The <code class="notranslate">&lt;webview&gt;</code> must be in waiting-for-files mode. Otherwise, this throws an error (or maybe acts as a no-op, in which case it should return a special value).</li> </ol> <p dir="auto">Alternatively, something like <a href="https://github.com/nwjs/nw.js/wiki/Window#user-content-new-win-policy">NW.js's <code class="notranslate">Window</code>'s <code class="notranslate">new-win-policy</code> event</a> could be used.</p> <p dir="auto">Many of these changes might also be added to <code class="notranslate">webContents</code>, wherever they would make sense.</p> <p dir="auto">However, whatever the method with which this functionality is implemented, there will remain a need for overriding or at least disallowing guest pages from opening file-choosing dialogs whenever they want to, just as their ability to open popups or close themselves can also be overridden.</p>
<p dir="auto">It could be useful to be able to intercept dialog events from webview (alert, confirm, prompt) to be able to implement our own gui.</p> <p dir="auto">Also it is part of chrome webview events<br> <a href="https://developer.chrome.com/apps/tags/webview#event-dialog" rel="nofollow">https://developer.chrome.com/apps/tags/webview#event-dialog</a></p>
1
<p dir="auto">I'll log this for now:</p> <p dir="auto">on ubuntu 16.04.2<br> numpy 1.13.1 installed fine on python 3.6.2.rc1<br> numpy 1.13.0 installed fine on python 3.7.0a0 (heads/master:6969eaf)</p> <p dir="auto">Numpy 1.13.1 failure in building:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" building 'numpy.random.mtrand' extension compiling C sources C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC creating build/temp.linux-x86_64-3.7/numpy/random creating build/temp.linux-x86_64-3.7/numpy/random/mtrand compile options: '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include/python3.7m -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -c' gcc: numpy/random/mtrand/mtrand.c numpy/random/mtrand/mtrand.c: In function ‘__Pyx_PyCFunction_FastCall’: numpy/random/mtrand/mtrand.c:44374:12: error: too many arguments to function ‘(PyObject * (*)(PyObject *, PyObject **, Py_ssize_t))meth’ return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); ^ numpy/random/mtrand/mtrand.c: In function ‘__Pyx_PyCFunction_FastCall’: numpy/random/mtrand/mtrand.c:44374:12: error: too many arguments to function ‘(PyObject * (*)(PyObject *, PyObject **, Py_ssize_t))meth’ return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); ^ error: Command &quot;gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include/python3.7m -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -c numpy/random/mtrand/mtrand.c -o build/temp.linux-x86_64-3.7/numpy/random/mtrand/mtrand.o -MMD -MF build/temp.linux-x86_64-3.7/numpy/random/mtrand/mtrand.o.d&quot; failed with exit status 1 ---------------------------------------- Rolling back uninstall of numpy"><pre class="notranslate"><code class="notranslate"> building 'numpy.random.mtrand' extension compiling C sources C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC creating build/temp.linux-x86_64-3.7/numpy/random creating build/temp.linux-x86_64-3.7/numpy/random/mtrand compile options: '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include/python3.7m -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -c' gcc: numpy/random/mtrand/mtrand.c numpy/random/mtrand/mtrand.c: In function ‘__Pyx_PyCFunction_FastCall’: numpy/random/mtrand/mtrand.c:44374:12: error: too many arguments to function ‘(PyObject * (*)(PyObject *, PyObject **, Py_ssize_t))meth’ return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); ^ numpy/random/mtrand/mtrand.c: In function ‘__Pyx_PyCFunction_FastCall’: numpy/random/mtrand/mtrand.c:44374:12: error: too many arguments to function ‘(PyObject * (*)(PyObject *, PyObject **, Py_ssize_t))meth’ return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); ^ error: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include/python3.7m -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -c numpy/random/mtrand/mtrand.c -o build/temp.linux-x86_64-3.7/numpy/random/mtrand/mtrand.o -MMD -MF build/temp.linux-x86_64-3.7/numpy/random/mtrand/mtrand.o.d" failed with exit status 1 ---------------------------------------- Rolling back uninstall of numpy </code></pre></div>
<p dir="auto">When i use a float32 dtype array as the argument to numpy.fft.rfft, I get a complex128 dtype array as the output instead of a complex64 dtype array.<br> Similarly, when I use a complex64 dtype array as the argument to numpy.fft.irfft, I get a float64 dtype array instead of a float32 dtype array.<br> Here is a code snippet :</p> <p dir="auto">In [4]: a = np.array([1., 2., 3.], dtype=np.float32)<br> In [5]: a<br> Out[5]: array([ 1., 2., 3.], dtype=float32)<br> In [6]: b = np.fft.rfft(a)<br> In [7]: b<br> Out[7]: array([ 6.0+0.j , -1.5+0.8660254j])<br> In [8]: b.dtype<br> Out[8]: dtype('complex128')<br> In [9]: b.astype(np.complex64)<br> Out[9]: array([ 6.0+0.j , -1.5+0.86602539j], dtype=complex64)<br> In [10]: c = np.fft.irfft(b)<br> In [11]: c<br> Out[11]: array([ 2.25, 3.75])<br> In [12]: c.dtype<br> Out[12]: dtype('float64')</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <ul dir="auto"> <li>vars</li> <li>jinj2 templates</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ansible --version ansible 1.9.6 configured module search path = ./library:$ANSIBLE_HOME/library"><pre class="notranslate"><code class="notranslate"># ansible --version ansible 1.9.6 configured module search path = ./library:$ANSIBLE_HOME/library </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# env | grep ANSIBLE_ ANSIBLE_INSTRUMENT_MODULES=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS=-F /root/.axion/ssh_config ANSIBLE_INVENTORY=/root/vFusion/ansible-systems/inventory/fusion/metapod/proxmox/ ANSIBLE_VAULT_PASSWORD_FILE=/root/.config/ansible-systems/vault-proxmox.pass ANSIBLE_VAR_DEFAULTS_GLOB=/root/vFusion/ansible-systems/inventory/fusion/metapod/defaults/*.yml ANSIBLE_VARS_PLUGINS=/root/vFusion/ansible-systems/plugins/vars"><pre class="notranslate"><code class="notranslate"># env | grep ANSIBLE_ ANSIBLE_INSTRUMENT_MODULES=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS=-F /root/.axion/ssh_config ANSIBLE_INVENTORY=/root/vFusion/ansible-systems/inventory/fusion/metapod/proxmox/ ANSIBLE_VAULT_PASSWORD_FILE=/root/.config/ansible-systems/vault-proxmox.pass ANSIBLE_VAR_DEFAULTS_GLOB=/root/vFusion/ansible-systems/inventory/fusion/metapod/defaults/*.yml ANSIBLE_VARS_PLUGINS=/root/vFusion/ansible-systems/plugins/vars </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Red Hat Enterprise Linux Server release 7.3 (Maipo)</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Duplicate variable names causes recursive loop in template string</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Below is bug.yml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Task that causes recursive loop :) hosts: all vars: hello: &quot;{{ hello }}&quot;"><pre class="notranslate"><code class="notranslate">- name: Task that causes recursive loop :) hosts: all vars: hello: "{{ hello }}" </code></pre></div> <p dir="auto">Below is the bug 😄.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ansible-playbook -i my_inventory bug.yml [WARNING]: non fatal error while trying to template play variables: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: recursive loop detected in template string: {{ hello }} Fri 27 Jan 14:58:52.707379: PLAY [Template string that causes recursive loop :)] ************************** PLAY RECAP ******************************************************************** Total elapsed wallclock time: 0.110759019852"><pre class="notranslate"><code class="notranslate"># ansible-playbook -i my_inventory bug.yml [WARNING]: non fatal error while trying to template play variables: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: recursive loop detected in template string: {{ hello }} Fri 27 Jan 14:58:52.707379: PLAY [Template string that causes recursive loop :)] ************************** PLAY RECAP ******************************************************************** Total elapsed wallclock time: 0.110759019852 </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">No recursive loop in output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ansible-playbook -i my_inventory bug.yml Fri 27 Jan 14:58:52.707379: PLAY [Template string that causes recursive loop :)] ************************** PLAY RECAP ******************************************************************** Total elapsed wallclock time: 0.110759019852"><pre class="notranslate"><code class="notranslate"># ansible-playbook -i my_inventory bug.yml Fri 27 Jan 14:58:52.707379: PLAY [Template string that causes recursive loop :)] ************************** PLAY RECAP ******************************************************************** Total elapsed wallclock time: 0.110759019852 </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ansible-playbook -i my_inventory bug.yml [WARNING]: non fatal error while trying to template play variables: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: recursive loop detected in template string: {{ hello }} Fri 27 Jan 14:58:52.707379: PLAY [Template string that causes recursive loop :)] ************************** PLAY RECAP ******************************************************************** Total elapsed wallclock time: 0.110759019852"><pre class="notranslate"><code class="notranslate"># ansible-playbook -i my_inventory bug.yml [WARNING]: non fatal error while trying to template play variables: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: Failed to template {{ hello }}: recursive loop detected in template string: {{ hello }} Fri 27 Jan 14:58:52.707379: PLAY [Template string that causes recursive loop :)] ************************** PLAY RECAP ******************************************************************** Total elapsed wallclock time: 0.110759019852 </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</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">Latest unstable version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.5.0 (devel 1068aa3ce7) last updated 2017/11/01 11:34:22 (GMT +200) config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/actionmystique/Ansible/git-yang-networkop/ansible-101/library'] ansible python module location = /home/actionmystique/src/Ansible/git-ansible/lib/ansible executable location = /home/actionmystique/src/Ansible/git-ansible/bin/ansible 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.5.0 (devel 1068aa3ce7) last updated 2017/11/01 11:34:22 (GMT +200) config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/actionmystique/Ansible/git-yang-networkop/ansible-101/library'] ansible python module location = /home/actionmystique/src/Ansible/git-ansible/lib/ansible executable location = /home/actionmystique/src/Ansible/git-ansible/bin/ansible 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> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="inventory = ./hosts library = /home/actionmystique/Ansible/git-yang-networkop/ansible-101/library forks = 1000 gathering = explicit gather_timeout = 30 roles_path = /home/actionmystique/Ansible/Roles/roles private_role_vars = yes hash_behaviour = merge log_path = /var/log/ansible.log retry_files_enabled = False show_custom_stats = True timeout = 120 pipelining = True connect_timeout = 240 connect_retry_timeout = 180"><pre class="notranslate"><code class="notranslate">inventory = ./hosts library = /home/actionmystique/Ansible/git-yang-networkop/ansible-101/library forks = 1000 gathering = explicit gather_timeout = 30 roles_path = /home/actionmystique/Ansible/Roles/roles private_role_vars = yes hash_behaviour = merge log_path = /var/log/ansible.log retry_files_enabled = False show_custom_stats = True timeout = 120 pipelining = True connect_timeout = 240 connect_retry_timeout = 180 </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <ul dir="auto"> <li>host: Ubuntu 17.04 4.10</li> <li>targets: <ul dir="auto"> <li>NX-OSv 9k 7.0(3)I6(1)</li> </ul> </li> <li>paramiko: 2.0.6</li> </ul> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When the <strong>script</strong> module is run <strong>locally</strong> (no ssh) and returns an error, stderr is present but not stderr_lines.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto"><strong>Role</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Checking for duplicate keys in json answer local_action: script /home/actionmystique/Bash/Scripts/json-check-duplicate-keys.sh '&quot;{{ uri_return.content }}&quot;' 'false' register: json_check_duplicate_keys failed_when: json_check_duplicate_keys.stderr "><pre class="notranslate"><code class="notranslate">- name: Checking for duplicate keys in json answer local_action: script /home/actionmystique/Bash/Scripts/json-check-duplicate-keys.sh '"{{ uri_return.content }}"' 'false' register: json_check_duplicate_keys failed_when: json_check_duplicate_keys.stderr </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">stderr_lines</p> <h5 dir="auto">ACTUAL RESULTS:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [NX_OSv_9k_Spine_31 -&gt; localhost]: FAILED! =&gt; { &quot;changed&quot;: true, &quot;failed_when_result&quot;: true, &quot;msg&quot;: &quot;non-zero return code&quot;, &quot;rc&quot;: 2, &quot;stderr&quot;: &quot;Checking /tmp/data.json...\n----\nDuplicate keys found in /tmp/data.json:\n* subinterface\n* subinterface\n* subinterface\n* subinterface\n* subinterface\n* subinterface\n* subinterface\n* subinterface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n/root/.ansible/tmp/ansible-tmp-1509543791.83-202226908799664/json-check-duplicate-keys.sh: line 99: exit: return_code: numeric argument required\n&quot;, &quot;stdout&quot;: &quot;-------------------------------------------------------------------\nChecking for duplicate keys in json file /tmp/fixed_json_data.json\n-------------------------------------------------------------------\n&quot;, &quot;stdout_lines&quot;: [ &quot;-------------------------------------------------------------------&quot;, &quot;Checking for duplicate keys in json file /tmp/fixed_json_data.json&quot;, &quot;-------------------------------------------------------------------&quot; ] }"><pre class="notranslate"><code class="notranslate">fatal: [NX_OSv_9k_Spine_31 -&gt; localhost]: FAILED! =&gt; { "changed": true, "failed_when_result": true, "msg": "non-zero return code", "rc": 2, "stderr": "Checking /tmp/data.json...\n----\nDuplicate keys found in /tmp/data.json:\n* subinterface\n* subinterface\n* subinterface\n* subinterface\n* subinterface\n* subinterface\n* subinterface\n* subinterface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n* interface\n/root/.ansible/tmp/ansible-tmp-1509543791.83-202226908799664/json-check-duplicate-keys.sh: line 99: exit: return_code: numeric argument required\n", "stdout": "-------------------------------------------------------------------\nChecking for duplicate keys in json file /tmp/fixed_json_data.json\n-------------------------------------------------------------------\n", "stdout_lines": [ "-------------------------------------------------------------------", "Checking for duplicate keys in json file /tmp/fixed_json_data.json", "-------------------------------------------------------------------" ] } </code></pre></div>
0
<p dir="auto">Trying to get <a href="https://github.com/kennethreitz/requests/blob/master/README.rst?raw=true">https://github.com/kennethreitz/requests/blob/master/README.rst?raw=true</a> fails. Getting <a href="https://github.com/kennethreitz/requests/raw/master/README.rst">https://github.com/kennethreitz/requests/raw/master/README.rst</a> (which the former redirects to) succeeds, so I think this has something to do with the handling the redirect.</p> <p dir="auto">I'm not 100% sure this is an issue with requests (it's possible the server is misbehaving), but the same URL does work in the browser and in curl and wget.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python bjwebb@winslow Python 3.4.3 (default, Mar 25 2015, 17:13:50) [GCC 4.9.2 20150304 (prerelease)] on linux Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import requests &gt;&gt;&gt; requests.__version__ '2.6.2' &gt;&gt;&gt; r = requests.get('https://github.com/kennethreitz/requests/blob/master/README.rst?raw=true') Traceback (most recent call last): File &quot;/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 372, in _make_request httplib_response = conn.getresponse(buffering=True) TypeError: getresponse() got an unexpected keyword argument 'buffering' During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 544, in urlopen body=body, headers=headers) File &quot;/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 374, in _make_request httplib_response = conn.getresponse() File &quot;/usr/lib/python3.4/http/client.py&quot;, line 1162, in getresponse raise ResponseNotReady(self.__state) http.client.ResponseNotReady: Request-sent During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/usr/lib/python3.4/site-packages/requests/adapters.py&quot;, line 370, in send timeout=timeout File &quot;/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 597, in urlopen _stacktrace=sys.exc_info()[2]) File &quot;/usr/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py&quot;, line 245, in increment raise six.reraise(type(error), error, _stacktrace) File &quot;/usr/lib/python3.4/site-packages/requests/packages/urllib3/packages/six.py&quot;, line 309, in reraise raise value.with_traceback(tb) File &quot;/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 544, in urlopen body=body, headers=headers) File &quot;/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 374, in _make_request httplib_response = conn.getresponse() File &quot;/usr/lib/python3.4/http/client.py&quot;, line 1162, in getresponse raise ResponseNotReady(self.__state) requests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', ResponseNotReady('Request-sent',)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/usr/lib/python3.4/site-packages/requests/api.py&quot;, line 68, in get return request('get', url, **kwargs) File &quot;/usr/lib/python3.4/site-packages/requests/api.py&quot;, line 50, in request response = session.request(method=method, url=url, **kwargs) File &quot;/usr/lib/python3.4/site-packages/requests/sessions.py&quot;, line 465, in request resp = self.send(prep, **send_kwargs) File &quot;/usr/lib/python3.4/site-packages/requests/sessions.py&quot;, line 594, in send history = [resp for resp in gen] if allow_redirects else [] File &quot;/usr/lib/python3.4/site-packages/requests/sessions.py&quot;, line 594, in &lt;listcomp&gt; history = [resp for resp in gen] if allow_redirects else [] File &quot;/usr/lib/python3.4/site-packages/requests/sessions.py&quot;, line 196, in resolve_redirects **adapter_kwargs File &quot;/usr/lib/python3.4/site-packages/requests/sessions.py&quot;, line 573, in send r = adapter.send(request, **kwargs) File &quot;/usr/lib/python3.4/site-packages/requests/adapters.py&quot;, line 415, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', ResponseNotReady('Request-sent',)) &gt;&gt;&gt; "><pre class="notranslate"><code class="notranslate">$ python bjwebb@winslow Python 3.4.3 (default, Mar 25 2015, 17:13:50) [GCC 4.9.2 20150304 (prerelease)] on linux Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import requests &gt;&gt;&gt; requests.__version__ '2.6.2' &gt;&gt;&gt; r = requests.get('https://github.com/kennethreitz/requests/blob/master/README.rst?raw=true') Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 372, in _make_request httplib_response = conn.getresponse(buffering=True) TypeError: getresponse() got an unexpected keyword argument 'buffering' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 544, in urlopen body=body, headers=headers) File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 374, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.4/http/client.py", line 1162, in getresponse raise ResponseNotReady(self.__state) http.client.ResponseNotReady: Request-sent During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/requests/adapters.py", line 370, in send timeout=timeout File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 597, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py", line 245, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/packages/six.py", line 309, in reraise raise value.with_traceback(tb) File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 544, in urlopen body=body, headers=headers) File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 374, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.4/http/client.py", line 1162, in getresponse raise ResponseNotReady(self.__state) requests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', ResponseNotReady('Request-sent',)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/usr/lib/python3.4/site-packages/requests/api.py", line 68, in get return request('get', url, **kwargs) File "/usr/lib/python3.4/site-packages/requests/api.py", line 50, in request response = session.request(method=method, url=url, **kwargs) File "/usr/lib/python3.4/site-packages/requests/sessions.py", line 465, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3.4/site-packages/requests/sessions.py", line 594, in send history = [resp for resp in gen] if allow_redirects else [] File "/usr/lib/python3.4/site-packages/requests/sessions.py", line 594, in &lt;listcomp&gt; history = [resp for resp in gen] if allow_redirects else [] File "/usr/lib/python3.4/site-packages/requests/sessions.py", line 196, in resolve_redirects **adapter_kwargs File "/usr/lib/python3.4/site-packages/requests/sessions.py", line 573, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3.4/site-packages/requests/adapters.py", line 415, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', ResponseNotReady('Request-sent',)) &gt;&gt;&gt; </code></pre></div>
<p dir="auto">Starting in 2.6.1 an exception is thrown if a connection with chunked transfer-encoding is reused. I suspect that the bug is in the bundled urllib3 which was upgraded from 1.10.2 to 1.10.3.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env python import requests s = requests.Session() r = s.get('http://httpbin.org/stream/1') r.json() r = s.get('http://httpbin.org/stream/1') r.json()"><pre class="notranslate"><span class="pl-c">#!/usr/bin/env python</span> <span class="pl-k">import</span> <span class="pl-s1">requests</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-v">Session</span>() <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>.<span class="pl-en">get</span>(<span class="pl-s">'http://httpbin.org/stream/1'</span>) <span class="pl-s1">r</span>.<span class="pl-en">json</span>() <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>.<span class="pl-en">get</span>(<span class="pl-s">'http://httpbin.org/stream/1'</span>) <span class="pl-s1">r</span>.<span class="pl-en">json</span>()</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./test.py Traceback (most recent call last): File &quot;./test.py&quot;, line 10, in &lt;module&gt; r = s.get('http://httpbin.org/stream/1') File &quot;[...]/requests/requests/sessions.py&quot;, line 477, in get return self.request('GET', url, **kwargs) File &quot;[...]/requests/requests/sessions.py&quot;, line 465, in request resp = self.send(prep, **send_kwargs) File &quot;[...]/requests/requests/sessions.py&quot;, line 573, in send r = adapter.send(request, **kwargs) File &quot;[...]/requests/requests/adapters.py&quot;, line 415, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', ResponseNotReady())"><pre class="notranslate"><code class="notranslate">$ ./test.py Traceback (most recent call last): File "./test.py", line 10, in &lt;module&gt; r = s.get('http://httpbin.org/stream/1') File "[...]/requests/requests/sessions.py", line 477, in get return self.request('GET', url, **kwargs) File "[...]/requests/requests/sessions.py", line 465, in request resp = self.send(prep, **send_kwargs) File "[...]/requests/requests/sessions.py", line 573, in send r = adapter.send(request, **kwargs) File "[...]/requests/requests/adapters.py", line 415, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', ResponseNotReady()) </code></pre></div>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0</li> <li>Operating System version: mac</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>Start dubbo provider in 2.7.0 SpringBoot Annotation mode</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@SpringBootApplication @DubboComponentScan public class SpringBootProvider { public static void main(String[] args) { new EmbeddedZooKeeper(2181, false).start(); SpringApplication.run(SpringBootProvider.class); } }"><pre class="notranslate"><code class="notranslate">@SpringBootApplication @DubboComponentScan public class SpringBootProvider { public static void main(String[] args) { new EmbeddedZooKeeper(2181, false).start(); SpringApplication.run(SpringBootProvider.class); } } </code></pre></div> <ol start="2" dir="auto"> <li>set parameters as 2.5.10 for the ServiceBean.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Service(parameters = {&quot;key&quot;,&quot;value&quot;}) public class DemoServiceImpl implements DemoService { }"><pre class="notranslate"><code class="notranslate">@Service(parameters = {"key","value"}) public class DemoServiceImpl implements DemoService { } </code></pre></div> <ol start="3" dir="auto"> <li>run SpringBootProvider to start the service</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">The service has been started and register to zookeeper.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">It throws exception as below, service cannot be started up.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.lang.String[]' to required type 'java.util.Map' for property 'parameters'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String[]' to required type 'java.util.Map' for property 'parameters': no matching editors or conversion strategy found at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:591) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:603) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1532) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1491) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1231) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] ... 15 more Caused by: java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String[]' to required type 'java.util.Map' for property 'parameters': no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:306) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:576) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:603) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1532) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1491) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1231) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] ... 15 more"><pre class="notranslate"><code class="notranslate">Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.lang.String[]' to required type 'java.util.Map' for property 'parameters'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String[]' to required type 'java.util.Map' for property 'parameters': no matching editors or conversion strategy found at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:591) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:603) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1532) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1491) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1231) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] ... 15 more Caused by: java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String[]' to required type 'java.util.Map' for property 'parameters': no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:306) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:576) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:603) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1532) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1491) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1231) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] ... 15 more </code></pre></div> <p dir="auto">With my investigation, ConstructorArgValue discard in ServiceAnnotationBeanPostProcessor, which caused the issue.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private AbstractBeanDefinition buildServiceBeanDefinition(Service service, Class&lt;?&gt; interfaceClass, String annotatedServiceBeanName) { BeanDefinitionBuilder builder = rootBeanDefinition(ServiceBean.class) .addConstructorArgValue(service) // References &quot;ref&quot; property to annotated-@Service Bean .addPropertyReference(&quot;ref&quot;, annotatedServiceBeanName) .addPropertyValue(&quot;interface&quot;, interfaceClass.getName()); }"><pre class="notranslate"><code class="notranslate">private AbstractBeanDefinition buildServiceBeanDefinition(Service service, Class&lt;?&gt; interfaceClass, String annotatedServiceBeanName) { BeanDefinitionBuilder builder = rootBeanDefinition(ServiceBean.class) .addConstructorArgValue(service) // References "ref" property to annotated-@Service Bean .addPropertyReference("ref", annotatedServiceBeanName) .addPropertyValue("interface", interfaceClass.getName()); } </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.7</li> <li>Operating System version: windows 10</li> <li>Java version: 1.8</li> <li>registry: redis</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">并不清楚如何重现该问题,也不知道是否是普遍存在的问题。但是即便系统零负载内存仍然不断升高,直到fullGC</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">即便由于启动了一个netty服务,以及一些其他的东西,但是内存应该处于相对稳定的状态下,也不应该出现10倍以上的内存占用升高</p> <h3 dir="auto">Actual Result</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10443318/96087076-e2378d80-0ef5-11eb-8bb8-710aa6f27304.png"><img src="https://user-images.githubusercontent.com/10443318/96087076-e2378d80-0ef5-11eb-8bb8-710aa6f27304.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10443318/96086625-2e360280-0ef5-11eb-8dcd-22c235415434.png"><img src="https://user-images.githubusercontent.com/10443318/96086625-2e360280-0ef5-11eb-8dcd-22c235415434.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10443318/96086936-a3093c80-0ef5-11eb-93de-11d62d6d4724.png"><img src="https://user-images.githubusercontent.com/10443318/96086936-a3093c80-0ef5-11eb-93de-11d62d6d4724.png" alt="image" style="max-width: 100%;"></a></p>
0
<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>.):</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.): <code class="notranslate">gcloud update</code></p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): FEATURE REQUEST</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): all <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: GCE</li> <li><strong>OS</strong> (e.g. from /etc/os-release): all</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): all</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> <code class="notranslate">cluster/gce/util.sh</code> uses the <code class="notranslate">gcloud</code> cli a lot and does a <code class="notranslate">gcloud components update</code> (in the commonly used function <code class="notranslate">verify-prereqs</code>) before doing things like <code class="notranslate">kube-down</code>. <code class="notranslate">gcloud</code> updates can introduce breaking changes (for example in the recent 132.0.0 release it removed a bunch of flags). This has caused cross-the-board test failures like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="185530629" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/35654" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/35654/hovercard" href="https://github.com/kubernetes/kubernetes/issues/35654">#35654</a>.</p> <p dir="auto">But this is not limited to just tests. Any kubernetes GCE users who rely on the <code class="notranslate">kube-up</code> and <code class="notranslate">kube-down</code> commands could have been broken.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">Stop updating gcloud automatically. We could either warn user to have the required dependencies installed, or pin to specific versions of dependencies like gcloud.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br> download 1.4.4 release tarball<br> run <code class="notranslate">kube-up</code> and <code class="notranslate">kube-down</code></p> <p dir="auto"><strong>Anything else do we need to know</strong>:</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>.):</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.):</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto">BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <p dir="auto">Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.4", GitCommit:"3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56", GitTreeState:"clean", BuildDate:"2016-10-21T02:48:38Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}<br> Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.4", GitCommit:"3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56", GitTreeState:"clean", BuildDate:"2016-10-21T02:42:39Z", 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>: OpenStack</li> <li><strong>OS</strong> (e.g. from /etc/os-release): CoreOS</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux 4.6.3-coreos</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">We have a load balancer between apiserver and etcd cluster. The load balancer shutdowns idle watch connection after certain time out. It looks like apiserver does not like this, and it spills WARNING level log like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="W1116 04:33:15.614498 32646 reflector.go:330] pkg/storage/cacher.go:194: watch of *api.ReplicationController ended with: client: etcd cluster is unavailable or misconfigured"><pre class="notranslate"><code class="notranslate">W1116 04:33:15.614498 32646 reflector.go:330] pkg/storage/cacher.go:194: watch of *api.ReplicationController ended with: client: etcd cluster is unavailable or misconfigured </code></pre></div> <p dir="auto">The error message "etcd cluster is unavailable or misconfigured" is a bit misleading in this situation.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">Getting EOF from remote server in idle connection is not really an error, so WARNING level is too harsh. It would be nice to silence it by changing log level to INFO if the cause of watch error is EOF.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">Configure load balancer between apiserver and etcd, and make its idle timeout to 60 seconds or something.</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
0
<p dir="auto">Not able to create <a href="https://c9.io" rel="nofollow">Cloud9</a> account.<br> Its asking credit card details to create an account.</p>
<p dir="auto">c9.io has been acquired by AWS and now requires the use of a credit card. Heroku also requires the use of a credit card for hosting - and also requires learning a bunch of Heroku-specific concepts - so it was never an optimal solution either.</p> <p dir="auto">Many people outside of the US (and many people under the age of 18) do not have credit cards, and are understandably intimidated about entering them into services where they could screw up and end up owing hundreds of dollars.</p> <p dir="auto">So let's step back and examine the underlying goals. We want campers to be able to:</p> <ul dir="auto"> <li>build the back end projects</li> <li>tie in databases and other services as necessary</li> <li>host these projects somewhere permanently accessible</li> </ul> <h3 dir="auto">Essential tools for these projects</h3> <p dir="auto">Development:</p> <ul dir="auto"> <li>c9.io (free, requires credit card)</li> <li>local development on machine</li> <li>hyperdev.com (free)</li> </ul> <p dir="auto">Hosting:</p> <ul dir="auto"> <li>Heroku (free, requires credit card)</li> <li>hyperdev.com (free, no credit card)</li> <li>AWS (free for 1 year, requires credit card - <a href="https://aws.amazon.com/free/" rel="nofollow">https://aws.amazon.com/free/</a>)</li> </ul> <p dir="auto">Mongo databases:</p> <ul dir="auto"> <li>MLAB (free 0.5 gb, no credit card)</li> <li>Compose (free 30-day trail, requires credit card)</li> </ul> <h3 dir="auto">Cloud development</h3> <p dir="auto">My thinking at this point is that we could recommend HyperDev for development and hosting, and MLAB for the database. This setup would be free, with no credit card required. As far as I can tell, HyperDev projects remain publicly accessible indefinitely, so these URLs could be submitted as the live demo links.</p> <p dir="auto">The main drawback with this is HyperDev is a limited environment (it's just Node, without Git, Linux, and many of the features of c9.io). But this limitation actually makes it much easier to use for beginners, in the same way that CodePen and JSBin abstract away file systems and web servers. HyperDev is essentially CodePen for Node.js development.</p> <h3 dir="auto">Local Development</h3> <p dir="auto">I also recommend we finalize a good tool for Node/Express development. In the past we've explored Vagrant and Docker.</p> <p dir="auto">We could even create an image that we could load onto a bootable USB with Linux. This way, people who only have access to Windows machines (or public computers) could do their work right on a USB. They wouldn't need to download gigabytes of files.</p> <p dir="auto">We could put the images for these bootable drives on Bit Torrent and even distribute the USBs in bulk through mail to Campsites.</p> <p dir="auto">I'm looking forward to hearing your thoughts on this.</p>
1
<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>Node Version:</strong><br> v12.16.1</li> <li><strong>Electron Version:</strong><br> v11.0.0-beta.13</li> <li><strong>Electron-builder Version:</strong><br> v22.9.1</li> <li><strong>Operating System:</strong><br> macOS 10.15.2</li> <li><strong>Last Known Working Electron version:</strong><br> v10.1.4</li> </ul> <p dir="auto">Hello,</p> <p dir="auto">I am not sure this is the right place to post this or if I should create this on electron-builder, but considering the behavior changed between version 10.x and 11 of electron it might be relevant. Please tell me if I should open it elsewhere instead. We are having an issue when building our application with version 11-beta using electron-builder. We rely on static binaries to be included in our build (ffmpeg, to name it), but when starting the built app we get a JS error saying the package.json file for this module is invalid (Unexpected end of JSON input).</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">The production application should run similarly to the dev</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Production build crashes on start</p> <p dir="auto">When looking at the content of the generated .app the (unpacked) app.asar has properly included the dependencies, and the package.json is valid.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">The project runs fine on dev, it's the finalized built version that has an issue. I created a repo with the base project, as well as uploaded the built version in the 1.0.0 release of this repo.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/lmancel/electron-tests.git $ yarn install $ yarn build"><pre class="notranslate">$ git clone https://github.com/lmancel/electron-tests.git $ yarn install $ yarn build</pre></div> <p dir="auto">Built binary:<br> <a href="https://github.com/lmancel/electron-tests/releases/download/1.0.0/electron-test-1.0.0-mac.zip">https://github.com/lmancel/electron-tests/releases/download/1.0.0/electron-test-1.0.0-mac.zip</a></p> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5877409/96736606-0e06b780-13bd-11eb-8a0a-e430d0a38fd3.png"><img src="https://user-images.githubusercontent.com/5877409/96736606-0e06b780-13bd-11eb-8a0a-e430d0a38fd3.png" alt="Screenshot 2020-10-21 at 16 41 49" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5877409/96737270-c59bc980-13bd-11eb-9e32-94b413942660.png"><img src="https://user-images.githubusercontent.com/5877409/96737270-c59bc980-13bd-11eb-9e32-94b413942660.png" alt="Screenshot 2020-10-21 at 16 50 46" style="max-width: 100%;"></a></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> 11.0.0-beta.1</li> <li><strong>Operating System:</strong><br> macOS 10.15.6</li> <li><strong>Last Known Working Electron version:</strong><br> 11.0.0-beta.1</li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">No Error</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Uncaught Exception:<br> SyntaxError: Error parsing /Applications/electron11.app/Contents/Resources/app.asar/node_modules/ffmpeg-static/package.json: Unexpected end of JSON input</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">packages:<br> "electron-builder": "^22.8.0",<br> "ffmpeg-static": "^4.2.0",</p> <p dir="auto">in main.js :<br> var pathToFfmpeg = require('ffmpeg-static');<br> console.log('pathToFfmpeg ',pathToFfmpeg);</p> <p dir="auto">npm run build</p> <p dir="auto">install dmg and open the app</p> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7902399/92990924-a4200600-f512-11ea-8329-d126c5a31fb4.png"><img src="https://user-images.githubusercontent.com/7902399/92990924-a4200600-f512-11ea-8329-d126c5a31fb4.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional Information</h3>
1
<p dir="auto">Hi,</p> <p dir="auto">I used to have (with Symfony 2.6) parameters in app/config/config.yml in this form :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... parameters: my-parameter: 123"><pre class="notranslate"><code class="notranslate">... parameters: my-parameter: 123 </code></pre></div> <p dir="auto">I was able to access these using <code class="notranslate">ContainerInterface-&gt;getParameter('my-parameter');</code>, however this now throws an InvalidArgumentException with the message "The parameter "my-parameter" must be defined." starting from Symfony 2.7.<br> There's no trace of this change in the change log nor in the UPGRADE-2.7.md file, is this a bug or is this new behavior intended ?</p> <p dir="auto">Thanks.</p>
<p dir="auto">The TimezoneType Field Type uses <code class="notranslate">\DateTimeZone::listIdentifiers()</code> to get the texts that are shown in the generated <code class="notranslate">select</code> HTML tag. Of course these are in perfect english. I've added all the texts needed to translate it in my AppBundle YAML translation files and configured the form like this so it gets translated with them:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class ProfileFormType extends AbstractType { ... public function buildForm(FormBuilderInterface $builder, array $options) { $constraint = new UserPassword(); $this-&gt;buildUserForm($builder, $options); $builder -&gt;add('timezone', 'timezone', array( 'label' =&gt; 'form.timezone.label', 'translation_domain' =&gt; 'AppBundle', 'choice_translation_domain' =&gt; true, )) ; } ... }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">ProfileFormType</span> <span class="pl-k">extends</span> <span class="pl-v">AbstractType</span> { ... <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">buildForm</span>(<span class="pl-smi"><span class="pl-smi">FormBuilderInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>builder</span>, <span class="pl-smi">array</span> <span class="pl-s1"><span class="pl-c1">$</span>options</span>) { <span class="pl-s1"><span class="pl-c1">$</span>constraint</span> = <span class="pl-k">new</span> <span class="pl-v">UserPassword</span>(); <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">buildUserForm</span>(<span class="pl-s1"><span class="pl-c1">$</span>builder</span>, <span class="pl-s1"><span class="pl-c1">$</span>options</span>); <span class="pl-s1"><span class="pl-c1">$</span>builder</span> -&gt;<span class="pl-en">add</span>(<span class="pl-s">'timezone'</span>, <span class="pl-s">'timezone'</span>, <span class="pl-en">array</span>( <span class="pl-s">'label'</span> =&gt; <span class="pl-s">'form.timezone.label'</span>, <span class="pl-s">'translation_domain'</span> =&gt; <span class="pl-s">'AppBundle'</span>, <span class="pl-s">'choice_translation_domain'</span> =&gt; <span class="pl-c1">true</span>, )) ; } ... }</pre></div> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/javiereguiluz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/javiereguiluz">@javiereguiluz</a> suggested me that those texts may be could be included in the Intl component like other resource bundles as Currrency, Regions, etc. If the community thinks this could be a new feature I would be glad to do the Spanish translations and could try to do the PR itself.</p>
0
<p dir="auto">If I am unable to pass in my secondary FirebaseApp into FirebaseAuth is there another way to achieve this?<br> I can only access the second database if I leave it in test mode and allow third party read/writes.</p>
<p dir="auto">Firebase auth still using google-service.json. if i use them, can only authenticate for 1 firebase.<br> So how can i use multiple firebase for authentication?<br> Please help.</p>
1
<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 checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical enhancement to an existing feature.</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%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed enhancements.</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 if the same enhancement was already implemented in the<br> 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 in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="697564497" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6348" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/6348/hovercard" href="https://github.com/celery/celery/issues/6348">#6348</a> <ul dir="auto"> <li>The situation is similar, but this issue is based on Redis Sentinel and we use AWS ElastiCache. Error message is also a bit different.</li> </ul> </li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Brief Summary</h1> <p dir="auto">When AWS ElastiCache for Redis has a replication structure and causes a failover, Celery doesn't failover and the main process tries graceful shutdown. It means,</p> <ul dir="auto"> <li>main process exits due to Unrecoverable error when there is no remaining task</li> <li>main process hangs until the remaining task finishes</li> </ul> <p dir="auto">The second one is critical for us because we have many long ongoing tasks. The first one is better than it because we automatically reboot the process, but we'd like to avoid it because Redis failover is a kind of expected behavior.</p> <p dir="auto">If some change is acceptable, we will try to create a pull request by ourselves.</p> <h1 dir="auto">Detail</h1> <p dir="auto">We got the following error when ElastiCache failover happened.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[CRITICAL - 2022-11-04 10:45:27 - 21 worker:207] Unrecoverable error: ReadOnlyError(&quot;You can't write against a read only replica.&quot;) Traceback (most recent call last): File &quot;/var/www/venv/lib/python3.7/site-packages/celery/worker/worker.py&quot;, line 203, in start self.blueprint.start(self) File &quot;/var/www/venv/lib/python3.7/site-packages/celery/bootsteps.py&quot;, line 116, in start step.start(parent) File &quot;/var/www/venv/lib/python3.7/site-packages/celery/bootsteps.py&quot;, line 365, in start return self.obj.start() File &quot;/var/www/venv/lib/python3.7/site-packages/celery/worker/consumer/consumer.py&quot;, line 326, in start blueprint.start(self) File &quot;/var/www/venv/lib/python3.7/site-packages/celery/bootsteps.py&quot;, line 116, in start step.start(parent) File &quot;/var/www/venv/lib/python3.7/site-packages/celery/worker/consumer/consumer.py&quot;, line 618, in start c.loop(*c.loop_args()) File &quot;/var/www/venv/lib/python3.7/site-packages/celery/worker/loops.py&quot;, line 97, in asynloop next(loop) File &quot;/var/www/venv/lib/python3.7/site-packages/kombu/asynchronous/hub.py&quot;, line 362, in create_loop cb(*cbargs) File &quot;/var/www/venv/lib/python3.7/site-packages/kombu/transport/redis.py&quot;, line 1266, in on_readable self.cycle.on_readable(fileno) File &quot;/var/www/venv/lib/python3.7/site-packages/kombu/transport/redis.py&quot;, line 504, in on_readable chan.handlers[type]() File &quot;/var/www/venv/lib/python3.7/site-packages/kombu/transport/redis.py&quot;, line 898, in _brpop_read **options) File &quot;/var/www/venv/lib/python3.7/site-packages/redis/client.py&quot;, line 1189, in parse_response response = connection.read_response() File &quot;/var/www/venv/lib/python3.7/site-packages/redis/connection.py&quot;, line 817, in read_response raise response redis.exceptions.ReadOnlyError: You can't write against a read only replica."><pre class="notranslate"><code class="notranslate">[CRITICAL - 2022-11-04 10:45:27 - 21 worker:207] Unrecoverable error: ReadOnlyError("You can't write against a read only replica.") Traceback (most recent call last): File "/var/www/venv/lib/python3.7/site-packages/celery/worker/worker.py", line 203, in start self.blueprint.start(self) File "/var/www/venv/lib/python3.7/site-packages/celery/bootsteps.py", line 116, in start step.start(parent) File "/var/www/venv/lib/python3.7/site-packages/celery/bootsteps.py", line 365, in start return self.obj.start() File "/var/www/venv/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 326, in start blueprint.start(self) File "/var/www/venv/lib/python3.7/site-packages/celery/bootsteps.py", line 116, in start step.start(parent) File "/var/www/venv/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 618, in start c.loop(*c.loop_args()) File "/var/www/venv/lib/python3.7/site-packages/celery/worker/loops.py", line 97, in asynloop next(loop) File "/var/www/venv/lib/python3.7/site-packages/kombu/asynchronous/hub.py", line 362, in create_loop cb(*cbargs) File "/var/www/venv/lib/python3.7/site-packages/kombu/transport/redis.py", line 1266, in on_readable self.cycle.on_readable(fileno) File "/var/www/venv/lib/python3.7/site-packages/kombu/transport/redis.py", line 504, in on_readable chan.handlers[type]() File "/var/www/venv/lib/python3.7/site-packages/kombu/transport/redis.py", line 898, in _brpop_read **options) File "/var/www/venv/lib/python3.7/site-packages/redis/client.py", line 1189, in parse_response response = connection.read_response() File "/var/www/venv/lib/python3.7/site-packages/redis/connection.py", line 817, in read_response raise response redis.exceptions.ReadOnlyError: You can't write against a read only replica. </code></pre></div> <p dir="auto">As far as we checked, an error during connection becomes <code class="notranslate">ConnectionError</code> and regarded as "Recoverable", but <code class="notranslate">ReadOnlyError</code> (and its parent <code class="notranslate">ResponseError</code>) is regarded as "Unrecoverable".</p> <h1 dir="auto">Design</h1> <h2 dir="auto">Architectural Considerations</h2> <p dir="auto">Maybe this part in kombu is related<br> <a href="https://github.com/celery/kombu/blob/v5.2.3/kombu/transport/redis.py#L128-L141">https://github.com/celery/kombu/blob/v5.2.3/kombu/transport/redis.py#L128-L141</a></p> <h2 dir="auto">Proposed Behavior</h2> <p dir="auto">When an error happens due to switching master to replica, retry connection and connect to the new master.</p> <h2 dir="auto">Proposed UI/UX</h2> <ul dir="auto"> <li>Adding some option to regard ResponseError as "Recoverable". Configuration key like <code class="notranslate">redis_retry_on_response_error</code> or <code class="notranslate">redis_retry_on_failover</code>?</li> </ul> <p dir="auto">But we're not sure if regarding ResponseError as "Recoverable" has a critical impact on existing behavior. We'd really appreciate advice from the community.</p> <h2 dir="auto">Diagrams</h2> <p dir="auto">N/A</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">None</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li 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 in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Description</h1> <p dir="auto">The migration command stated in the documentation doesn't work. The following works instead:<br> <code class="notranslate">python manage.py migrate django_celery_results</code></p> <h1 dir="auto">Suggestions</h1>
0
<p dir="auto">Templates exist to resolve placeholders in pieces of text and can only be used in indexed scripts and ingest. While scripts are used in many other places and exist to flexible execute custom logic related to the context it is running in.</p> <p dir="auto">Templates are integrated into the script infrastructure (mustache implements <code class="notranslate">ScriptEngineService</code> interface, <code class="notranslate">Template</code> extends from <code class="notranslate">Script</code> and all places that use templates are hardcoded to use mustache language). I think it makes sense to strip templates from the script infrastructure and let it be its own thing. For example <code class="notranslate">Template</code> should be not extend from Script, template implementations would implement <code class="notranslate">TemplateEngineService</code> and all of the template features would be accessible from a <code class="notranslate">TemplateService</code>.</p> <p dir="auto">The following is a list of tasks to work towards a separated <code class="notranslate">TemplateService</code>:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add <code class="notranslate">ScriptService#compileTemplate</code> and cut some script compilations to that method (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="223722245" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/24280" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/24280/hovercard" href="https://github.com/elastic/elasticsearch/pull/24280">#24280</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Cut all script compilation to <code class="notranslate">ScriptService#compileTemplate</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="223722245" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/24280" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/24280/hovercard" href="https://github.com/elastic/elasticsearch/pull/24280">#24280</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Create a <code class="notranslate">Template</code> class similar to the <code class="notranslate">Script</code> class that we can use to parse templates and use that with <code class="notranslate">ScriptService#compileTemplate</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Make a replacement for <code class="notranslate">ScriptEngineService</code> for templates, us it in <code class="notranslate">ScriptService#compileTemplate</code>, and make mustache implement that instead.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Remove template specific stuff from <code class="notranslate">Script</code> and <code class="notranslate">ScriptEngineService</code> (I'm starting to get fuzzy on exactly what this is so we'll have to clarify later)</li> </ul>
<p dir="auto">could you also change src/main/java/org/elasticsearch/index/mapper/core/TypeParsers.java (line 66) to support empty array for "fields"?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" } else if (fieldName.equals(&quot;fields&quot;)) { Map&lt;String, Object&gt; fieldsNode = (Map&lt;String, Object&gt;) fieldNode;"><pre class="notranslate"><code class="notranslate"> } else if (fieldName.equals("fields")) { Map&lt;String, Object&gt; fieldsNode = (Map&lt;String, Object&gt;) fieldNode; </code></pre></div> <p dir="auto">similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="31872705" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/5887" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/5887/hovercard" href="https://github.com/elastic/elasticsearch/issues/5887">#5887</a></p>
0
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>4.0.3</td> </tr> </tbody> </table> <p dir="auto">When form is submitted, both groups "Users' and 'Strict' are validated even if there are violations in 'Users'.</p> <p dir="auto">When put something like "123" on username and password,expected "This value is too short. It should have 6 characters or more." but "I am passwordLegal" message appears.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Users { public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata-&gt;addPropertyConstraint('username', new Assert\NotBlank()); $metadata-&gt;addPropertyConstraint('password', new Assert\NotBlank()); $metadata-&gt;addPropertyConstraint('username', new Assert\Length(array( 'min' =&gt; 6, 'max' =&gt; 12 ))); $metadata-&gt;addPropertyConstraint('password', new Assert\Length(array( 'min' =&gt; 6 ))); $metadata-&gt;addGetterMethodConstraint('password', 'passwordLegal', new Assert\IsTrue(array( 'message' =&gt; 'The password cannot match your username', 'groups' =&gt; array( 'Strict' ) ))); $metadata-&gt;setGroupSequence(array( 'Users', 'Strict' )); } public function passwordLegal() { die(&quot;I am passwordLegal&quot;); return $this-&gt;password !== $this-&gt;username; } }"><pre class="notranslate"><code class="notranslate">class Users { public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata-&gt;addPropertyConstraint('username', new Assert\NotBlank()); $metadata-&gt;addPropertyConstraint('password', new Assert\NotBlank()); $metadata-&gt;addPropertyConstraint('username', new Assert\Length(array( 'min' =&gt; 6, 'max' =&gt; 12 ))); $metadata-&gt;addPropertyConstraint('password', new Assert\Length(array( 'min' =&gt; 6 ))); $metadata-&gt;addGetterMethodConstraint('password', 'passwordLegal', new Assert\IsTrue(array( 'message' =&gt; 'The password cannot match your username', 'groups' =&gt; array( 'Strict' ) ))); $metadata-&gt;setGroupSequence(array( 'Users', 'Strict' )); } public function passwordLegal() { die("I am passwordLegal"); return $this-&gt;password !== $this-&gt;username; } } </code></pre></div>
<p dir="auto">Hello,</p> <p dir="auto">Using the example below (smallest I could think of).</p> <p dir="auto">If you try the given controller, you will have the following results:</p> <ul dir="auto"> <li>test1 : all OK [as expected]</li> <li>test2 : "is not three" [as expected]</li> <li>test3 : <strong>_CRASH</strong>_ ""Error: Call to a member function myBar() on a non-object in /myProject/src/Me/MeBundle/Doc/Foo.php line 31"" [<strong>_NOT</strong>_ as expected]</li> <li>test4 : "bar should not be null" [as expected]</li> </ul> <p dir="auto">I would expect test3 to give the same result as test4 (Meaning: If the first group of the GroupSequence is violated, the others are not executed).</p> <p dir="auto">This is explicitly specified in the doc here : <a href="http://symfony.com/doc/current/book/validation.html#group-sequence" rel="nofollow">http://symfony.com/doc/current/book/validation.html#group-sequence</a> ""In this example, it will first validate all constraints in the group User (which is the same as the Default group). <strong>Only if all constraints in that group are valid, the second group, Strict, will be validated.</strong>"" (emphasis mine)</p> <p dir="auto">and here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2639130" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/2947" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/2947/hovercard?comment_id=3509046&amp;comment_type=issue_comment" href="https://github.com/symfony/symfony/issues/2947#issuecomment-3509046">#2947 (comment)</a></p> <p dir="auto">cc @bschussek</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php namespace ME\MEBundle\Doc; use Symfony\Component\Validator\Constraints as Assert; /** * @Assert\GroupSequence({&quot;FilledIn&quot;, &quot;Foo&quot;}) */ class Foo { protected $bar; protected $checkBar; public function __construct($bar, $checkBar = false) { $this-&gt;bar = $bar; $this-&gt;checkBar = $checkBar; } /** * @Assert\True(groups={&quot;Foo&quot;}, message=&quot;is not three&quot;) */ public function isThree() { if ($this-&gt;checkBar &amp;&amp; null === $this-&gt;bar) { return new Bar(null); } return 3 == $this-&gt;getBar()-&gt;myBar(); } /** * @Assert\NotNull(groups={&quot;FilledIn&quot;}, message=&quot;bar should not be null&quot;) */ public function getBar() { return $this-&gt;bar; } }"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-k">namespace</span> <span class="pl-c1">ME</span>\<span class="pl-v">MEBundle</span>\<span class="pl-v">Doc</span>; <span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">Validator</span>\<span class="pl-v">Constraints</span> <span class="pl-k">as</span> <span class="pl-v">Assert</span>; <span class="pl-c">/**</span> <span class="pl-c"> * @Assert\GroupSequence({"FilledIn", "Foo"})</span> <span class="pl-c"> */</span> <span class="pl-k">class</span> <span class="pl-v">Foo</span> { <span class="pl-k">protected</span> <span class="pl-c1"><span class="pl-c1">$</span>bar</span>; <span class="pl-k">protected</span> <span class="pl-c1"><span class="pl-c1">$</span>checkBar</span>; <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">__construct</span>(<span class="pl-s1"><span class="pl-c1">$</span>bar</span>, <span class="pl-s1"><span class="pl-c1">$</span>checkBar</span> = <span class="pl-c1">false</span>) { <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">bar</span> = <span class="pl-s1"><span class="pl-c1">$</span>bar</span>; <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">checkBar</span> = <span class="pl-s1"><span class="pl-c1">$</span>checkBar</span>; } <span class="pl-c">/**</span> <span class="pl-c"> * @Assert\True(groups={"Foo"}, message="is not three")</span> <span class="pl-c"> */</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">isThree</span>() { <span class="pl-k">if</span> (<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">checkBar</span> &amp;&amp; <span class="pl-c1">null</span> === <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">bar</span>) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">Bar</span>(<span class="pl-c1">null</span>); } <span class="pl-k">return</span> <span class="pl-c1">3</span> == <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">getBar</span>()-&gt;<span class="pl-en">myBar</span>(); } <span class="pl-c">/**</span> <span class="pl-c"> * @Assert\NotNull(groups={"FilledIn"}, message="bar should not be null")</span> <span class="pl-c"> */</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">getBar</span>() { <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">bar</span>; } }</pre></div> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php namespace Me\MeBundle\Doc; class Bar { protected $bar; public function __construct($bar) { $this-&gt;bar = $bar; } public function myBar() { return $this-&gt;bar; } }"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-k">namespace</span> <span class="pl-v">Me</span>\<span class="pl-v">MeBundle</span>\<span class="pl-v">Doc</span>; <span class="pl-k">class</span> <span class="pl-v">Bar</span> { <span class="pl-k">protected</span> <span class="pl-c1"><span class="pl-c1">$</span>bar</span>; <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">__construct</span>(<span class="pl-s1"><span class="pl-c1">$</span>bar</span>) { <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">bar</span> = <span class="pl-s1"><span class="pl-c1">$</span>bar</span>; } <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">myBar</span>() { <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">bar</span>; } }</pre></div> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php namespace Me\MeBundle\Controller; use Me\MeBundle\Doc; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Symfony\Component\HttpFoundation\JsonResponse; class DefaultController extends Controller { protected function getFooData(Foo $foo) { $json = [['bar' =&gt; null === $foo-&gt;getBar() ? null : (array)$foo-&gt;getBar()]]; $violations = $this-&gt;get('validator')-&gt;validate($foo); $errors = []; foreach($violations as $violation) { $errors[] = $violation-&gt;getMessage(); } $json[] = $errors; return $json; } /** * @Route(&quot;/test1&quot;, defaults={&quot;_format&quot;=&quot;json&quot;}) */ public function test1Action() { new Foo(null); $foo = new Foo(new Bar(3)); return new JsonResponse($this-&gt;getFooData($foo)); } /** * @Route(&quot;/test2&quot;, defaults={&quot;_format&quot;=&quot;json&quot;}) */ public function test2Action() { $foo = new Foo(new Bar(4)); return new JsonResponse($this-&gt;getFooData($foo)); } /** * @Route(&quot;/test3&quot;, defaults={&quot;_format&quot;=&quot;json&quot;}) */ public function test3Action() { $foo = new Foo(null); return new JsonResponse($this-&gt;getFooData($foo)); } /** * @Route(&quot;/test4&quot;, defaults={&quot;_format&quot;=&quot;json&quot;}) */ public function test4Action() { $foo = new Foo(null, true); return new JsonResponse($this-&gt;getFooData($foo)); } }"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-k">namespace</span> <span class="pl-v">Me</span>\<span class="pl-v">MeBundle</span>\<span class="pl-v">Controller</span>; <span class="pl-k">use</span> <span class="pl-v">Me</span>\<span class="pl-v">MeBundle</span>\<span class="pl-v">Doc</span>; <span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkBundle</span>\<span class="pl-v">Controller</span>\<span class="pl-v">Controller</span>; <span class="pl-k">use</span> <span class="pl-v">Sensio</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkExtraBundle</span>\<span class="pl-v">Configuration</span>\<span class="pl-v">Route</span>; <span class="pl-k">use</span> <span class="pl-v">Sensio</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkExtraBundle</span>\<span class="pl-v">Configuration</span>\<span class="pl-v">Template</span>; <span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">HttpFoundation</span>\<span class="pl-v">JsonResponse</span>; <span class="pl-k">class</span> <span class="pl-v">DefaultController</span> <span class="pl-k">extends</span> <span class="pl-v">Controller</span> { <span class="pl-k">protected</span> <span class="pl-k">function</span> <span class="pl-en">getFooData</span>(<span class="pl-smi"><span class="pl-smi">Foo</span></span> <span class="pl-s1"><span class="pl-c1">$</span>foo</span>) { <span class="pl-s1"><span class="pl-c1">$</span>json</span> = [[<span class="pl-s">'bar'</span> =&gt; <span class="pl-c1">null</span> === <span class="pl-s1"><span class="pl-c1">$</span>foo</span>-&gt;<span class="pl-en">getBar</span>() ? <span class="pl-c1">null</span> : (<span class="pl-smi">array</span>)<span class="pl-s1"><span class="pl-c1">$</span>foo</span>-&gt;<span class="pl-en">getBar</span>()]]; <span class="pl-s1"><span class="pl-c1">$</span>violations</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'validator'</span>)-&gt;<span class="pl-en">validate</span>(<span class="pl-s1"><span class="pl-c1">$</span>foo</span>); <span class="pl-s1"><span class="pl-c1">$</span>errors</span> = []; <span class="pl-k">foreach</span>(<span class="pl-s1"><span class="pl-c1">$</span>violations</span> <span class="pl-k">as</span> <span class="pl-s1"><span class="pl-c1">$</span>violation</span>) { <span class="pl-s1"><span class="pl-c1">$</span>errors</span>[] = <span class="pl-s1"><span class="pl-c1">$</span>violation</span>-&gt;<span class="pl-en">getMessage</span>(); } <span class="pl-s1"><span class="pl-c1">$</span>json</span>[] = <span class="pl-s1"><span class="pl-c1">$</span>errors</span>; <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span>json</span>; } <span class="pl-c">/**</span> <span class="pl-c"> * @Route("/test1", defaults={"_format"="json"})</span> <span class="pl-c"> */</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">test1Action</span>() { <span class="pl-k">new</span> <span class="pl-v">Foo</span>(<span class="pl-c1">null</span>); <span class="pl-s1"><span class="pl-c1">$</span>foo</span> = <span class="pl-k">new</span> <span class="pl-v">Foo</span>(<span class="pl-k">new</span> <span class="pl-v">Bar</span>(<span class="pl-c1">3</span>)); <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">JsonResponse</span>(<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">getFooData</span>(<span class="pl-s1"><span class="pl-c1">$</span>foo</span>)); } <span class="pl-c">/**</span> <span class="pl-c"> * @Route("/test2", defaults={"_format"="json"})</span> <span class="pl-c"> */</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">test2Action</span>() { <span class="pl-s1"><span class="pl-c1">$</span>foo</span> = <span class="pl-k">new</span> <span class="pl-v">Foo</span>(<span class="pl-k">new</span> <span class="pl-v">Bar</span>(<span class="pl-c1">4</span>)); <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">JsonResponse</span>(<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">getFooData</span>(<span class="pl-s1"><span class="pl-c1">$</span>foo</span>)); } <span class="pl-c">/**</span> <span class="pl-c"> * @Route("/test3", defaults={"_format"="json"})</span> <span class="pl-c"> */</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">test3Action</span>() { <span class="pl-s1"><span class="pl-c1">$</span>foo</span> = <span class="pl-k">new</span> <span class="pl-v">Foo</span>(<span class="pl-c1">null</span>); <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">JsonResponse</span>(<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">getFooData</span>(<span class="pl-s1"><span class="pl-c1">$</span>foo</span>)); } <span class="pl-c">/**</span> <span class="pl-c"> * @Route("/test4", defaults={"_format"="json"})</span> <span class="pl-c"> */</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">test4Action</span>() { <span class="pl-s1"><span class="pl-c1">$</span>foo</span> = <span class="pl-k">new</span> <span class="pl-v">Foo</span>(<span class="pl-c1">null</span>, <span class="pl-c1">true</span>); <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">JsonResponse</span>(<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">getFooData</span>(<span class="pl-s1"><span class="pl-c1">$</span>foo</span>)); } }</pre></div>
1
<p dir="auto">by <strong>aChrisSmith</strong>:</p> <pre class="notranslate">It appears that go does not emit DWARF debugging information when building programs using cgo. (At least not on OS X / Darwin; haven't checked on another other OS.) Ideally debugging information would be present regardless of using cgo. And, if I could have a pony too, I'd love the DWARF information for the C-code as well. I've included two versions of a toy app (fizzbuzz), one which uses cgo and one which does not. When using `dwarfdump` to inspect the debugging info, the .debug_contents section of the Mach-O binary appear to be empty. go version prints "go version go1.3.3 darwin/amd64" Repro: # Verify debugging symbols are generated when not using cgo 1. $ go build without_cgo.go 2. $ dwarfdump without_cgo 3. &lt; Look at all the wonderful debugging symbols &gt; # Verify debugging symbols NOT generated when using cgo 1. $ go build with_cgo.go 2. $dwarfdump with_cgo 3. &lt;Look in dismay at the lack of precious debugging information &gt; Output: ---------------------------------------------------------------------- File: with_cgo (x86_64) ---------------------------------------------------------------------- .debug_info contents: &lt; EMPTY &gt;</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/9022/0/with_cgo.go" rel="nofollow">with_cgo.go</a> (474 bytes)</li> <li><a href="https://storage.googleapis.com/go-attachment/9022/0/without_cgo.go" rel="nofollow">without_cgo.go</a> (321 bytes)</li> </ol>
<p dir="auto">by <strong>xofyarg</strong>:</p> <pre class="notranslate">What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. start a tls server[1] writing in go with tls pkg 2. connect the server using a client built with openssl 3. send something to server What is the expected output? client's data is received or error occured. What do you see instead? Server got two read event. The former returns no data or error. The latter gets the data that client sent before. Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? OSX Lion/Linux-2.6.32/Linux-3.0 Which version are you using? (run 'go version') go1.0.3 and go1.1beta2 Please provide any additional information below. [1] go server: <a href="http://play.golang.org/p/N_d4hjcRft" rel="nofollow">http://play.golang.org/p/N_d4hjcRft</a> [2] commands to generate server key pair: openssl genrsa 1024 &gt; srv.key openssl req -new -x509 -nodes -sha1 -days 365 -key srv.key &gt; srv.cer [3] client: openssl: $ echo -n "hello" | openssl s_client -connect 127.0.0.1:8080 -tls1 python: import socket import ssl s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('localhost', 8080)) ss = ssl.wrap_socket(s, ssl_version=ssl.PROTOCOL_TLSv1) ss.write('hello') ss.close()</pre>
0
<p dir="auto">I have an interface that is supposed to have a function signature of:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(param: {prop: boolean}): any"><pre class="notranslate"><code class="notranslate">(param: {prop: boolean}): any </code></pre></div> <p dir="auto">but I forget the parameter name (I'm not sure if this signature is considered valid):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="({prop: boolean}): any"><pre class="notranslate"><code class="notranslate">({prop: boolean}): any </code></pre></div> <p dir="auto">When compiling this invalid interface with the <code class="notranslate">--declaration</code> flag, an invalid <code class="notranslate">.d.ts</code> file results:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/* foo.ts */ export interface SomeInterface { ({prop: boolean}): any }"><pre class="notranslate"><code class="notranslate">/* foo.ts */ export interface SomeInterface { ({prop: boolean}): any } </code></pre></div> <p dir="auto"><code class="notranslate">tsc foo.ts --module commonjs --declaration</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/* foo.d.ts */ export interface SomeInterface { ({prop: }: { prop: any; }): any; }"><pre class="notranslate"><code class="notranslate">/* foo.d.ts */ export interface SomeInterface { ({prop: }: { prop: any; }): any; } </code></pre></div> <p dir="auto">If parameter names are optional, this should produce a valid <code class="notranslate">.d.ts</code> file. If parameter names are required, <code class="notranslate">tsc</code> should throw an error, or at least warn me that there is an issue.</p>
<p dir="auto">Destructuing is not handled correctly (either object literal or array binding pattern) in during declaration emit.</p> <p dir="auto">Eg.</p> <p dir="auto"><code class="notranslate"> TypeScript</code><br> var { a, b } = { a: "10", b: 10 };</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Generates ``` TypeScript``` declare var { a, b }: any;"><pre class="notranslate"><code class="notranslate"> Generates ``` TypeScript``` declare var { a, b }: any; </code></pre></div> <p dir="auto">Expected:</p> <p dir="auto"><code class="notranslate"> TypeScript</code><br> declare var a: string, b: number;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
1
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vadzim/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vadzim">@vadzim</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.3.17 (babel-core 6.3.17)</li> <li><strong>Node version:</strong> v5.1.1</li> <li><strong>npm version:</strong> 3.3.12</li> </ul> <h3 dir="auto">Options</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--no-babelrc --presets es2015"><pre class="notranslate"><code class="notranslate">--no-babelrc --presets es2015 </code></pre></div> <h3 dir="auto">Input code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var x = { method() { var f = () =&gt; console.log( this.method, null &amp;&amp; method ) f() } } x.method()"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-en">method</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-en">f</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">method</span><span class="pl-kos">,</span> <span class="pl-c1">null</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">method</span> <span class="pl-kos">)</span> <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-en">method</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">Babel generated code fails:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; echo &quot;var x = { method() { var f = () =&gt; console.log( this.method, null &amp;&amp; method ) f() } } x.method()&quot; | ./node_modules/.bin/babel --no-babelrc --presets es2015 | node [stdin]:17 return console.log(_this.method, null &amp;&amp; method); ^ TypeError: Cannot read property 'method' of undefined at f ([stdin]:17:37) at Object.&lt;anonymous&gt; ([stdin]:19:9) at Object.method ([stdin]:7:28) at [stdin]:22:3 at Object.exports.runInThisContext (vm.js:54:17) at Object.&lt;anonymous&gt; ([stdin]-wrapper:6:22) at Module._compile (module.js:425:26) at node.js:589:27 at doNTCallback0 (node.js:430:9) at process._tickCallback (node.js:359:13) &gt;"><pre class="notranslate"><code class="notranslate">&gt; echo "var x = { method() { var f = () =&gt; console.log( this.method, null &amp;&amp; method ) f() } } x.method()" | ./node_modules/.bin/babel --no-babelrc --presets es2015 | node [stdin]:17 return console.log(_this.method, null &amp;&amp; method); ^ TypeError: Cannot read property 'method' of undefined at f ([stdin]:17:37) at Object.&lt;anonymous&gt; ([stdin]:19:9) at Object.method ([stdin]:7:28) at [stdin]:22:3 at Object.exports.runInThisContext (vm.js:54:17) at Object.&lt;anonymous&gt; ([stdin]-wrapper:6:22) at Module._compile (module.js:425:26) at node.js:589:27 at doNTCallback0 (node.js:430:9) at process._tickCallback (node.js:359:13) &gt; </code></pre></div> <p dir="auto">while code without compilation works in node pretty well:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; echo &quot;var x = { method() { var f = () =&gt; console.log( this.method, null &amp;&amp; method ) f() } } x.method()&quot; | node [Function: method] null &gt;"><pre class="notranslate"><code class="notranslate">&gt; echo "var x = { method() { var f = () =&gt; console.log( this.method, null &amp;&amp; method ) f() } } x.method()" | node [Function: method] null &gt; </code></pre></div> <p dir="auto">The problem is that babel loses this pointer. Generated code is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; var _this = undefined; var x = { method: (function (_method) { function method() { return _method.apply(this, arguments); } method.toString = function () { return _method.toString(); }; return method; })(function () { var f = function f() { return console.log(_this.method, null &amp;&amp; method); }; f(); }) }; x.method();"><pre class="notranslate"><code class="notranslate">"use strict"; var _this = undefined; var x = { method: (function (_method) { function method() { return _method.apply(this, arguments); } method.toString = function () { return _method.toString(); }; return method; })(function () { var f = function f() { return console.log(_this.method, null &amp;&amp; method); }; f(); }) }; x.method(); </code></pre></div> <p dir="auto">The problem appers when method is accessed by its name in its body.</p>
<p dir="auto">I'm building an SSR template, and when I use @babebl/register and then execute webpack (config), the system reported an error.<br> I tried @babel/polyfill and @babel/plugin-transform-runtime, but none of them worked.</p> <h3 dir="auto">Input code</h3> <p dir="auto"><code class="notranslate">index.js:</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="require(&quot;ignore-styles&quot;); require(&quot;@babel/register&quot;)({ ignore: [/\/(build|node_modules)\//], presets: [&quot;@babel/preset-env&quot;, &quot;@babel/preset-react&quot;], plugins: [&quot;@babel/plugin-syntax-dynamic-import&quot;, &quot;dynamic-import-node&quot;] }); require(&quot;./server&quot;);"><pre class="notranslate"><code class="notranslate">require("ignore-styles"); require("@babel/register")({ ignore: [/\/(build|node_modules)\//], presets: ["@babel/preset-env", "@babel/preset-react"], plugins: ["@babel/plugin-syntax-dynamic-import", "dynamic-import-node"] }); require("./server"); </code></pre></div> <p dir="auto"><code class="notranslate">server.js</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const config = require('../config/webpack.dev.config.js') const webpack = require('webpack') const express = require('express') const webpackDevMiddleware = require('webpack-dev-middleware') const reactRouter = require('react-router') const StaticRouter = reactRouter.reactRouter; const app = express() const complier = webpack(config) const PORT = 8090 ... app.use(webpackDevMiddleware(complier, { publicPath: config.output.publicPath })) app.listen(PORT , function() { console.log(`SSR running on port ${PORT }`); })"><pre class="notranslate"><code class="notranslate">const config = require('../config/webpack.dev.config.js') const webpack = require('webpack') const express = require('express') const webpackDevMiddleware = require('webpack-dev-middleware') const reactRouter = require('react-router') const StaticRouter = reactRouter.reactRouter; const app = express() const complier = webpack(config) const PORT = 8090 ... app.use(webpackDevMiddleware(complier, { publicPath: config.output.publicPath })) app.listen(PORT , function() { console.log(`SSR running on port ${PORT }`); }) </code></pre></div> <p dir="auto"><code class="notranslate">webpack.dev.config.js</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const paths = require('./paths') const webpack = require('webpack') const htmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: ['webpack-hot-middleware/client?reload=true', paths.appIndexJs], output: { path: paths.clientBuild, filename: '[name].bundle.js', chunkFilename: '[name].bundle.js', publicPath: paths.publicPath }, devtool: 'eval-source-map', module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, loader: 'babel-loader', options: { presets: [ ['@babel/preset-env', { useBuiltIns: 'usage', corejs: &quot;2&quot;, targets: { browsers: ['last 2 versions', 'ie &gt;= 9'], }, }], '@babel/preset-react' ] } } ] }, resolve: { extensions: ['.js', '.jsx'] }, plugins: [ new webpack.HotModuleReplacementPlugin(), new htmlWebpackPlugin({ template: './client/index.html', filename: 'index.html' }) ] }"><pre class="notranslate"><code class="notranslate">const paths = require('./paths') const webpack = require('webpack') const htmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: ['webpack-hot-middleware/client?reload=true', paths.appIndexJs], output: { path: paths.clientBuild, filename: '[name].bundle.js', chunkFilename: '[name].bundle.js', publicPath: paths.publicPath }, devtool: 'eval-source-map', module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, loader: 'babel-loader', options: { presets: [ ['@babel/preset-env', { useBuiltIns: 'usage', corejs: "2", targets: { browsers: ['last 2 versions', 'ie &gt;= 9'], }, }], '@babel/preset-react' ] } } ] }, resolve: { extensions: ['.js', '.jsx'] }, plugins: [ new webpack.HotModuleReplacementPlugin(), new htmlWebpackPlugin({ template: './client/index.html', filename: 'index.html' }) ] } </code></pre></div> <h3 dir="auto">Error message</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14016766/56009309-fc494c00-5d11-11e9-8445-94fa34d980d7.png"><img src="https://user-images.githubusercontent.com/14016766/56009309-fc494c00-5d11-11e9-8445-94fa34d980d7.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Babel version(s): 7.4.3</li> <li>Node/npm version: [e.g. Node 10.15.3/npm 6.4.1]</li> <li>OS: window 10</li> </ul> <h3 dir="auto">Rep</h3> <p dir="auto"><a href="https://github.com/xuchenchenBoy/ssr">https://github.com/xuchenchenBoy/ssr</a> (Please execute npm run dev:server and release notes in server.js)</p>
0
<h3 dir="auto">Bug report</h3> <p dir="auto">When I try to run the tests, all the <code class="notranslate">.svg</code> tests fail because of an Inkscape crash. When a svg test runs, an Inkscape window opens:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6197628/88478714-6eaf6100-cf42-11ea-91e9-4843068b68c4.png"><img width="463" alt="Screenshot 2020-07-26 at 13 15 44" src="https://user-images.githubusercontent.com/6197628/88478714-6eaf6100-cf42-11ea-91e9-4843068b68c4.png" style="max-width: 100%;"></a><br> Clicking through this leads to another window:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6197628/88478721-78d15f80-cf42-11ea-802f-2b3caff9a5f0.png"><img width="381" alt="Screenshot 2020-07-26 at 13 15 54" src="https://user-images.githubusercontent.com/6197628/88478721-78d15f80-cf42-11ea-802f-2b3caff9a5f0.png" style="max-width: 100%;"></a><br> which then leads to the test crashing. My Inkscape version is Inkscape 1.0beta2 (2b71d25, 2019-12-03), installd through homebrew. Perhaps this is a compatability issue with Inkscape 1.0?</p> <p dir="auto">The full traceback is:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="___________________________________________________________________________ test_clip_to_bbox[svg] ___________________________________________________________________________ self = &lt;matplotlib.testing.compare._SVGConverter object at 0x7f9dc869d730&gt;, orig = PosixPath('/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox.svg') dest = PosixPath('/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox_svg.png') def __call__(self, orig, dest): old_inkscape = mpl._get_executable_info(&quot;inkscape&quot;).version &lt; &quot;1&quot; terminator = b&quot;\n&gt;&quot; if old_inkscape else b&quot;&gt; &quot; if not hasattr(self, &quot;_tmpdir&quot;): self._tmpdir = TemporaryDirectory() if (not self._proc # First run. or self._proc.poll() is not None): # Inkscape terminated. env = { **os.environ, # If one passes e.g. a png file to Inkscape, it will try to # query the user for conversion options via a GUI (even with # `--without-gui`). Unsetting `DISPLAY` prevents this (and # causes GTK to crash and Inkscape to terminate, but that'll # just be reported as a regular exception below). &quot;DISPLAY&quot;: &quot;&quot;, # Do not load any user options. &quot;INKSCAPE_PROFILE_DIR&quot;: os.devnull, } # Old versions of Inkscape (e.g. 0.48.3.1) seem to sometimes # deadlock when stderr is redirected to a pipe, so we redirect it # to a temporary file instead. This is not necessary anymore as of # Inkscape 0.92.1. stderr = TemporaryFile() self._proc = subprocess.Popen( [&quot;inkscape&quot;, &quot;--without-gui&quot;, &quot;--shell&quot;] if old_inkscape else [&quot;inkscape&quot;, &quot;--shell&quot;], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=stderr, env=env, cwd=self._tmpdir.name) # Slight abuse, but makes shutdown handling easier. self._proc.stderr = stderr try: &gt; self._read_until(terminator) lib/matplotlib/testing/compare.py:191: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = &lt;matplotlib.testing.compare._SVGConverter object at 0x7f9dc869d730&gt;, terminator = b'&gt; ' def _read_until(self, terminator): &quot;&quot;&quot;Read until the prompt is reached.&quot;&quot;&quot; buf = bytearray() while True: c = self._proc.stdout.read(1) if not c: &gt; raise _ConverterError E matplotlib.testing.compare._ConverterError lib/matplotlib/testing/compare.py:115: _ConverterError The above exception was the direct cause of the following exception: expected = '/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox-expected.svg' actual = '/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox.svg', tol = 0, in_decorator = True def compare_images(expected, actual, tol, in_decorator=False): &quot;&quot;&quot; Compare two &quot;image&quot; files checking differences within a tolerance. The two given filenames may point to files which are convertible to PNG via the `.converter` dictionary. The underlying RMS is calculated with the `.calculate_rms` function. Parameters ---------- expected : str The filename of the expected image. actual : str The filename of the actual image. tol : float The tolerance (a color value difference, where 255 is the maximal difference). The test fails if the average pixel difference is greater than this value. in_decorator : bool Determines the output format. If called from image_comparison decorator, this should be True. (default=False) Returns ------- None or dict or str Return *None* if the images are equal within the given tolerance. If the images differ, the return value depends on *in_decorator*. If *in_decorator* is true, a dict with the following entries is returned: - *rms*: The RMS of the image difference. - *expected*: The filename of the expected image. - *actual*: The filename of the actual image. - *diff_image*: The filename of the difference image. - *tol*: The comparison tolerance. Otherwise, a human-readable multi-line string representation of this information is returned. Examples -------- :: img1 = &quot;./baseline/plot.png&quot; img2 = &quot;./output/plot.png&quot; compare_images(img1, img2, 0.001) &quot;&quot;&quot; actual = os.fspath(actual) if not os.path.exists(actual): raise Exception(&quot;Output image %s does not exist.&quot; % actual) if os.stat(actual).st_size == 0: raise Exception(&quot;Output image file %s is empty.&quot; % actual) # Convert the image to png expected = os.fspath(expected) if not os.path.exists(expected): raise IOError('Baseline image %r does not exist.' % expected) extension = expected.split('.')[-1] if extension != 'png': &gt; actual = convert(actual, cache=False) lib/matplotlib/testing/compare.py:390: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ lib/matplotlib/testing/compare.py:294: in convert converter[path.suffix[1:]](path, newpath) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = &lt;matplotlib.testing.compare._SVGConverter object at 0x7f9dc869d730&gt;, orig = PosixPath('/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox.svg') dest = PosixPath('/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox_svg.png') def __call__(self, orig, dest): old_inkscape = mpl._get_executable_info(&quot;inkscape&quot;).version &lt; &quot;1&quot; terminator = b&quot;\n&gt;&quot; if old_inkscape else b&quot;&gt; &quot; if not hasattr(self, &quot;_tmpdir&quot;): self._tmpdir = TemporaryDirectory() if (not self._proc # First run. or self._proc.poll() is not None): # Inkscape terminated. env = { **os.environ, # If one passes e.g. a png file to Inkscape, it will try to # query the user for conversion options via a GUI (even with # `--without-gui`). Unsetting `DISPLAY` prevents this (and # causes GTK to crash and Inkscape to terminate, but that'll # just be reported as a regular exception below). &quot;DISPLAY&quot;: &quot;&quot;, # Do not load any user options. &quot;INKSCAPE_PROFILE_DIR&quot;: os.devnull, } # Old versions of Inkscape (e.g. 0.48.3.1) seem to sometimes # deadlock when stderr is redirected to a pipe, so we redirect it # to a temporary file instead. This is not necessary anymore as of # Inkscape 0.92.1. stderr = TemporaryFile() self._proc = subprocess.Popen( [&quot;inkscape&quot;, &quot;--without-gui&quot;, &quot;--shell&quot;] if old_inkscape else [&quot;inkscape&quot;, &quot;--shell&quot;], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=stderr, env=env, cwd=self._tmpdir.name) # Slight abuse, but makes shutdown handling easier. self._proc.stderr = stderr try: self._read_until(terminator) except _ConverterError as err: &gt; raise OSError(&quot;Failed to start Inkscape in interactive &quot; &quot;mode&quot;) from err E OSError: Failed to start Inkscape in interactive mode lib/matplotlib/testing/compare.py:193: OSError"><pre class="notranslate"><span class="pl-s1">___________________________________________________________________________</span> <span class="pl-s1">test_clip_to_bbox</span>[<span class="pl-s1">svg</span>] <span class="pl-s1">___________________________________________________________________________</span> <span class="pl-s1">self</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">testing</span>.<span class="pl-s1">compare</span>.<span class="pl-s1">_SVGConverter</span> <span class="pl-s1">object</span> <span class="pl-s1">at</span> <span class="pl-c1">0x7f9dc869d730</span><span class="pl-c1">&gt;</span>, <span class="pl-s1">orig</span> <span class="pl-c1">=</span> <span class="pl-v">PosixPath</span>(<span class="pl-s">'/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox.svg'</span>) <span class="pl-s1">dest</span> <span class="pl-c1">=</span> <span class="pl-v">PosixPath</span>(<span class="pl-s">'/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox_svg.png'</span>) <span class="pl-k">def</span> <span class="pl-en">__call__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">orig</span>, <span class="pl-s1">dest</span>): <span class="pl-s1">old_inkscape</span> <span class="pl-c1">=</span> <span class="pl-s1">mpl</span>.<span class="pl-en">_get_executable_info</span>(<span class="pl-s">"inkscape"</span>).<span class="pl-s1">version</span> <span class="pl-c1">&lt;</span> <span class="pl-s">"1"</span> <span class="pl-s1">terminator</span> <span class="pl-c1">=</span> <span class="pl-s">b"<span class="pl-cce">\n</span>&gt;"</span> <span class="pl-k">if</span> <span class="pl-s1">old_inkscape</span> <span class="pl-k">else</span> <span class="pl-s">b"&gt; "</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">hasattr</span>(<span class="pl-s1">self</span>, <span class="pl-s">"_tmpdir"</span>): <span class="pl-s1">self</span>.<span class="pl-s1">_tmpdir</span> <span class="pl-c1">=</span> <span class="pl-v">TemporaryDirectory</span>() <span class="pl-k">if</span> (<span class="pl-c1">not</span> <span class="pl-s1">self</span>.<span class="pl-s1">_proc</span> <span class="pl-c"># First run.</span> <span class="pl-c1">or</span> <span class="pl-s1">self</span>.<span class="pl-s1">_proc</span>.<span class="pl-en">poll</span>() <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>): <span class="pl-c"># Inkscape terminated.</span> <span class="pl-s1">env</span> <span class="pl-c1">=</span> { <span class="pl-c1">**</span><span class="pl-s1">os</span>.<span class="pl-s1">environ</span>, <span class="pl-c"># If one passes e.g. a png file to Inkscape, it will try to</span> <span class="pl-c"># query the user for conversion options via a GUI (even with</span> <span class="pl-c"># `--without-gui`). Unsetting `DISPLAY` prevents this (and</span> <span class="pl-c"># causes GTK to crash and Inkscape to terminate, but that'll</span> <span class="pl-c"># just be reported as a regular exception below).</span> <span class="pl-s">"DISPLAY"</span>: <span class="pl-s">""</span>, <span class="pl-c"># Do not load any user options.</span> <span class="pl-s">"INKSCAPE_PROFILE_DIR"</span>: <span class="pl-s1">os</span>.<span class="pl-s1">devnull</span>, } <span class="pl-c"># Old versions of Inkscape (e.g. 0.48.3.1) seem to sometimes</span> <span class="pl-c"># deadlock when stderr is redirected to a pipe, so we redirect it</span> <span class="pl-c"># to a temporary file instead. This is not necessary anymore as of</span> <span class="pl-c"># Inkscape 0.92.1.</span> <span class="pl-s1">stderr</span> <span class="pl-c1">=</span> <span class="pl-v">TemporaryFile</span>() <span class="pl-s1">self</span>.<span class="pl-s1">_proc</span> <span class="pl-c1">=</span> <span class="pl-s1">subprocess</span>.<span class="pl-v">Popen</span>( [<span class="pl-s">"inkscape"</span>, <span class="pl-s">"--without-gui"</span>, <span class="pl-s">"--shell"</span>] <span class="pl-k">if</span> <span class="pl-s1">old_inkscape</span> <span class="pl-k">else</span> [<span class="pl-s">"inkscape"</span>, <span class="pl-s">"--shell"</span>], <span class="pl-s1">stdin</span><span class="pl-c1">=</span><span class="pl-s1">subprocess</span>.<span class="pl-v">PIPE</span>, <span class="pl-s1">stdout</span><span class="pl-c1">=</span><span class="pl-s1">subprocess</span>.<span class="pl-v">PIPE</span>, <span class="pl-s1">stderr</span><span class="pl-c1">=</span><span class="pl-s1">stderr</span>, <span class="pl-s1">env</span><span class="pl-c1">=</span><span class="pl-s1">env</span>, <span class="pl-s1">cwd</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">_tmpdir</span>.<span class="pl-s1">name</span>) <span class="pl-c"># Slight abuse, but makes shutdown handling easier.</span> <span class="pl-s1">self</span>.<span class="pl-s1">_proc</span>.<span class="pl-s1">stderr</span> <span class="pl-c1">=</span> <span class="pl-s1">stderr</span> <span class="pl-k">try</span>: <span class="pl-c1">&gt;</span> <span class="pl-s1">self</span>.<span class="pl-en">_read_until</span>(<span class="pl-s1">terminator</span>) <span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">testing</span><span class="pl-c1">/</span><span class="pl-s1">compare</span>.<span class="pl-s1">py</span>:<span class="pl-c1">191</span>: <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">self</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">testing</span>.<span class="pl-s1">compare</span>.<span class="pl-s1">_SVGConverter</span> <span class="pl-s1">object</span> <span class="pl-s1">at</span> <span class="pl-c1">0x7f9dc869d730</span><span class="pl-c1">&gt;</span>, <span class="pl-s1">terminator</span> <span class="pl-c1">=</span> <span class="pl-s">b'&gt; '</span> <span class="pl-k">def</span> <span class="pl-en">_read_until</span>(<span class="pl-s1">self</span>, <span class="pl-s1">terminator</span>): <span class="pl-s">"""Read until the prompt is reached."""</span> <span class="pl-s1">buf</span> <span class="pl-c1">=</span> <span class="pl-en">bytearray</span>() <span class="pl-k">while</span> <span class="pl-c1">True</span>: <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">_proc</span>.<span class="pl-s1">stdout</span>.<span class="pl-en">read</span>(<span class="pl-c1">1</span>) <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">c</span>: <span class="pl-c1">&gt;</span> <span class="pl-k">raise</span> <span class="pl-s1">_ConverterError</span> <span class="pl-v">E</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">testing</span>.<span class="pl-s1">compare</span>.<span class="pl-s1">_ConverterError</span> <span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">testing</span><span class="pl-c1">/</span><span class="pl-s1">compare</span>.<span class="pl-s1">py</span>:<span class="pl-c1">115</span>: <span class="pl-s1">_ConverterError</span> <span class="pl-v">The</span> <span class="pl-s1">above</span> <span class="pl-s1">exception</span> <span class="pl-s1">was</span> <span class="pl-s1">the</span> <span class="pl-s1">direct</span> <span class="pl-s1">cause</span> <span class="pl-s1">of</span> <span class="pl-s1">the</span> <span class="pl-s1">following</span> <span class="pl-s1">exception</span>: <span class="pl-s1">expected</span> <span class="pl-c1">=</span> <span class="pl-s">'/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox-expected.svg'</span> <span class="pl-s1">actual</span> <span class="pl-c1">=</span> <span class="pl-s">'/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox.svg'</span>, <span class="pl-s1">tol</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>, <span class="pl-s1">in_decorator</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-k">def</span> <span class="pl-en">compare_images</span>(<span class="pl-s1">expected</span>, <span class="pl-s1">actual</span>, <span class="pl-s1">tol</span>, <span class="pl-s1">in_decorator</span><span class="pl-c1">=</span><span class="pl-c1">False</span>): <span class="pl-s">"""</span> <span class="pl-s"> Compare two "image" files checking differences within a tolerance.</span> <span class="pl-s"> </span> <span class="pl-s"> The two given filenames may point to files which are convertible to</span> <span class="pl-s"> PNG via the `.converter` dictionary. The underlying RMS is calculated</span> <span class="pl-s"> with the `.calculate_rms` function.</span> <span class="pl-s"> </span> <span class="pl-s"> Parameters</span> <span class="pl-s"> ----------</span> <span class="pl-s"> expected : str</span> <span class="pl-s"> The filename of the expected image.</span> <span class="pl-s"> actual : str</span> <span class="pl-s"> The filename of the actual image.</span> <span class="pl-s"> tol : float</span> <span class="pl-s"> The tolerance (a color value difference, where 255 is the</span> <span class="pl-s"> maximal difference). The test fails if the average pixel</span> <span class="pl-s"> difference is greater than this value.</span> <span class="pl-s"> in_decorator : bool</span> <span class="pl-s"> Determines the output format. If called from image_comparison</span> <span class="pl-s"> decorator, this should be True. (default=False)</span> <span class="pl-s"> </span> <span class="pl-s"> Returns</span> <span class="pl-s"> -------</span> <span class="pl-s"> None or dict or str</span> <span class="pl-s"> Return *None* if the images are equal within the given tolerance.</span> <span class="pl-s"> </span> <span class="pl-s"> If the images differ, the return value depends on *in_decorator*.</span> <span class="pl-s"> If *in_decorator* is true, a dict with the following entries is</span> <span class="pl-s"> returned:</span> <span class="pl-s"> </span> <span class="pl-s"> - *rms*: The RMS of the image difference.</span> <span class="pl-s"> - *expected*: The filename of the expected image.</span> <span class="pl-s"> - *actual*: The filename of the actual image.</span> <span class="pl-s"> - *diff_image*: The filename of the difference image.</span> <span class="pl-s"> - *tol*: The comparison tolerance.</span> <span class="pl-s"> </span> <span class="pl-s"> Otherwise, a human-readable multi-line string representation of this</span> <span class="pl-s"> information is returned.</span> <span class="pl-s"> </span> <span class="pl-s"> Examples</span> <span class="pl-s"> --------</span> <span class="pl-s"> ::</span> <span class="pl-s"> </span> <span class="pl-s"> img1 = "./baseline/plot.png"</span> <span class="pl-s"> img2 = "./output/plot.png"</span> <span class="pl-s"> compare_images(img1, img2, 0.001)</span> <span class="pl-s"> </span> <span class="pl-s"> """</span> <span class="pl-s1">actual</span> <span class="pl-c1">=</span> <span class="pl-s1">os</span>.<span class="pl-en">fspath</span>(<span class="pl-s1">actual</span>) <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">exists</span>(<span class="pl-s1">actual</span>): <span class="pl-k">raise</span> <span class="pl-v">Exception</span>(<span class="pl-s">"Output image %s does not exist."</span> <span class="pl-c1">%</span> <span class="pl-s1">actual</span>) <span class="pl-k">if</span> <span class="pl-s1">os</span>.<span class="pl-en">stat</span>(<span class="pl-s1">actual</span>).<span class="pl-s1">st_size</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span>: <span class="pl-k">raise</span> <span class="pl-v">Exception</span>(<span class="pl-s">"Output image file %s is empty."</span> <span class="pl-c1">%</span> <span class="pl-s1">actual</span>) <span class="pl-c"># Convert the image to png</span> <span class="pl-s1">expected</span> <span class="pl-c1">=</span> <span class="pl-s1">os</span>.<span class="pl-en">fspath</span>(<span class="pl-s1">expected</span>) <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">exists</span>(<span class="pl-s1">expected</span>): <span class="pl-k">raise</span> <span class="pl-v">IOError</span>(<span class="pl-s">'Baseline image %r does not exist.'</span> <span class="pl-c1">%</span> <span class="pl-s1">expected</span>) <span class="pl-s1">extension</span> <span class="pl-c1">=</span> <span class="pl-s1">expected</span>.<span class="pl-en">split</span>(<span class="pl-s">'.'</span>)[<span class="pl-c1">-</span><span class="pl-c1">1</span>] <span class="pl-k">if</span> <span class="pl-s1">extension</span> <span class="pl-c1">!=</span> <span class="pl-s">'png'</span>: <span class="pl-c1">&gt;</span> <span class="pl-s1">actual</span> <span class="pl-c1">=</span> <span class="pl-en">convert</span>(<span class="pl-s1">actual</span>, <span class="pl-s1">cache</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">testing</span><span class="pl-c1">/</span><span class="pl-s1">compare</span>.<span class="pl-s1">py</span>:<span class="pl-c1">390</span>: <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">testing</span><span class="pl-c1">/</span><span class="pl-s1">compare</span>.<span class="pl-s1">py</span>:<span class="pl-c1">294</span>: <span class="pl-c1">in</span> <span class="pl-s1">convert</span> <span class="pl-s1">converter</span>[<span class="pl-s1">path</span>.<span class="pl-s1">suffix</span>[<span class="pl-c1">1</span>:]](<span class="pl-s1">path</span>, <span class="pl-s1">newpath</span>) <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">_</span> <span class="pl-s1">self</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">testing</span>.<span class="pl-s1">compare</span>.<span class="pl-s1">_SVGConverter</span> <span class="pl-s1">object</span> <span class="pl-s1">at</span> <span class="pl-c1">0x7f9dc869d730</span><span class="pl-c1">&gt;</span>, <span class="pl-s1">orig</span> <span class="pl-c1">=</span> <span class="pl-v">PosixPath</span>(<span class="pl-s">'/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox.svg'</span>) <span class="pl-s1">dest</span> <span class="pl-c1">=</span> <span class="pl-v">PosixPath</span>(<span class="pl-s">'/Users/dstansby/github/matplotlib/result_images/test_patches/clip_to_bbox_svg.png'</span>) <span class="pl-k">def</span> <span class="pl-en">__call__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">orig</span>, <span class="pl-s1">dest</span>): <span class="pl-s1">old_inkscape</span> <span class="pl-c1">=</span> <span class="pl-s1">mpl</span>.<span class="pl-en">_get_executable_info</span>(<span class="pl-s">"inkscape"</span>).<span class="pl-s1">version</span> <span class="pl-c1">&lt;</span> <span class="pl-s">"1"</span> <span class="pl-s1">terminator</span> <span class="pl-c1">=</span> <span class="pl-s">b"<span class="pl-cce">\n</span>&gt;"</span> <span class="pl-k">if</span> <span class="pl-s1">old_inkscape</span> <span class="pl-k">else</span> <span class="pl-s">b"&gt; "</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">hasattr</span>(<span class="pl-s1">self</span>, <span class="pl-s">"_tmpdir"</span>): <span class="pl-s1">self</span>.<span class="pl-s1">_tmpdir</span> <span class="pl-c1">=</span> <span class="pl-v">TemporaryDirectory</span>() <span class="pl-k">if</span> (<span class="pl-c1">not</span> <span class="pl-s1">self</span>.<span class="pl-s1">_proc</span> <span class="pl-c"># First run.</span> <span class="pl-c1">or</span> <span class="pl-s1">self</span>.<span class="pl-s1">_proc</span>.<span class="pl-en">poll</span>() <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>): <span class="pl-c"># Inkscape terminated.</span> <span class="pl-s1">env</span> <span class="pl-c1">=</span> { <span class="pl-c1">**</span><span class="pl-s1">os</span>.<span class="pl-s1">environ</span>, <span class="pl-c"># If one passes e.g. a png file to Inkscape, it will try to</span> <span class="pl-c"># query the user for conversion options via a GUI (even with</span> <span class="pl-c"># `--without-gui`). Unsetting `DISPLAY` prevents this (and</span> <span class="pl-c"># causes GTK to crash and Inkscape to terminate, but that'll</span> <span class="pl-c"># just be reported as a regular exception below).</span> <span class="pl-s">"DISPLAY"</span>: <span class="pl-s">""</span>, <span class="pl-c"># Do not load any user options.</span> <span class="pl-s">"INKSCAPE_PROFILE_DIR"</span>: <span class="pl-s1">os</span>.<span class="pl-s1">devnull</span>, } <span class="pl-c"># Old versions of Inkscape (e.g. 0.48.3.1) seem to sometimes</span> <span class="pl-c"># deadlock when stderr is redirected to a pipe, so we redirect it</span> <span class="pl-c"># to a temporary file instead. This is not necessary anymore as of</span> <span class="pl-c"># Inkscape 0.92.1.</span> <span class="pl-s1">stderr</span> <span class="pl-c1">=</span> <span class="pl-v">TemporaryFile</span>() <span class="pl-s1">self</span>.<span class="pl-s1">_proc</span> <span class="pl-c1">=</span> <span class="pl-s1">subprocess</span>.<span class="pl-v">Popen</span>( [<span class="pl-s">"inkscape"</span>, <span class="pl-s">"--without-gui"</span>, <span class="pl-s">"--shell"</span>] <span class="pl-k">if</span> <span class="pl-s1">old_inkscape</span> <span class="pl-k">else</span> [<span class="pl-s">"inkscape"</span>, <span class="pl-s">"--shell"</span>], <span class="pl-s1">stdin</span><span class="pl-c1">=</span><span class="pl-s1">subprocess</span>.<span class="pl-v">PIPE</span>, <span class="pl-s1">stdout</span><span class="pl-c1">=</span><span class="pl-s1">subprocess</span>.<span class="pl-v">PIPE</span>, <span class="pl-s1">stderr</span><span class="pl-c1">=</span><span class="pl-s1">stderr</span>, <span class="pl-s1">env</span><span class="pl-c1">=</span><span class="pl-s1">env</span>, <span class="pl-s1">cwd</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">_tmpdir</span>.<span class="pl-s1">name</span>) <span class="pl-c"># Slight abuse, but makes shutdown handling easier.</span> <span class="pl-s1">self</span>.<span class="pl-s1">_proc</span>.<span class="pl-s1">stderr</span> <span class="pl-c1">=</span> <span class="pl-s1">stderr</span> <span class="pl-k">try</span>: <span class="pl-s1">self</span>.<span class="pl-en">_read_until</span>(<span class="pl-s1">terminator</span>) <span class="pl-k">except</span> <span class="pl-s1">_ConverterError</span> <span class="pl-k">as</span> <span class="pl-s1">err</span>: <span class="pl-c1">&gt;</span> <span class="pl-k">raise</span> <span class="pl-v">OSError</span>(<span class="pl-s">"Failed to start Inkscape in interactive "</span> <span class="pl-s">"mode"</span>) <span class="pl-k">from</span> <span class="pl-s1">err</span> <span class="pl-v">E</span> <span class="pl-v">OSError</span>: <span class="pl-v">Failed</span> <span class="pl-s1">to</span> <span class="pl-s1">start</span> <span class="pl-v">Inkscape</span> <span class="pl-c1">in</span> <span class="pl-s1">interactive</span> <span class="pl-s1">mode</span> <span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">testing</span><span class="pl-c1">/</span><span class="pl-s1">compare</span>.<span class="pl-s1">py</span>:<span class="pl-c1">193</span>: <span class="pl-v">OSError</span></pre></div> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: macOS 10.15.5</li> <li>Matplotlib version: master branh</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): QT5Agg</li> <li>Python version: 3.8.3</li> <li>Other libraries: Inkscape 1.0beta2 (2b71d25, 2019-12-03), installd through homebrew</li> </ul>
<p dir="auto">Hi,</p> <p dir="auto">I think the fill_between function should take a drawstyle option. It would be both handy and consistent.</p> <p dir="auto">Here is a post from someone else requesting the feature, with a figure illustrating why this is needed:<br> <a href="http://old.nabble.com/fill_between-with-drawstyle-steps--td30172277.html" rel="nofollow">http://old.nabble.com/fill_between-with-drawstyle-steps--td30172277.html</a></p> <p dir="auto">thank you</p>
0
<p dir="auto">Simply trying to save a file to D:\ raises the following error:</p> <p dir="auto">EPERM: operation not permitted, mkdir 'd:'</p>
<p dir="auto">In version 0.10.1 it is no longer possible to write to the root of a drive (which worked up to 0.9.1).<br> When trying to save to e.g. <code class="notranslate">r:\example.txt</code>, the following error message appears:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="EPERM: operation not permitted, mkdir 'r:\'"><pre class="notranslate"><code class="notranslate">EPERM: operation not permitted, mkdir 'r:\' </code></pre></div> <p dir="auto">Tested on Windows 7 Ultimate and Windows 10 Professional, US language, German region settings.</p>
1
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Setup a web-server serving https with a certificate from a local CA 2. Point the program listed at <a href="http://play.golang.org/p/iKScTFUQl3" rel="nofollow">http://play.golang.org/p/iKScTFUQl3</a> at the server 3. The program is unable to complete the TLS handshake. What is the expected output? The program should complete a TLS handshake and exit without errors. What do you see instead? Two error conditions: 1. if certificate verification is enabled, it states that the certificate is signed by an unknown authority 2. if certificate verification is disabled, it states that there is a bad record MAC. I have verified that the certificate chain is complete, that the certificate and key are the correct pair. Which compiler are you using (5g, 6g, 8g, gccgo)? gc Which operating system are you using? Ubuntu 10.04 amd 64bit Debian 6 amd 64bit Which version are you using? (run 'go version') Tested on 1.0.2, 1.0.3, tip Please provide any additional information below. This could be a problem with my CA setup. However the CA and the test web server satisfy both gnutls and openssl. Both report the certificate chain as being valid. I can make the connection with anything else. I have attached a sample certificate, key, and ca certificate that I tested against. It is a horribly weak key. However key length does not seem to change the outcome. I have tested this with 512 bit and 2048 bit rsa keys. I ran into this issue while attempting to consume a https resource in a program I am working on.</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/4728/0/server1_cert.pem" rel="nofollow">server1_cert.pem</a> (1018 bytes)</li> <li><a href="https://storage.googleapis.com/go-attachment/4728/0/server1_key.pem" rel="nofollow">server1_key.pem</a> (493 bytes)</li> <li><a href="https://storage.googleapis.com/go-attachment/4728/0/ca-cert.pem" rel="nofollow">ca-cert.pem</a> (855 bytes)</li> </ol>
<pre class="notranslate">What steps will reproduce the problem? 1. go get github.com/josharian/gostripbug 2. cd $GOPATH/src/github.com/josharian/gostripbug 3. make What is the expected output? Hello What do you see instead? runtime: function symbol table header: 0x0x0 0x0x0 fatal error: invalid function symbol table runtime stack: Which compiler are you using (5g, 6g, 8g, gccgo)? 6g, 6l. Also reproduces with 5g, 5l. Haven't tried others. Which operating system are you using? OS X, arm/linux. Which version are you using? (run 'go version') go version devel +75118231847b Thu Sep 12 00:15:28 2013 +0200 darwin/amd64 Please provide any additional information below. Does not reproduce with Go 1.1. I'd love to know for future reference -- if I wanted to write a test case for this in the Go source tree (so I could reference a CL that others could build on instead of making a separate GitHub repo), where would it belong?</pre>
0
<p dir="auto">The node module <code class="notranslate">util</code> uses <code class="notranslate">Object.create</code> in the <code class="notranslate">inherit</code>-function. But in IE8 and lower <code class="notranslate">Object.create</code> is not defined. Thus <code class="notranslate">util</code> requires a shim to work properly in these browsers.</p> <p dir="auto">Not all JavaScript 1.8.5 features available in <code class="notranslate">Object.create</code> can be emulated but for the purpose of <code class="notranslate">inherit</code> I think <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/create#Cross-browser_compatibility" rel="nofollow">this one provided by the MDN</a> will do it.</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> I'd say it's a feature.</p> <p dir="auto"><strong>What is the current behavior?</strong><br> Currently, all messages (be it warnings, errors, etcetera) are hard-coded, which reduces maintainability.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br> N/A</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> N/A</p> <p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong><br> I suggest we create a <code class="notranslate">messages.json</code> (or of any format for that matter, as long as one can parse it fairly easily) that defines all the different types of messages. This</p> <ul dir="auto"> <li>enhances maintainability</li> <li>improves readability</li> <li>reduces the headache of searching through a large code base for the particular message, and <em>then</em> updating it (imagine if the same error message is used in multiple files <g-emoji class="g-emoji" alias="scream" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f631.png">😱</g-emoji>)</li> </ul> <p dir="auto">For example,</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="... { expectsAnArray: '... expects an array', genericWarning: 'Warning: ... generic warning', unfathomableError: '... look into this immediately!', ... },"><pre class="notranslate">... <span class="pl-kos">{</span> <span class="pl-c1">expectsAnArray</span>: <span class="pl-s">'... expects an array'</span><span class="pl-kos">,</span> <span class="pl-c1">genericWarning</span>: <span class="pl-s">'Warning: ... generic warning'</span><span class="pl-kos">,</span> <span class="pl-c1">unfathomableError</span>: <span class="pl-s">'... look into this immediately!'</span><span class="pl-kos">,</span> ... <span class="pl-kos">}</span><span class="pl-kos">,</span></pre></div> <p dir="auto">... and in some file</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const msgs = require('path/to/messages.json'); fn(...args) { if(allGood) { ... } throw new Error(msgs.unfathomableError); } "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">msgs</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path/to/messages.json'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">fn</span><span class="pl-kos">(</span>...<span class="pl-s1">args</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">allGood</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> ... <span class="pl-kos">}</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s1">msgs</span><span class="pl-kos">.</span><span class="pl-c1">unfathomableError</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong><br> N/A</p>
0
<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="[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] 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">[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] 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">Currently, the <code class="notranslate">renderModuleFactory</code> method generated HTML depends the client <code class="notranslate">main.bundle.js</code>. If use this HTML as pre-rendered version, while browser load the HTML, Angular would re-render the DOM.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">The platform-server package can provide the method to generate the pre-rendered HTML version</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">the entry file: main.server.ts:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { ngExpressEngine } from '@nguniversal/express-engine'; import * as express from 'express'; import { AppServerModule } from './app/app.server.module'; import { ROUTES } from './routes'; app.engine('html', ngExpressEngine({ bootstrap: AppServerModule })); app.set('view engine', 'html'); app.set('views', 'dist/client'); ROUTES.forEach(route =&gt; { app.get(route, (req, res) =&gt; { console.time(`GET: ${req.originalUrl}`); res.render('index', { req: req, res: res, preboot: true, }); console.timeEnd(`GET: ${req.originalUrl}`); }); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">ngExpressEngine</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@nguniversal/express-engine'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">express</span> <span class="pl-k">from</span> <span class="pl-s">'express'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">AppServerModule</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./app/app.server.module'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">ROUTES</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./routes'</span><span class="pl-kos">;</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">(</span><span class="pl-s">'html'</span><span class="pl-kos">,</span> <span class="pl-en">ngExpressEngine</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">bootstrap</span>: <span class="pl-smi">AppServerModule</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">'view engine'</span><span class="pl-kos">,</span> <span class="pl-s">'html'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">'views'</span><span class="pl-kos">,</span> <span class="pl-s">'dist/client'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">ROUTES</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-s1">route</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">route</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">res</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">time</span><span class="pl-kos">(</span><span class="pl-s">`GET: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-c1">originalUrl</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s">'index'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">req</span>: <span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-c1">res</span>: <span class="pl-s1">res</span><span class="pl-kos">,</span> <span class="pl-c1">preboot</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-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">timeEnd</span><span class="pl-kos">(</span><span class="pl-s">`GET: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-c1">originalUrl</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">After the express server start, using <code class="notranslate">curl</code> to get the generated HTML as pre-rendered version.<br> upload the HTML file to CDN network, open the HTML URL in browser, Angular would re-render the DOM.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">In some use case, we only have static web server &amp; we also care about the SEO, so we choose Angular Universal.<br> And we want to use the pre-rendered HTML to boot app.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 4.1.2</li> </ul> <ul dir="auto"> <li><strong>Browser:</strong> [all ]</li> </ul> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [TypeScript 2.3.2]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = v6.9.1</p> </li> </ul> <p dir="auto">Reference: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="199336473" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/13822" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/13822/hovercard" href="https://github.com/angular/angular/issues/13822">#13822</a></p>
<p dir="auto">I'm recapping a discussion I just had with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alxhub/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alxhub">@alxhub</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tbosch/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tbosch">@tbosch</a>. This is mostly Tobias' design.</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] feature request"><pre class="notranslate"><code class="notranslate">[x] feature request </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">Typically when a page is pre-rendered, such as with Universal, the Angular application bootstraps in the browser, then blows away the pre-rendered content, and replaces it with newly created nodes. The DOM tree that is pre-rendered is often very similar, or identical to the DOM tree created on the front end, but there are issues that make it difficult for Angular to take over the existing DOM tree (otherwise referred to as DOM hydration).</p> <p dir="auto">The actual handoff of destroying the old DOM and showing the new DOM is pretty fast and seamless, so it's not necessarily a major UX issue in and of itself. Where it becomes problematic is in cases like ads that load in iframes (which is pretty much all display ads). If these ad iframes are pre-rendered -- which is a business requirement for many publishers -- and the iframe gets moved in the DOM, the iframe will refresh. This causes some ad networks to suspect abuse, as if publishers are trying to sneak more ad views.</p> <p dir="auto"><strong>Why Not Use the Already-Rendered DOM?</strong></p> <p dir="auto">One issue is that with asynchronicity+conditional DOM (i.e. <code class="notranslate">*ngIf="data | async"</code>), the tree in the client may be rendered before the condition is truthy, whereas the pre-rendered version may have the full tree with async data resolved.</p> <p dir="auto">Another challenge is that text nodes are not able to be selected by CSS selectors, which would mean the renderer would have to rely on child ordering in order to associate pre-rendered nodes with client-rendered nodes (which is not always correct). Similar challenge goes for elements in an <code class="notranslate">*ngFor</code>, the order must be assumed to be identical.</p> <p dir="auto">The renderer would also be responsible for cleaning up pre-rendered orphan nodes. i.e. if 30 items in an <code class="notranslate">*ngFor</code> were pre-rendered, but only 20 were rendered in the client, the additional 10 nodes would need to be removed to prevent unexpected behavior.</p> <p dir="auto"><strong>Proposal: Optional, explicit, partial DOM Hydration</strong></p> <p dir="auto">Allow setting a user-specified attribute on elements to associate the pre-rendered version with client-rendered version. If the renderer comes to a node that it can't associate with an existing node, it will blow away the node and re-create it. The developer would be responsible for setting these ids on the elements they care about. Example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { HydrateDomConfig, NgModule } from '@angular/core'; @NgModule({ providers: [ { provide: HydrateDomConfig, useValue: { hydrate: true, // default false for backwards compat attribute: 'pid', // default 'id' } } ] })"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">HydrateDomConfig</span><span class="pl-kos">,</span> <span class="pl-smi">NgModule</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core'</span><span class="pl-kos">;</span> @<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">HydrateDomConfig</span><span class="pl-kos">,</span> <span class="pl-c1">useValue</span>: <span class="pl-kos">{</span> <span class="pl-c1">hydrate</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c">// default false for backwards compat</span> <span class="pl-c1">attribute</span>: <span class="pl-s">'pid'</span><span class="pl-kos">,</span> <span class="pl-c">// default 'id'</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">Component:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ template: ` &lt;div pid=&quot;header&quot;&gt; &lt;header-ad pid=&quot;header-ad&quot;&gt;&lt;/header-ad&gt; &lt;div&gt; &lt;!-- this will get blown away and re-created since it lacks attribute --&gt; &lt;/div&gt; &lt;/div&gt; ` })"><pre class="notranslate">@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">template</span>: <span class="pl-s">`</span> <span class="pl-s"> &lt;div pid="header"&gt;</span> <span class="pl-s"> &lt;header-ad pid="header-ad"&gt;&lt;/header-ad&gt;</span> <span class="pl-s"> &lt;div&gt;</span> <span class="pl-s"> &lt;!-- this will get blown away and re-created since it lacks attribute --&gt;</span> <span class="pl-s"> &lt;/div&gt;</span> <span class="pl-s"> &lt;/div&gt;</span> <span class="pl-s"> `</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">This design allows the <code class="notranslate">DomRenderer</code> to traverse the DOM tree and match elements for each branch starting at the root until it can't go any deeper, at which point it would blow away the descendants and re-create them.</p> <p dir="auto">Text nodes would all be destroyed and re-created with this design, as well as any node that doesn't have the set attribute, <code class="notranslate">pid</code>.</p> <p dir="auto">I don't expect that the rendering would be user-perceivable, other than if there are discrepancies between pre-rendered and client-rendered DOM, but that's a concern even without this feature.</p> <p dir="auto">CC <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gdi2290/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gdi2290">@gdi2290</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pxwise/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pxwise">@pxwise</a></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tbosch/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tbosch">@tbosch</a> &amp; <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alxhub/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alxhub">@alxhub</a> please feel free to add anything I missed (or misrepresented).</p>
1
<p dir="auto">This is what I had to do to get Raven's Sentry client working with Celery:</p> <p dir="auto">Disable the logger to avoid duplicates in Sentry (one would be logged in <code class="notranslate">celery.worker.job</code> with no frames locals, the other one with the root logger with locals).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" celery.worker.job: level: INFO handlers: [yourhandler] propagate: no"><pre class="notranslate"><code class="notranslate"> celery.worker.job: level: INFO handlers: [yourhandler] propagate: no </code></pre></div> <p dir="auto">I also had <code class="notranslate">CELERYD_HIJACK_ROOT_LOGGER</code> to <code class="notranslate">False</code> in my Celery <a href="http://docs.celeryproject.org/en/latest/configuration.html#celeryd-hijack-root-logger" rel="nofollow">configuration</a>, and had to disable celery logging completely:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@signals.setup_logging.connect def setup_logging(**kwargs): &quot;&quot;&quot;Setup logging.&quot;&quot;&quot; pass"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">signals</span>.<span class="pl-s1">setup_logging</span>.<span class="pl-s1">connect</span></span> <span class="pl-k">def</span> <span class="pl-en">setup_logging</span>(<span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-s">"""Setup logging."""</span> <span class="pl-k">pass</span></pre></div> <p dir="auto">I set up Sentry exactly like in the <a href="http://raven.readthedocs.org/en/latest/integrations/celery.html" rel="nofollow">docs</a>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from raven import Client from raven.contrib.celery import register_signal, register_logger_signal client = Client() # register a custom filter to filter out duplicate logs register_logger_signal(client) # hook into the Celery error handler register_signal(client)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">raven</span> <span class="pl-k">import</span> <span class="pl-v">Client</span> <span class="pl-k">from</span> <span class="pl-s1">raven</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-s1">register_signal</span>, <span class="pl-s1">register_logger_signal</span> <span class="pl-s1">client</span> <span class="pl-c1">=</span> <span class="pl-v">Client</span>() <span class="pl-c"># register a custom filter to filter out duplicate logs</span> <span class="pl-en">register_logger_signal</span>(<span class="pl-s1">client</span>) <span class="pl-c"># hook into the Celery error handler</span> <span class="pl-en">register_signal</span>(<span class="pl-s1">client</span>)</pre></div> <p dir="auto">I use:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery==3.1.17 kombu==3.0.24 raven==5.1.1"><pre class="notranslate"><code class="notranslate">celery==3.1.17 kombu==3.0.24 raven==5.1.1 </code></pre></div> <p dir="auto">I understand there was already some discussion about this in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="27362729" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/1867" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/1867/hovercard" href="https://github.com/celery/celery/issues/1867">#1867</a>, not sure if it has evolved.</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li 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 in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Description</h1> <p dir="auto">My Django application has lots of periodic tasks defined in different applications.<br> In the previous version of Celery (v4.x), I used to define the periodic task like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from celery.task import periodic_task @periodic_task(name='authentication.periodic_task.clear_refresh_token', run_every=timedelta(days=1)) def clear_refresh_token(): pass"><pre class="notranslate"><code class="notranslate">from celery.task import periodic_task @periodic_task(name='authentication.periodic_task.clear_refresh_token', run_every=timedelta(days=1)) def clear_refresh_token(): pass </code></pre></div> <p dir="auto">After the removal of the <code class="notranslate">periodic_task</code> decorator from v5.x, it is unclear how to define the auto-discoverable periodic tasks.</p> <p dir="auto">From the period task documentation <a href="https://docs.celeryproject.org/en/4.4.0/userguide/periodic-tasks.html#entries" rel="nofollow">https://docs.celeryproject.org/en/4.4.0/userguide/periodic-tasks.html#entries</a>, It requires the <code class="notranslate">app</code> module to define the signal under which the periodic tasks has to be registered.</p> <p dir="auto">This is fine when the periodic tasks are defined in the root module (main application module), but what for the other module?</p> <p dir="auto">Also previously, it was easy to define the periodic tasks by using the decorator, and thus have the flexibility to define periodic tasks to any method, as per the new update, do I need to create separated <code class="notranslate">shared_task</code> first and then register them as a periodic task under the signal receiver?</p> <h1 dir="auto">Suggestions</h1>
0
<p dir="auto">My use case is to better integrate my Electron app into the desktop environment. This includes being able to copy a file to clipboard and paste it to the native OS explorer/finder as well as to drag and drop between the app and the desktop.</p> <p dir="auto">As of today the closest I can get is by leveraging Chrome's own support for dragging out files to the desktop (<a href="http://www.thecssninja.com/javascript/gmail-dragout" rel="nofollow">http://www.thecssninja.com/javascript/gmail-dragout</a>). However this support seems limited to the OS explorer/finder and does not work to drag something into another application (eg. Sublime).</p> <p dir="auto">Opening this issue to gather some ideas how to support this kind of feature and maybe other developers have found solutions already?</p>
<p dir="auto">i want to get image file from clipboard.</p> <p dir="auto">when right-click an image on a web page and copy it, i can get the image file from both browser's <code class="notranslate">onpaste</code> event and <code class="notranslate">clipboard</code> module that electron provided.</p> <p dir="auto">when it came to <strong>files(images) in finder</strong>, <code class="notranslate">cmd+c</code> copy it, browser's <code class="notranslate">onpaste</code> event can only give you a preview icon of this file.</p> <p dir="auto">like this:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2055081/8722431/48302d14-2bf7-11e5-9ec2-e465279aa6db.png"><img src="https://cloud.githubusercontent.com/assets/2055081/8722431/48302d14-2bf7-11e5-9ec2-e465279aa6db.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">i hope electron can give me more power to access clipboard data. but after i look through the api doc of clipboard and native-image, tryed in devtool of electron, the result still the same, i can only get the preview icon of the image.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2055081/8722485/b69c1c18-2bf7-11e5-85f3-e61a59cf4c46.png"><img src="https://cloud.githubusercontent.com/assets/2055081/8722485/b69c1c18-2bf7-11e5-85f3-e61a59cf4c46.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">how can i access to image data copyed from finder, not from web page?</p> <p dir="auto">here is some code, paste those code to devtool of electron, copy an image file in finder, back to devtool, press enter.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var clipboard = require('clipboard'); var img = clipboard.readImage('png'); document.body.innerHTML += '&lt;img src=&quot;' +img.toDataUrl()+ '&quot;&gt;';"><pre class="notranslate"><code class="notranslate">var clipboard = require('clipboard'); var img = clipboard.readImage('png'); document.body.innerHTML += '&lt;img src="' +img.toDataUrl()+ '"&gt;'; </code></pre></div>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ansible core (ssh login)</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0.0 config file = ... /ansible/etc/ansible.cfg configured module search path = Default w/o overrides python version = 2.6.6 (r266:84292, Aug 18 2016, 08:36:59) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0 config file = ... /ansible/etc/ansible.cfg configured module search path = Default w/o overrides python version = 2.6.6 (r266:84292, Aug 18 2016, 08:36:59) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">new install from tar ball</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When a host file contains the same host under multiple groupings the final ansible_user setting overrides and the ansible_user=xxx is ignored from the actual host entry being used.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Create an inventory file</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[bobs-machines] machineA ansible_user=bob machineB ansible_user=bob [sallys-machines] machineA ansible_user=sally machineC ansible_user=sally "><pre class="notranslate"><code class="notranslate">[bobs-machines] machineA ansible_user=bob machineB ansible_user=bob [sallys-machines] machineA ansible_user=sally machineC ansible_user=sally </code></pre></div> <p dir="auto">validate the user that ansible is using</p> <p dir="auto">ansible -vvv <strong>bob</strong>s-machine -m ping</p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I would expect that both machineA and machineB are used with ssh user bob.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ESTABLISH SSH CONNECTION FOR USER: sally ESTABLISH SSH CONNECTION FOR USER: bob SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=sally -o ConnectTimeout=10 ... SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=bob -o ConnectTimeout=10 ..."><pre class="notranslate"><code class="notranslate">ESTABLISH SSH CONNECTION FOR USER: sally ESTABLISH SSH CONNECTION FOR USER: bob SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=sally -o ConnectTimeout=10 ... SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=bob -o ConnectTimeout=10 ... </code></pre></div> <p dir="auto">`<br> If the command was run with ALL to run against all hosts, I'm not sure what I would expect the correct bahavior to be. There are two possbility of either running against each host once using one or the other ansible_user settings or treating differnt users as different hosts and running against each of them. The current behavior is to run against each host exaclty 1 time regardelss of ansbile_user settings and use the last ansbile_user specificed.</p> <p dir="auto">In this example since the example command above is not running agianst Sally's host, the values for Sally's host should have no impact to Bob's hosts.</p>
<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">Any</p> <h5 dir="auto">Summary:</h5> <p dir="auto">I think it would be really nice to have some <code class="notranslate">role_name</code> available as variable in the tasks in same way as done for <code class="notranslate">role_path</code> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/7051cdeb57d947a213803ca28a4e1a6a2f905d26/hovercard" href="https://github.com/ansible/ansible/commit/7051cdeb57d947a213803ca28a4e1a6a2f905d26"><tt>7051cde</tt></a> recently</p> <p dir="auto">For now we have few options to let tasks know about current role name</p> <ol dir="auto"> <li>set variable on role definition (playbook level)<br> example</li> </ol> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" roles: - { role: webserver, role_name: &quot;webserver&quot; }"><pre class="notranslate"> <span class="pl-ent">roles</span>: - <span class="pl-s">{ role: webserver, role_name: "webserver" }</span></pre></div> <ol start="2" dir="auto"> <li>extract role folder name from <code class="notranslate">role_path</code> with <code class="notranslate">regex_replace</code> filter (task level)<br> example</li> </ol> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hipchat: msg='{{ role_path | regex_replace('^.*/(.*)$', '\\1') }} | tasks finished' token=&quot;{{ hipchat_token }}&quot; room=&quot;{{ hipchat_room }}&quot; color=&quot;{{ hipchat_color }}&quot;"><pre class="notranslate">- <span class="pl-ent">hipchat</span>: <span class="pl-s">msg='{{ role_path | regex_replace('^.*/(.*)$', '\\1') }} | tasks finished'</span> <span class="pl-s">token="{{ hipchat_token }}"</span> <span class="pl-s">room="{{ hipchat_room }}"</span> <span class="pl-s">color="{{ hipchat_color }}"</span></pre></div> <p dir="auto">Please let me know if we already have way to get role name in tasks</p> <p dir="auto">Thanks in advance</p>
0
<p dir="auto">The Assert\Valid is not taken into account and the form is just considered valid, even if the constraints are not met. The issue can be reproduced by taking the example over here :<br> <a href="http://symfony.com/doc/current/book/forms.html#embedding-a-single-object" rel="nofollow">http://symfony.com/doc/current/book/forms.html#embedding-a-single-object</a></p> <ul dir="auto"> <li>Add any constraint to Entity\Category with: <code class="notranslate">groups={"validationgroup"}</code></li> <li>Change <code class="notranslate">@Assert\Type(...)</code> in Entity\Task to <code class="notranslate">@Assert\Valid</code></li> <li>Add <code class="notranslate">'validation_groups' =&gt; array('validationgroup')</code> to Form\Type\CategoryType in <code class="notranslate">$resolver-&gt;setDefaults</code></li> <li>Remove <code class="notranslate">'cascade_validation' =&gt; true,</code> from Form/Type/TaskType. As we use Assert\Valid, this should not be necessary, or am I wrong?</li> <li>Create a controller:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class TestController extends Controller { public function indexAction() { $form = $this-&gt;createForm(new TaskType(), new Task()); $form-&gt;add('save', 'submit'); $form-&gt;handleRequest($this-&gt;getRequest()); if($form-&gt;isValid()){ echo '&lt;p&gt;the form is valid...&lt;/p&gt;'; } return $this-&gt;render('AcmeDemoBundle:Test:taskform.html.twig', array( 'form' =&gt; $form-&gt;createView() )); } }"><pre class="notranslate"><code class="notranslate">class TestController extends Controller { public function indexAction() { $form = $this-&gt;createForm(new TaskType(), new Task()); $form-&gt;add('save', 'submit'); $form-&gt;handleRequest($this-&gt;getRequest()); if($form-&gt;isValid()){ echo '&lt;p&gt;the form is valid...&lt;/p&gt;'; } return $this-&gt;render('AcmeDemoBundle:Test:taskform.html.twig', array( 'form' =&gt; $form-&gt;createView() )); } } </code></pre></div> <ul dir="auto"> <li>and twig template :</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;h3&gt;Add task&lt;/h3&gt; {{ form(form) }}"><pre class="notranslate"><code class="notranslate">&lt;h3&gt;Add task&lt;/h3&gt; {{ form(form) }} </code></pre></div> <p dir="auto">I can provide you this bundle, zipped, if you want. I have also found that (by placing a debug closure in <code class="notranslate">validation_groups</code>) the <code class="notranslate">validation_groups</code> is read by the validator but it doesn't seem to be used.</p> <p dir="auto">Tested with version 2.3.7</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/5efc3ddaed1bedc42eb9c0cb130794650f526dcdfe3f60e830800ba81ec966ed/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313330393534342f313634323434312f61343861333863382d353838332d313165332d393263312d3736323237343132363433662e504e47"><img src="https://camo.githubusercontent.com/5efc3ddaed1bedc42eb9c0cb130794650f526dcdfe3f60e830800ba81ec966ed/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313330393534342f313634323434312f61343861333863382d353838332d313165332d393263312d3736323237343132363433662e504e47" alt="capture" data-canonical-src="https://f.cloud.github.com/assets/1309544/1642441/a48a38c8-5883-11e3-92c1-76227412643f.PNG" style="max-width: 100%;"></a></p>
<p dir="auto">I have an entity where I'm using the following validators:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/** * @Assert\Callback(methods={&quot;isValid&quot;}, groups={&quot;group1&quot;, &quot;group2&quot;}) */ class UserProduct { /** * @var string $title * @Assert\NotBlank(message=&quot;title.blank&quot;, groups={&quot;group1&quot;, &quot;group2&quot;}); */ private $title; /** * @var Project\AuthenticationBundle\Entity\User * @Assert\Valid(groups={&quot;group2&quot;}); */ private $user;"><pre class="notranslate"><span class="pl-c">/**</span> <span class="pl-c"> * @Assert\Callback(methods={"isValid"}, groups={"group1", "group2"})</span> <span class="pl-c"> */</span> <span class="pl-k">class</span> <span class="pl-v">UserProduct</span> { <span class="pl-c">/**</span> <span class="pl-c"> * @var string $title</span> <span class="pl-c"> * @Assert\NotBlank(message="title.blank", groups={"group1", "group2"});</span> <span class="pl-c"> */</span> <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>title</span>; <span class="pl-c">/**</span> <span class="pl-c"> * @var Project\AuthenticationBundle\Entity\User</span> <span class="pl-c"> * @Assert\Valid(groups={"group2"});</span> <span class="pl-c"> */</span> <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>user</span>;</pre></div> <p dir="auto">Calling <code class="notranslate">$this-&gt;get('validator')-&gt;validate($userProduct, array('group1'))</code> asserts the class constraint (<code class="notranslate">@Assert\Callback</code>) and the <code class="notranslate">$title</code> property but also the <code class="notranslate">$user</code> one too, even though it's not included in the validation group. The same happens if no groups are passed to the <code class="notranslate">Valid</code> constraint.</p> <p dir="auto">Removing the <code class="notranslate">@Assert\Valid()</code> constraint and running the same validation again for <code class="notranslate">group1</code> does not assert the <code class="notranslate">$user</code> property, as expected.</p> <p dir="auto">The <code class="notranslate">MemberMetadata</code> class appears to always force the cascading of the <code class="notranslate">Valid</code> constraint, although I'm unsure if this is exactly related to the issue I'm experiencing.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Symfony\Component\Validator\Mapping\MemberMetadata.php if ($constraint instanceof Valid) { $this-&gt;cascaded = true; $this-&gt;collectionCascaded = $constraint-&gt;traverse; } else { parent::addConstraint($constraint); }"><pre class="notranslate"><code class="notranslate">// Symfony\Component\Validator\Mapping\MemberMetadata.php if ($constraint instanceof Valid) { $this-&gt;cascaded = true; $this-&gt;collectionCascaded = $constraint-&gt;traverse; } else { parent::addConstraint($constraint); } </code></pre></div> <p dir="auto">Running on Symfony2 master.</p>
1
<p dir="auto">OS:CentOS Linux release 7.5.1804 (Core)<br> proxy version:shardingsphere-5.1.2<br> zookeeper version:zookeeper-3.6.3 (three nodes,cluster mode)</p> <p dir="auto">Hi<br> when config mutli zookeeper server(cluster mode),Failed to start proxy service port(3307).</p> <p dir="auto">server.yaml:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the &quot;License&quot;); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an &quot;AS IS&quot; BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ###################################################################################################### # # If you want to configure governance, authorization and proxy properties, please refer to this file. # ###################################################################################################### mode: type: Cluster repository: type: ZooKeeper props: namespace: governance_ds server-lists: zk1:2181,zk2:2181,zk3:2181 retryIntervalMilliseconds: 500 timeToLiveSeconds: 60 maxRetries: 3 operationTimeoutMilliseconds: 500 overwrite: false # rules: - !AUTHORITY users: - root@%:root - sharding@:sharding provider: type: ALL_PERMITTED # - !TRANSACTION # defaultType: XA # providerType: Atomikos # # When the provider type is Narayana, the following properties can be configured or not # props: # recoveryStoreUrl: jdbc:mysql://127.0.0.1:3306/jbossts # recoveryStoreDataSource: com.mysql.jdbc.jdbc2.optional.MysqlDataSource # recoveryStoreUser: root # recoveryStorePassword: 12345678 - !SQL_PARSER sqlCommentParseEnabled: true sqlStatementCache: initialCapacity: 2000 maximumSize: 65535 parseTreeCache: initialCapacity: 128 maximumSize: 1024 props: max-connections-size-per-query: 1 kernel-executor-size: 16 # Infinite by default. proxy-frontend-flush-threshold: 128 # The default value is 128. proxy-hint-enabled: false sql-show: false check-table-metadata-enabled: false show-process-list-enabled: false # # Proxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy. # # The default value is -1, which means set the minimum value for different JDBC drivers. proxy-backend-query-fetch-size: -1 check-duplicate-table-enabled: false proxy-frontend-executor-size: 0 # Proxy frontend executor size. The default value is 0, which means let Netty decide. # # Available options of proxy backend executor suitable: OLAP(default), OLTP. The OLTP option may reduce time cost of writing packets to client, but it may increase the latency of SQL execution # # and block other clients if client connections are more than `proxy-frontend-executor-size`, especially executing slow SQL. proxy-backend-executor-suitable: OLAP proxy-frontend-max-connections: 0 # Less than or equal to 0 means no limitation. sql-federation-enabled: false # # Available proxy backend driver type: JDBC (default), ExperimentalVertx proxy-backend-driver-type: JDBC proxy-mysql-default-version: 5.7.22 # In the absence of schema name, the default version will be used. proxy-default-port: 3307 # Proxy default port. proxy-netty-backlog: 1024 # Proxy netty backlog."><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span></span> <span class="pl-c"><span class="pl-c">#</span> Licensed to the Apache Software Foundation (ASF) under one or more</span> <span class="pl-c"><span class="pl-c">#</span> contributor license agreements. See the NOTICE file distributed with</span> <span class="pl-c"><span class="pl-c">#</span> this work for additional information regarding copyright ownership.</span> <span class="pl-c"><span class="pl-c">#</span> The ASF licenses this file to You under the Apache License, Version 2.0</span> <span class="pl-c"><span class="pl-c">#</span> (the "License"); you may not use this file except in compliance with</span> <span class="pl-c"><span class="pl-c">#</span> the License. You may obtain a copy of the License at</span> <span class="pl-c"><span class="pl-c">#</span></span> <span class="pl-c"><span class="pl-c">#</span> http://www.apache.org/licenses/LICENSE-2.0</span> <span class="pl-c"><span class="pl-c">#</span></span> <span class="pl-c"><span class="pl-c">#</span> Unless required by applicable law or agreed to in writing, software</span> <span class="pl-c"><span class="pl-c">#</span> distributed under the License is distributed on an "AS IS" BASIS,</span> <span class="pl-c"><span class="pl-c">#</span> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span> <span class="pl-c"><span class="pl-c">#</span> See the License for the specific language governing permissions and</span> <span class="pl-c"><span class="pl-c">#</span> limitations under the License.</span> <span class="pl-c"><span class="pl-c">#</span></span> <span class="pl-c"><span class="pl-c">#</span>#####################################################################################################</span> <span class="pl-c"><span class="pl-c">#</span> </span> <span class="pl-c"><span class="pl-c">#</span> If you want to configure governance, authorization and proxy properties, please refer to this file.</span> <span class="pl-c"><span class="pl-c">#</span> </span> <span class="pl-c"><span class="pl-c">#</span>#####################################################################################################</span> <span class="pl-ent">mode</span>: <span class="pl-ent">type</span>: <span class="pl-s">Cluster</span> <span class="pl-ent">repository</span>: <span class="pl-ent">type</span>: <span class="pl-s">ZooKeeper</span> <span class="pl-ent">props</span>: <span class="pl-ent">namespace</span>: <span class="pl-s">governance_ds</span> <span class="pl-ent">server-lists</span>: <span class="pl-s">zk1:2181,zk2:2181,zk3:2181</span> <span class="pl-ent">retryIntervalMilliseconds</span>: <span class="pl-c1">500</span> <span class="pl-ent">timeToLiveSeconds</span>: <span class="pl-c1">60</span> <span class="pl-ent">maxRetries</span>: <span class="pl-c1">3</span> <span class="pl-ent">operationTimeoutMilliseconds</span>: <span class="pl-c1">500</span> <span class="pl-ent">overwrite</span>: <span class="pl-c1">false</span> <span class="pl-c"><span class="pl-c">#</span></span> <span class="pl-ent">rules</span>: - <span class="pl-k">!AUTHORITY</span> <span class="pl-ent">users</span>: - <span class="pl-s">root@%:root</span> - <span class="pl-s">sharding@:sharding</span> <span class="pl-ent">provider</span>: <span class="pl-ent">type</span>: <span class="pl-s">ALL_PERMITTED</span> <span class="pl-c"><span class="pl-c">#</span> - !TRANSACTION</span> <span class="pl-c"><span class="pl-c">#</span> defaultType: XA</span> <span class="pl-c"><span class="pl-c">#</span> providerType: Atomikos</span> <span class="pl-c"><span class="pl-c">#</span> # When the provider type is Narayana, the following properties can be configured or not</span> <span class="pl-c"><span class="pl-c">#</span> props:</span> <span class="pl-c"><span class="pl-c">#</span> recoveryStoreUrl: jdbc:mysql://127.0.0.1:3306/jbossts</span> <span class="pl-c"><span class="pl-c">#</span> recoveryStoreDataSource: com.mysql.jdbc.jdbc2.optional.MysqlDataSource</span> <span class="pl-c"><span class="pl-c">#</span> recoveryStoreUser: root</span> <span class="pl-c"><span class="pl-c">#</span> recoveryStorePassword: 12345678</span> - <span class="pl-k">!SQL_PARSER</span> <span class="pl-ent">sqlCommentParseEnabled</span>: <span class="pl-c1">true</span> <span class="pl-ent">sqlStatementCache</span>: <span class="pl-ent">initialCapacity</span>: <span class="pl-c1">2000</span> <span class="pl-ent">maximumSize</span>: <span class="pl-c1">65535</span> <span class="pl-ent">parseTreeCache</span>: <span class="pl-ent">initialCapacity</span>: <span class="pl-c1">128</span> <span class="pl-ent">maximumSize</span>: <span class="pl-c1">1024</span> <span class="pl-ent">props</span>: <span class="pl-ent">max-connections-size-per-query</span>: <span class="pl-c1">1</span> <span class="pl-ent">kernel-executor-size</span>: <span class="pl-c1">16</span> <span class="pl-c"><span class="pl-c">#</span> Infinite by default.</span> <span class="pl-ent">proxy-frontend-flush-threshold</span>: <span class="pl-c1">128</span> <span class="pl-c"><span class="pl-c">#</span> The default value is 128.</span> <span class="pl-ent">proxy-hint-enabled</span>: <span class="pl-c1">false</span> <span class="pl-ent">sql-show</span>: <span class="pl-c1">false</span> <span class="pl-ent">check-table-metadata-enabled</span>: <span class="pl-c1">false</span> <span class="pl-ent">show-process-list-enabled</span>: <span class="pl-c1">false</span> <span class="pl-c"><span class="pl-c">#</span> # Proxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy.</span> <span class="pl-c"><span class="pl-c">#</span> # The default value is -1, which means set the minimum value for different JDBC drivers.</span> <span class="pl-ent">proxy-backend-query-fetch-size</span>: <span class="pl-c1">-1</span> <span class="pl-ent">check-duplicate-table-enabled</span>: <span class="pl-c1">false</span> <span class="pl-ent">proxy-frontend-executor-size</span>: <span class="pl-c1">0</span> <span class="pl-c"><span class="pl-c">#</span> Proxy frontend executor size. The default value is 0, which means let Netty decide.</span> <span class="pl-c"><span class="pl-c">#</span> # Available options of proxy backend executor suitable: OLAP(default), OLTP. The OLTP option may reduce time cost of writing packets to client, but it may increase the latency of SQL execution</span> <span class="pl-c"><span class="pl-c">#</span> # and block other clients if client connections are more than `proxy-frontend-executor-size`, especially executing slow SQL.</span> <span class="pl-ent">proxy-backend-executor-suitable</span>: <span class="pl-s">OLAP</span> <span class="pl-ent">proxy-frontend-max-connections</span>: <span class="pl-c1">0</span> <span class="pl-c"><span class="pl-c">#</span> Less than or equal to 0 means no limitation.</span> <span class="pl-ent">sql-federation-enabled</span>: <span class="pl-c1">false</span> <span class="pl-c"><span class="pl-c">#</span> # Available proxy backend driver type: JDBC (default), ExperimentalVertx</span> <span class="pl-ent">proxy-backend-driver-type</span>: <span class="pl-s">JDBC</span> <span class="pl-ent">proxy-mysql-default-version</span>: <span class="pl-s">5.7.22 </span><span class="pl-c"><span class="pl-c">#</span> In the absence of schema name, the default version will be used.</span> <span class="pl-ent">proxy-default-port</span>: <span class="pl-c1">3307</span> <span class="pl-c"><span class="pl-c">#</span> Proxy default port.</span> <span class="pl-ent">proxy-netty-backlog</span>: <span class="pl-c1">1024</span> <span class="pl-c"><span class="pl-c">#</span> Proxy netty backlog.</span></pre></div> <p dir="auto">stdout:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[INFO ] 2022-10-17 15:43:21.500 [main] o.a.c.f.imps.CuratorFrameworkImpl - Starting [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:zookeeper.version=3.6.0--b4c89dc7f6083829e18fae6e446907ae0b1f22d7, built on 02/25/2020 14:38 GMT [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:host.name=zk1 [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.version=1.8.0_345 [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.vendor=Red Hat, Inc. [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.345.b01-1.el7_9.x86_64/jre [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.class.path=/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/conf:.:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-bootstrap-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-protocol-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-codec-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-common-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-buffer-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-transport-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-protocol-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-protocol-postgresql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-protocol-opengauss-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-handler-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-resolver-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-tcnative-classes-2.0.46.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-transport-classes-epoll-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-transport-native-unix-common-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-transport-native-epoll-4.1.73.Final-linux-x86_64.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-transport-native-epoll-4.1.73.Final-linux-aarch_64.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-reactive-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-reactive-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-reactive-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-postgresql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-codec-1.15.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-opengauss-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-backend-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-sql92-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-engine-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/antlr4-runtime-4.9.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/caffeine-2.9.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-postgresql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-opengauss-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-oracle-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-sqlserver-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-context-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-binder-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-executor-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/vertx-mysql-client-4.2.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/vertx-core-4.2.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-resolver-dns-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-codec-dns-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/vertx-sql-client-4.2.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-federation-optimizer-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/calcite-core-1.27.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/esri-geometry-api-2.2.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jackson-annotations-2.10.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/avatica-core-1.18.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/avatica-metrics-1.18.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/httpclient-4.5.9.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/httpcore-4.4.11.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/apiguardian-api-1.1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jackson-core-2.10.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jackson-databind-2.10.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jackson-dataformat-yaml-2.10.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/uzaygezen-core-0.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/json-path-2.4.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/json-smart-2.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/accessors-smart-1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/asm-5.0.4.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/sketches-core-0.9.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/memory-0.9.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/aggdesigner-algorithm-6.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-logging-1.1.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-lang3-3.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-io-2.4.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-compiler-3.0.11.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/janino-3.0.11.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-translator-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-translator-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-memory-mode-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-cluster-mode-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jooq-3.14.15.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-data-pipeline-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-data-pipeline-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-route-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-rewrite-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-translator-native-provider-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-translator-jooq-provider-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/reactive-streams-1.0.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jaxb-api-2.3.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-merge-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/calcite-linq4j-1.27.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-system-datetime-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-datetime-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-cosid-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/cosid-core-1.10.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-nanoid-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jnanoid-2.0.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-readwrite-splitting-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-readwrite-splitting-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-readwrite-splitting-distsql-handler-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-readwrite-splitting-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-readwrite-splitting-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-distsql-handler-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-opengauss-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-shadow-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-shadow-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-shadow-distsql-handler-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-shadow-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-shadow-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-distsql-handler-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-sm-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/bcprov-jdk15on-1.70.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-authority-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-authority-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-single-table-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-single-table-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-traffic-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-common-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/snakeyaml-1.30.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/groovy-4.0.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-traffic-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-transaction-xa-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-transaction-xa-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jta-1.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-transaction-xa-atomikos-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/transactions-5.0.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/transactions-api-5.0.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/atomikos-util-5.0.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/transactions-jta-5.0.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/transactions-jdbc-5.0.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-distsql-handler-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-data-pipeline-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-data-pipeline-postgresql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/freemarker-2.3.31.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-data-pipeline-opengauss-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/gson-2.8.6.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-federation-executor-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-standalone-mode-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-mode-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-schedule-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-lite-core-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-api-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-infra-common-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-registry-center-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-exec-1.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-simple-executor-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-executor-kernel-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-error-handler-general-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-error-handler-spi-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-dataflow-executor-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-script-executor-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-http-executor-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-tracing-rdb-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-tracing-api-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/quartz-2.3.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/mchange-commons-java-0.2.15.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-lite-lifecycle-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-standalone-mode-repository-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-standalone-mode-repository-file-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-standalone-mode-repository-h2-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-cluster-mode-repository-zookeeper-curator-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-cluster-mode-repository-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/curator-framework-5.1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/curator-client-5.1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/zookeeper-3.6.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-lang-2.6.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/zookeeper-jute-3.6.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/audience-annotations-0.5.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/log4j-1.2.17.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/curator-recipes-5.1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-cluster-mode-repository-etcd-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jetcd-core-0.5.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jetcd-common-0.5.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jetcd-resolver-0.5.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-core-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-api-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-context-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/animal-sniffer-annotations-1.18.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/perfmark-api-0.19.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-netty-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-codec-http2-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-codec-http-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-handler-proxy-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-codec-socks-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-protobuf-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/protobuf-java-3.11.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/proto-google-common-protos-1.17.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-protobuf-lite-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-stub-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-grpclb-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/protobuf-java-util-3.11.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/failsafe-2.3.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-jdbc-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-transaction-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-transaction-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-parser-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-parser-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-collections4-4.4.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/HikariCP-3.4.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/postgresql-42.3.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/checker-qual-3.5.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/logback-classic-1.2.10.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/logback-core-1.2.10.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/guava-30.0-jre.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/failureaccess-1.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/listenablefuture-1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jsr305-3.0.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/error_prone_annotations-2.3.4.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/slf4j-api-1.7.7.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jcl-over-slf4j-1.7.7.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jul-to-slf4j-1.7.7.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jna-5.2.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jna-platform-5.2.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/sphereex-encrypt-for-sursen.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/ytcrypto-java-binding-1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/mysql-connector-java-5.1.48.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/ext-lib/* [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.io.tmpdir=/tmp [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.compiler=&lt;NA&gt; [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.name=Linux [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.arch=amd64 [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.version=3.10.0-862.el7.x86_64 [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:user.name=root [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:user.home=/root [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:user.dir=/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.memory.free=1814MB [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.memory.max=1945MB [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.memory.total=1945MB [INFO ] 2022-10-17 15:43:21.516 [main] org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=zk1:2181,zk2:2181,zk3:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@623a8092 [INFO ] 2022-10-17 15:43:21.522 [main] org.apache.zookeeper.common.X509Util - Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation [INFO ] 2022-10-17 15:43:21.528 [main] o.apache.zookeeper.ClientCnxnSocket - jute.maxbuffer value is 1048575 Bytes [INFO ] 2022-10-17 15:43:21.535 [main] org.apache.zookeeper.ClientCnxn - zookeeper.request.timeout value is 0. feature enabled=false [INFO ] 2022-10-17 15:43:21.541 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server zk2/10.0.27.217:2181. [INFO ] 2022-10-17 15:43:21.541 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - SASL config status: Will not attempt to authenticate using SASL (unknown error) [INFO ] 2022-10-17 15:43:21.546 [main] o.a.c.f.imps.CuratorFrameworkImpl - Default schema [INFO ] 2022-10-17 15:43:21.548 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /10.0.27.254:38202, server: zk2/10.0.27.217:2181 [INFO ] 2022-10-17 15:43:21.593 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Session establishment complete on server zk2/10.0.27.217:2181, session id = 0x200000c5d1f0016, negotiated timeout = 60000 [INFO ] 2022-10-17 15:43:21.602 [main-EventThread] o.a.c.f.state.ConnectionStateManager - State change: CONNECTED [INFO ] 2022-10-17 15:43:21.631 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - New config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [ERROR] 2022-10-17 15:43:21.638 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - Invalid config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [INFO ] 2022-10-17 15:43:21.638 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - New config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [ERROR] 2022-10-17 15:43:21.639 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - Invalid config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [INFO ] 2022-10-17 15:43:22.534 [main] com.sphereex.encrypt.sdk.Server - [Http]server started [INFO ] 2022-10-17 15:43:22.534 [main] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:22.534 [main] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:22.534 [main] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:22.535 [main] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... Thanks for using Atomikos! This installation is not registered yet. REGISTER FOR FREE at http://www.atomikos.com/Main/RegisterYourDownload and receive: - tips &amp; advice - working demos - access to the full documentation - special exclusive bonus offers not available to others - everything you need to get the most out of using Atomikos! [INFO ] 2022-10-17 15:43:24.231 [main] o.apache.curator.utils.Compatibility - Using org.apache.zookeeper.server.quorum.MultipleAddresses [INFO ] 2022-10-17 15:43:24.246 [main] o.a.s.d.p.s.r.RuleAlteredJobWorker - start worker initialization [INFO ] 2022-10-17 15:43:24.251 [main] o.a.s.d.p.a.e.AbstractLifecycleExecutor - start lifecycle executor: org.apache.shardingsphere.data.pipeline.core.execute.FinishedCheckJobExecutor@53aa38be [INFO ] 2022-10-17 15:43:24.255 [main] o.a.c.f.imps.CuratorFrameworkImpl - Starting [INFO ] 2022-10-17 15:43:24.259 [main] org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=zk1:2181,zk2:2181,zk3:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@4a9a878 [INFO ] 2022-10-17 15:43:24.259 [main] o.apache.zookeeper.ClientCnxnSocket - jute.maxbuffer value is 1048575 Bytes [INFO ] 2022-10-17 15:43:24.259 [main] org.apache.zookeeper.ClientCnxn - zookeeper.request.timeout value is 0. feature enabled=false [INFO ] 2022-10-17 15:43:24.260 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server zk2/10.0.27.217:2181. [INFO ] 2022-10-17 15:43:24.260 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - SASL config status: Will not attempt to authenticate using SASL (unknown error) [INFO ] 2022-10-17 15:43:24.261 [main] o.a.c.f.imps.CuratorFrameworkImpl - Default schema [INFO ] 2022-10-17 15:43:24.261 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /10.0.27.254:38206, server: zk2/10.0.27.217:2181 [INFO ] 2022-10-17 15:43:24.278 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Session establishment complete on server zk2/10.0.27.217:2181, session id = 0x200000c5d1f0017, negotiated timeout = 60000 [INFO ] 2022-10-17 15:43:24.278 [main-EventThread] o.a.c.f.state.ConnectionStateManager - State change: CONNECTED [INFO ] 2022-10-17 15:43:24.284 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - New config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [ERROR] 2022-10-17 15:43:24.285 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - Invalid config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [INFO ] 2022-10-17 15:43:24.285 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - New config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [ERROR] 2022-10-17 15:43:24.285 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - Invalid config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [INFO ] 2022-10-17 15:43:24.317 [Curator-SafeNotifyService-0] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:24.317 [Curator-SafeNotifyService-0] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:24.317 [Curator-SafeNotifyService-0] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:24.317 [Curator-SafeNotifyService-0] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:24.406 [main] org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor [INFO ] 2022-10-17 15:43:24.419 [main] o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl [INFO ] 2022-10-17 15:43:24.419 [main] org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.2 created. [INFO ] 2022-10-17 15:43:24.420 [main] o.a.s.e.l.i.s.JobShutdownHookPlugin - Registering Quartz shutdown hook. _finished_check [INFO ] 2022-10-17 15:43:24.420 [main] org.quartz.simpl.RAMJobStore - RAMJobStore initialized. [INFO ] 2022-10-17 15:43:24.421 [main] org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.2) '_finished_check' with instanceId 'NON_CLUSTERED' Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. NOT STARTED. Currently in standby mode. Number of jobs executed: 0 Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 1 threads. Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. [INFO ] 2022-10-17 15:43:24.421 [main] org.quartz.impl.StdSchedulerFactory - Quartz scheduler '_finished_check' initialized from an externally provided properties instance. [INFO ] 2022-10-17 15:43:24.421 [main] org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.2"><pre class="notranslate"><code class="notranslate">[INFO ] 2022-10-17 15:43:21.500 [main] o.a.c.f.imps.CuratorFrameworkImpl - Starting [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:zookeeper.version=3.6.0--b4c89dc7f6083829e18fae6e446907ae0b1f22d7, built on 02/25/2020 14:38 GMT [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:host.name=zk1 [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.version=1.8.0_345 [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.vendor=Red Hat, Inc. [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.345.b01-1.el7_9.x86_64/jre [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.class.path=/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/conf:.:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-bootstrap-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-protocol-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-codec-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-common-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-buffer-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-transport-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-protocol-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-protocol-postgresql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-protocol-opengauss-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-handler-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-resolver-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-tcnative-classes-2.0.46.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-transport-classes-epoll-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-transport-native-unix-common-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-transport-native-epoll-4.1.73.Final-linux-x86_64.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-transport-native-epoll-4.1.73.Final-linux-aarch_64.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-reactive-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-reactive-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-reactive-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-postgresql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-codec-1.15.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-frontend-opengauss-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-proxy-backend-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-sql92-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-engine-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/antlr4-runtime-4.9.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/caffeine-2.9.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-postgresql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-opengauss-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-oracle-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-parser-sqlserver-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-context-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-binder-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-executor-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/vertx-mysql-client-4.2.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/vertx-core-4.2.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-resolver-dns-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-codec-dns-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/vertx-sql-client-4.2.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-federation-optimizer-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/calcite-core-1.27.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/esri-geometry-api-2.2.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jackson-annotations-2.10.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/avatica-core-1.18.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/avatica-metrics-1.18.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/httpclient-4.5.9.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/httpcore-4.4.11.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/apiguardian-api-1.1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jackson-core-2.10.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jackson-databind-2.10.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jackson-dataformat-yaml-2.10.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/uzaygezen-core-0.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/json-path-2.4.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/json-smart-2.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/accessors-smart-1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/asm-5.0.4.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/sketches-core-0.9.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/memory-0.9.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/aggdesigner-algorithm-6.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-logging-1.1.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-lang3-3.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-io-2.4.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-compiler-3.0.11.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/janino-3.0.11.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-translator-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-translator-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-memory-mode-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-cluster-mode-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jooq-3.14.15.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-data-pipeline-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-data-pipeline-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-route-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-rewrite-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-translator-native-provider-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sql-translator-jooq-provider-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/reactive-streams-1.0.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jaxb-api-2.3.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-merge-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/calcite-linq4j-1.27.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-system-datetime-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-datetime-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-cosid-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/cosid-core-1.10.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-nanoid-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jnanoid-2.0.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-readwrite-splitting-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-readwrite-splitting-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-readwrite-splitting-distsql-handler-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-readwrite-splitting-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-readwrite-splitting-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-distsql-handler-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-db-discovery-opengauss-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-shadow-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-shadow-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-shadow-distsql-handler-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-shadow-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-shadow-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-distsql-handler-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-encrypt-sm-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/bcprov-jdk15on-1.70.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-authority-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-authority-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-single-table-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-single-table-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-traffic-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-common-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/snakeyaml-1.30.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/groovy-4.0.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-traffic-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-transaction-xa-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-transaction-xa-spi-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jta-1.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-transaction-xa-atomikos-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/transactions-5.0.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/transactions-api-5.0.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/atomikos-util-5.0.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/transactions-jta-5.0.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/transactions-jdbc-5.0.8.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-distsql-handler-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-distsql-statement-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-sharding-distsql-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-data-pipeline-mysql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-data-pipeline-postgresql-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/freemarker-2.3.31.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-data-pipeline-opengauss-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/gson-2.8.6.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-federation-executor-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-standalone-mode-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-mode-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-schedule-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-lite-core-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-api-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-infra-common-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-registry-center-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-exec-1.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-simple-executor-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-executor-kernel-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-error-handler-general-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-error-handler-spi-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-dataflow-executor-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-script-executor-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-http-executor-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-tracing-rdb-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-tracing-api-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/quartz-2.3.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/mchange-commons-java-0.2.15.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/elasticjob-lite-lifecycle-3.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-standalone-mode-repository-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-standalone-mode-repository-file-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-standalone-mode-repository-h2-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-cluster-mode-repository-zookeeper-curator-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-cluster-mode-repository-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/curator-framework-5.1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/curator-client-5.1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/zookeeper-3.6.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-lang-2.6.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/zookeeper-jute-3.6.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/audience-annotations-0.5.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/log4j-1.2.17.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/curator-recipes-5.1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-cluster-mode-repository-etcd-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jetcd-core-0.5.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jetcd-common-0.5.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jetcd-resolver-0.5.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-core-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-api-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-context-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/animal-sniffer-annotations-1.18.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/perfmark-api-0.19.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-netty-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-codec-http2-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-codec-http-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-handler-proxy-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/netty-codec-socks-4.1.73.Final.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-protobuf-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/protobuf-java-3.11.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/proto-google-common-protos-1.17.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-protobuf-lite-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-stub-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/grpc-grpclb-1.27.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/protobuf-java-util-3.11.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/failsafe-2.3.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-jdbc-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-transaction-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-transaction-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-parser-core-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-parser-api-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/shardingsphere-infra-parser-5.1.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/commons-collections4-4.4.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/HikariCP-3.4.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/postgresql-42.3.3.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/checker-qual-3.5.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/logback-classic-1.2.10.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/logback-core-1.2.10.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/guava-30.0-jre.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/failureaccess-1.0.1.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/listenablefuture-1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jsr305-3.0.2.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/error_prone_annotations-2.3.4.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/slf4j-api-1.7.7.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jcl-over-slf4j-1.7.7.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jul-to-slf4j-1.7.7.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jna-5.2.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/jna-platform-5.2.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/sphereex-encrypt-for-sursen.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/ytcrypto-java-binding-1.0.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/lib/mysql-connector-java-5.1.48.jar:/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak/ext-lib/* [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.io.tmpdir=/tmp [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:java.compiler=&lt;NA&gt; [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.name=Linux [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.arch=amd64 [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.version=3.10.0-862.el7.x86_64 [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:user.name=root [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:user.home=/root [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:user.dir=/home/apache-shardingsphere-5.1.2-shardingsphere-proxy-bin.bak [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.memory.free=1814MB [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.memory.max=1945MB [INFO ] 2022-10-17 15:43:21.512 [main] org.apache.zookeeper.ZooKeeper - Client environment:os.memory.total=1945MB [INFO ] 2022-10-17 15:43:21.516 [main] org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=zk1:2181,zk2:2181,zk3:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@623a8092 [INFO ] 2022-10-17 15:43:21.522 [main] org.apache.zookeeper.common.X509Util - Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation [INFO ] 2022-10-17 15:43:21.528 [main] o.apache.zookeeper.ClientCnxnSocket - jute.maxbuffer value is 1048575 Bytes [INFO ] 2022-10-17 15:43:21.535 [main] org.apache.zookeeper.ClientCnxn - zookeeper.request.timeout value is 0. feature enabled=false [INFO ] 2022-10-17 15:43:21.541 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server zk2/10.0.27.217:2181. [INFO ] 2022-10-17 15:43:21.541 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - SASL config status: Will not attempt to authenticate using SASL (unknown error) [INFO ] 2022-10-17 15:43:21.546 [main] o.a.c.f.imps.CuratorFrameworkImpl - Default schema [INFO ] 2022-10-17 15:43:21.548 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /10.0.27.254:38202, server: zk2/10.0.27.217:2181 [INFO ] 2022-10-17 15:43:21.593 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Session establishment complete on server zk2/10.0.27.217:2181, session id = 0x200000c5d1f0016, negotiated timeout = 60000 [INFO ] 2022-10-17 15:43:21.602 [main-EventThread] o.a.c.f.state.ConnectionStateManager - State change: CONNECTED [INFO ] 2022-10-17 15:43:21.631 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - New config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [ERROR] 2022-10-17 15:43:21.638 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - Invalid config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [INFO ] 2022-10-17 15:43:21.638 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - New config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [ERROR] 2022-10-17 15:43:21.639 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - Invalid config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [INFO ] 2022-10-17 15:43:22.534 [main] com.sphereex.encrypt.sdk.Server - [Http]server started [INFO ] 2022-10-17 15:43:22.534 [main] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:22.534 [main] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:22.534 [main] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:22.535 [main] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... Thanks for using Atomikos! This installation is not registered yet. REGISTER FOR FREE at http://www.atomikos.com/Main/RegisterYourDownload and receive: - tips &amp; advice - working demos - access to the full documentation - special exclusive bonus offers not available to others - everything you need to get the most out of using Atomikos! [INFO ] 2022-10-17 15:43:24.231 [main] o.apache.curator.utils.Compatibility - Using org.apache.zookeeper.server.quorum.MultipleAddresses [INFO ] 2022-10-17 15:43:24.246 [main] o.a.s.d.p.s.r.RuleAlteredJobWorker - start worker initialization [INFO ] 2022-10-17 15:43:24.251 [main] o.a.s.d.p.a.e.AbstractLifecycleExecutor - start lifecycle executor: org.apache.shardingsphere.data.pipeline.core.execute.FinishedCheckJobExecutor@53aa38be [INFO ] 2022-10-17 15:43:24.255 [main] o.a.c.f.imps.CuratorFrameworkImpl - Starting [INFO ] 2022-10-17 15:43:24.259 [main] org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=zk1:2181,zk2:2181,zk3:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@4a9a878 [INFO ] 2022-10-17 15:43:24.259 [main] o.apache.zookeeper.ClientCnxnSocket - jute.maxbuffer value is 1048575 Bytes [INFO ] 2022-10-17 15:43:24.259 [main] org.apache.zookeeper.ClientCnxn - zookeeper.request.timeout value is 0. feature enabled=false [INFO ] 2022-10-17 15:43:24.260 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server zk2/10.0.27.217:2181. [INFO ] 2022-10-17 15:43:24.260 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - SASL config status: Will not attempt to authenticate using SASL (unknown error) [INFO ] 2022-10-17 15:43:24.261 [main] o.a.c.f.imps.CuratorFrameworkImpl - Default schema [INFO ] 2022-10-17 15:43:24.261 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /10.0.27.254:38206, server: zk2/10.0.27.217:2181 [INFO ] 2022-10-17 15:43:24.278 [main-SendThread(zk2:2181)] org.apache.zookeeper.ClientCnxn - Session establishment complete on server zk2/10.0.27.217:2181, session id = 0x200000c5d1f0017, negotiated timeout = 60000 [INFO ] 2022-10-17 15:43:24.278 [main-EventThread] o.a.c.f.state.ConnectionStateManager - State change: CONNECTED [INFO ] 2022-10-17 15:43:24.284 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - New config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [ERROR] 2022-10-17 15:43:24.285 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - Invalid config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [INFO ] 2022-10-17 15:43:24.285 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - New config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [ERROR] 2022-10-17 15:43:24.285 [main-EventThread] o.a.c.framework.imps.EnsembleTracker - Invalid config event received: {server.1=10.0.27.254:2888:3888:participant, version=0, server.3=10.0.27.126:2888:3888:participant, server.2=10.0.27.217:2888:3888:participant} [INFO ] 2022-10-17 15:43:24.317 [Curator-SafeNotifyService-0] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:24.317 [Curator-SafeNotifyService-0] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:24.317 [Curator-SafeNotifyService-0] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:24.317 [Curator-SafeNotifyService-0] c.s.e.a.SursenEncryptAlgorithm - [Http]server started.... [INFO ] 2022-10-17 15:43:24.406 [main] org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor [INFO ] 2022-10-17 15:43:24.419 [main] o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl [INFO ] 2022-10-17 15:43:24.419 [main] org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.2 created. [INFO ] 2022-10-17 15:43:24.420 [main] o.a.s.e.l.i.s.JobShutdownHookPlugin - Registering Quartz shutdown hook. _finished_check [INFO ] 2022-10-17 15:43:24.420 [main] org.quartz.simpl.RAMJobStore - RAMJobStore initialized. [INFO ] 2022-10-17 15:43:24.421 [main] org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.2) '_finished_check' with instanceId 'NON_CLUSTERED' Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. NOT STARTED. Currently in standby mode. Number of jobs executed: 0 Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 1 threads. Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. [INFO ] 2022-10-17 15:43:24.421 [main] org.quartz.impl.StdSchedulerFactory - Quartz scheduler '_finished_check' initialized from an externally provided properties instance. [INFO ] 2022-10-17 15:43:24.421 [main] org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.2 </code></pre></div> <h2 dir="auto">Question</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before asking a question, make sure you have:</p> <ul dir="auto"> <li>Googled your question.</li> <li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<p dir="auto">2.0版本还不支持insert into * ()values(<em>)(</em>)(*)</p> <p dir="auto">这种value后面的还不支持么?</p>
0
<p dir="auto">Please support font that loaded by the <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dd183326%28v=vs.85%29.aspx" rel="nofollow">AddFontResource</a>* function for the sake of the non-admin workers.<br> Along with the portable mode(<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118007754" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/329" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/329/hovercard" href="https://github.com/microsoft/vscode/issues/329">#329</a>) we may have, it helps a lot.</p> <p dir="auto">*It can be used to add font by non-admin user. (<a href="https://msdn.microsoft.com/en-us/library/dd144833%28v=vs.85%29.aspx" rel="nofollow">FYI1</a>) (<a href="http://www.dailygyan.com/2008/05/how-to-install-fonts-in-windows-without.html" rel="nofollow">FYI2</a>)</p>
<p dir="auto">I hope vscode can open files by mutiple windows such as sublime text</p>
0
<p dir="auto">I'm working on an extension and have a <code class="notranslate">CompletionItemProvider</code>. It works good when writing code. But it's annoying when it pops up suggestions inside of strings and comments.<br> I don't want the suggestions to appear in that cases.</p> <p dir="auto">I had a look at other extensions on how they solve this problem. The TypeScript plugin has got these lines:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function TypeScriptCompletionItemProvider(client) { this.triggerCharacters = ['.']; this.excludeTokens = ['string', 'comment', 'numeric']; this.sortBy = [{ type: 'reference', partSeparator: '/' }]; this.client = client; this.config = configuration_1.defaultConfiguration; }"><pre class="notranslate"><code class="notranslate">function TypeScriptCompletionItemProvider(client) { this.triggerCharacters = ['.']; this.excludeTokens = ['string', 'comment', 'numeric']; this.sortBy = [{ type: 'reference', partSeparator: '/' }]; this.client = client; this.config = configuration_1.defaultConfiguration; } </code></pre></div> <p dir="auto">I tried to define the <code class="notranslate">excludeTokens</code> in the same way but it doesn't work. How can I prevent the <code class="notranslate">CompletionItemProvider</code> from being executed in strings and comments?</p>
<p dir="auto">I'm trying to fix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118952199" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode-go/issues/103" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode-go/issues/103/hovercard" href="https://github.com/microsoft/vscode-go/issues/103">microsoft/vscode-go#103</a>, but as far as I can tell this isn't possible currently without tokenizing the whole file again in my extension and manually checking whether I'm in a comment to suprress providing results.</p> <p dir="auto">It would be nice if the <code class="notranslate">CompletionItemProvider</code> provided a setting to suppress it's results when in certain tokens/scopes.</p> <p dir="auto">The implementation of the <a href="https://github.com/Microsoft/vscode/blob/497788c0bcd20859f736d585b49c208af8dd518f/extensions/typescript/src/features/completionItemProvider.ts#L62">TypeScript completion provider</a> has an <code class="notranslate">excludeTokens</code> which seems to play this role but I can't get that to work in my own extension.</p>
1
<p dir="auto">We seem to be having an issue with the validator service when using collections and the validator to check for unique entities.</p> <p dir="auto">The validator will correctly find any issues before persisting the entity to the doctrine manager.</p> <p dir="auto">The validator seems to check the data in the current database but doesn't check the data that is going to be saved.</p> <p dir="auto">For instance if title is a unique entity and in my collection I am adding two new collections to the database both with the title abc it will not throw an error with the validator but will try to add them both causing an internal server error.</p> <p dir="auto">We are adding clientside checks but wasn't sure if this was a bug in the validator service.</p>
<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>3.x (maybe 2.x and 4.x also?)</td> </tr> </tbody> </table> <p dir="auto">I am debugging a custom CMS made with Symfony (3.x) using Blackfire, in order to improve the performance as much as possible (and learn!). I already removed all heavy constructor services (Doctrine, Twig/Templating) from event listeners/subscribers, but there is one which I can't (or maybe shouldn't) remove, since it's in core. I am talking about Symfony\Component\HttpKernel\EventListener\TranslatorListener, which has "translator" service as dependency, and that service has a heavy constructor. It takes ~10% of the time in my current best case scenario.</p> <p dir="auto">I was looking for some issue similar to this, to no create a duplicate, I found some others about improve it (i.e. limiting some loaders/dumpers), but I didn't find any issue about lazy-loading that service (or its heavy logic) to avoid its construction at all unless required.</p>
0
<p dir="auto">The same question as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="330986580" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/18345" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/18345/hovercard" href="https://github.com/flutter/flutter/issues/18345">#18345</a>, which was sadly closed by its author. Before I go to public forums with this, just a simple question:</p> <blockquote> <p dir="auto">I have a SliverAppBar with a flexibleSpace that holds information that will change in height. I simply want my AppBar to determine it's height at runtime rather than the static expandedHeight option. Do I really need to calculate the height of this widget before I pass it to the flexibleSpace? Or is there a built in method to allow the SliverAppBar to determine that on it's own?</p> </blockquote> <p dir="auto">Can it be done somehow by using Flutter's existing components?</p>
<p dir="auto">I have a SliverAppBar with a flexibleSpace that holds information that will change in height. I simply want my AppBar to determine it's height at runtime rather than the static expandedHeight option. Do I really need to calculate the height of this widget before I pass it to the flexibleSpace? Or is there a built in method to allow the SliverAppBar to determine that on it's own?</p>
1
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">Pytorch-1.0-Cuda-10.0 with ONNX-1.2.1 and 1.3.0. Export onnx model core dumps on Ubuntu on GPU instance</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <p dir="auto">Spin up an Ubuntu with GPU instance like EC2 p2 or g3</p> <ol dir="auto"> <li>install Cuda-10, cudnn-7.4.1, NCCL-2.3.7</li> <li>anaconda</li> <li>conda create -n pytorch_p27 python=2.7</li> <li>conda install pytorch=1.0.0=py2.7_cuda10.0.130_cudnn7.4.1_1 torchvision=0.2.1 cuda100=1.0 -c pytorch</li> <li>pip install -U onnx==1.2.1 or 1.3.0</li> </ol> <p dir="auto">example used to replicate:<br> <a href="https://github.com/onnx/tutorials/blob/master/tutorials/PytorchOnnxExport.ipynb">https://github.com/onnx/tutorials/blob/master/tutorials/PytorchOnnxExport.ipynb</a></p> <p dir="auto">Error:<br> Illegal instruction (core dumped)</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">It should have exported a .onnx file with the model</p> <h2 dir="auto">Environment</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> PyTorch version: 1.0.0<br> Is debug build: No<br> CUDA used to build PyTorch: 10.0.130</p> <p dir="auto">OS: Ubuntu 16.04.5 LTS<br> GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609<br> CMake version: version 3.5.1</p> <p dir="auto">Python version: 2.7<br> Is CUDA available: Yes<br> CUDA runtime version: 10.0.130<br> GPU models and configuration:<br> GPU 0: Tesla M60<br> GPU 1: Tesla M60<br> GPU 2: Tesla M60<br> GPU 3: Tesla M60</p> <p dir="auto">Nvidia driver version: 410.79<br> cuDNN version: Probably one of the following:<br> /usr/local/cuda-10.0/lib64/libcudnn.so.7.4.1<br> /usr/local/cuda-10.0/lib64/libcudnn_static.a<br> /usr/local/cuda-8.0/lib64/libcudnn.so.6.0.21<br> /usr/local/cuda-8.0/lib64/libcudnn_static.a<br> /usr/local/cuda-9.0/lib64/libcudnn.so.7.3.1<br> /usr/local/cuda-9.0/lib64/libcudnn_static.a<br> /usr/local/cuda-9.2/lib64/libcudnn.so.7.3.1<br> /usr/local/cuda-9.2/lib64/libcudnn_static.a</p> <p dir="auto">Versions of relevant libraries:<br> [pip] Could not collect<br> [conda] blas 1.0 mkl<br> [conda] cuda100 1.0 0 pytorch<br> [conda] mkl 2018.0.3 1<br> [conda] mkl_fft 1.0.6 py27h7dd41cf_0<br> [conda] mkl_random 1.0.1 py27h4414c95_1<br> [conda] pytorch 1.0.0 py2.7_cuda10.0.130_cudnn7.4.1_1 [cuda100] pytorch<br> [conda] torchvision 0.2.1 py_2 pytorch</p> <h2 dir="auto">Additional context</h2> <p dir="auto">complete list of packages<br> packages in environment:</p> <p dir="auto">Name Version Build Channel<br> blas 1.0 mkl<br> ca-certificates 2018.03.07 0<br> certifi 2018.10.15 py27_0<br> cffi 1.11.5 py27he75722e_1<br> cuda100 1.0 0 pytorch<br> freetype 2.9.1 h8a8886c_1<br> intel-openmp 2019.1 144<br> jpeg 9b h024ee3a_2<br> libedit 3.1.20170329 h6b74fdf_2<br> libffi 3.2.1 hd88cf55_4<br> libgcc-ng 8.2.0 hdf63c60_1<br> libgfortran-ng 7.3.0 hdf63c60_0<br> libpng 1.6.35 hbc83047_0<br> libstdcxx-ng 8.2.0 hdf63c60_1<br> libtiff 4.0.9 he85c1e1_2<br> mkl 2018.0.3 1<br> mkl_fft 1.0.6 py27h7dd41cf_0<br> mkl_random 1.0.1 py27h4414c95_1<br> ncurses 6.1 he6710b0_1<br> ninja 1.8.2 py27h6bb024c_1<br> numpy 1.15.4 py27h1d66e8a_0<br> numpy-base 1.15.4 py27h81de0dd_0<br> olefile 0.46 py27_0<br> onnx 1.3.0 <br> openssl 1.1.1a h7b6447c_0<br> pillow 5.3.0 py27h34e0f95_0<br> pip 18.1 py27_0<br> protobuf 3.6.1 <br> pycparser 2.19 py27_0<br> python 2.7.15 h9bab390_4<br> pytorch 1.0.0 py2.7_cuda10.0.130_cudnn7.4.1_1 [cuda100] pytorch<br> readline 7.0 h7b6447c_5<br> setuptools 40.6.2 py27_0<br> six 1.11.0 py27_1<br> sqlite 3.25.3 h7b6447c_0<br> tk 8.6.8 hbc83047_0<br> torchvision 0.2.1 py_2 pytorch<br> typing 3.6.6 <br> typing-extensions 3.6.6 <br> wheel 0.32.3 py27_0<br> xz 5.2.4 h14c3975_4<br> zlib 1.2.11 h7b6447c_3</p>
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">Pytorch-1.0-Cuda-10.0 with ONNX-1.2.1 and 1.3.0. Export onnx model core dumps on Ubuntu on GPU instance</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <p dir="auto">Spin up an Ubuntu with GPU instance like EC2 p2 or g3</p> <ol dir="auto"> <li>install Cuda-10, cudnn-7.4.1, NCCL-2.3.7</li> <li>anaconda</li> <li>conda create -n pytorch_p27 python=2.7</li> <li>conda install pytorch=1.0.0=py2.7_cuda10.0.130_cudnn7.4.1_1 torchvision=0.2.1 cuda100=1.0 -c pytorch</li> <li>pip install -U onnx==1.2.1 or 1.3.0</li> </ol> <p dir="auto">example used to replicate:<br> <a href="https://github.com/onnx/tutorials/blob/master/tutorials/PytorchOnnxExport.ipynb">https://github.com/onnx/tutorials/blob/master/tutorials/PytorchOnnxExport.ipynb</a></p> <p dir="auto">Error:<br> Illegal instruction (core dumped)</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">It should have exported a .onnx file with the model</p> <h2 dir="auto">Environment</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> PyTorch version: 1.0.0<br> Is debug build: No<br> CUDA used to build PyTorch: 10.0.130</p> <p dir="auto">OS: Ubuntu 16.04.5 LTS<br> GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609<br> CMake version: version 3.5.1</p> <p dir="auto">Python version: 2.7<br> Is CUDA available: Yes<br> CUDA runtime version: 10.0.130<br> GPU models and configuration:<br> GPU 0: Tesla M60<br> GPU 1: Tesla M60<br> GPU 2: Tesla M60<br> GPU 3: Tesla M60</p> <p dir="auto">Nvidia driver version: 410.79<br> cuDNN version: Probably one of the following:<br> /usr/local/cuda-10.0/lib64/libcudnn.so.7.4.1<br> /usr/local/cuda-10.0/lib64/libcudnn_static.a<br> /usr/local/cuda-8.0/lib64/libcudnn.so.6.0.21<br> /usr/local/cuda-8.0/lib64/libcudnn_static.a<br> /usr/local/cuda-9.0/lib64/libcudnn.so.7.3.1<br> /usr/local/cuda-9.0/lib64/libcudnn_static.a<br> /usr/local/cuda-9.2/lib64/libcudnn.so.7.3.1<br> /usr/local/cuda-9.2/lib64/libcudnn_static.a</p> <p dir="auto">Versions of relevant libraries:<br> [pip] Could not collect<br> [conda] blas 1.0 mkl<br> [conda] cuda100 1.0 0 pytorch<br> [conda] mkl 2018.0.3 1<br> [conda] mkl_fft 1.0.6 py27h7dd41cf_0<br> [conda] mkl_random 1.0.1 py27h4414c95_1<br> [conda] pytorch 1.0.0 py2.7_cuda10.0.130_cudnn7.4.1_1 [cuda100] pytorch<br> [conda] torchvision 0.2.1 py_2 pytorch</p> <h2 dir="auto">Additional context</h2> <p dir="auto">complete list of packages<br> packages in environment:</p> <p dir="auto">Name Version Build Channel<br> blas 1.0 mkl<br> ca-certificates 2018.03.07 0<br> certifi 2018.10.15 py27_0<br> cffi 1.11.5 py27he75722e_1<br> cuda100 1.0 0 pytorch<br> freetype 2.9.1 h8a8886c_1<br> intel-openmp 2019.1 144<br> jpeg 9b h024ee3a_2<br> libedit 3.1.20170329 h6b74fdf_2<br> libffi 3.2.1 hd88cf55_4<br> libgcc-ng 8.2.0 hdf63c60_1<br> libgfortran-ng 7.3.0 hdf63c60_0<br> libpng 1.6.35 hbc83047_0<br> libstdcxx-ng 8.2.0 hdf63c60_1<br> libtiff 4.0.9 he85c1e1_2<br> mkl 2018.0.3 1<br> mkl_fft 1.0.6 py27h7dd41cf_0<br> mkl_random 1.0.1 py27h4414c95_1<br> ncurses 6.1 he6710b0_1<br> ninja 1.8.2 py27h6bb024c_1<br> numpy 1.15.4 py27h1d66e8a_0<br> numpy-base 1.15.4 py27h81de0dd_0<br> olefile 0.46 py27_0<br> onnx 1.3.0 <br> openssl 1.1.1a h7b6447c_0<br> pillow 5.3.0 py27h34e0f95_0<br> pip 18.1 py27_0<br> protobuf 3.6.1 <br> pycparser 2.19 py27_0<br> python 2.7.15 h9bab390_4<br> pytorch 1.0.0 py2.7_cuda10.0.130_cudnn7.4.1_1 [cuda100] pytorch<br> readline 7.0 h7b6447c_5<br> setuptools 40.6.2 py27_0<br> six 1.11.0 py27_1<br> sqlite 3.25.3 h7b6447c_0<br> tk 8.6.8 hbc83047_0<br> torchvision 0.2.1 py_2 pytorch<br> typing 3.6.6 <br> typing-extensions 3.6.6 <br> wheel 0.32.3 py27_0<br> xz 5.2.4 h14c3975_4<br> zlib 1.2.11 h7b6447c_3</p>
1
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/target-the-parent-of-an-element-using-jquery#?solution=%0Afccss%0A%20%20%24(document).ready(function()%20%7B%0A%20%20%20%20%24(%22%23target1%22).css(%22color%22%2C%20%22red%22)%3B%0A%20%20%20%20%24(%22%23target1%22).prop(%22disabled%22%2C%20true)%3B%0A%20%20%20%20%24(%22%23target4%22).remove()%3B%0A%20%20%20%20%24(%22%23target2%22).appendTo(%22%23right-well%22)%3B%0A%20%20%20%20%24(%22%23target5%22).clone().appendTo(%22%23left-well%22)%3B%0A%0A%20%20%7D)%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cbody%3E%0A%20%20%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fbody%3E%0A" rel="nofollow">Target the Parent of an Element Using jQuery</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/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;script&gt; $(document).ready(function() { $(&quot;#target1&quot;).css(&quot;color&quot;, &quot;red&quot;); $(&quot;#target1&quot;).prop(&quot;disabled&quot;, true); $(&quot;#target4&quot;).remove(); $(&quot;#target2&quot;).appendTo(&quot;#right-well&quot;); $(&quot;#target5&quot;).clone().appendTo(&quot;#left-well&quot;); }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;body&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</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-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</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">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Only change code above this line. --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</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">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">&gt;</span>jQuery Playground<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</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">row</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">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#left-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</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">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</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-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">&gt;</span>#target1<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">&gt;</span>#target2<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">&gt;</span>#target3<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">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#right-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</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">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</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-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">&gt;</span>#target4<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">&gt;</span>#target5<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">&gt;</span>#target6<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">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">The target5 button is cloned to the left-well but 2 times. This surely is a bug.</p>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/use-jquery-to-modify-the-entire-page" rel="nofollow">Use jQuery to Modify the Entire Page</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.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;script&gt; $(document).ready(function() { $(&quot;#target1&quot;).css(&quot;color&quot;, &quot;red&quot;); $(&quot;#target1&quot;).prop(&quot;disabled&quot;, true); $(&quot;#target4&quot;).remove(); $(&quot;#target2&quot;).appendTo(&quot;#right-well&quot;); $(&quot;#target5&quot;).clone().appendTo(&quot;#left-well&quot;); $(&quot;#target1&quot;).parent().css(&quot;background-color&quot;, &quot;red&quot;); $(&quot;#right-well&quot;).children().css(&quot;color&quot;, &quot;orange&quot;); $(&quot;#left-well&quot;).children().css(&quot;color&quot;, &quot;green&quot;); $(&quot;.target:nth-child(2)&quot;).addClass(&quot;animated bounce&quot;); $(&quot;.target:even&quot;).addClass(&quot;animated shake&quot;); }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</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-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">parent</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"background-color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">children</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"orange"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">children</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"green"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">".target:nth-child(2)"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addClass</span><span class="pl-kos">(</span><span class="pl-s">"animated bounce"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">".target:even"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addClass</span><span class="pl-kos">(</span><span class="pl-s">"animated shake"</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">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Only change code above this line. --&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">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">&gt;</span>jQuery Playground<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</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">row</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">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#left-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</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">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</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-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">&gt;</span>#target1<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">&gt;</span>#target2<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">&gt;</span>#target3<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">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#right-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</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">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</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-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">&gt;</span>#target4<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">&gt;</span>#target5<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">&gt;</span>#target6<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">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div>
1
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">The Markov Chain is an algorithm that can generate data from data.</p> <p dir="auto">The idea of the Markov Chain was first published in 1906.</p> <p dir="auto">It fits SK-Learn's model of <code class="notranslate">fit</code>, <code class="notranslate">predict/transform</code> by fitting the data to a model, and then predicting a new sequence of data.</p> <p dir="auto">What I am looking for is the green light to go ahead with the implementation, in order to ensure the source code is organized properly, and to ensure there is no duplication.</p> <h3 dir="auto">Describe your proposed solution</h3> <p dir="auto">I would like to implement the Markov Chain algorithm:<br> <a href="https://en.wikipedia.org/wiki/Markov_chain" rel="nofollow">https://en.wikipedia.org/wiki/Markov_chain</a></p> <p dir="auto">My proposal is to provide it with a numpy array such as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ [1, 2], [2, 3], [3, 4], ]"><pre class="notranslate"><code class="notranslate">[ [1, 2], [2, 3], [3, 4], ] </code></pre></div> <p dir="auto">So the training data is not limited to one dimensional data. I would like to implement the option to use one dimensional data for user simplicity. An example of 2 dimensional data would be when using music notes as the training data, each data point could be a vector containing the type of note (ex. half, whole, quarter) and the note itself (ex. A#2, C4).</p> <p dir="auto">To generate a sequence the user will provide a maximum length, or a stop condition (ex, element contains a 4, or element equals <code class="notranslate">[3, 4]</code></p> <p dir="auto">The result of the predict would be the same format as the input.</p> <h3 dir="auto">Describe alternatives you've considered, if relevant</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto">I have used Markov chains to generate music from a song, and to generate sentences from Lord of the Rings. I have implemented this algorithm twice (for one and two dimensional data).</p>
<p dir="auto">First off, I didn't find any mentioning of RFECV in the userguide.</p> <p dir="auto">Update: rest of this issue was fixed.</p>
0
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/taion/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/taion">@taion</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.11.4</li> <li><strong>Node version:</strong> 6.3.1</li> <li><strong>npm version:</strong> 3.10.3</li> </ul> <h3 dir="auto">Options</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="N/A"><pre class="notranslate"><code class="notranslate">N/A </code></pre></div> <h3 dir="auto">Input code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="N/A"><pre class="notranslate"><span class="pl-v">N</span><span class="pl-c1">/</span><span class="pl-v">A</span></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">From discussion on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="167864094" data-permission-text="Title is private" data-url="https://github.com/facebook/create-react-app/issues/238" data-hovercard-type="pull_request" data-hovercard-url="/facebook/create-react-app/pull/238/hovercard" href="https://github.com/facebook/create-react-app/pull/238">facebook/create-react-app#238</a>:</p> <p dir="auto">This is the code of <code class="notranslate">babel-runtime/helper/typeof.js</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; exports.__esModule = true; var _iterator = require(&quot;../core-js/symbol/iterator&quot;); var _iterator2 = _interopRequireDefault(_iterator); var _symbol = require(&quot;../core-js/symbol&quot;); var _symbol2 = _interopRequireDefault(_symbol); var _typeof = typeof _symbol2.default === &quot;function&quot; &amp;&amp; typeof _iterator2.default === &quot;symbol&quot; ? function (obj) { return typeof obj; } : function (obj) { return obj &amp;&amp; typeof _symbol2.default === &quot;function&quot; &amp;&amp; obj.constructor === _symbol2.default ? &quot;symbol&quot; : typeof obj; }; function _interopRequireDefault(obj) { return obj &amp;&amp; obj.__esModule ? obj : { default: obj }; } exports.default = typeof _symbol2.default === &quot;function&quot; &amp;&amp; _typeof(_iterator2.default) === &quot;symbol&quot; ? function (obj) { return typeof obj === &quot;undefined&quot; ? &quot;undefined&quot; : _typeof(obj); } : function (obj) { return obj &amp;&amp; typeof _symbol2.default === &quot;function&quot; &amp;&amp; obj.constructor === _symbol2.default ? &quot;symbol&quot; : typeof obj === &quot;undefined&quot; ? &quot;undefined&quot; : _typeof(obj); };"><pre class="notranslate"><code class="notranslate">"use strict"; exports.__esModule = true; var _iterator = require("../core-js/symbol/iterator"); var _iterator2 = _interopRequireDefault(_iterator); var _symbol = require("../core-js/symbol"); var _symbol2 = _interopRequireDefault(_symbol); var _typeof = typeof _symbol2.default === "function" &amp;&amp; typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj &amp;&amp; typeof _symbol2.default === "function" &amp;&amp; obj.constructor === _symbol2.default ? "symbol" : typeof obj; }; function _interopRequireDefault(obj) { return obj &amp;&amp; obj.__esModule ? obj : { default: obj }; } exports.default = typeof _symbol2.default === "function" &amp;&amp; _typeof(_iterator2.default) === "symbol" ? function (obj) { return typeof obj === "undefined" ? "undefined" : _typeof(obj); } : function (obj) { return obj &amp;&amp; typeof _symbol2.default === "function" &amp;&amp; obj.constructor === _symbol2.default ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); }; </code></pre></div> <p dir="auto">By contrast, the helper definition is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(typeof Symbol === &quot;function&quot; &amp;&amp; typeof Symbol.iterator === &quot;symbol&quot;) ? function (obj) { return typeof obj; } : function (obj) { return obj &amp;&amp; typeof Symbol === &quot;function&quot; &amp;&amp; obj.constructor === Symbol ? &quot;symbol&quot; : typeof obj; };"><pre class="notranslate"><code class="notranslate">(typeof Symbol === "function" &amp;&amp; typeof Symbol.iterator === "symbol") ? function (obj) { return typeof obj; } : function (obj) { return obj &amp;&amp; typeof Symbol === "function" &amp;&amp; obj.constructor === Symbol ? "symbol" : typeof obj; }; </code></pre></div> <p dir="auto">Similar things happen for other helpers like <code class="notranslate">jsx</code>.</p> <p dir="auto">It's counterproductive to actively pull in the polyfills here – doing so provides no additional functionality but increases bundle size for users for little reason.</p>
<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"> Would you like to work on this feature?</li> </ul> <h3 dir="auto">What problem are you trying to solve?</h3> <p dir="auto">Cannot use <code class="notranslate">satisfies</code> typescript operator because I need @babel/plugin-transform-typescript version 7.20 which is dependency of <code class="notranslate">@babel/preset-typescript</code> which was left behind on version 7.18 and not released as part of <a href="https://babeljs.io/blog/2022/10/27/7.20.0" rel="nofollow">https://babeljs.io/blog/2022/10/27/7.20.0</a></p> <h3 dir="auto">Describe the solution you'd like</h3> <p dir="auto">Update @babel/preset-typescript to use latest @babel/plugin-transform-typescript and release it.</p> <h3 dir="auto">Describe alternatives you've considered</h3> <p dir="auto">.</p> <h3 dir="auto">Documentation, Adoption, Migration Strategy</h3> <p dir="auto">.</p>
0
<p dir="auto"><strong>Migrated issue, originally created by Dave Hirschfeld</strong></p> <p dir="auto">As detailed in <a href="https://github.com/zzzeek/sqlalchemy/pull/382" data-hovercard-type="pull_request" data-hovercard-url="/zzzeek/sqlalchemy/pull/382/hovercard">GH#382</a> the <code class="notranslate">dialects.mssql.TIMESTAMP</code> class is a direct import of the <code class="notranslate">sa.sql.sqltypes.TIMESTAMP</code> class into the <code class="notranslate">mssql</code> namespace.</p> <p dir="auto">The fact that the <code class="notranslate">mssql.TIMESTAMP</code> class is the same as the <code class="notranslate">sqltypes.TIMESTAMP</code> class causes problems in a 3rd party library, <a href="https://github.com/blaze/odo">odo</a> which operates by mapping sqlalchemy types to the corresponding python/numpy types.</p> <p dir="auto">The reason this causes problem is that unlike the ANSI SQL <code class="notranslate">TIMESTAMP</code> the <code class="notranslate">mssql.TIMESTAMP</code> type <em>doesn't</em> represent a datetime object but is instead just a binary type which cannot be interpreted or converted to a datetime object.</p> <p dir="auto">This problem doesn't affect sqlalchemy itself because sqlalchemy emits the correct <code class="notranslate">TIMESTAMP</code> DDL and then simply passes through the results from the underlying driver.</p> <p dir="auto">With <code class="notranslate">type(sqltypes.TIMESTAMP) == type(mssql.TIMESTAMP)</code> being true there is no way for odo to distinguish the two types. Because one represents a Python datetime object and the other a byte string they need to be able to be distinguished and handled differently in odo.</p> <p dir="auto">A sufficient condition for odo to correctly handle MSSQL TIMESTAMP types is that the <code class="notranslate">mssql.TIMESTAMP</code> class does not inherit from the <code class="notranslate">sqltypes.TIMESTAMP</code> class - e.g.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def test_mssql_timestamp_is_not_timestamp(): &quot;&quot;&quot;The MSSQL TIMESTAMP type does *not* represent a datetime value so should not inherit from the `sqltypes.TIMESTAMP` class :ref: https://msdn.microsoft.com/en-us/library/ms182776%28v=SQL.90%29.aspx &quot;&quot;&quot; from sqlalchemy.sql import sqltypes from sqlalchemy.dialects import mssql assert not issubclass(mssql.TIMESTAMP, sqltypes.TIMESTAMP)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">test_mssql_timestamp_is_not_timestamp</span>(): <span class="pl-s">"""The MSSQL TIMESTAMP type does *not* represent a datetime value</span> <span class="pl-s"> so should not inherit from the `sqltypes.TIMESTAMP` class</span> <span class="pl-s"></span> <span class="pl-s"> :ref: https://msdn.microsoft.com/en-us/library/ms182776%28v=SQL.90%29.aspx</span> <span class="pl-s"> """</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">sql</span> <span class="pl-k">import</span> <span class="pl-s1">sqltypes</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">dialects</span> <span class="pl-k">import</span> <span class="pl-s1">mssql</span> <span class="pl-k">assert</span> <span class="pl-c1">not</span> <span class="pl-en">issubclass</span>(<span class="pl-s1">mssql</span>.<span class="pl-v">TIMESTAMP</span>, <span class="pl-s1">sqltypes</span>.<span class="pl-v">TIMESTAMP</span>)</pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Dan Stovall</strong></p> <p dir="auto">In MSSQL a ROWVERSION or TIMESTAMP column do not contain a date time. Instead the contain an 8-byte integer. Currently, the column is set as sqlachemy.sql.sqltypes.TIMESTAMP, which is an instance of the DateTime type. Running a query against a table with such a column returns a byte string value for those columns. The mssql dialect should probably have a specific ROWVERSION type and it should be an integer, not a DateTime. Also, it would be nice if the values of those columns returned an integer by using int.from_bytes to convert the byte string.</p>
1
<ul dir="auto"> <li>VSCode Version: Version 0.10.11 (0.10.11)</li> <li>OS Version: OS X 10.10.5</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Write code as screenshot below</li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3898363/13810500/145a3a76-eb68-11e5-9410-7e1eb4a8edd9.png"><img width="1280" alt="screen shot 2016-03-16 at 11 12 11" src="https://cloud.githubusercontent.com/assets/3898363/13810500/145a3a76-eb68-11e5-9410-7e1eb4a8edd9.png" style="max-width: 100%;"></a></p> <ol start="2" dir="auto"> <li>Observe strange highlighting on variable names</li> </ol>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/f111fei/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/f111fei">@f111fei</a> on February 23, 2016 6:14</em></p> <p dir="auto">version: 0.10.10<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7069719/13243197/80630302-da37-11e5-9ccf-a63d6f23433d.png"><img src="https://cloud.githubusercontent.com/assets/7069719/13243197/80630302-da37-11e5-9ccf-a63d6f23433d.png" alt="2" style="max-width: 100%;"></a></p> <p dir="auto"><code class="notranslate">letter</code></p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135646950" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3270" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3270/hovercard" href="https://github.com/microsoft/vscode/issues/3270">microsoft/vscode#3270</a></em></p>
1
<p dir="auto">Hi Team, There is problem in Axios v1.1. Axios not respond with axios.get and axios.post. Please use previous version of axios for solve this problem.</p>
<p dir="auto"><strong>Describe the bug</strong><br> My project is working strangely,I compare the current version with the previous one,The following code creates an BUG.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// version === 0.19.0 config = mergeConfig(this.defaults, config); // version &lt; 0.19.0 config = utils.merge(defaults, { method: 'get' }, this.defaults, config);"><pre class="notranslate"><span class="pl-c">// version === 0.19.0</span> <span class="pl-s1">config</span> <span class="pl-c1">=</span> <span class="pl-en">mergeConfig</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">defaults</span><span class="pl-kos">,</span> <span class="pl-s1">config</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// version &lt; 0.19.0</span> <span class="pl-s1">config</span> <span class="pl-c1">=</span> <span class="pl-s1">utils</span><span class="pl-kos">.</span><span class="pl-en">merge</span><span class="pl-kos">(</span><span class="pl-s1">defaults</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">method</span>: <span class="pl-s">'get'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">defaults</span><span class="pl-kos">,</span> <span class="pl-s1">config</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>To Reproduce</strong><br> Custom interceptors below:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const instance = axios.create({ ... }); instance.interceptors.request.use((opts) =&gt; { // `options.mask` is undefined if (options.mask) { // show mask } }); // requst remote instance( { url: '', mask: true } )"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">{</span> ... <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">instance</span><span class="pl-kos">.</span><span class="pl-c1">interceptors</span><span class="pl-kos">.</span><span class="pl-c1">request</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">opts</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// `options.mask` is undefined</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">mask</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// show mask</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">// requst remote</span> <span class="pl-s1">instance</span><span class="pl-kos">(</span> <span class="pl-kos">{</span> <span class="pl-c1">url</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">mask</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span> <span class="pl-kos">)</span></pre></div> <p dir="auto"><strong>Expected behavior</strong><br> customized <code class="notranslate">options</code> can be passed into the interceptor</p> <p dir="auto"><strong>Environment:</strong></p> <ul dir="auto"> <li>Axios Version [e.g. 0.19.0]</li> <li>OS: [e.g. iOS 12.1.0, OSX 10.13.4]</li> <li>Browser [e.g. Chrome, Safari]</li> <li>Browser Version [e.g. 22]</li> <li>Additional Library Versions [e.g. React 16.7, React Native 0.58.0]</li> </ul> <p dir="auto"><strong>Additional context/Screenshots</strong></p>
0
<p dir="auto">Challenge [Replacing If Else Chains with Switch](<a href="https://www.freecodecamp.com/challenges/replacing-if-else-chains-with-switch#?solution=%0Afunction%20chainToSwitch(val)%20%7B%0A%20%20var%20answer%20%3D%20%22%22%3B%0A%20%20%2F%2F%20Only%20change%20code%20below%20this%20line%0A%2F*%0A%20%20if%20(val%20%3D%3D%3D%20%22bob%22)%20%7B%0A%20%20%20%20answer%20%3D%20%22Marley%22%3B%0A%20%20%7D%20else%20if%20(val%20%3D%3D%3D%2042)%20%7B%0A%20%20%20%20answer%20%3D%20%22The%20Answer%22%3B%0A%20%20%7D%20else%20if%20(val%20%3D%3D%3D%201)%20%7B%0A%20%20%20%20answer%20%3D%20%22There%20is%20no%20%231%22%3B%0A%20%20%7D%20else%20if%20(val%20%3D%3D%3D%2099)%20%7B%0A%20%20%20%20answer%20%3D%20%22Missed%20me%20by%20this%20much!%22%3B%0A%20%20%7D%20else%20if%20(val%20%3D%3D%3D%207%20%7B%0A%20%20%20%20answer%20%3D%20%22Ate%20Nine%22%3B%0A%20%20%7D%0A%20%20*%2F%0A%20%20%0A%20%20switch%20(val)%20%7B%0A%20%20%20%20case%20%22bob%22%3A%0A%20%20%20%20%20%20answer%20%3D%20%22Marley%22%3B%0A%20%20%20%20%20%20break%3B%0A%20%20%20%20case%2042%3A%0A%20%20%20%20%20%20answer%20%3D%20%22The%20Answer%22%3B%0A%20%20%20%20%20%20break%3B%0A%20%20%20%20case%201%3A%0A%20%20%20%20%20%20answer%20%3D%20%22There%20is%20no%20%231%22%3B%0A%20%20%20%20%20%20break%3B%0A%20%20%20%20case%2099%3A%0A%20%20%20%20%20%20answer%20%3D%20%22Missed%20me%20by%20this%20much!%22%3B%0A%20%20%20%20%20%20break%3B%0A%20%20%20%20case%207%3A%0A%20%20%20%20%20%20answer%20%3D%20%22Ate%20Nine%22%3B%0A%20%20%20%20%20%20break%3B%20%20%20%20%20%20%0A%20%20%7D%0A%20%20%0A%20%20%2F%2F%20Only%20change%20code%20above%20this%20line%20%20%0A%20%20return%20answer%3B%20%20%0A%7D%0A%0A%2F%2F%20Change%20this%20value%20to%20test%0AchainToSwitch(7)%3B%0A%0A)" rel="nofollow">https://www.freecodecamp.com/challenges/replacing-if-else-chains-with-switch#?solution=%0Afunction%20chainToSwitch(val)%20%7B%0A%20%20var%20answer%20%3D%20%22%22%3B%0A%20%20%2F%2F%20Only%20change%20code%20below%20this%20line%0A%2F*%0A%20%20if%20(val%20%3D%3D%3D%20%22bob%22)%20%7B%0A%20%20%20%20answer%20%3D%20%22Marley%22%3B%0A%20%20%7D%20else%20if%20(val%20%3D%3D%3D%2042)%20%7B%0A%20%20%20%20answer%20%3D%20%22The%20Answer%22%3B%0A%20%20%7D%20else%20if%20(val%20%3D%3D%3D%201)%20%7B%0A%20%20%20%20answer%20%3D%20%22There%20is%20no%20%231%22%3B%0A%20%20%7D%20else%20if%20(val%20%3D%3D%3D%2099)%20%7B%0A%20%20%20%20answer%20%3D%20%22Missed%20me%20by%20this%20much!%22%3B%0A%20%20%7D%20else%20if%20(val%20%3D%3D%3D%207%20%7B%0A%20%20%20%20answer%20%3D%20%22Ate%20Nine%22%3B%0A%20%20%7D%0A%20%20*%2F%0A%20%20%0A%20%20switch%20(val)%20%7B%0A%20%20%20%20case%20%22bob%22%3A%0A%20%20%20%20%20%20answer%20%3D%20%22Marley%22%3B%0A%20%20%20%20%20%20break%3B%0A%20%20%20%20case%2042%3A%0A%20%20%20%20%20%20answer%20%3D%20%22The%20Answer%22%3B%0A%20%20%20%20%20%20break%3B%0A%20%20%20%20case%201%3A%0A%20%20%20%20%20%20answer%20%3D%20%22There%20is%20no%20%231%22%3B%0A%20%20%20%20%20%20break%3B%0A%20%20%20%20case%2099%3A%0A%20%20%20%20%20%20answer%20%3D%20%22Missed%20me%20by%20this%20much!%22%3B%0A%20%20%20%20%20%20break%3B%0A%20%20%20%20case%207%3A%0A%20%20%20%20%20%20answer%20%3D%20%22Ate%20Nine%22%3B%0A%20%20%20%20%20%20break%3B%20%20%20%20%20%20%0A%20%20%7D%0A%20%20%0A%20%20%2F%2F%20Only%20change%20code%20above%20this%20line%20%20%0A%20%20return%20answer%3B%20%20%0A%7D%0A%0A%2F%2F%20Change%20this%20value%20to%20test%0AchainToSwitch(7)%3B%0A%0A)</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">To reproduce, use the code in "my code" and then click Run tests. Notice that it is not passing the test because of the commented if/else statements.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/25354301/23678347/60d3797c-0349-11e7-8246-ae95c6e56eae.png"><img src="https://cloud.githubusercontent.com/assets/25354301/23678347/60d3797c-0349-11e7-8246-ae95c6e56eae.png" alt="2017-03-07 15_17_03-replacing if else chains with switch _ free code camp" style="max-width: 100%;"></a></p> <p dir="auto">My code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" function chainToSwitch(val) { var answer = &quot;&quot;; // Only change code below this line /* if (val === &quot;bob&quot;) { answer = &quot;Marley&quot;; } else if (val === 42) { answer = &quot;The Answer&quot;; } else if (val === 1) { answer = &quot;There is no #1&quot;; } else if (val === 99) { answer = &quot;Missed me by this much!&quot;; } else if (val === 7 { answer = &quot;Ate Nine&quot;; } */ switch (val) { case &quot;bob&quot;: answer = &quot;Marley&quot;; break; case 42: answer = &quot;The Answer&quot;; break; case 1: answer = &quot;There is no #1&quot;; break; case 99: answer = &quot;Missed me by this much!&quot;; break; case 7: answer = &quot;Ate Nine&quot;; break; } // Only change code above this line return answer; } // Change this value to test chainToSwitch(7); "><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">chainToSwitch</span><span class="pl-kos">(</span><span class="pl-s1">val</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">answer</span> <span class="pl-c1">=</span> <span class="pl-s">""</span><span class="pl-kos">;</span> <span class="pl-c">// Only change code below this line</span> <span class="pl-c">/*</span> <span class="pl-c"> if (val === "bob") {</span> <span class="pl-c"> answer = "Marley";</span> <span class="pl-c"> } else if (val === 42) {</span> <span class="pl-c"> answer = "The Answer";</span> <span class="pl-c"> } else if (val === 1) {</span> <span class="pl-c"> answer = "There is no #1";</span> <span class="pl-c"> } else if (val === 99) {</span> <span class="pl-c"> answer = "Missed me by this much!";</span> <span class="pl-c"> } else if (val === 7 {</span> <span class="pl-c"> answer = "Ate Nine";</span> <span class="pl-c"> }</span> <span class="pl-c"> */</span> <span class="pl-k">switch</span> <span class="pl-kos">(</span><span class="pl-s1">val</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">case</span> <span class="pl-s">"bob"</span>: <span class="pl-s1">answer</span> <span class="pl-c1">=</span> <span class="pl-s">"Marley"</span><span class="pl-kos">;</span> <span class="pl-k">break</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">42</span>: <span class="pl-s1">answer</span> <span class="pl-c1">=</span> <span class="pl-s">"The Answer"</span><span class="pl-kos">;</span> <span class="pl-k">break</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">1</span>: <span class="pl-s1">answer</span> <span class="pl-c1">=</span> <span class="pl-s">"There is no #1"</span><span class="pl-kos">;</span> <span class="pl-k">break</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">99</span>: <span class="pl-s1">answer</span> <span class="pl-c1">=</span> <span class="pl-s">"Missed me by this much!"</span><span class="pl-kos">;</span> <span class="pl-k">break</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">7</span>: <span class="pl-s1">answer</span> <span class="pl-c1">=</span> <span class="pl-s">"Ate Nine"</span><span class="pl-kos">;</span> <span class="pl-k">break</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// Only change code above this line </span> <span class="pl-k">return</span> <span class="pl-s1">answer</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// Change this value to test</span> <span class="pl-en">chainToSwitch</span><span class="pl-kos">(</span><span class="pl-c1">7</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </pre></div>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/comparisons-with-the-logical-and-operator#?solution=%0Afunction%20testLogicalAnd%28val%29%20%7B%0A%20%20%2F%2F%20Only%20change%20code%20below%20this%20line%0A%0A%20%20if%20%28val%3C%3D50%20%26%26%20val%3E%3D25%29%20%7B%0A%0A%20%20%20%20%20%20return%20%22Yes%22%3B%0A%2F%2F%20%20%20%20%20%0A%20%20%7D%0A%0A%20%20%2F%2F%20Only%20change%20code%20above%20this%20line%0A%20%20return%20%22No%22%3B%0A%7D%0A%0A%2F%2F%20Change%20this%20value%20to%20test%0AtestLogicalAnd%2810%29%3B%0A" rel="nofollow">Comparisons with the Logical And Operator</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" function testLogicalAnd(val) { // Only change code below this line if (val&lt;=50 &amp;&amp; val&gt;=25) { return &quot;Yes&quot;; // } // Only change code above this line return &quot;No&quot;; } // Change this value to test testLogicalAnd(10); "><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">testLogicalAnd</span><span class="pl-kos">(</span><span class="pl-s1">val</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Only change code below this line</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">val</span><span class="pl-c1">&lt;=</span><span class="pl-c1">50</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">val</span><span class="pl-c1">&gt;=</span><span class="pl-c1">25</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s">"Yes"</span><span class="pl-kos">;</span> <span class="pl-c">// </span> <span class="pl-kos">}</span> <span class="pl-c">// Only change code above this line</span> <span class="pl-k">return</span> <span class="pl-s">"No"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// Change this value to test</span> <span class="pl-en">testLogicalAnd</span><span class="pl-kos">(</span><span class="pl-c1">10</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>I commented out the second if statement and did not pass, this test failed 'You should only have one if statement'</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function testLogicalAnd(val) { // Only change code below this line if (val&lt;=50 &amp;&amp; val&gt;=25) { // if (val) { return &quot;Yes&quot;; // } } // Only change code above this line return &quot;No&quot;; } // Change this value to test testLogicalAnd(10);"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">testLogicalAnd</span><span class="pl-kos">(</span><span class="pl-s1">val</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Only change code below this line</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">val</span><span class="pl-c1">&lt;=</span><span class="pl-c1">50</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">val</span><span class="pl-c1">&gt;=</span><span class="pl-c1">25</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// if (val) {</span> <span class="pl-k">return</span> <span class="pl-s">"Yes"</span><span class="pl-kos">;</span> <span class="pl-c">// }</span> <span class="pl-kos">}</span> <span class="pl-c">// Only change code above this line</span> <span class="pl-k">return</span> <span class="pl-s">"No"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// Change this value to test</span> <span class="pl-en">testLogicalAnd</span><span class="pl-kos">(</span><span class="pl-c1">10</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Removing the if statement all together passed the test:</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function testLogicalAnd(val) { // Only change code below this line if (val&lt;=50 &amp;&amp; val&gt;=25) { return &quot;Yes&quot;; } // Only change code above this line return &quot;No&quot;; } // Change this value to test testLogicalAnd(10);"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">testLogicalAnd</span><span class="pl-kos">(</span><span class="pl-s1">val</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Only change code below this line</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">val</span><span class="pl-c1">&lt;=</span><span class="pl-c1">50</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">val</span><span class="pl-c1">&gt;=</span><span class="pl-c1">25</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s">"Yes"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// Only change code above this line</span> <span class="pl-k">return</span> <span class="pl-s">"No"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// Change this value to test</span> <span class="pl-en">testLogicalAnd</span><span class="pl-kos">(</span><span class="pl-c1">10</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Not sure if this is intended behavior but it felt like a bug, commenting out the second if statement would work under normal circumstances. Thanks.</p> <p dir="auto">(Bouncey edited for code formatting)</p>
1
<p dir="auto">As it said in this issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="13658627" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/3382" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/3382/hovercard" href="https://github.com/mrdoob/three.js/issues/3382">#3382</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="the PLYLoader does not support texture coordinates."><pre class="notranslate"><code class="notranslate">the PLYLoader does not support texture coordinates. </code></pre></div> <p dir="auto">Is it still the same ?</p> <p dir="auto">code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var loader = new PLYLoader() loader.load(path,(geometry) =&gt; { geometry.computeVertexNormals(); new THREE.TextureLoader().load( `${url}` (texture) =&gt; { let material = new THREE.MeshStandardMaterial({ map: texture, }) let mesh = new THREE.Mesh(geometry, material) mesh.position.x = 0 mesh.position.y = 0 mesh.position.z = 0 mesh.rotation.x = -Math.PI / 2 mesh.scale.multiplyScalar(1.2) mesh.castShadow = false mesh.receiveShadow = false this.scene.add(mesh) this.camera.position.set(15, 15, 121) this.preloaderRoot.querySelector('progress').setAttribute('value', '100') this.preloaderRoot.style.display = 'none' }) }, onProgress, onError) "><pre class="notranslate"><code class="notranslate">var loader = new PLYLoader() loader.load(path,(geometry) =&gt; { geometry.computeVertexNormals(); new THREE.TextureLoader().load( `${url}` (texture) =&gt; { let material = new THREE.MeshStandardMaterial({ map: texture, }) let mesh = new THREE.Mesh(geometry, material) mesh.position.x = 0 mesh.position.y = 0 mesh.position.z = 0 mesh.rotation.x = -Math.PI / 2 mesh.scale.multiplyScalar(1.2) mesh.castShadow = false mesh.receiveShadow = false this.scene.add(mesh) this.camera.position.set(15, 15, 121) this.preloaderRoot.querySelector('progress').setAttribute('value', '100') this.preloaderRoot.style.display = 'none' }) }, onProgress, onError) </code></pre></div> <p dir="auto">three.js - 0.93.0<br> Chrome latest<br> macOs Sierra 10.12.6</p> <p dir="auto">screenshot of the result in attachment<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11033139/44267737-0923a780-a238-11e8-9363-19339507eb87.png"><img src="https://user-images.githubusercontent.com/11033139/44267737-0923a780-a238-11e8-9363-19339507eb87.png" alt="screen shot 2018-08-17 at 16 09 47" style="max-width: 100%;"></a></p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r95</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Hello all, I've run into an issue where I have a series of promises concurrently calling <code class="notranslate">TextureLoader.load</code>, and occasionally the call simply doesn't appear to be triggering its success/failure callback, which leaves promises unresolved indefinitely.</p> <p dir="auto">I put together the most basic JSFiddle I could here:<br> <a href="http://jsfiddle.net/b7bbbLxz/14/" rel="nofollow">http://jsfiddle.net/b7bbbLxz/14/</a></p> <p dir="auto">You'll need to pop open web inspector's console to see the logs, but in general you'll see 10 promises resolve with success, and the <code class="notranslate">Promise.all</code> subsequently resolve with success. This would be the expected, good behaviour.</p> <p dir="auto">However, sometimes one promise will hang without ever returning, and the whole call then hangs. You'll need to <strong>Run</strong> the fiddle manually to ensure the resources go through a full load. With 1-2 seconds between runs, the issue occurs every ~10-15 attempts. Running more quickly (i.e. right after the previous success message is shown), the issue occurs every ~3-4 attempts.</p> <p dir="auto">This all seems related to the latest release of Chrome as the code was working in previous versions, and other browsers do not seem to present the issue. In Firefox, I can hammer on the <strong>Run</strong> button non-stop and always get a successful resolve back.</p> <p dir="auto">The issue appears to be producible more reliably when throttling the network connection to 2G, but that is not required.</p> <p dir="auto"><del>This may be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="149203817" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/8666" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/8666/hovercard" href="https://github.com/mrdoob/three.js/issues/8666">#8666</a>, but it's hard to tell.</del> Not related.</p> <p dir="auto">I've attached an image of the console output that displays the issue. The arrow points at a subsequent <strong>Run</strong> after the previous <code class="notranslate">Promise.all</code> was hanging without getting to <strong>PROMISES SUCCESS</strong>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1929696/14622981/127d4934-059c-11e6-94bc-5207aa914069.png"><img width="577" alt="screen shot 2016-04-18 at 6 41 26 pm 1" src="https://cloud.githubusercontent.com/assets/1929696/14622981/127d4934-059c-11e6-94bc-5207aa914069.png" style="max-width: 100%;"></a></p> ##### Three.js version - [x] Dev - [x] r75 - [ ] ... ##### Browser - [ ] All of them - [x] Chrome - [ ] Firefox - [ ] Internet Explorer ##### OS - [x] All of them - [ ] Windows - [ ] Linux - [ ] Android - [ ] IOS ##### Hardware Requirements (graphics card, VR Device, ...) <p dir="auto">None</p>
0
<p dir="auto"><strong>TypeScript Version:</strong><br> 1.8.7</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Test { field: {[key: string]: string}; } var test: Test; var foo = {qwerty: 'qwerty'}; test = { field: foo };"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Test</span> <span class="pl-kos">{</span> <span class="pl-c1">field</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">string</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">test</span>: <span class="pl-smi">Test</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-c1">qwerty</span>: <span class="pl-s">'qwerty'</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">field</span>: <span class="pl-s1">foo</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> I don't see any errors.</p> <p dir="auto"><strong>Actual behavior:</strong><br> I get the following error:</p> <blockquote> <p dir="auto">app\app.ts(46,1): error TS2322: Type '{ field: { qwerty: string; }; }' is not assignable to type 'Test'.<br> Types of property 'field' are incompatible.<br> Type '{ qwerty: string; }' is not assignable to type '{ [key: string]: string; }'.<br> Index signature is missing in type '{ qwerty: string; }'.</p> </blockquote> <p dir="auto">If I modify my code to this then I don't get an error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="interface Test { field: {[key: string]: string}; } var test: Test; test = { field: {qwerty: 'qwerty'} };"><pre class="notranslate"><code class="notranslate">interface Test { field: {[key: string]: string}; } var test: Test; test = { field: {qwerty: 'qwerty'} }; </code></pre></div>
<p dir="auto">Various libraries I use want to see dictionary "loops" that take some number of key/value pairs and operate on them. E.g.:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="async.auto&lt;any&gt;({ 'foo': (cb) =&gt; getFoo(cb), 'bar': ['foo', (cb, results) =&gt; getBar(results.foo)] }, (err, results) =&gt; { ... });"><pre class="notranslate"><code class="notranslate">async.auto&lt;any&gt;({ 'foo': (cb) =&gt; getFoo(cb), 'bar': ['foo', (cb, results) =&gt; getBar(results.foo)] }, (err, results) =&gt; { ... }); </code></pre></div> <p dir="auto">The typings file for async likes to <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/async/async.d.ts#L6">define helper dictionary</a> types like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="interface Dictionary&lt;T&gt; { [key: string]: T; }"><pre class="notranslate"><code class="notranslate">interface Dictionary&lt;T&gt; { [key: string]: T; } </code></pre></div> <p dir="auto">Periodically, I need to create these key/value pairs conditionally and on the fly but the compiler yells at me if I try to send it in without explicitly typing my temporary object:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var block = { 'foo': (cb) =&gt; getFoo(cb), 'bar': ['foo', (cb, results) =&gt; getBar(results.foo) } if (flag) { block.foo = getOtherFoo(cb); } async.auto&lt;any&gt;(block, (err, results) =&gt; { ... });"><pre class="notranslate"><code class="notranslate">var block = { 'foo': (cb) =&gt; getFoo(cb), 'bar': ['foo', (cb, results) =&gt; getBar(results.foo) } if (flag) { block.foo = getOtherFoo(cb); } async.auto&lt;any&gt;(block, (err, results) =&gt; { ... }); </code></pre></div> <p dir="auto"><code class="notranslate">block</code> now technically satisfies the <code class="notranslate">{ [key: string]: T; }</code> because it is an object with two keys, both strings. TypeScript will still yell at me for it, though, unless I explicit add a similar dictionary type to <code class="notranslate">block</code>. I, therefore, find myself putting this dictionary type all over the place just to satisfy what seems to be an arbitrary distinction between what is or is not a <code class="notranslate">key:string</code>.</p> <p dir="auto">This comes up enough that I find the type bloat irritating and it also makes it a requirement to <em>only</em> access <code class="notranslate">block.foo</code> as <code class="notranslate">block['foo']</code>.</p>
1
<p dir="auto">Currently you can mix BM25 and the classic similarity in the same index:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;book&quot; : { &quot;properties&quot; : { &quot;title&quot; : { &quot;type&quot; : &quot;text&quot;, &quot;similarity&quot; : &quot;BM25&quot; }, &quot;text&quot; : { &quot;type&quot; : &quot;text&quot;, &quot;similarity&quot; : &quot;classic&quot; } } }"><pre class="notranslate"><code class="notranslate">{ "book" : { "properties" : { "title" : { "type" : "text", "similarity" : "BM25" }, "text" : { "type" : "text", "similarity" : "classic" } } } </code></pre></div> <p dir="auto">... this can be buggy since the base similarity cannot be picked properly. The base similarity is used to compute a factor for the coordinates and the query norm (cf Similarity.coord and Similarity.queryNorm).<br> It is a per query setting that can change the score completely. For <code class="notranslate">BM25</code> the coord and the queryNorm are disabled (returns 1.0f) whereas they are important factors in the <code class="notranslate">classic</code> similarity. To resolve this we have two settings for the index similarity <code class="notranslate">index.similarity.default.type</code> and <code class="notranslate">index.similarity.base.type</code>.<br> In order to make the things easier we could have a single setting:<br> <code class="notranslate">index.similarity.type</code><br> ... that is dynamically updatable if the similarities are compatible:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="37157836" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/6727" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/6727/hovercard" href="https://github.com/elastic/elasticsearch/issues/6727">#6727</a><br> This would not make the "are compatible?" easier but this would prevent the user to shoot themselves in the foot.</p>
<p dir="auto">This issue addresses a few topics:</p> <ul dir="auto"> <li>separating <code class="notranslate">string</code> fields out into <code class="notranslate">text</code> and <code class="notranslate">keyword</code> fields (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="91511789" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/11901" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/11901/hovercard" href="https://github.com/elastic/elasticsearch/issues/11901">#11901</a>)</li> <li>deprecating in-memory fielddata for field-types that support doc-values (to remove in 3.x)</li> <li><code class="notranslate">fielddata</code> and <code class="notranslate">doc_values</code> settings (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="50318581" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/8693" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/8693/hovercard" href="https://github.com/elastic/elasticsearch/issues/8693">#8693</a>) and <code class="notranslate">norms</code></li> <li>good out-of-the-box dynamic mappings for string fields</li> </ul> <h2 dir="auto"><code class="notranslate">string</code> → <code class="notranslate">text</code>/ <code class="notranslate">keyword</code></h2> <p dir="auto">Today, we use <code class="notranslate">string</code> both for full-text and for structured keywords. We don't support doc-values on <code class="notranslate">analyzed</code> string fields, which means that strings which are essentially keywords (but eg need to be lowercased) cannot use doc-values.</p> <p dir="auto"><strong>Proposal:</strong></p> <ul dir="auto"> <li>deprecate <code class="notranslate">string</code> fields</li> <li>add <code class="notranslate">text</code> fields which support the full analysis chain and don't support doc-values</li> <li>add <code class="notranslate">keywords</code> fields which support only the <code class="notranslate">keyword</code> tokenizer, and have doc-values enabled by default</li> <li>change <code class="notranslate">index</code> to accept <code class="notranslate">true</code> | <code class="notranslate">false</code></li> </ul> <p dir="auto">Question: Should <code class="notranslate">keyword</code> fields allow token filters that introduce new tokens?</p> <h2 dir="auto">Deprecating fielddata for fields that support doc values</h2> <p dir="auto">In-memory fielddata is limited by the size of the heap, and has been one of the biggest pain-points for users. Doc-values are slightly slower but: (1) don't suffer from the same latency as fielddata, (2) are not limited by heap size, (3) don't impact garbage collection, (4) allow much greater scaling.</p> <p dir="auto">All fields that support doc values already have them enabled by default.</p> <p dir="auto">Proposal:</p> <ul dir="auto"> <li>Deprecate fielddata implementations (except for analyzed string fields) in 2.x</li> <li>Remove them in 3.x.</li> </ul> <p dir="auto">The question arises: what happens if the user disables doc values then decides that actually they DO want to aggregate on that field after all? The answer is the same as if they have set a field to <code class="notranslate">index:false</code> - they have to reindex.</p> <h2 dir="auto">Fielddata and doc values settings</h2> <p dir="auto">Today we have these settings:</p> <ul dir="auto"> <li><code class="notranslate">doc_values</code>: <code class="notranslate">true</code>|<code class="notranslate">false</code></li> <li><code class="notranslate">fielddata.format</code>: <code class="notranslate">disabled</code> | <code class="notranslate">doc_values</code> | <code class="notranslate">paged_bytes</code> | <code class="notranslate">array</code></li> <li><code class="notranslate">fielddata.loading</code>: <code class="notranslate">lazy</code> | <code class="notranslate">eager</code> | <code class="notranslate">eager_global_ordinals</code></li> <li><code class="notranslate">fielddata.filters</code>: <code class="notranslate">frequency:{}</code>, <code class="notranslate">regex:{}</code></li> </ul> <p dir="auto">These become a lot easier to simplify if we deprecate fielddata for all but analyzed string fields.</p> <p dir="auto"><strong>Proposal for fields that support doc values:</strong></p> <ul dir="auto"> <li><code class="notranslate">doc_values</code> : <code class="notranslate">true</code> (default) | <code class="notranslate">false</code></li> <li><code class="notranslate">global_ordinals</code> : <code class="notranslate">lazy</code> (default) | <code class="notranslate">eager</code></li> </ul> <p dir="auto"><strong>Proposal for analyzed string fields:</strong></p> <ul dir="auto"> <li><code class="notranslate">fielddata</code>: <code class="notranslate">disabled</code> (default) | <code class="notranslate">lazy</code> | <code class="notranslate">eager</code></li> <li><code class="notranslate">global_ordinals</code> : <code class="notranslate">lazy</code> (default) | <code class="notranslate">eager</code></li> <li><code class="notranslate">fielddata.filters</code>: <code class="notranslate">frequency:{}</code>, <code class="notranslate">regex:{}</code></li> </ul> <p dir="auto">If, in the future, we can automatically figure out which global ordinals need to be built eagerly, then we can remove the <code class="notranslate">global_ordinals</code> setting.</p> <h2 dir="auto">Norms settings</h2> <p dir="auto">Similar to the above, we have:</p> <ul dir="auto"> <li><code class="notranslate">norms.enabled</code> : <code class="notranslate">true</code> | <code class="notranslate">false</code></li> <li><code class="notranslate">norms.loading</code> : <code class="notranslate">lazy</code> | <code class="notranslate">eager</code></li> </ul> <p dir="auto">In Lucene 5.3, norms are disk based, so the lazy/eager issue is less important (eager in this case would mean force-loading the norms into the file system cache, a decision which we can probably make automatically in the future).</p> <p dir="auto"><strong>Proposal:</strong></p> <ul dir="auto"> <li><code class="notranslate">norms</code>: <code class="notranslate">true</code> | <code class="notranslate">false</code></li> <li>only supported on <code class="notranslate">text</code> fields</li> </ul> <h2 dir="auto">Good out-of-the-box dynamic mappings for string fields</h2> <p dir="auto">Today, when we detect a new string field, we add it as an <code class="notranslate">analyzed</code> <code class="notranslate">string</code>, with <code class="notranslate">lazy</code> fielddata loading enabled. While this allows users to get going with full text search, sorting and aggregations (with limitations, eg <code class="notranslate">new</code> + <code class="notranslate">york</code>), it's a poor default for heap usage.</p> <p dir="auto"><strong>Proposal:</strong></p> <p dir="auto">Add a <code class="notranslate">text</code> main field (with fielddata loading disabled) and a <code class="notranslate">keyword</code> multi-field by default, ie:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;my_string&quot;: { &quot;type&quot;: &quot;text&quot;, &quot;fields&quot;: { &quot;keyword&quot;: { &quot;type&quot;: &quot;keyword&quot;, &quot;ignore_above&quot;: 256 } } } }"><pre class="notranslate"><code class="notranslate">{ "my_string": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } } } </code></pre></div> <p dir="auto">With the default settings these fields would look like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;my_string&quot;: { &quot;type&quot;: &quot;text&quot;, &quot;analyzer&quot;: &quot;default&quot;, &quot;boost&quot;: 1, &quot;fielddata&quot;: &quot;disabled&quot;, &quot;fielddata_filters&quot;: {}, &quot;ignore_above&quot;: -1, &quot;include_in_all&quot;: true, &quot;index&quot;: true, &quot;index_options&quot;: &quot;positions&quot;, &quot;norms&quot;: true, &quot;null_value&quot;: null, &quot;position_offset_gap&quot;: 0, &quot;search_analyzer&quot;: &quot;default&quot;, &quot;similarity&quot;: &quot;default&quot;, &quot;store&quot;: false, &quot;term_vector&quot;: &quot;no&quot; } } { &quot;my_string.keyword&quot;: { &quot;type&quot;: &quot;keyword&quot;, &quot;analyzer&quot;: &quot;keyword&quot;, &quot;boost&quot;: 1, &quot;doc_values&quot;: true, &quot;ignore_above&quot;: 256, &quot;include_in_all&quot;: true, &quot;index&quot;: true, &quot;index_options&quot;: &quot;docs&quot;, &quot;null_value&quot;: null, &quot;position_offset_gap&quot;: 0, &quot;search_analyzer&quot;: &quot;keyword&quot;, &quot;similarity&quot;: &quot;default&quot;, &quot;store&quot;: false, &quot;term_vector&quot;: &quot;no&quot; } }"><pre class="notranslate"><code class="notranslate">{ "my_string": { "type": "text", "analyzer": "default", "boost": 1, "fielddata": "disabled", "fielddata_filters": {}, "ignore_above": -1, "include_in_all": true, "index": true, "index_options": "positions", "norms": true, "null_value": null, "position_offset_gap": 0, "search_analyzer": "default", "similarity": "default", "store": false, "term_vector": "no" } } { "my_string.keyword": { "type": "keyword", "analyzer": "keyword", "boost": 1, "doc_values": true, "ignore_above": 256, "include_in_all": true, "index": true, "index_options": "docs", "null_value": null, "position_offset_gap": 0, "search_analyzer": "keyword", "similarity": "default", "store": false, "term_vector": "no" } } </code></pre></div>
0
<p dir="auto">Hi</p> <p dir="auto">When I open a git-controlled folder, and possibly change some settings, then Code creates a .vscode directory directly inside that folder, and stores files such as settings.json or launch.json in it.</p> <p dir="auto">That folder either has to be checked in or .ignored, which is OK on repos I control, but not OK on forked repos I want to contribute to for instance, which needs to stay clean.</p> <p dir="auto">Can't this data be stored in some Code own data folder?</p> <p dir="auto">Cheers</p>
<p dir="auto"><strong>Environment:</strong></p> <ul dir="auto"> <li>VS Code Version 0.10.9</li> <li>Mac OS 10.10.5</li> <li>Node.js v4.3.1</li> </ul> <p dir="auto"><strong>Steps to Reproduce:</strong><br> Create a new directory named cluster-test<br> Create a new file cluster-test\app.js with sample code from <a href="https://nodejs.org/dist/latest-v4.x/docs/api/cluster.html#cluster_cluster" rel="nofollow">https://nodejs.org/dist/latest-v4.x/docs/api/cluster.html#cluster_cluster</a> as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const cluster = require('cluster'); const http = require('http'); const numCPUs = require('os').cpus().length; if (cluster.isMaster) { // Fork workers. for (var i = 0; i &lt; numCPUs; i++) { cluster.fork(); } cluster.on('exit', (worker, code, signal) =&gt; { console.log(`worker ${worker.process.pid} died`); }); } else { // Workers can share any TCP connection // In this case it is an HTTP server http.createServer((req, res) =&gt; { res.writeHead(200); res.end('hello world\n'); }).listen(8000); }"><pre class="notranslate"><code class="notranslate">const cluster = require('cluster'); const http = require('http'); const numCPUs = require('os').cpus().length; if (cluster.isMaster) { // Fork workers. for (var i = 0; i &lt; numCPUs; i++) { cluster.fork(); } cluster.on('exit', (worker, code, signal) =&gt; { console.log(`worker ${worker.process.pid} died`); }); } else { // Workers can share any TCP connection // In this case it is an HTTP server http.createServer((req, res) =&gt; { res.writeHead(200); res.end('hello world\n'); }).listen(8000); } </code></pre></div> <p dir="auto">Open cluster-test in VS Code<br> Switch to the Debug view and click the Start icon, or press F5<br> Select "Node.js" as the debug environment<br> Click Start again</p> <p dir="auto">Point you browser to <a href="http://localhost:8000/" rel="nofollow">http://localhost:8000/</a><br> Observe that no one is listening</p> <p dir="auto">Exit VS code, open a command prompt and invoke:<br> node cluster-test\app.js</p> <p dir="auto">Point you browser to <a href="http://localhost:8000/" rel="nofollow">http://localhost:8000/</a><br> Observe that a "hello world" response is received</p> <p dir="auto"><strong>Conclusion:</strong><br> Basic node cluster example fails in VS Code</p>
0
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> The code below causes a <code class="notranslate">Duplicate declaration "values"</code> error.</p> <p dir="auto"><strong>Input Code</strong></p> <ul dir="auto"> <li>REPL or Repo link if applicable: <a href="https://babeljs.io/repl/build/master#?babili=false&amp;browsers=&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=false&amp;code_lz=MYGwhgzhAECC0G8BQ1oGIBGAKAlM1qIApgC7QBuYIArkRANwrQC-Tawu-BxZlNdjVK2ZA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=false&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=script&amp;lineWrap=true&amp;presets=stage-3&amp;prettier=false&amp;targets=&amp;version=7.2.0&amp;envVersion=" rel="nofollow">https://babeljs.io/repl/build/master#?babili=false&amp;browsers=&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=false&amp;code_lz=MYGwhgzhAECC0G8BQ1oGIBGAKAlM1qIApgC7QBuYIArkRANwrQC-Tawu-BxZlNdjVK2ZA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=false&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=script&amp;lineWrap=true&amp;presets=stage-3&amp;prettier=false&amp;targets=&amp;version=7.2.0&amp;envVersion=</a></li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A { #b(){ let values; } #c(){ let values; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">A</span> <span class="pl-kos">{</span> #<span class="pl-en">b</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">values</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> #<span class="pl-en">c</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">values</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior/code</strong><br> The variables should not conflict as they are in different scopes.</p> <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="{ presets: ['@babel/preset-env','@babel/preset-react'], plugins: [ '@babel/plugin-proposal-object-rest-spread', '@babel/plugin-proposal-private-methods', '@babel/plugin-proposal-class-properties', ] }"><pre class="notranslate"><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-s">'@babel/preset-react'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span> <span class="pl-s">'@babel/plugin-proposal-object-rest-spread'</span><span class="pl-kos">,</span> <span class="pl-s">'@babel/plugin-proposal-private-methods'</span><span class="pl-kos">,</span> <span class="pl-s">'@babel/plugin-proposal-class-properties'</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(s): v7.2.1</li> <li>Node/npm version: Node 10, npm 6.4.1</li> <li>OS: Windows 10</li> <li>Monorepo: [e.g. yes/no/Lerna]</li> <li>How you are using Babel: <a href="https://github.com/babel/gulp-babel"><code class="notranslate">gulp-babel</code></a></li> </ul>
<p dir="auto">In Babel 5, it was possible to do this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="() =&gt; { console.log(&quot;test&quot;); }();"><pre class="notranslate"><code class="notranslate">() =&gt; { console.log("test"); }(); </code></pre></div> <p dir="auto">However, this is no longer possible in Babel 6 - it gives an "unexpected token" error. Instead, I have to wrap the function as an expression:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(() =&gt; { console.log(&quot;test&quot;); })();"><pre class="notranslate"><code class="notranslate">(() =&gt; { console.log("test"); })(); </code></pre></div> <p dir="auto">I'm transpiling with the following Gulp task:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var gulp = require(&quot;gulp&quot;); var browserify = require(&quot;browserify&quot;); var buffer = require(&quot;vinyl-buffer&quot;); var source = require(&quot;vinyl-source-stream&quot;); var sourcemaps = require(&quot;gulp-sourcemaps&quot;); gulp.task(&quot;js&quot;, function() { var bundler = browserify(&quot;src/app.js&quot;) .transform(&quot;babelify&quot;, { presets: [&quot;es2015&quot;] }); return bundler.bundle() .on(&quot;error&quot;, function(err) { console.error(err); this.emit(&quot;end&quot;); }) .pipe(source(&quot;app.js&quot;)) .pipe(buffer()) .pipe(sourcemaps.init({ loadMaps: true })) .pipe(sourcemaps.write(&quot;./&quot;)) .pipe(rename(&quot;dist/app.js&quot;)) .pipe(gulp.dest(&quot;./&quot;)); });"><pre class="notranslate"><code class="notranslate">var gulp = require("gulp"); var browserify = require("browserify"); var buffer = require("vinyl-buffer"); var source = require("vinyl-source-stream"); var sourcemaps = require("gulp-sourcemaps"); gulp.task("js", function() { var bundler = browserify("src/app.js") .transform("babelify", { presets: ["es2015"] }); return bundler.bundle() .on("error", function(err) { console.error(err); this.emit("end"); }) .pipe(source("app.js")) .pipe(buffer()) .pipe(sourcemaps.init({ loadMaps: true })) .pipe(sourcemaps.write("./")) .pipe(rename("dist/app.js")) .pipe(gulp.dest("./")); }); </code></pre></div> <p dir="auto">This script works fine with everything else, as long as I wrap my self-calling arrow functions in brackets. Is this intentional, or is this a regression?</p>
0
<p dir="auto">Any thoughts on what might be driving this error and causing the build to fail? I installed the latest version of Visual Studio Community and tried running it from the VS command prompt as well.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python script\build.py -c D ninja: Entering directory `out\D' [339/1062] CC obj\vendor\node\deps\openssl\openssl\crypto\dso\openssl.dso_win32.obj electron\vendor\node\deps\openssl\openssl\crypto\dso\dso_win32.c(289) : warning C4055: 'type cast' : from data pointer 'void *' to function pointer 'DSO_FUNC_TYPE' [723/1062] CC obj\vendor\node\deps\openssl\openssl\crypto\whrlpool\openssl.wp_block.obj electron\vendor\node\deps\openssl\openssl\crypto\whrlpool\wp_block.c(87) : warning C4164: '_rotl64' : intrinsic function not declared [918/1062] CXX obj\atom\common\crash_reporter\electron_lib.crash_reporter.obj FAILED: ninja -t msvc -e environment.x64 -- &quot;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe&quot; /nologo /showIncludes /FC @obj\atom\common\crash_reporter\electron_lib.crash_reporter.obj.rsp /c ..\..\atom\common\crash_reporter\crash_reporter.cc /Foobj\atom\common\crash_reporter\electron_lib.crash_reporter.obj /Fdobj\electron_lib.cc.pdb electron\atom\common\crash_reporter\crash_reporter.cc(49) : error C2440: '&lt;function-style-cast&gt;' : cannot convert from 'const std::string' to 'base::FilePath' No constructor could take the source type, or constructor overload resolution was ambiguous [918/1062] CXX obj\atom\common\electron_lib.platform_util_win.obj ninja: build stopped: subcommand failed."><pre class="notranslate"><code class="notranslate">python script\build.py -c D ninja: Entering directory `out\D' [339/1062] CC obj\vendor\node\deps\openssl\openssl\crypto\dso\openssl.dso_win32.obj electron\vendor\node\deps\openssl\openssl\crypto\dso\dso_win32.c(289) : warning C4055: 'type cast' : from data pointer 'void *' to function pointer 'DSO_FUNC_TYPE' [723/1062] CC obj\vendor\node\deps\openssl\openssl\crypto\whrlpool\openssl.wp_block.obj electron\vendor\node\deps\openssl\openssl\crypto\whrlpool\wp_block.c(87) : warning C4164: '_rotl64' : intrinsic function not declared [918/1062] CXX obj\atom\common\crash_reporter\electron_lib.crash_reporter.obj FAILED: ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\atom\common\crash_reporter\electron_lib.crash_reporter.obj.rsp /c ..\..\atom\common\crash_reporter\crash_reporter.cc /Foobj\atom\common\crash_reporter\electron_lib.crash_reporter.obj /Fdobj\electron_lib.cc.pdb electron\atom\common\crash_reporter\crash_reporter.cc(49) : error C2440: '&lt;function-style-cast&gt;' : cannot convert from 'const std::string' to 'base::FilePath' No constructor could take the source type, or constructor overload resolution was ambiguous [918/1062] CXX obj\atom\common\electron_lib.platform_util_win.obj ninja: build stopped: subcommand failed. </code></pre></div>
<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 <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Electron Version</h3> <p dir="auto">12.x, 13.x, 14.x</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">Windows</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">Windows 10</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">x64</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto">11.x</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Printing with <code class="notranslate">silent: true</code> should allow us to select a printer though <code class="notranslate">deviceName</code>.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Prints using Windows default printer opposed to the one we assigned it to.</p> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional Information</h3> <p dir="auto">This is technically a "duplicate" as it has been reported before. But since this now affects every supported version of Electron projects cannot move forward with an upgrade if they depend on this feature. In our case it's point of sale system software and our ability to easily maintain a wide range of receipt printers. We strive to make sure all dependencies are the latest with proper security fixes. This and since new versions of Electron will start to trigger the bot to mark the duplicates as outdated/closed I felt like this merited a new issue. Apologies if not the case.</p>
0
<p dir="auto">Hi, using different indexers on a dataframes with timezone-aware timestamps may return naive timestamps. (A brief search attempt didn't turn up any related issues.)</p> <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import pandas as pd &gt;&gt;&gt; df = pd.Series([pd.tslib.Timestamp('2016-03-30 14:35:25.506088-04:00')]).to_frame() &gt;&gt;&gt; df = pd.concat([df, df]).reset_index(drop=True) &gt;&gt;&gt; df[0][0] Timestamp('2016-03-30 14:35:25.506088-0400', tz='pytz.FixedOffset(-240)') &gt;&gt;&gt; df.iloc[0,0] Timestamp('2016-03-30 14:35:25.506088-0400', tz='pytz.FixedOffset(-240)') &gt;&gt;&gt; df.loc[0,0] Timestamp('2016-03-30 14:35:25.506088-0400', tz='pytz.FixedOffset(-240)') &gt;&gt;&gt; df.iat[0,0] Timestamp('2016-03-30 14:35:25.506088-0400', tz='pytz.FixedOffset(-240)') &gt;&gt;&gt; df.at[0,0] Timestamp('2016-03-30 18:35:25.506088') &gt;&gt;&gt; df.ix[0,0] Timestamp('2016-03-30 18:35:25.506088') &gt;&gt;&gt; df.ix[0] Timestamp('2016-03-30 14:35:25.506088-0400', tz='pytz.FixedOffset(-240)') &gt;&gt;&gt; df[0].at[0] Timestamp('2016-03-30 14:35:25.506088-0400', tz='pytz.FixedOffset(-240)') &gt;&gt;&gt; df[0].ix[0] Timestamp('2016-03-30 14:35:25.506088-0400', tz='pytz.FixedOffset(-240)') "><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">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-s1">pd</span>.<span class="pl-s1">tslib</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-30 14:35:25.506088-04:00'</span>)]).<span class="pl-en">to_frame</span>() <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">concat</span>([<span class="pl-s1">df</span>, <span class="pl-s1">df</span>]).<span class="pl-en">reset_index</span>(<span class="pl-s1">drop</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>[<span class="pl-c1">0</span>][<span class="pl-c1">0</span>] <span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-30 14:35:25.506088-0400'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-240)'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>] <span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-30 14:35:25.506088-0400'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-240)'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>] <span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-30 14:35:25.506088-0400'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-240)'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>.<span class="pl-s1">iat</span>[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>] <span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-30 14:35:25.506088-0400'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-240)'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>.<span class="pl-s1">at</span>[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>] <span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-30 18:35:25.506088'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>.<span class="pl-s1">ix</span>[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>] <span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-30 18:35:25.506088'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>.<span class="pl-s1">ix</span>[<span class="pl-c1">0</span>] <span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-30 14:35:25.506088-0400'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-240)'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>[<span class="pl-c1">0</span>].<span class="pl-s1">at</span>[<span class="pl-c1">0</span>] <span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-30 14:35:25.506088-0400'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-240)'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>[<span class="pl-c1">0</span>].<span class="pl-s1">ix</span>[<span class="pl-c1">0</span>] <span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-03-30 14:35:25.506088-0400'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-240)'</span>)</pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">I'd expect <code class="notranslate">df.at[0,0]</code> and <code class="notranslate">df.ix[0,0]</code> to show the same timezone-aware timestamps as the other indexing methods.</p> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></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.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.18.12-el6.ia32e.lime.0 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.0 nose: None pip: 7.1.0 setuptools: 19.4 Cython: None numpy: 1.11.0 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.2 pytz: 2016.3 blosc: None bottleneck: None tables: None numexpr: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: None jinja2: 2.8 boto: None"><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">show_versions</span>() <span class="pl-v">INSTALLED</span> <span class="pl-v">VERSIONS</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-s1">commit</span>: <span class="pl-c1">None</span> <span class="pl-s1">python</span>: <span class="pl-c1">2.7</span>.<span class="pl-c1">6.</span><span class="pl-s1">final</span>.<span class="pl-c1">0</span> <span class="pl-s1">python</span><span class="pl-c1">-</span><span class="pl-s1">bits</span>: <span class="pl-c1">64</span> <span class="pl-v">OS</span>: <span class="pl-v">Linux</span> <span class="pl-v">OS</span><span class="pl-c1">-</span><span class="pl-s1">release</span>: <span class="pl-c1">3.18</span><span class="pl-c1">.12</span><span class="pl-c1">-</span><span class="pl-s1">el6</span>.<span class="pl-s1">ia32e</span>.<span class="pl-s1">lime</span>.<span class="pl-c1">0</span> <span class="pl-s1">machine</span>: <span class="pl-s1">x86_64</span> <span class="pl-s1">processor</span>: <span class="pl-s1">x86_64</span> <span class="pl-s1">byteorder</span>: <span class="pl-s1">little</span> <span class="pl-v">LC_ALL</span>: <span class="pl-c1">None</span> <span class="pl-v">LANG</span>: <span class="pl-s1">en_US</span>.<span class="pl-v">UTF</span><span class="pl-c1">-</span><span class="pl-c1">8</span> <span class="pl-s1">pandas</span>: <span class="pl-c1">0.18</span>.<span class="pl-c1">0</span> <span class="pl-s1">nose</span>: <span class="pl-c1">None</span> <span class="pl-s1">pip</span>: <span class="pl-c1">7.1</span>.<span class="pl-c1">0</span> <span class="pl-s1">setuptools</span>: <span class="pl-c1">19.4</span> <span class="pl-v">Cython</span>: <span class="pl-c1">None</span> <span class="pl-s1">numpy</span>: <span class="pl-c1">1.11</span>.<span class="pl-c1">0</span> <span class="pl-s1">scipy</span>: <span class="pl-c1">None</span> <span class="pl-s1">statsmodels</span>: <span class="pl-c1">None</span> <span class="pl-s1">xarray</span>: <span class="pl-c1">None</span> <span class="pl-v">IPython</span>: <span class="pl-c1">None</span> <span class="pl-s1">sphinx</span>: <span class="pl-c1">None</span> <span class="pl-s1">patsy</span>: <span class="pl-c1">None</span> <span class="pl-s1">dateutil</span>: <span class="pl-c1">2.5</span>.<span class="pl-c1">2</span> <span class="pl-s1">pytz</span>: <span class="pl-c1">2016.3</span> <span class="pl-s1">blosc</span>: <span class="pl-c1">None</span> <span class="pl-s1">bottleneck</span>: <span class="pl-c1">None</span> <span class="pl-s1">tables</span>: <span class="pl-c1">None</span> <span class="pl-s1">numexpr</span>: <span class="pl-c1">None</span> <span class="pl-s1">matplotlib</span>: <span class="pl-c1">None</span> <span class="pl-s1">openpyxl</span>: <span class="pl-c1">None</span> <span class="pl-s1">xlrd</span>: <span class="pl-c1">None</span> <span class="pl-s1">xlwt</span>: <span class="pl-c1">None</span> <span class="pl-s1">xlsxwriter</span>: <span class="pl-c1">None</span> <span class="pl-s1">lxml</span>: <span class="pl-c1">None</span> <span class="pl-s1">bs4</span>: <span class="pl-c1">None</span> <span class="pl-s1">html5lib</span>: <span class="pl-c1">None</span> <span class="pl-s1">httplib2</span>: <span class="pl-c1">None</span> <span class="pl-s1">apiclient</span>: <span class="pl-c1">None</span> <span class="pl-s1">sqlalchemy</span>: <span class="pl-c1">1.0</span>.<span class="pl-c1">12</span> <span class="pl-s1">pymysql</span>: <span class="pl-c1">None</span> <span class="pl-s1">psycopg2</span>: <span class="pl-c1">None</span> <span class="pl-s1">jinja2</span>: <span class="pl-c1">2.8</span> <span class="pl-s1">boto</span>: <span class="pl-c1">None</span></pre></div>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="data = {'name':['John', 'Anderson'], 'date':[pd.Timestamp(2017,3,13,13,32,56), pd.Timestamp(2017,2,16,12,10,3)]} test_df = pd.DataFrame(data=data) test_df['date'] = test_df['date'].map(lambda x:x.tz_localize('Asia/Shanghai')) In [18]: test_df.at[0,'date'] Out[18]: Timestamp('2017-03-13 05:32:56') In [19]: test_df.loc[0,'date'] Out[19]: Timestamp('2017-03-13 13:32:56+0800', tz='Asia/Shanghai')"><pre class="notranslate"><code class="notranslate">data = {'name':['John', 'Anderson'], 'date':[pd.Timestamp(2017,3,13,13,32,56), pd.Timestamp(2017,2,16,12,10,3)]} test_df = pd.DataFrame(data=data) test_df['date'] = test_df['date'].map(lambda x:x.tz_localize('Asia/Shanghai')) In [18]: test_df.at[0,'date'] Out[18]: Timestamp('2017-03-13 05:32:56') In [19]: test_df.loc[0,'date'] Out[19]: Timestamp('2017-03-13 13:32:56+0800', tz='Asia/Shanghai') </code></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">The sample code is as above.<br> I have a column in DataFrame that contains the datetime values which are Timestamp object in pandas.<br> After I localise the timestamp, while using .at getter and .loc getter, I get different results.<br> One is without time zone info, the other is with time zone info.</p> <p dir="auto">Is this a bug? How can I get the timestamp with time zone info using ".at" getter?</p> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test_df.at[0,'date'] Timestamp('2017-03-13 13:32:56+0800', tz='Asia/Shanghai')"><pre class="notranslate"><code class="notranslate">test_df.at[0,'date'] Timestamp('2017-03-13 13:32:56+0800', tz='Asia/Shanghai') </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> # Paste the output here pd.show_versions() here <p dir="auto">In [20]: pd.show_versions()</p> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.6.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 3.19.0-66-generic<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: en_HK.UTF-8<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.19.2<br> nose: 1.3.7<br> pip: 9.0.1<br> setuptools: 25.1.1<br> Cython: 0.24.1<br> numpy: 1.12.1<br> scipy: 0.18.1<br> statsmodels: None<br> xarray: None<br> IPython: 5.0.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.6.0<br> pytz: 2016.10<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.5.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.8<br> apiclient: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: None<br> boto: None<br> pandas_datareader: None</p> </details>
1
<p dir="auto">by <strong>axel.schreiner</strong>:</p> <pre class="notranslate">godoc binds GOPATH/src to /src/pkg; i.e., directories below GOPATH/src contain packages, not commands; i.e., HTTP requests for /cmd/FOO only work if FOO is in GOROOT/src/cmd. Looks to me like godoc cannot readily document user-written commands outside GOROOT. (I kludged this using -path; however, it's a very awkward, undocumented kludge.) Note that the distributed directory structure is GOROOT/src/pkg for packages and GOROOT/src/cmd for commands. If godoc/main.go/main() were changed, e.g., to // Bind $GOPATH trees into Go root. for _, p := range filepath.SplitList(build.Default.GOPATH) { fs.Bind("/src/pkg", OS(p), "/src/pkg", bindAfter) fs.Bind("/src/cmd", OS(p), "/src/cmd", bindAfter) } then HTTP requests /pkg/FOO and /cmd/FOO would document user packages in GOPATH/src/pkg/FOO and commands in GOPATH/src/cmd/FOO, respectively. (This does, however, break the current interpretation of GOPATH for godoc). Alternatively, // Bind $GOPATH trees into Go root. for _, p := range filepath.SplitList(build.Default.GOPATH) { fs.Bind("/src/cmd", OS(p), "/src/cmd", bindAfter) fs.Bind("/src/pkg", OS(p), "/src", bindAfter) } would not break the current interpretation of GOPATH and would also document user commands. (The package list in this case shows a package 'cmd' containing directories for user commands.) The option -path only applies to packages because it binds each path /FOO/BAR to /src/pkg/BAR, i.e., an HTTP request /pkg/BAR will produce documentation from /FOO/BAR. One could add another option -cmds to godoc/godoc.go/initHandlers() to bind paths to /src/cmd to allow single user commands to be added to the server: var ... cmdPath = flag.String("cmds", "", "additional command directories (colon-separated)") initHandler... // Add named directories in -cmds argument as // subdirectories of src/cmd. for _, p := range filepath.SplitList(*cmdPath) { _, elem := filepath.Split(p) if elem == "" { log.Fatalf("invalid -cmds argument: %q has no final element", p) } fs.Bind("/src/cmd/"+elem, OS(p), "/", bindReplace) } Which operating system are you using? MacOS X 10.8 Which version are you using? (run 'go version') go1</pre>
<pre class="notranslate">Well, since pprof is actually a perl script. It just doesn't work on windows. "go tool" assumes that every tool ends with the ".exe" suffix on microsoft operating system and pprof isn't. Perhaps it should be removed from tool directory on windows at all? It's under "misc" anyways, if someone really wants to use it with mingw or cygwin environment it is possible to do. Or perhaps there is some other way to make it work.</pre>
0
<p dir="auto">This looks like a regression in Electron 4. In Electron 3 the electron file is executable, in 4 it is not.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/900690/60866810-96456580-a229-11e9-8ec8-c0f2a3b4643a.png"><img src="https://user-images.githubusercontent.com/900690/60866810-96456580-a229-11e9-8ec8-c0f2a3b4643a.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Compiled binaries on Linux do no compile properly and show up as shared files, I have been told by the team at electron-packager that this is an electron bug and not a electron-packager bug as seen here as well as an explanation of the bug here:</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="373918112" data-permission-text="Title is private" data-url="https://github.com/electron/electron-packager/issues/901" data-hovercard-type="issue" data-hovercard-url="/electron/electron-packager/issues/901/hovercard?comment_id=433101967&amp;comment_type=issue_comment" href="https://github.com/electron/electron-packager/issues/901#issuecomment-433101967">electron/electron-packager#901 (comment)</a></p>
1
<p dir="auto">Hi,<br> I can not get this to work at all. When I have a row with x-popovers and they are set with offset, they do not follow the container when resizing the window:<br> <a href="http://bootply.com/91910" rel="nofollow">http://bootply.com/91910</a></p> <p dir="auto">If I remove the offset it works:<br> <a href="http://bootply.com/91912" rel="nofollow">http://bootply.com/91912</a></p>
<p dir="auto">Chrome for Mac. Taken from the docs.</p> <p dir="auto">Open the popovers. Resize. Boom.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/5f33627dbe6e5c824fa49762f54ecfab403442cbd35042878c0021f4c5482e9e/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3733313734332f3936333632322f39313365353636632d303530362d313165332d396262392d6236653464653935626239392e706e67"><img src="https://camo.githubusercontent.com/5f33627dbe6e5c824fa49762f54ecfab403442cbd35042878c0021f4c5482e9e/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3733313734332f3936333632322f39313365353636632d303530362d313165332d396262392d6236653464653935626239392e706e67" alt="screen shot 2013-08-14 at 18 25 04" data-canonical-src="https://f.cloud.github.com/assets/731743/963622/913e566c-0506-11e3-9bb9-b6e4de95bb99.png" style="max-width: 100%;"></a></p>
1
<p dir="auto">we have quite a lot of code to support .mode (internally we use pretty much the same algos as <code class="notranslate">.value_counts()</code>)</p> <p dir="auto">but unless I am not understanding isn't.</p> <p dir="auto"><code class="notranslate">x.mode() == x.value_counts(sort=True).index[0]</code> ?</p> <p dir="auto">if ties, then return a slice of the result</p> <p dir="auto">e.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [17]: Series([1, 1, 1, 2, 2, 2, 3]).value_counts() Out[17]: 2 3 1 3 3 1 dtype: int64 In [18]: Series([1, 1, 1, 2, 2, 2, 3]).mode() Out[18]: 0 1 1 2 dtype: int64"><pre class="notranslate"><code class="notranslate">In [17]: Series([1, 1, 1, 2, 2, 2, 3]).value_counts() Out[17]: 2 3 1 3 3 1 dtype: int64 In [18]: Series([1, 1, 1, 2, 2, 2, 3]).mode() Out[18]: 0 1 1 2 dtype: int64 </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/TomAugspurger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/TomAugspurger">@TomAugspurger</a></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[1] df = pd.DataFrame([[1,2]]) [2] df.iloc[0, 1:] = df.iloc[0, 1:].apply('{:+.2f}'.format) [3] df 0 1 0 1 [+2.00]"><pre class="notranslate">[<span class="pl-c1">1</span>] <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>([[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>]]) [<span class="pl-c1">2</span>] <span class="pl-s1">df</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">0</span>, <span class="pl-c1">1</span>:] <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">0</span>, <span class="pl-c1">1</span>:].<span class="pl-en">apply</span>(<span class="pl-s">'{:+.2f}'</span>.<span class="pl-s1">format</span>) [<span class="pl-c1">3</span>] <span class="pl-s1">df</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> [<span class="pl-c1">+</span><span class="pl-c1">2.00</span>]</pre></div> <p dir="auto">Notice that an array was inserted, where a scalar was expected. The issue is present in both 0.22 and master.</p> <p dir="auto">The same issue is if we use <code class="notranslate">loc</code> instead of <code class="notranslate">iloc</code>. However, if we insert a numeric series instead of a string series, everything is ok:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[1] df = pd.DataFrame([[1,2]]) [2] df.iloc[0, 1:] = df.iloc[0, 1:].apply(lambda x: x*2) [3] df 0 2 0 1 4 "><pre class="notranslate">[<span class="pl-c1">1</span>] <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>([[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>]]) [<span class="pl-c1">2</span>] <span class="pl-s1">df</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">0</span>, <span class="pl-c1">1</span>:] <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">0</span>, <span class="pl-c1">1</span>:].<span class="pl-en">apply</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">x</span><span class="pl-c1">*</span><span class="pl-c1">2</span>) [<span class="pl-c1">3</span>] <span class="pl-s1">df</span> <span class="pl-c1">0</span> <span class="pl-c1">2</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">4</span> </pre></div> <p dir="auto">EDIT: the issue can be simplified further:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[1] df = pd.DataFrame([[1, 2]]) [2] df.iloc[0, 1:] = ['a'] [3] df 0 2 0 1 [a] [4] df = pd.DataFrame([[1, 2]]) [5] df.iloc[0, 0:] = ['a', 'b'] # ok 0 1 0 a b [6] df = pd.DataFrame([[1, 2, 3]]) [7] df.iloc[0, 1:] = ['a', 'b'] # ok 0 1 2 0 1 a b"><pre class="notranslate">[<span class="pl-c1">1</span>] <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>]]) [<span class="pl-c1">2</span>] <span class="pl-s1">df</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">0</span>, <span class="pl-c1">1</span>:] <span class="pl-c1">=</span> [<span class="pl-s">'a'</span>] [<span class="pl-c1">3</span>] <span class="pl-s1">df</span> <span class="pl-c1">0</span> <span class="pl-c1">2</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> [<span class="pl-s1">a</span>] [<span class="pl-c1">4</span>] <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>]]) [<span class="pl-c1">5</span>] <span class="pl-s1">df</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">0</span>, <span class="pl-c1">0</span>:] <span class="pl-c1">=</span> [<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>] <span class="pl-c"># ok</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">0</span> <span class="pl-s1">a</span> <span class="pl-s1">b</span> [<span class="pl-c1">6</span>] <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>]]) [<span class="pl-c1">7</span>] <span class="pl-s1">df</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">0</span>, <span class="pl-c1">1</span>:] <span class="pl-c1">=</span> [<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>] <span class="pl-c"># ok</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-s1">a</span> <span class="pl-s1">b</span></pre></div> <p dir="auto">So it seems like a very specific bug, concerning insertion into the last column of a dataframe.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">Expected is that a scalar value is inserted into the data frame, and not an array.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pandas-dev/pandas/commit/49714e8eb2d102b183db60b7d07a5321bfb0cf31/hovercard" href="https://github.com/pandas-dev/pandas/commit/49714e8eb2d102b183db60b7d07a5321bfb0cf31"><tt>49714e8</tt></a><br> python: 3.6.3.final.0<br> python-bits: 32<br> OS: Windows<br> OS-release: 10<br> machine: AMD64<br> processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: None<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.22.0.dev0+669.g49714e8<br> pytest: 3.3.1<br> pip: 9.0.1<br> setuptools: 38.2.5<br> Cython: 0.26.1<br> numpy: 1.13.3<br> scipy: 1.0.0<br> pyarrow: None<br> xarray: None<br> IPython: 6.2.1<br> sphinx: 1.6.3<br> patsy: 0.4.1<br> dateutil: 2.6.1<br> pytz: 2017.3<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> feather: None<br> matplotlib: 2.1.0<br> openpyxl: 2.4.9<br> xlrd: 1.1.0<br> xlwt: 1.3.0<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 1.0b10<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
0
<p dir="auto">The mobx example does not work with jest configured(I use the .babelrc config as in jest example).<br> I believe there is problem with .babelrc configuration with env</p> <p dir="auto">So, if .babelrc config is same as jest then, tests run but mobx doesn't and vice-versa.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">mobx store should run</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">mobx store does not work, the observable properties/ action setters and getters does not work.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Use mobx example and change the babelrc config to the one with jest example</li> </ol> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>4.2.2</td> </tr> <tr> <td>node</td> <td>8.4</td> </tr> <tr> <td>OS</td> <td>macos</td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></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?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Current Behavior</h2> <p dir="auto">currently <code class="notranslate">material-ui</code> use <code class="notranslate">renderPage</code> to pass <code class="notranslate">pageContext</code> to page Component</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// _documents.js const page = ctx.renderPage(Page =&gt; props =&gt; ( &lt;Page pageContext={pageContext} {...props} /&gt; ));"><pre class="notranslate"><span class="pl-c">// _documents.js</span> <span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-en">renderPage</span><span class="pl-kos">(</span><span class="pl-v">Page</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">props</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Page</span> <span class="pl-c1">pageContext</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">pageContext</span><span class="pl-kos">}</span> <span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">so, <strong>every page</strong> components need to handle <code class="notranslate">pageContext</code></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// pages/index.js export default withRoot(Home) // &lt;-- withRoot HOC handle pageContext"><pre class="notranslate"><span class="pl-c">// pages/index.js</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">withRoot</span><span class="pl-kos">(</span><span class="pl-v">Home</span><span class="pl-kos">)</span> <span class="pl-c">// &lt;-- withRoot HOC handle pageContext</span></pre></div> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">but i really want '_app.js' handle withRoot or other HOC,<br> so <strong>every page</strong> components can be more simplier.</p> <p dir="auto">currently <code class="notranslate">_document.js</code> can use <code class="notranslate">renderPage</code> to pass props to <code class="notranslate">Page Component</code> such as 'pageContext' above.<br> its for style ssr.</p> <p dir="auto">but <code class="notranslate">_document.js</code> can't send props to <code class="notranslate">App Component``_app.js</code>.<br> u only can modify <code class="notranslate">App</code> props by custom it <code class="notranslate">/page/_app.js</code>, and then generate App props by getInitialProps function.<br> <a href="https://github.com/zeit/next.js/blob/canary/server/render.js#L79-L88">https://github.com/zeit/next.js/blob/canary/server/render.js#L79-L88</a></p> <p dir="auto">but, again, <code class="notranslate">_document.js</code> can't send props to <code class="notranslate">_app.js</code> directly if i want to handle something about style ssr in _app.js, so that i don't need write those same code in every pages</p> <p dir="auto">may be Next.js would modify the renderPage function, may be add <code class="notranslate">appProps</code> below</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const renderPage = (enhancer = Page =&gt; Page, appProps) =&gt; { const app = createElement(App, { Component: enhancer(Component), router, ...props, ...appProps })"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">renderPage</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">enhancer</span> <span class="pl-c1">=</span> <span class="pl-v">Page</span> <span class="pl-c1">=&gt;</span> <span class="pl-v">Page</span><span class="pl-kos">,</span> <span class="pl-s1">appProps</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">app</span> <span class="pl-c1">=</span> <span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-v">App</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">Component</span>: <span class="pl-s1">enhancer</span><span class="pl-kos">(</span><span class="pl-v">Component</span><span class="pl-kos">)</span><span class="pl-kos">,</span> router<span class="pl-kos">,</span> ...<span class="pl-s1">props</span><span class="pl-kos">,</span> ...<span class="pl-s1">appProps</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos"></span></pre></div>
0
<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> Date pipe keeps the order of date components when using a custom format. According to the docs (<a href="https://angular.io/docs/ts/latest/api/common/index/DatePipe-pipe.html" rel="nofollow">https://angular.io/docs/ts/latest/api/common/index/DatePipe-pipe.html</a>) this shouldn't be the case: 'In javascript, only the components specified will be respected (not the ordering, punctuations, ...) and details of the formatting will be dependent on the locale.'</p> <p dir="auto"><strong>Expected behavior</strong><br> The date pipe should ignore ordering and whitespaces etc, it should only care about the date components and format the output date according to the locale.</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> <a href="http://plnkr.co/edit/fCZ4oVcn5qsnNssvSnar?p=preview" rel="nofollow">http://plnkr.co/edit/fCZ4oVcn5qsnNssvSnar?p=preview</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> To be able to use custom date formats.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> macOS Sierra, Visual Studio Code, NPM 3.10.3</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0 (Final release)</li> <li><strong>Browser:</strong> all</li> <li><strong>Language:</strong> TypeScript 2.0.2</li> <li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = v6.3.0</li> </ul>
<h2 dir="auto">Problem</h2> <p dir="auto">Assume the following HTML snippet</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;button title=&quot;OK&quot; tooltip=&quot;When done.&quot; (click)=&quot;...&quot; *if=&quot;...&quot;&gt;text&lt;/button&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">title</span>="<span class="pl-s">OK</span>" <span class="pl-c1">tooltip</span>="<span class="pl-s">When done.</span>" <span class="pl-c1">(click)</span>="<span class="pl-s">...</span>" <span class="pl-c1">*if</span>="<span class="pl-s">...</span>"<span class="pl-kos">&gt;</span>text<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span></pre></div> <ol dir="auto"> <li>It looks like we are using browser <code class="notranslate">button</code></li> <li>It looks like <code class="notranslate">title</code> and <code class="notranslate">tooltip</code> are properties of <code class="notranslate">button</code>.</li> </ol> <h3 dir="auto">Surprise</h3> <p dir="auto">Now imagine that the actual implementation is:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ selector:'button', properties: ['title'] }) @View(...) class Button { title: string; } @Directives({selector:'[tooltip]', properties: ['tooltip']}) class Tooltip { tooltip: string; }"><pre class="notranslate">@<span class="pl-v">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>:<span class="pl-s">'button'</span><span class="pl-kos">,</span> <span class="pl-c1">properties</span>: <span class="pl-kos">[</span><span class="pl-s">'title'</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> @<span class="pl-v">View</span><span class="pl-kos">(</span>...<span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-v">Button</span> <span class="pl-kos">{</span> <span class="pl-c1">title</span>: <span class="pl-c1">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> @<span class="pl-v">Directives</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">selector</span>:<span class="pl-s">'[tooltip]'</span><span class="pl-kos">,</span> <span class="pl-c1">properties</span>: <span class="pl-kos">[</span><span class="pl-s">'tooltip'</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">class</span> <span class="pl-v">Tooltip</span> <span class="pl-kos">{</span> <span class="pl-c1">tooltip</span>: <span class="pl-c1">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">But after seeing the implementation the developer realizes that:</p> <ol dir="auto"> <li><code class="notranslate">button</code> is not a native component</li> <li><code class="notranslate">tooltip</code> is a separate, unrelated directive which decorates the <code class="notranslate">button</code></li> </ol> <p dir="auto">This creates a level of surprise for the developer and effects the readability of the HTML.</p> <h2 dir="auto">Proposal</h2> <p dir="auto">As a best practice (not enforced) recommend that:</p> <ol dir="auto"> <li>All components are prefixed (but not their properties)</li> <li>All directives are prefixed</li> </ol> <h2 dir="auto">Implication</h2> <p dir="auto">Now let's rewrite the example with the above rules.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;md-button title=&quot;OK&quot; jq-tooltip=&quot;When done.&quot; (click)=&quot;...&quot; *ng-if=&quot;...&quot;&gt;text&lt;/button&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">md-button</span> <span class="pl-c1">title</span>="<span class="pl-s">OK</span>" <span class="pl-c1">jq-tooltip</span>="<span class="pl-s">When done.</span>" <span class="pl-c1">(click)</span>="<span class="pl-s">...</span>" <span class="pl-c1">*ng-if</span>="<span class="pl-s">...</span>"<span class="pl-kos">&gt;</span>text<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">It is immediately clear that:</p> <ol dir="auto"> <li><code class="notranslate">md-button</code> is a custom component and <code class="notranslate">title</code> is its property</li> <li><code class="notranslate">jq-tooltip</code> is a separate directive. Given that they have different prefixes (<code class="notranslate">md-</code> and <code class="notranslate">jq-</code>) it is unlikely that they have a communication channel.</li> <li><code class="notranslate">ng-if</code> comes from yet separate library. (again unlikely that they somehow communicate)</li> </ol> <p dir="auto">But why prefix the <code class="notranslate">ng-if</code>? Well remember that it is short hand for:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;template ng-if=&quot;...&quot;&gt; &lt;md-button title=&quot;OK&quot; jq-tooltip=&quot;When done.&quot; (click)=&quot;...&quot;&gt;text&lt;/button&gt; &lt;/template&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">template</span> <span class="pl-c1">ng-if</span>="<span class="pl-s">...</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">md-button</span> <span class="pl-c1">title</span>="<span class="pl-s">OK</span>" <span class="pl-c1">jq-tooltip</span>="<span class="pl-s">When done.</span>" <span class="pl-c1">(click)</span>="<span class="pl-s">...</span>"<span class="pl-kos">&gt;</span>text<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">template</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">And if we don't prefix it it would look like that <code class="notranslate">template</code> has <code class="notranslate">if</code> property, which is not the case.</p>
0
<p dir="auto">This proposal is based on a working implementation at:<br> <a href="https://github.com/yortus/TypeScript/tree/granular-targeting">https://github.com/yortus/TypeScript/tree/granular-targeting</a><br> To try it out, clone it or install it with <code class="notranslate">npm install yortus-typescript</code></p> <h2 dir="auto">Problem Scenario</h2> <p dir="auto">The TypeScript compiler accepts a single <code class="notranslate">target</code> option of either <code class="notranslate">ES3</code>, <code class="notranslate">ES5</code> or <code class="notranslate">ES6</code>. However, most realistic target environments support a mixture or ES5 and ES6, and even ES7, often known in advance (e.g. when targeting Node.js, and/or using polyfills).</p> <p dir="auto">Using TypeScript with target environments with mixed ES5/5/7 support presents some challenges, many of which have been discussed in other issues. E.g.:</p> <ul dir="auto"> <li>(<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="102279466" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4389" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4389/hovercard" href="https://github.com/microsoft/TypeScript/issues/4389">#4389</a>) Support compile targets between ES5 and ES6</li> <li>(<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="99255652" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4168" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4168/hovercard" href="https://github.com/microsoft/TypeScript/issues/4168">#4168</a>) Normalize our lib files by compiler settings</li> <li>(<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="78054310" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3215" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3215/hovercard" href="https://github.com/microsoft/TypeScript/issues/3215">#3215</a>) New APIs added to lib.d.ts may break client codes. Allow duplicated members in interfaces? Make lib.d.ts overridable?</li> <li>(<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="72630734" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3005" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3005/hovercard" href="https://github.com/microsoft/TypeScript/issues/3005">#3005</a>) Using ES6 type default library when targetting ES5 output</li> <li>(<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="67462688" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2695" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2695/hovercard" href="https://github.com/microsoft/TypeScript/issues/2695">#2695</a>) for-of does not work with DOM collections when target is ES6</li> <li>(somewhat related: (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="64038648" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2481" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2481/hovercard" href="https://github.com/microsoft/TypeScript/issues/2481">#2481</a>) Create DOM-Level specific dom-version.d.ts)</li> </ul> <p dir="auto">In summary:</p> <ul dir="auto"> <li>The default lib either includes all ES6 types and properties, or none of them.</li> <li>Specifying <code class="notranslate">--noLib</code> and/or manually maintaining <code class="notranslate">lib.b.ts</code> files brings other problems: <ul dir="auto"> <li>separate core typings are a burden to maintain.</li> <li>problems of missing symbols and clashing symbols.</li> <li>burden of manually tracking fixes and additions made in the default libs.</li> </ul> </li> <li>Targeting ES5 as the 'lowest common denominator' means some language features known to be supported cannot be used (eg generators in Node.js).</li> <li>Targeting ES6 (e.g. to take advantage of Node.js' support for many ES6 features) leads to further complications: <ul dir="auto"> <li><del>CommonJS modules won't compile, even though that's the only module system Node supports.</del> (fixed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="106663759" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4811" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/4811/hovercard" href="https://github.com/microsoft/TypeScript/pull/4811">#4811</a>)</li> <li>The compiler emits ES6 even for features that are known <em>not</em> to be supported, which would fail at runtime.</li> <li>Adding babel.js to the build pipeline adds complexity.</li> </ul> </li> </ul> <h2 dir="auto">Workarounds</h2> <h4 dir="auto">To achieve mixed ES5/ES6 core typings:</h4> <ul dir="auto"> <li>specify <code class="notranslate">--target ES5</code> and selectively add ES6 typings in separately maintained files (eg from DefinitelyTyped).</li> <li>specify <code class="notranslate">--target ES6</code> and be careful to avoid referencing unsupported ES6 features (the compiler won't issue any errors).</li> <li>specify <code class="notranslate">--noLib</code> and manually maintain custom core typings in your own project.</li> </ul> <h4 dir="auto">To use ES6 features supported by the target platform</h4> <ul dir="auto"> <li>specify <code class="notranslate">--target ES5</code> and (a) accept that things will be down-level emitted, and (b) don't use features with no down-level emit yet (ie generators).</li> <li>specify <code class="notranslate">--target ES6</code> and (a) <del>convert everything from CommonJS to ES6 modules</del> (fixed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="106663759" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4811" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/4811/hovercard" href="https://github.com/microsoft/TypeScript/pull/4811">#4811</a>), (b) add babel.js to the build pipeline, and (c) configure babel.js to do either pass-through or down-level emit on a feature-by-feature basis.</li> </ul> <h2 dir="auto">Proposed Solution</h2> <p dir="auto">This proposal consists of two parts:</p> <p dir="auto"><del>1. Support for conditional compilation using <code class="notranslate">#if</code> and <code class="notranslate">#endif</code> directives, so that a single default lib can offer fine-grained typings tailored to a mixed ES3/5/6/7 target environment.</del></p> <p dir="auto"><del>The conditional compilation part is detailed in a separate proposal (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="105411046" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4691" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4691/hovercard" href="https://github.com/microsoft/TypeScript/issues/4691">#4691</a>) with its own <a href="https://github.com/yortus/TypeScript/tree/preprocessor-directives">working implementation</a>.</del></p> <p dir="auto"><strong>1. A mechanism allowing the default lib to offer fine-grained typings tailored to a mixed ES3/5/6/7 target environment.</strong></p> <p dir="auto">This is really an internal compiler detail, so the mechanism is open to debate. It just has to match the granularity supported by the new compiler options below.</p> <p dir="auto">The <a href="https://github.com/yortus/TypeScript/tree/granular-targeting">working implementation</a> uses <code class="notranslate">#if...#endif</code> conditional compilation proposed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="105411046" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4691" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4691/hovercard" href="https://github.com/microsoft/TypeScript/issues/4691">#4691</a>. But this is overkill for this use case and <a href="https://github.com/Microsoft/TypeScript/issues/4691#issuecomment-138678473" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4691/hovercard">seems unlikely</a> to be considered.</p> <p dir="auto">Several other mechanisms have been discussed (summarized <a href="https://github.com/Microsoft/TypeScript/issues/4692#issuecomment-138750104" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4692/hovercard">here</a>).</p> <p dir="auto"><strong>2. Support for additional compiler options allowing the target environment to be described on a feature-by-feature basis.</strong></p> <p dir="auto">Under this proposal, the <code class="notranslate">target</code> option remains, but is now interpreted as the 'baseline' target, determining which features the target supports by default. For instance, ES6 symbols and generators are supported by default if <code class="notranslate">target</code> is set to <code class="notranslate">ES6</code> or higher.</p> <p dir="auto">The additional compiler options have the form <code class="notranslate">targetHasXYZ</code>, where <code class="notranslate">XYZ</code> designates a feature. These options are used to override the target for a particular language feature. They instruct the compiler that the target environment explicitly does or does not support a particular feature, regardless of what the <code class="notranslate">target</code> option otherwise imples.</p> <p dir="auto">The <a href="https://github.com/yortus/TypeScript/tree/granular-targeting">working implementation</a> currently supports the following additional compiler options (all boolean):</p> <ul dir="auto"> <li><code class="notranslate">targetHasArrowFunctions</code>: specify whether the target supports ES6 <code class="notranslate">() =&gt; {...}</code> syntax</li> <li><code class="notranslate">targetHasBlockScoping</code>: specify whether the target supports ES6 <code class="notranslate">let</code> and <code class="notranslate">const</code></li> <li><code class="notranslate">targetHasForOf</code>: specify whether the target supports ES6 <code class="notranslate">for..of</code> syntax</li> <li><code class="notranslate">targetHasGenerators</code>: specify whether the target supports ES6 generators</li> <li><code class="notranslate">targetHasIterables</code>: specify whether the target supports ES6 iterables and iterators</li> <li><code class="notranslate">targetHasModules</code>: specify whether the target supports ES6 modules</li> <li><code class="notranslate">targetHasPromises</code>: specify whether the target supports ES6 promises</li> <li><code class="notranslate">targetHasSymbols</code>: specify whether the target supports ES6 symbols</li> </ul> <p dir="auto">These options work both on the command line and in <code class="notranslate">tsconfig.json</code> files.</p> <h2 dir="auto">Example <code class="notranslate">tsconfig.json</code> Files and their Behaviour</h2> <h4 dir="auto">A.</h4> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;target&quot;: &quot;es6&quot;, &quot;targetHasModules&quot;: false, &quot;targetHasBlockScoping&quot;: false, &quot;module&quot;: &quot;commonjs&quot; }"><pre class="notranslate">{ <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>es6<span class="pl-pds">"</span></span>, <span class="pl-ent">"targetHasModules"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"targetHasBlockScoping"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>commonjs<span class="pl-pds">"</span></span> }</pre></div> <p dir="auto">Emits ES6 JavaScript, except with CommonJS module syntax, and with <code class="notranslate">let</code>/<code class="notranslate">const</code> down-leveled to <code class="notranslate">var</code>. This might match a Node.js environment.</p> <h4 dir="auto">B.</h4> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;target&quot;: &quot;es5&quot;, &quot;targetHasSymbols&quot;: true }"><pre class="notranslate">{ <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>es5<span class="pl-pds">"</span></span>, <span class="pl-ent">"targetHasSymbols"</span>: <span class="pl-c1">true</span> }</pre></div> <p dir="auto">Emits ES5 JavaScript, except with Symbol references emitted as-is, and with full type support for well-known symbols from the default lib.</p> <h4 dir="auto">C.</h4> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;target&quot;: &quot;es5&quot;, &quot;targetHasPromises&quot;: true }"><pre class="notranslate">{ <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>es5<span class="pl-pds">"</span></span>, <span class="pl-ent">"targetHasPromises"</span>: <span class="pl-c1">true</span> }</pre></div> <p dir="auto">Emits ES5 JavaScript, except with full type support for ES6 promises from the default lib. This would work in an ES5 environment with a native or polyfilled <code class="notranslate">Promise</code> object.</p> <h2 dir="auto">Backward Compatibility, Design Impact, Performance, etc</h2> <ul dir="auto"> <li>There is no impact on existing TypeScript projects. The additional options and preprocessor directives only modify the compiler's behaviour if they are explicitly used.</li> <li>The preprocessor directives <code class="notranslate">#if</code> and <code class="notranslate">#endif</code> add new language syntax. No existing language features are affected.</li> <li>There is negligable impact on compiler performance.</li> <li>Only one default lib is needed (<code class="notranslate">lib.es6.d.ts</code>). It contains many conditionally compiled sections (ie with <code class="notranslate">#if</code> and <code class="notranslate">#endif</code>)</li> </ul> <h2 dir="auto">Remaining Work and Questions</h2> <ul dir="auto"> <li>Support compiler options for more target features, e.g.: <ul dir="auto"> <li>template strings</li> <li>classes</li> <li><code class="notranslate">Map</code>/<code class="notranslate">Set</code>/<code class="notranslate">WeakMap</code>/<code class="notranslate">WeakSet</code></li> <li>binary and octal literals</li> <li>destructuring</li> <li>default, rest, and optional parameters</li> </ul> </li> <li>How granular could/should targets be? Feature support is naturally hierarchical. E.g. block scoping may be separated into (a) <code class="notranslate">let</code>, (b) <code class="notranslate">const</code> and (c) block-level function declaration. This is true of most features and their realistic implementations (the <a href="https://kangax.github.io/compat-table/es6/" rel="nofollow">Kangax ES6 compatibility table</a> has a three-level hierarchy down the left side).</li> </ul>
<p dir="auto">I have the below overloaded function declaration for a function in my class</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="private _forEachBindingContext(bindingContext: IContext, fn: (bindingContext: IContext) =&gt; void); private _forEachBindingContext(bindingContextArray: Array&lt;IContext&gt;, fn: (bindingContext:IContext) =&gt; void); private _forEachBindingContext(context, fn: (bindingContext: IContext) =&gt; void): void { // Function here }"><pre class="notranslate"><span class="pl-k">private</span> <span class="pl-en">_forEachBindingContext</span><span class="pl-kos">(</span><span class="pl-s1">bindingContext</span>: <span class="pl-smi">IContext</span><span class="pl-kos">,</span> <span class="pl-en">fn</span>: <span class="pl-kos">(</span><span class="pl-s1">bindingContext</span>: <span class="pl-smi">IContext</span><span class="pl-kos">)</span> <span class="pl-c1">=</span><span class="pl-c1">&gt;</span> <span class="pl-k">void</span><span class="pl-s1"></span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">private</span><span class="pl-kos"></span> <span class="pl-en">_forEachBindingContext</span><span class="pl-kos">(</span><span class="pl-s1">bindingContextArray</span>: <span class="pl-smi">Array</span><span class="pl-kos">&lt;</span><span class="pl-smi">IContext</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-en">fn</span>: <span class="pl-kos">(</span><span class="pl-s1">bindingContext</span>:<span class="pl-smi">IContext</span><span class="pl-kos">)</span> <span class="pl-c1">=</span><span class="pl-c1">&gt;</span> <span class="pl-k">void</span><span class="pl-s1"></span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">private</span><span class="pl-kos"></span> <span class="pl-s1">_forEachBindingContext</span><span class="pl-kos">(</span><span class="pl-s1">context</span><span class="pl-kos">,</span> <span class="pl-en">fn</span>: <span class="pl-kos">(</span><span class="pl-s1">bindingContext</span>: <span class="pl-smi">IContext</span><span class="pl-kos">)</span> <span class="pl-c1">=</span><span class="pl-c1">&gt;</span> <span class="pl-k">void</span><span class="pl-kos">)</span>: <span class="pl-k">void</span> <span class="pl-kos">{</span> <span class="pl-c">// Function here</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">In previous versions of TypeScript to 1.1 it would generate a definition file with the line</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private _forEachBindingContext(bindingContext, fn);"><pre lang="typesript" class="notranslate"><code class="notranslate">private _forEachBindingContext(bindingContext, fn); </code></pre></div> <p dir="auto">I could use this definition file in my other projects and it would work fine. After upgrading to 1.1 the same code now generates the following in the definition file</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" private _forEachBindingContext(bindingContext, fn); private _forEachBindingContext(bindingContextArray, fn);"><pre class="notranslate"> <span class="pl-k">private</span> <span class="pl-en">_forEachBindingContext</span><span class="pl-kos">(</span><span class="pl-s1">bindingContext</span><span class="pl-kos">,</span> <span class="pl-s1">fn</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">private</span><span class="pl-kos"></span> <span class="pl-en">_forEachBindingContext</span><span class="pl-kos">(</span><span class="pl-s1">bindingContextArray</span><span class="pl-kos">,</span> <span class="pl-s1">fn</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">If I try using this definition file in other projects I get the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Duplicate overload signature for '_forEachBindingContext'."><pre class="notranslate"><code class="notranslate">Duplicate overload signature for '_forEachBindingContext'. </code></pre></div> <p dir="auto">Changing this method to public solves the issue since it generates types on the definitions of public functions. I would expect that I could use either public or private and not encounter this issue.</p>
0
<p dir="auto">Can I request for the TypeDefinition file for the latest version to be published at <code class="notranslate">npm</code>?</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul>
<p dir="auto">Got the following error when compiling:<br> <code class="notranslate">TouchRipple.d.ts(2,33): error TS7016: Could not find a declaration file for module 'react-transition-group'</code>, fixed by adding a dev dependency to <code class="notranslate">@types/react-transition-group</code></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">It should compile without the need of other dependencies</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">It fails to compile if <code class="notranslate">@types/react-transition-group</code> is not installed</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>latest beta</td> </tr> <tr> <td>React</td> <td>16</td> </tr> <tr> <td>browser</td> <td>Chrome 63</td> </tr> <tr> <td>etc</td> <td>TS 2.6.2</td> </tr> </tbody> </table>
0
<p dir="auto">Currently I have an <code class="notranslate">Input</code> sitting inside the <code class="notranslate">label</code> of a <code class="notranslate">Chip</code>, and the way "backspace" is handled causes several issues with this text input. I'm able to stop the <code class="notranslate">onDelete</code> function being called, but cannot fix the fact <code class="notranslate">Input</code> is never getting an event.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I would prefer <code class="notranslate">Chip</code> not handle "backspace" <code class="notranslate">keydown</code> events, but if this is desired functionality, being able to override the <code class="notranslate">onKeyDown</code> event unconditionally would suffice.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The default event is prevented and the <code class="notranslate">onChange</code> function is never called.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">I spun this up to demo the issue:<br> <a href="https://codesandbox.io/s/42708vl2l9" rel="nofollow">https://codesandbox.io/s/42708vl2l9</a></p> <h2 dir="auto">Context</h2> <p dir="auto">I'm creating a filter system for a desktop-only application, where the filters are editable and represented by <code class="notranslate">Chip</code>s. Currently these filters are pretty simple, so editing them inline is pretty clean and simple from a user perspective.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1010165/36327093-7dc1212c-132b-11e8-8222-6fe5fca081cd.png"><img src="https://user-images.githubusercontent.com/1010165/36327093-7dc1212c-132b-11e8-8222-6fe5fca081cd.png" alt="screen shot 2018-02-16 at 15 09 58" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1010165/36327116-91a4743c-132b-11e8-9da0-b481361abbb4.png"><img src="https://user-images.githubusercontent.com/1010165/36327116-91a4743c-132b-11e8-9da0-b481361abbb4.png" alt="screen shot 2018-02-16 at 15 10 34" style="max-width: 100%;"></a></p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.32</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
<p dir="auto">This mixin appears in many components, checking if <code class="notranslate">context.muiTheme</code> has changed.</p> <p dir="auto">First of all, I do not see why this component is necessary besides supporting dynamic theme. This can be done by creating a new theme context instance, React will then tell it has been changed.</p> <p dir="auto">Moreover, Its appearance may significantly affect the performance since it does checking in <code class="notranslate">shouldComponentUpdate</code> every time react does reconciliation. Especially, this happens for every flat button and text field.</p> <p dir="auto">Last, but may not relate to this issue, context-pure mixin uses <code class="notranslate">src/utils/shallow-equal.js</code>, the same function has been implemented as react addon <code class="notranslate">react-addons-shallow-compare</code>. I think we should remove it from <code class="notranslate">utils</code>.</p> <p dir="auto">Here is the sublime search result:</p> <h2 dir="auto"></h2> <p dir="auto">Edit by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/newoga/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/newoga">@newoga</a> (replaced <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yongxu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yongxu">@yongxu</a> sublime search results with checklist)</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> flat-button-label.jsx (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133489916" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/3331" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/3331/hovercard" href="https://github.com/mui/material-ui/pull/3331">#3331</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> card-expandable.jsx (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133489916" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/3331" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/3331/hovercard" href="https://github.com/mui/material-ui/pull/3331">#3331</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> date-picker-dialog.jsx (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133489916" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/3331" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/3331/hovercard" href="https://github.com/mui/material-ui/pull/3331">#3331</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> flat-button.jsx (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133489916" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/3331" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/3331/hovercard" href="https://github.com/mui/material-ui/pull/3331">#3331</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> icon-button.jsx (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133489916" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/3331" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/3331/hovercard" href="https://github.com/mui/material-ui/pull/3331">#3331</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> SelectField.jsx (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133489916" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/3331" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/3331/hovercard" href="https://github.com/mui/material-ui/pull/3331">#3331</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> snackbar.jsx (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133489916" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/3331" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/3331/hovercard" href="https://github.com/mui/material-ui/pull/3331">#3331</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> TextField.jsx (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133489916" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/3331" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/3331/hovercard" href="https://github.com/mui/material-ui/pull/3331">#3331</a>)</li> </ul>
0
<p dir="auto">Example package.json file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;paths&quot;: { &quot;lib_a&quot;: &quot;./path/to/lib/a&quot; }, &quot;scripts&quot;: { &quot;lib_a:build&quot;: &quot;tsc -p $npm_package_paths_lib_a&quot;, &quot;lib_a:publish&quot;: &quot;npm publish $npm_package_paths_lib_a&quot; }, &quot;devDependencies&quot;: { &quot;@my-org/lib-a&quot;: &quot;file:$npm_package_paths_lib_a&quot;, } }"><pre class="notranslate"><code class="notranslate">{ "paths": { "lib_a": "./path/to/lib/a" }, "scripts": { "lib_a:build": "tsc -p $npm_package_paths_lib_a", "lib_a:publish": "npm publish $npm_package_paths_lib_a" }, "devDependencies": { "@my-org/lib-a": "file:$npm_package_paths_lib_a", } } </code></pre></div> <p dir="auto">As you can see, we have definied variable <code class="notranslate">$npm_package_paths_lib_a</code> because path to the lib is used in 3 places, but for some reason i can not use variable inside version of dependency. Is there any other syntax for this or this feature is not supported?</p> <p dir="auto">Big picture:<br> I have multiple packages inside single repository because i do not want to duplicate build and deploy process, which is same for multiple UI components. Also those components are using different dependencies, so when i use lib_a i do not want to install libraries required for lib_b etc (to make <code class="notranslate">npm install</code> much faster when someone is using only few components).</p>
<h1 dir="auto">What / Why</h1> <p dir="auto">error:</p> <p dir="auto">`npm WARN deprecated [email protected]: core-js@&lt;3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.<br> npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.<br> npm ERR! cb() never called!</p> <p dir="auto">npm ERR! This is an error with npm itself. Please report this error at:<br> npm ERR! <a href="https://npm.community" rel="nofollow">https://npm.community</a></p> <p dir="auto">npm ERR! A complete log of this run can be found in:<br> npm ERR! /Users/userName/.npm/_logs/2020-02-04T14_47_01_098Z-debug.log`</p> <h2 dir="auto">When</h2> <p dir="auto">When I run <code class="notranslate">npm install</code>. I get following<br> Happened first time today</p> <h3 dir="auto">Current Behavior</h3> <p dir="auto">See error mentioned before</p> <h3 dir="auto">Steps to Reproduce</h3> <p dir="auto">run <code class="notranslate">npm install</code></p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Should install what is defined in <code class="notranslate">package.json</code></p>
0
<p dir="auto">I'm trying to train a model in a multiprocessing <code class="notranslate">Process</code>, but when a model already exist in the parent scope, the process will freeze at the initialization of the <code class="notranslate">Embedding</code> layer. I'm using Keras 2.0.5, Tensorflow 1.1.0, and only running on the CPU. Here's a simple duplicatable example.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from multiprocessing import Process, Pipe import numpy as np from keras.models import Model from keras.layers import Input, Dense, Embedding from keras.optimizers import Adam import tensorflow as tf def make_model(vecs, weights=None): inp = Input((5,)) embd = Embedding(len(vecs), 50, weights=[vecs], trainable=False)(inp) out = Dense(5, activation='softmax')(embd) model = Model(inp, out) model.compile(Adam(0.001), 'categorical_crossentropy', metrics=['accuracy']) return model def f(vecs, conn): model = make_model(vecs) conn.send('done') conn.close() if __name__ == '__main__': vecs = np.random.random((100000, 50)) model1 = make_model(vecs) parent_conn, child_conn = Pipe() p = Process(target=f, args=(vecs, child_conn), daemon=True) p.start() print('starting model two') print(parent_conn.recv()) print('completed')"><pre class="notranslate"><code class="notranslate">from multiprocessing import Process, Pipe import numpy as np from keras.models import Model from keras.layers import Input, Dense, Embedding from keras.optimizers import Adam import tensorflow as tf def make_model(vecs, weights=None): inp = Input((5,)) embd = Embedding(len(vecs), 50, weights=[vecs], trainable=False)(inp) out = Dense(5, activation='softmax')(embd) model = Model(inp, out) model.compile(Adam(0.001), 'categorical_crossentropy', metrics=['accuracy']) return model def f(vecs, conn): model = make_model(vecs) conn.send('done') conn.close() if __name__ == '__main__': vecs = np.random.random((100000, 50)) model1 = make_model(vecs) parent_conn, child_conn = Pipe() p = Process(target=f, args=(vecs, child_conn), daemon=True) p.start() print('starting model two') print(parent_conn.recv()) print('completed') </code></pre></div> <p dir="auto">When this script is run as it's currently written, it will never print the 'completed' message. If, however, I comment out the line <code class="notranslate">model1 = make_model(vecs)</code> then it will work just fine.</p> <p dir="auto">I feel like this is a graph/session issue, but none of my attempts to fix it have been successful. Any thoughts?</p>
<p dir="auto">The graph visualization is confusing. There are too many nodes on the graph compared to the actual model, seems the nodes are repeatedly logged many times.</p> <p dir="auto">For example, see parts of the graph of a simple 0-hidden layer network:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4527536/28496230-4a663a7a-6fa1-11e7-939d-6dc14c83879a.png"><img src="https://user-images.githubusercontent.com/4527536/28496230-4a663a7a-6fa1-11e7-939d-6dc14c83879a.png" alt="screen shot 2017-07-23 at 12 18 48" style="max-width: 100%;"></a></p>
0